/* ===== Módulo Académico (panel) ===== */
.ac, .dp-admin { --ac-ink: #16263b; --ac-muted: #5d6b7e; --ac-line: #e3e8ef; --ac-soft: #f6f8fb; --ac-blue: #1f4fd1;
      --ac-blue-soft: #eaf0fd; --ac-green: #1c7c54; --ac-green-soft: #e5f4ec; --ac-amber: #9a6700; --ac-amber-soft: #fdf3dc;
      --ac-red: #b3392a; --ac-red-soft: #fbeae7; --ac-violet: #6b3fc2; --ac-violet-soft: #f0eafb; color: var(--ac-ink); }
.ac *, .ac *::before, .ac *::after { box-sizing: border-box; }
.ac a { color: inherit; }
.ac-link { color: var(--ac-blue) !important; font-weight: 500; }
.ac-link:hover { text-decoration: underline; }
.ac-muted { color: var(--ac-muted); }
.ac-small { font-size: 12.5px; }
.ac-num { font-variant-numeric: tabular-nums; }
.ac-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.ac-stack > * + * { margin-top: 20px; }
.ac-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ac-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ac-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ac-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ac-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }

/* Tarjetas */
.ac-card { background: #fff; border: 1px solid var(--ac-line); border-radius: 10px; }
.ac-card-pad { padding: 20px; }
.ac-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
                padding: 14px 20px; border-bottom: 1px solid var(--ac-line); }
.ac-card-head h2, .ac-card-head h3 { font-size: 15px; font-weight: 600; margin: 0; }
.ac-card-body { padding: 20px; }
.ac-section-title { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ac-muted); margin-bottom: 10px; }

/* KPIs */
.ac-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.ac-kpi { background: #fff; border: 1px solid var(--ac-line); border-radius: 10px; padding: 16px 18px; }
.ac-kpi span { display: block; font-size: 12px; color: var(--ac-muted); }
.ac-kpi strong { display: block; font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ac-kpi small { display: block; margin-top: 2px; font-size: 12px; color: var(--ac-muted); }
.ac-kpi a { text-decoration: none; }

/* Botones */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 14px;
          border-radius: 7px; border: 1px solid var(--ac-line); background: #fff; color: var(--ac-ink) !important;
          font-size: 13.5px; font-weight: 550; cursor: pointer; text-decoration: none !important; white-space: nowrap;
          transition: background .15s, border-color .15s; }
.ac-btn:hover { background: var(--ac-soft); border-color: #cfd7e2; }
.ac-btn-primary { background: var(--ac-blue); border-color: var(--ac-blue); color: #fff !important; }
.ac-btn-primary:hover { background: #1942b3; border-color: #1942b3; }
.ac-btn-success { background: var(--ac-green); border-color: var(--ac-green); color: #fff !important; }
.ac-btn-success:hover { background: #166546; }
.ac-btn-danger { color: var(--ac-red) !important; }
.ac-btn-danger:hover { background: var(--ac-red-soft); border-color: #f0c9c2; }
.ac-btn-sm { min-height: 30px; padding: 4px 10px; font-size: 12.5px; }
.ac-btn:disabled, .ac-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.ac-linkbtn { background: none; border: 0; padding: 0; color: var(--ac-blue); font: inherit; font-weight: 500; cursor: pointer; }
.ac-linkbtn:hover { text-decoration: underline; }
.ac-linkbtn.danger { color: var(--ac-red); }

/* Badges */
.ac-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px;
            font-weight: 600; line-height: 1.6; white-space: nowrap; background: var(--ac-soft); color: var(--ac-muted); }
.ac-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.ac-b-blue { background: var(--ac-blue-soft); color: var(--ac-blue); }
.ac-b-green { background: var(--ac-green-soft); color: var(--ac-green); }
.ac-b-amber { background: var(--ac-amber-soft); color: var(--ac-amber); }
.ac-b-red { background: var(--ac-red-soft); color: var(--ac-red); }
.ac-b-violet { background: var(--ac-violet-soft); color: var(--ac-violet); }
.ac-b-grey { background: #eef1f5; color: #5d6b7e; }
.ac-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }

/* Tablas */
.ac-table-wrap { overflow-x: auto; }
.ac-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ac-table th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
               color: var(--ac-muted); background: var(--ac-soft); padding: 10px 14px; border-bottom: 1px solid var(--ac-line); white-space: nowrap; }
.ac-table td { padding: 12px 14px; border-bottom: 1px solid var(--ac-line); vertical-align: middle; }
.ac-table tr:last-child td { border-bottom: 0; }
.ac-table tbody tr:hover td { background: #fafbfd; }
.ac-table .r { text-align: right; }
.ac-table .nowrap { white-space: nowrap; }
.ac-table tr.is-muted td { color: #98a2b3; }
.ac-table tr.is-muted td .ac-badge { opacity: .7; }
.ac-name { font-weight: 600; color: var(--ac-ink); text-decoration: none; }
.ac-name:hover { color: var(--ac-blue); }
.ac-sub { display: block; font-size: 12.5px; color: var(--ac-muted); margin-top: 1px; }
.ac-empty { padding: 48px 20px; text-align: center; color: var(--ac-muted); }
.ac-empty strong { display: block; color: var(--ac-ink); font-size: 15px; margin-bottom: 4px; }

/* Formularios */
.ac-form { display: grid; gap: 16px; }
.ac-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.ac-form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.ac-full { grid-column: 1 / -1; }
.ac-field label, .ac-label { display: block; font-size: 13px; font-weight: 600; color: #2b3a4f; margin-bottom: 5px; }
.ac-field .req { color: var(--ac-red); }
.ac-input, .ac-field input[type=text], .ac-field input[type=email], .ac-field input[type=tel], .ac-field input[type=number],
.ac-field input[type=date], .ac-field input[type=time], .ac-field input[type=url], .ac-field input[type=search],
.ac-field select, .ac-field textarea {
    width: 100%; border: 1px solid #cfd7e2; border-radius: 7px; padding: 8px 11px; font-size: 14px; color: var(--ac-ink);
    background: #fff; font-family: inherit; }
.ac-field textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.ac-field textarea.tall { min-height: 220px; }
.ac-input:focus, .ac-field input:focus, .ac-field select:focus, .ac-field textarea:focus {
    outline: none; border-color: var(--ac-blue); box-shadow: 0 0 0 3px #1f4fd126; }
.ac-field .hint { display: block; margin-top: 4px; font-size: 12px; color: var(--ac-muted); }
.ac-field .err { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ac-red); }
.ac-field.has-err input, .ac-field.has-err select, .ac-field.has-err textarea { border-color: var(--ac-red); }
.ac-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.ac-check input { width: 16px; height: 16px; accent-color: var(--ac-blue); }
.ac-days { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-days label { margin: 0; }
.ac-days input { position: absolute; opacity: 0; pointer-events: none; }
.ac-days span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; padding: 7px 10px;
                border: 1px solid #cfd7e2; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ac-muted); cursor: pointer; user-select: none; }
.ac-days input:checked + span { background: var(--ac-blue); border-color: var(--ac-blue); color: #fff; }
.ac-days input:focus-visible + span { box-shadow: 0 0 0 3px #1f4fd140; }
.ac-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; }

/* Filtros */
.ac-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px 16px; }
.ac-filters .ac-field { margin: 0; }
.ac-filters .ac-field label { font-size: 11.5px; font-weight: 600; color: var(--ac-muted); text-transform: uppercase; letter-spacing: .04em; }
.ac-filters .grow { flex: 1 1 220px; }
.ac-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--ac-line); padding: 0 12px; }
.ac-tabs a { padding: 12px 12px 10px; font-size: 13.5px; font-weight: 550; color: var(--ac-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ac-tabs a:hover { color: var(--ac-ink); }
.ac-tabs a.active { color: var(--ac-blue); border-bottom-color: var(--ac-blue); }

/* Alertas */
.ac-alert { padding: 12px 14px; border-radius: 8px; font-size: 14px; border: 1px solid transparent; }
.ac-alert-success { background: var(--ac-green-soft); color: #145c3e; border-color: #c4e6d4; }
.ac-alert-error { background: var(--ac-red-soft); color: #8a2c20; border-color: #f0c9c2; }
.ac-alert-info { background: var(--ac-blue-soft); color: #1b3f9c; border-color: #cfdcfa; }
.ac-alert-warn { background: var(--ac-amber-soft); color: #7a5200; border-color: #f2dfae; }

/* Datos clave */
.ac-dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 14px; margin: 0; }
.ac-dl dt { color: var(--ac-muted); }
.ac-dl dd { margin: 0; font-weight: 500; }
.ac-meter { height: 8px; border-radius: 99px; background: #eef1f5; overflow: hidden; }
.ac-meter > span { display: block; height: 100%; background: var(--ac-blue); border-radius: 99px; }
.ac-meter.ok > span { background: var(--ac-green); }

/* Timeline */
.ac-timeline { list-style: none; margin: 0; padding: 0; }
.ac-timeline li { position: relative; padding: 0 0 14px 20px; font-size: 13.5px; }
.ac-timeline li::before { content: ''; position: absolute; left: 3px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #b8c3d3; }
.ac-timeline li::after { content: ''; position: absolute; left: 6.5px; top: 16px; bottom: 0; width: 1px; background: var(--ac-line); }
.ac-timeline li:last-child::after { display: none; }
.ac-timeline li.k-status::before { background: var(--ac-blue); }
.ac-timeline li.k-payment::before { background: var(--ac-green); }
.ac-timeline li.k-message::before { background: #25a35a; }
.ac-timeline small { display: block; color: var(--ac-muted); font-size: 12px; }

/* Calendario */
.ac-cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ac-cal-head h2 { font-size: 18px; font-weight: 650; margin: 0; }
.ac-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--ac-line); border-radius: 10px; overflow: hidden; background: #fff; }
.ac-cal-dow { padding: 8px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--ac-muted); background: var(--ac-soft); border-bottom: 1px solid var(--ac-line); }
.ac-cal-day { min-height: 112px; padding: 6px; border-right: 1px solid var(--ac-line); border-bottom: 1px solid var(--ac-line); }
.ac-cal-day:nth-child(7n) { border-right: 0; }
.ac-cal-day.other { background: #fafbfc; }
.ac-cal-day.other .ac-cal-num { color: #b0b9c6; }
.ac-cal-num { font-size: 12.5px; font-weight: 600; color: var(--ac-muted); padding: 2px 4px; display: inline-block; border-radius: 6px; }
.ac-cal-day.today .ac-cal-num { background: var(--ac-blue); color: #fff; }
.ac-ev { display: block; margin-top: 4px; padding: 4px 6px 4px 8px; border-radius: 6px; font-size: 12px; line-height: 1.3; text-decoration: none;
         background: color-mix(in srgb, var(--c) 12%, white); border-left: 3px solid var(--c); color: var(--ac-ink); cursor: pointer; width: 100%; text-align: left; border-top: 0; border-right: 0; border-bottom: 0; font-family: inherit; }
.ac-ev:hover { background: color-mix(in srgb, var(--c) 20%, white); }
.ac-ev b { font-weight: 650; }
.ac-ev.cancelled { opacity: .55; text-decoration: line-through; }
.ac-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.ac-week-col { background: #fff; border: 1px solid var(--ac-line); border-radius: 10px; min-height: 260px; padding: 10px; }
.ac-week-col.today { border-color: var(--ac-blue); box-shadow: 0 0 0 1px var(--ac-blue) inset; }
.ac-week-col h4 { font-size: 12.5px; font-weight: 650; margin: 0 0 8px; color: var(--ac-muted); }
.ac-week-col h4 strong { display: block; font-size: 20px; color: var(--ac-ink); }
.ac-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ac-muted); margin-top: 12px; }

/* Diálogo */
.ac-dialog { border: 0; border-radius: 12px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 70px rgba(15, 35, 60, .28); color: var(--ac-ink); }
.ac-dialog::backdrop { background: rgba(15, 25, 40, .45); }
.ac-dialog form { padding: 22px; }
.ac-dialog h3 { font-size: 17px; font-weight: 650; margin: 0 0 4px; }

/* Plantillas */
.ac-preview { white-space: pre-wrap; background: #e7f6ec; border: 1px solid #cde9d6; border-radius: 10px 10px 10px 2px; padding: 12px 14px;
              font-size: 14px; line-height: 1.5; max-width: 420px; }
.ac-vars { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-vars button { border: 1px solid var(--ac-line); background: var(--ac-soft); border-radius: 6px; padding: 3px 8px; font-size: 12px;
                  font-family: ui-monospace, Menlo, Consolas, monospace; cursor: pointer; color: var(--ac-ink); }
.ac-vars button:hover { border-color: var(--ac-blue); color: var(--ac-blue); }
.ac-msg-body { white-space: pre-wrap; font-size: 12.5px; color: var(--ac-muted); max-height: 3.2em; overflow: hidden; }

/* Sidebar */
.ac-side-title { padding: 14px 16px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a97a8; }
/* Sidebar: grupo Académico desplegable */
.ac-nav-parent { background: none; border: 0; cursor: pointer; }
.ac-side-chevron { width: 16px; height: 16px; margin-left: auto; flex-shrink: 0; transition: transform .2s ease; }
.ac-nav-parent[aria-expanded="false"] .ac-side-chevron { transform: rotate(-90deg); }
.ac-submenu { list-style: none; margin: 4px 0 0 26px; padding: 0 0 0 10px; border-left: 1px solid #e2e8f0; display: grid; gap: 2px; overflow: hidden; max-height: 800px; transition: max-height .25s ease, opacity .2s ease; }
.ac-submenu.is-collapsed { max-height: 0; opacity: 0; margin-top: 0; }
.ac-subitem { padding: 8px 12px; font-size: .84rem; }
.dp-admin #sidebar .ac-nav-parent.is-active { color: #fff; font-weight: 600; }
.dp-admin #sidebar .ac-submenu { border-left-color: #ffffff1f; }
.ac-side-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 99px; background: #e8eefc; color: #1f4fd1; font-size: 11.5px; font-weight: 700; text-align: center; line-height: 20px; }
.dp-admin #sidebar .ac-side-count { background: #22453f; color: #8ce3c9; }

@media (max-width: 1100px) {
    .ac-layout { grid-template-columns: 1fr; }
    .ac-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .ac-grid-2, .ac-grid-3, .ac-form-grid, .ac-form-grid-3 { grid-template-columns: 1fr; }
    .ac-dl { grid-template-columns: 1fr; gap: 2px; }
    .ac-dl dd { margin-bottom: 8px; }
    .ac-cal { display: block; border: 0; background: none; }
    .ac-cal-dow, .ac-cal-day.empty-day { display: none; }
    .ac-cal-day { min-height: 0; border: 1px solid var(--ac-line); border-radius: 8px; margin-bottom: 6px; background: #fff; }
    .ac-cal-day.other { display: none; }
    .ac-week { grid-template-columns: 1fr; }
    .ac-week-col { min-height: 0; }
}
/* Ajustes */
.ac-home { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.ac-table .r { white-space: nowrap; }
.ac-table td:first-child { min-width: 170px; }
.ac-cal-head select { max-width: 300px; }
@media (max-width: 1500px) { .ac-home { grid-template-columns: 1fr; } }

/* Editor de texto enriquecido (Quill) – formulario de cursos */
.ac-rich { border: 1px solid #cfd7e2; border-radius: 7px; background: #fff; position: relative; }
.ac-rich:focus-within { border-color: var(--ac-blue); box-shadow: 0 0 0 3px var(--ac-blue-soft); }
.ac-rich .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--ac-line); background: var(--ac-soft); padding: 6px 8px; font-family: inherit; }
.ac-rich .ql-container.ql-snow { border: 0; font-family: inherit; font-size: 14px; color: var(--ac-ink); }
.ac-rich .ql-editor { min-height: 110px; line-height: 1.6; padding: 10px 12px; }
.ac-rich .ql-editor.ql-blank::before { color: #98a4b3; font-style: normal; left: 12px; right: 12px; }
.ac-rich .ql-editor h3 { font-size: 1.2em; font-weight: 600; margin: .4em 0 .2em; }
.ac-rich .ql-editor h4 { font-size: 1.05em; font-weight: 600; margin: .4em 0 .2em; }
.ac-rich .ql-editor code { background: #edf3f7; color: #1d4a66; padding: 1px 5px; border-radius: 3px; font-size: .9em; }
.ac-rich .ql-editor a { color: var(--ac-blue); text-decoration: underline; }
.ac-rich .ql-editor blockquote { border-left: 3px solid #cfd7e2; padding-left: 12px; color: var(--ac-muted); }
.ac-rich .ql-toolbar.ql-snow { border-radius: 7px 7px 0 0; }
.ac-rich .ql-snow .ql-tooltip { z-index: 5; }
.ac-rich .ql-snow .ql-tooltip input[type=text] { width: 190px; height: 28px; padding: 3px 6px; font-size: 13px; border-radius: 4px; }
.ac-rich-inline .ql-editor { min-height: 64px; }
.ac-rich-full .ql-editor { min-height: 180px; }
.ac-rich-list .ql-editor { min-height: 160px; }
.ac-rich-module .ql-editor { min-height: 70px; }

.ac-modules:not([hidden]) { display: grid; gap: 10px; }
.ac-module { display: grid; grid-template-columns: 56px minmax(0, 1fr); border: 1px solid var(--ac-line); border-radius: 9px; background: #fff; overflow: hidden; }
.ac-module-num { display: flex; align-items: flex-start; justify-content: center; padding-top: 16px; background: var(--ac-soft);
                 border-right: 1px solid var(--ac-line); font-weight: 600; font-size: 15px; color: var(--ac-muted); font-variant-numeric: tabular-nums; }
.ac-module-main { padding: 10px 12px 12px; display: grid; gap: 8px; }
.ac-module-head { display: flex; gap: 8px; align-items: center; }
.ac-field .ac-module-title { flex: 1; font-weight: 600; }
.ac-module-tools { display: flex; gap: 4px; }
.ac-btn-icon { min-height: 32px; width: 32px; padding: 0; font-size: 14px; }
.ac-btn-icon:disabled { opacity: .35; cursor: default; }
.ac-modules-add { margin-top: 10px; justify-self: start; }
@media (max-width: 640px) {
    .ac-module { grid-template-columns: 1fr; }
    .ac-module-num { justify-content: flex-start; padding: 6px 12px; border-right: 0; border-bottom: 1px solid var(--ac-line); }
    .ac-module-head { flex-wrap: wrap; }
}

/* Academic analytics workspace */
.ac-dashboard { --ac-blue:#6366f1; --ac-ink:#202c46; --ac-muted:#8590a5; max-width:1640px; margin-inline:auto; padding-bottom:24px; }
.ac-dashboard.ac-stack > * + * { margin-top:18px; }
.ac-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.ac-dashboard-toolbar { padding:2px 0 8px; }
.ac-eyebrow { display:block; font-size:10px; font-weight:700; letter-spacing:.14em; color:#9ba3b5; margin-bottom:6px; }
.ac-dashboard-toolbar h2 { margin:0; font-size:25px; font-weight:700; letter-spacing:-.04em; display:flex; align-items:center; gap:12px; }
.ac-live-dot { width:7px; height:7px; border-radius:50%; background:#2db6a3; box-shadow:0 0 0 4px #2db6a315; }
.ac-dashboard-period input { border:1px solid #e1e5ef; padding:9px 12px; border-radius:8px; background:white; font:inherit; font-size:12px; color:var(--ac-ink); min-height:38px; }
.ac-dashboard .ac-btn-primary { background:#6366f1; border-color:#6366f1; }
.ac-dashboard .ac-btn-primary:hover { background:#4f46e5; }
.ac-dashboard .ac-card { border:1px solid #e8ecf3; border-radius:14px; background:#fff; box-shadow:0 4px 20px #233c5c04; overflow:hidden; min-width:0; }
.ac-dashboard .ac-card-head { border-bottom:0; padding:20px 22px 8px; }
.ac-dashboard .ac-card-head h2 { font-size:14px; font-weight:650; letter-spacing:-.025em; }
.ac-dashboard-primary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.ac-dashboard .ac-kpi { min-width:0; position:relative; border:1px solid #e8ecf3; border-radius:12px; padding:21px 22px; background:#fff; text-decoration:none; box-shadow:0 4px 20px #233c5c04; }
.ac-dashboard .ac-kpi > span:first-child { color:#768199; font-size:12px; font-weight:500; padding-right:16px; }
.ac-dashboard .ac-kpi strong { font-size:clamp(24px,2.5vw,36px); font-weight:650; line-height:1.2; margin-top:14px; letter-spacing:-.045em; overflow-wrap:anywhere; }
.ac-dashboard .ac-kpi.is-green { background:#202c46; color:#fff; border-color:#202c46; }
.ac-dashboard .ac-kpi.is-green > span:first-child { color:#c3cbdf; }
.ac-dashboard .ac-kpi.is-blue strong { color:#6366f1; }
.ac-dashboard .ac-kpi-info { position:absolute; top:20px; right:19px; font-size:12px; color:#9ca5b8; cursor:help; }
.ac-dashboard .ac-kpi-arrow { position:absolute; bottom:18px; right:19px; font-size:18px; opacity:.5; }
.ac-dashboard a:focus-visible, .ac-dashboard input:focus-visible, .ac-dashboard summary:focus-visible { outline:2px solid #6366f1; outline-offset:3px; }
.ac-dashboard a.ac-kpi:hover { box-shadow:0 6px 20px #233c5c14; }
.ac-visual-grid { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(285px,1fr); gap:18px; }
.ac-chart-key { display:inline-flex; align-items:center; gap:7px; color:#8a94a8; font-size:10px; }
.ac-chart-key i { width:7px; height:7px; border-radius:50%; background:#6366f1; }
.ac-revenue-total { display:flex; gap:14px; align-items:center; margin:8px 22px 10px; font-size:30px; font-weight:650; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.ac-revenue-total > span { padding:4px 7px; border-radius:4px; background:#f3f2ff; color:#7b77bf; font-size:10px; font-weight:500; letter-spacing:0; }
.ac-area-chart { position:relative; padding:8px 25px 20px 92px; }
.ac-area-chart svg { display:block; width:100%; height:180px; overflow:visible; }
.ac-chart-y { position:absolute; left:22px; top:15px; bottom:48px; display:flex; flex-direction:column; justify-content:space-between; font-size:9px; color:#a0a8b8; max-width:65px; }
.ac-chart-x { display:flex; justify-content:space-between; margin-top:13px; font-size:9px; color:#9aa3b6; gap:5px; }
.ac-period-chip { display:inline-block; background:#f4f6fa; color:#929bb0; padding:5px 8px; border-radius:5px; font-size:10px; }
.ac-donut-wrap { width:166px; height:166px; position:relative; margin:4px auto 10px; }
.ac-donut { display:block; width:100%; height:100%; }
.ac-donut-label { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none; }
.ac-donut-label strong { font-size:34px; font-weight:650; letter-spacing:-.04em; }
.ac-donut-label span { font-size:10px; color:#969fb1; }
.ac-channel-legend { padding:0 22px 20px; display:grid; grid-template-columns:1fr 1fr; gap:12px 22px; }
.ac-channel-legend > div { display:grid; grid-template-columns:1fr auto; gap:4px; font-size:11px; }
.ac-channel-legend > div > span { display:flex; align-items:center; gap:6px; color:#7e899e; }
.ac-channel-legend i { width:7px; height:7px; border-radius:50%; }
.ac-channel-legend strong { font-weight:650; }
.ac-channel-legend small { grid-column:2; text-align:right; color:#a3acbd; font-size:9px; }
.ac-status-strip { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); background:#eef0f8; border:1px solid #e6e9f2; border-radius:12px; padding:17px 0; }
.ac-status-strip > div { padding:0 18px; border-right:1px solid #dde2ed; }
.ac-status-strip > div:last-child { border:0; }
.ac-status-strip strong { display:block; font-size:21px; line-height:1.2; font-weight:650; letter-spacing:-.035em; }
.ac-status-strip span { display:block; margin-top:6px; font-size:10px; color:#8b94a8; }
.ac-dashboard-heading { font-size:15px; font-weight:650; margin:0; letter-spacing:-.025em; }
.ac-pulse-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr); gap:18px; }
.ac-finance-main { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 22px 18px; }
.ac-finance-main > div:first-child > span { color:#8e98ab; display:block; font-size:11px; }
.ac-finance-main > div:first-child > strong { display:block; font-size:24px; font-weight:650; letter-spacing:-.04em; margin:7px 0; }
.ac-finance-main small { color:#a2aabb; font-size:10px; }
.ac-mini-ring { --progress:0; --ring-color:#6366f1; width:83px; height:83px; border-radius:50%; background:conic-gradient(var(--ring-color) calc(clamp(0,var(--progress),100) * 1%),#eef1f7 0); display:flex; flex-direction:column; justify-content:center; align-items:center; position:relative; flex-shrink:0; isolation:isolate; }
.ac-mini-ring:before { content:''; position:absolute; inset:7px; border-radius:50%; background:white; z-index:-1; }
.ac-mini-ring strong { font-size:16px; font-weight:650; letter-spacing:-.04em; }
.ac-mini-ring span { color:#9ca5b5; font-size:8px; margin-top:3px; }
.ac-compact-metrics { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid #f0f2f7; }
.ac-compact-metrics > a { padding:11px 17px; display:flex; justify-content:space-between; align-items:center; gap:8px; text-decoration:none; font-size:10px; color:#909aae; }
.ac-compact-metrics > a:hover { background:#f7f7fc; }
.ac-compact-metrics strong { font-size:16px; color:#34405a; font-weight:650; }
.ac-compact-metrics small { display:block; font-size:9px; margin-top:3px; }
.ac-compact-metrics .ac-attention { color:#d29b3d; }
.ac-learning-rings { display:flex; justify-content:space-around; gap:12px; padding:18px 14px 22px; }
.ac-learning-rings > div { text-align:center; display:flex; flex-direction:column; align-items:center; min-width:0; }
.ac-learning-rings > div > strong { font-size:10px; font-weight:500; margin-top:12px; }
.ac-learning-rings small { display:block; color:#9ca5b5; font-size:9px; margin-top:5px; }
.ac-learning-footer { display:flex; justify-content:space-around; padding:13px 12px; border-top:1px solid #f0f2f7; color:#97a0b2; font-size:9px; gap:10px; }
.ac-learning-footer b { color:#47536c; font-size:15px; margin-right:4px; }
.ac-week-total { display:flex; align-items:baseline; gap:8px; padding:12px 22px 0; }
.ac-week-total strong { font-size:28px; font-weight:650; letter-spacing:-.04em; }
.ac-week-total span { font-size:10px; color:#9aa3b4; }
.ac-dashboard-bars { display:flex; gap:10px; padding:14px 22px 19px; }
.ac-dashboard-day { flex:1; min-width:0; text-align:center; text-decoration:none; }
.ac-dashboard-day > strong { font-size:9px; font-weight:500; color:#929db1; }
.ac-dashboard-day small { display:block; font-size:8px; color:#929db1; margin-top:8px; }
.ac-dashboard-bar-track { height:88px; display:flex; align-items:end; margin:5px auto; width:100%; max-width:24px; background:#f4f3fc; border-radius:4px; overflow:hidden; }
.ac-dashboard-bar-track span { width:100%; background:#8b83e8; border-radius:4px; }
.ac-dashboard-day:hover .ac-dashboard-bar-track span { background:#6366f1; }
.ac-alert-dot { display:inline-block; width:6px; height:6px; background:#e4ac49; border-radius:50%; margin-right:5px; }
.ac-dashboard-alerts { display:flex; flex-wrap:wrap; gap:9px; max-height:180px; overflow:auto; padding:12px 22px 19px; }
.ac-dashboard-alert { display:block; padding:9px 12px; background:#fffaf1; border:1px solid #f6e7c9; border-radius:7px; text-decoration:none; }
.ac-dashboard-alert strong { font-size:10px; font-weight:500; color:#ad843f; }
.ac-dashboard-alert span { display:block; font-size:9px; color:#b6a17d; margin-top:3px; }
.ac-dashboard .ac-home { display:grid; grid-template-columns:1fr; gap:18px; }
.ac-dashboard .ac-table th { font-size:9px; background:#fafbfe; letter-spacing:.05em; color:#9aa3b6; padding:12px 20px; }
.ac-dashboard .ac-table td { padding:16px 20px; font-size:11px; }
.ac-dashboard .ac-sub { font-size:10px; }
.ac-dashboard .ac-badge { font-size:9px; }
.ac-dashboard .ac-link { color:#7774cb !important; }
.ac-dashboard-definitions summary { padding:14px 20px; font-size:11px; color:#98a2b5; cursor:pointer; }
.ac-dashboard-definitions .ac-card-body { font-size:11px; color:#8d98ab; line-height:1.8; }
.ac-dashboard-definitions p + p { margin-top:10px; }
@media (max-width:1250px) { .ac-pulse-grid { grid-template-columns:1fr 1fr; } .ac-week-panel { grid-column:1 / -1; } .ac-week-panel .ac-dashboard-bar-track { max-width:38px; } }
@media (max-width:1000px) { .ac-dashboard-primary { grid-template-columns:1fr 1fr; } .ac-visual-grid { grid-template-columns:1fr; } .ac-origins-panel { display:grid; grid-template-columns:1fr 1fr; } .ac-origins-panel .ac-card-head { grid-column:1 / -1; } .ac-channel-legend { align-content:center; } .ac-status-strip { grid-template-columns:repeat(3,1fr); gap:18px 0; } .ac-status-strip > div:nth-child(3) { border:0; } }
@media (max-width:650px) { .ac-pulse-grid { grid-template-columns:1fr; } .ac-week-panel { grid-column:auto; } .ac-dashboard-toolbar { gap:16px; } .ac-dashboard-toolbar h2 { font-size:22px; } .ac-dashboard .ac-kpi { padding:16px; } .ac-dashboard .ac-kpi-info { right:12px; top:16px; } .ac-dashboard .ac-kpi strong { font-size:25px; } .ac-dashboard .ac-kpi > span:first-child { font-size:10px; } .ac-channel-legend { grid-template-columns:1fr; } .ac-area-chart { padding-left:70px; } .ac-chart-y { left:15px; max-width:50px; font-size:8px; } .ac-chart-x { font-size:8px; } .ac-status-strip > div { padding:0 12px; } .ac-status-strip span { font-size:9px; } }
@media (prefers-reduced-motion:no-preference) { .ac-dashboard a { transition:box-shadow .15s,background .15s; } }
/* Keep supporting values legible without adding narrative to the cards. */
.ac-chart-y, .ac-chart-x { color:#7c879b; font-size:10px; }
.ac-channel-legend small, .ac-status-strip span { color:#788399; font-size:10px; }
.ac-compact-metrics > a { color:#7a859a; font-size:11px; }
.ac-learning-rings > div > strong, .ac-learning-rings small, .ac-learning-footer { font-size:10px; }
.ac-learning-rings small, .ac-learning-footer { color:#7e899e; }
.ac-dashboard-day small { font-size:9px; color:#7e899e; }
.ac-dashboard .ac-kpi-info:focus-visible { outline:2px solid #6366f1; outline-offset:3px; border-radius:50%; }

/* Course editor: shared admin palette, scoped to this form. */
.ce-page { max-width: 1240px; margin-inline: auto; }
.ce-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ce-heading h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.ce-heading p { color: var(--ac-muted); font-size: 14px; margin: 8px 0 0; }
.ce-heading .ac-badge { flex-shrink: 0; margin-top: 5px; }
.ce-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--ac-line); border-radius: 12px; background: white; }
.ce-nav a { padding: 9px 13px; font-size: 13px; font-weight: 600; border-radius: 7px; color: var(--ac-muted); text-decoration: none; }
.ce-nav a:hover, .ce-nav a:focus-visible { background: var(--ac-blue-soft); color: var(--ac-blue); }
.ce-page .ac-card { border-radius: 14px; overflow: hidden; scroll-margin-top: 24px; }
.ce-page .ac-card-head { padding: 22px 26px; background: #fbfcfe; }
.ce-page .ac-card-head h2 { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.ce-page .ce-section-description { margin: 6px 0 0; color: var(--ac-muted); font-size: 13px; }
.ce-page .ac-card-body { padding: 26px; }
.ce-page .ac-form-grid, .ce-page .ac-form-grid-3 { gap: 24px; }
.ce-page .ac-field label { margin-bottom: 8px; }
.ce-page .ac-field .hint { display: block; margin-top: 7px; color: #52647b; line-height: 1.5; }
.ce-page input, .ce-page textarea { caret-color: var(--ac-blue); }
.ce-page ::selection { background: #dce6ff; color: #16263b; }
.ce-cover-layout { display: grid; grid-template-columns: minmax(180px, 320px) minmax(0, 1fr); align-items: center; gap: 28px; }
.ce-cover-image { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: var(--ac-soft); border-radius: 10px; }
.ce-cover-empty { aspect-ratio: 16/9; background: var(--ac-soft); border: 1px dashed #bac7d8; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #52647b; font-size: 13px; text-align: center; padding: 16px; }
.ce-cover-empty svg { width: 32px; height: 32px; }
.ce-cover-layout form { min-width: 0; }
.ce-cover-layout label { display: block; font-size: 13px; margin-bottom: 10px; }
.ce-cover-layout input[type=file] { width: 100%; font-size: 13px; padding: 10px; }
.ce-cover-layout input::file-selector-button { background: var(--ac-blue-soft); color: #1943b4; border: 0; padding: 8px 12px; border-radius: 6px; margin-right: 10px; cursor: pointer; }
.ce-cover-layout p { color: var(--ac-muted); line-height: 1.6; margin: 10px 0 16px; }
.ce-options { border-top: 1px solid var(--ac-line); padding-top: 22px; }
.ce-options input { accent-color: var(--ac-blue); width: 17px; height: 17px; }
.ce-savebar { position: sticky; bottom: 0; z-index: 15; padding: 16px 20px; background: white; border: 1px solid var(--ac-line); border-radius: 12px; box-shadow: 0 -6px 22px #16263b0a; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ce-savebar .ac-btn-primary { margin-left: auto; order: 2; }
.ce-savebar .ac-btn { min-height: 42px; }
.ce-page .ac-rich .ql-editor { min-height: 150px; line-height: 1.7; font-size: 14px; }
.ce-page .ac-rich-inline .ql-editor { min-height: 90px; }
.ce-page .ac-rich .ql-toolbar { background: #f6f8fb; }
@media (max-width: 1000px) { .ce-page .ac-form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .ce-heading { flex-direction: column; gap: 10px; }
    .ce-nav { gap: 2px; } .ce-nav a { padding: 9px 10px; font-size: 12px; }
    .ce-page .ac-card-head, .ce-page .ac-card-body { padding: 18px; }
    .ce-cover-layout, .ce-page .ac-form-grid, .ce-page .ac-form-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .ce-cover-image, .ce-cover-empty { max-width: 360px; }
    .ce-savebar { padding: 12px; gap: 8px; }
    .ce-savebar .ac-btn-primary { flex: 1; margin-left: 0; }
}
