/* ValorEdge Academy — gated LMS styles (self-contained, dark-gold). */
:root {
  --ac-bg: #060709;
  --ac-bg-2: #0b0e13;
  --ac-panel: #11151c;
  --ac-panel-2: #161b24;
  --ac-line: rgba(216, 181, 111, 0.16);
  --ac-line-soft: rgba(255, 255, 255, 0.07);
  --ac-text: #eef1f6;
  --ac-muted: #9aa3b2;
  --ac-gold: #d8b56f;
  --ac-gold-2: #c79b4e;
  --ac-green: #6fd89a;
  --ac-red: #e0736f;
  --ac-radius: 16px;
  --ac-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
.ac-body {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(216, 181, 111, 0.08), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(80, 110, 160, 0.06), transparent 55%),
    var(--ac-bg);
  color: var(--ac-text);
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }

/* ----------------------------------------------------------- top bar */
.ac-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--ac-line-soft);
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 7, 9, 0.82); backdrop-filter: blur(14px);
}
.ac-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ac-brand strong { font-family: "Fraunces", serif; font-size: 1.1rem; }
.ac-brand small { color: var(--ac-gold); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-left: 2px; }
.ac-topnav { display: flex; align-items: center; gap: 18px; }
.ac-topnav a { text-decoration: none; color: var(--ac-muted); font-size: 0.92rem; }
.ac-topnav a:hover { color: var(--ac-text); }
.ac-user { color: var(--ac-text); font-weight: 600; font-size: 0.9rem; }
@media (max-width: 640px) { .ac-topnav a[href="/"], .ac-user { display: none; } }

/* ----------------------------------------------------------- layout */
.ac-main { min-height: 70vh; }
.ac-wrap { max-width: 1080px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 40px) 80px; }
.ac-eyebrow { color: var(--ac-gold); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; font-weight: 600; margin: 0 0 8px; }
.ac-lede { color: var(--ac-muted); max-width: 60ch; }
.ac-muted { color: var(--ac-muted); }
.ac-center { text-align: center; }
.ac-page-head { margin-bottom: 28px; }
.ac-page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 6px; }
.ac-back { display: inline-block; color: var(--ac-muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 18px; }
.ac-back:hover { color: var(--ac-gold); }
.ac-empty { color: var(--ac-muted); padding: 40px 0; }
.ac-fineprint { color: var(--ac-muted); font-size: 0.78rem; }

/* ----------------------------------------------------------- buttons */
.ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 0.95rem; padding: 12px 22px;
  text-decoration: none; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.ac-btn:hover { transform: translateY(-1px); }
.ac-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.ac-btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.ac-btn-primary { background: linear-gradient(135deg, var(--ac-gold), var(--ac-gold-2)); color: #1a1304; }
.ac-btn-ghost { background: transparent; border-color: var(--ac-line); color: var(--ac-text); }
.ac-btn-ghost:hover { border-color: var(--ac-gold); }
.ac-btn-gold { background: transparent; border-color: var(--ac-gold); color: var(--ac-gold); }
.ac-btn-done { background: rgba(111, 216, 154, 0.14); border-color: rgba(111, 216, 154, 0.4); color: var(--ac-green); }
.ac-btn-danger { background: transparent; border-color: rgba(224, 115, 111, 0.4); color: var(--ac-red); }
.ac-btn-danger:hover { background: rgba(224, 115, 111, 0.12); }

/* ----------------------------------------------------------- forms */
.ac-form label, .ac-form .ac-file { display: block; margin-bottom: 14px; }
.ac-form label > span { display: block; font-size: 0.82rem; color: var(--ac-muted); margin-bottom: 6px; }
.ac-form input, .ac-form select, .ac-form textarea {
  width: 100%; background: var(--ac-bg-2); border: 1px solid var(--ac-line-soft);
  border-radius: 12px; color: var(--ac-text); font-family: inherit; font-size: 0.95rem; padding: 12px 14px;
}
.ac-form textarea { resize: vertical; }
.ac-form input:focus, .ac-form select:focus, .ac-form textarea:focus { outline: none; border-color: var(--ac-gold); }
.ac-form-status { min-height: 1.2em; font-size: 0.85rem; color: var(--ac-muted); margin: 8px 0 0; }
.ac-form-status.is-error { color: var(--ac-red); }
.ac-form-status.is-ok { color: var(--ac-green); }
.ac-warn { color: var(--ac-gold); font-size: 0.88rem; }
.ac-warn code, .ac-muted code { background: var(--ac-bg-2); padding: 1px 6px; border-radius: 6px; }

/* ----------------------------------------------------------- auth */
.ac-auth-page .ac-main { display: grid; place-items: center; padding: 24px; }
.ac-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 920px; width: 100%;
  background: var(--ac-panel); border: 1px solid var(--ac-line-soft); border-radius: 22px; overflow: hidden; box-shadow: var(--ac-shadow); }
.ac-auth-card { padding: clamp(28px, 5vw, 48px); }
.ac-auth-card h1 { font-size: 1.9rem; margin: 0 0 8px; }
.ac-auth-sub { color: var(--ac-muted); margin: 0 0 24px; }
.ac-auth-card .ac-btn-primary { width: 100%; margin-top: 4px; }
.ac-auth-switch { margin-top: 20px; font-size: 0.9rem; color: var(--ac-muted); }
.ac-auth-switch a { color: var(--ac-gold); text-decoration: none; font-weight: 600; }
.ac-auth-aside { padding: clamp(28px, 5vw, 48px); background:
  radial-gradient(600px 400px at 100% 0%, rgba(216, 181, 111, 0.14), transparent 60%), var(--ac-bg-2);
  border-left: 1px solid var(--ac-line); }
.ac-auth-aside h2 { font-size: 1.5rem; margin: 0 0 20px; }
.ac-auth-aside ul { list-style: none; padding: 0; margin: 0 0 24px; }
.ac-auth-aside li { padding: 9px 0 9px 26px; position: relative; color: var(--ac-text); border-bottom: 1px solid var(--ac-line-soft); }
.ac-auth-aside li::before { content: "◆"; color: var(--ac-gold); position: absolute; left: 0; font-size: 0.7rem; top: 12px; }
@media (max-width: 720px) { .ac-auth { grid-template-columns: 1fr; } .ac-auth-aside { display: none; } }

/* ----------------------------------------------------------- cards / dashboard */
.ac-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ac-course-card { background: var(--ac-panel); border: 1px solid var(--ac-line-soft); border-radius: var(--ac-radius); padding: 22px; display: flex; flex-direction: column; }
.ac-course-card:hover { border-color: var(--ac-line); }
.ac-course-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ac-course-card h2 { font-size: 1.25rem; margin: 0 0 8px; }
.ac-course-card p { color: var(--ac-muted); font-size: 0.92rem; margin: 0 0 16px; flex: 1; }
.ac-level { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ac-gold); border: 1px solid var(--ac-line); border-radius: 999px; padding: 4px 10px; }
.ac-badge { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ac-muted); background: var(--ac-bg-2); border-radius: 999px; padding: 4px 10px; }
.ac-badge-done { color: var(--ac-green); background: rgba(111, 216, 154, 0.12); }
.ac-meta { display: flex; gap: 14px; margin-bottom: 14px; }
.ac-meta small { color: var(--ac-muted); font-size: 0.8rem; }
.ac-course-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 0.85rem; color: var(--ac-muted); }

/* ----------------------------------------------------------- progress */
.ac-progress { height: 8px; background: var(--ac-bg-2); border-radius: 999px; overflow: hidden; margin: 6px 0; }
.ac-progress-sm { height: 6px; }
.ac-progress-bar { height: 100%; background: linear-gradient(90deg, var(--ac-gold-2), var(--ac-gold)); border-radius: 999px; transition: width .4s ease; }

/* ----------------------------------------------------------- course page */
.ac-course-hero { background: var(--ac-panel); border: 1px solid var(--ac-line-soft); border-radius: 20px; padding: clamp(24px, 4vw, 40px); margin-bottom: 28px; }
.ac-course-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0 12px; }
.ac-course-hero p { color: var(--ac-muted); max-width: 62ch; }
.ac-course-hero .ac-btn { margin-top: 16px; }
.ac-modules { display: flex; flex-direction: column; gap: 12px; }
.ac-module { background: var(--ac-panel); border: 1px solid var(--ac-line-soft); border-radius: 14px; overflow: hidden; }
.ac-module > summary { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; }
.ac-module > summary::-webkit-details-marker { display: none; }
.ac-module-index { font-family: "Fraunces", serif; color: var(--ac-gold); font-size: 1.1rem; min-width: 32px; }
.ac-module-title { flex: 1; display: flex; flex-direction: column; }
.ac-module-title strong { font-size: 1.05rem; }
.ac-module-title small { color: var(--ac-muted); font-size: 0.8rem; }
.ac-module-body { padding: 0 20px 18px 66px; }
.ac-module-summary { color: var(--ac-muted); font-size: 0.9rem; margin: 0 0 12px; }
.ac-lesson-list { list-style: none; margin: 0; padding: 0; }
.ac-lesson-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--ac-line-soft); }
.ac-lesson-row a, .ac-lesson-row span:not(.ac-check) { flex: 1; text-decoration: none; }
.ac-lesson-row a:hover { color: var(--ac-gold); }
.ac-lesson-row small { color: var(--ac-muted); font-size: 0.8rem; }
.ac-check { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--ac-line); color: var(--ac-muted); font-size: 0.72rem; flex: none; }
.ac-lesson-row.is-done .ac-check { color: var(--ac-green); border-color: rgba(111, 216, 154, 0.4); background: rgba(111, 216, 154, 0.1); }
.ac-quiz-row { font-weight: 600; }
.ac-quiz-row a { color: var(--ac-gold); }

/* ----------------------------------------------------------- lesson player */
.ac-learn { display: grid; grid-template-columns: 320px 1fr; min-height: calc(100vh - 64px); }
.ac-sidebar { border-right: 1px solid var(--ac-line-soft); padding: 24px 20px; background: var(--ac-bg-2); overflow-y: auto; }
.ac-side-progress { font-size: 0.78rem; margin: 4px 0 18px; }
.ac-side-module { margin-bottom: 16px; }
.ac-side-module-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ac-gold); margin: 0 0 8px; }
.ac-side-module ul { list-style: none; margin: 0; padding: 0; }
.ac-side-module li a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: var(--ac-muted); font-size: 0.86rem; }
.ac-side-module li a:hover { background: var(--ac-panel); color: var(--ac-text); }
.ac-side-module li.is-current a { background: var(--ac-panel); color: var(--ac-text); border-left: 2px solid var(--ac-gold); }
.ac-side-module li.is-done a { color: var(--ac-text); }
.ac-side-module li .ac-check { width: 18px; height: 18px; font-size: 0.62rem; }
.ac-side-module li.is-done .ac-check { color: var(--ac-green); border-color: rgba(111, 216, 154, 0.4); }
.ac-side-module li.ac-quiz a { color: var(--ac-gold); }
.ac-player { padding: clamp(20px, 4vw, 44px); max-width: 920px; }
.ac-player h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 6px 0 22px; }
.ac-video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid var(--ac-line-soft); }
.ac-video iframe, .ac-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ac-video-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ac-muted); }
.ac-video-placeholder span { font-size: 2.4rem; }
.ac-notes { margin-top: 26px; background: var(--ac-panel); border: 1px solid var(--ac-line-soft); border-radius: 14px; padding: 22px 24px; }
.ac-notes h2 { font-size: 1.1rem; margin: 0 0 10px; }
.ac-notes p { color: var(--ac-text); line-height: 1.7; margin: 0; }
.ac-player-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
@media (max-width: 860px) {
  .ac-learn { grid-template-columns: 1fr; }
  .ac-sidebar { border-right: 0; border-bottom: 1px solid var(--ac-line-soft); max-height: 240px; }
}

/* ----------------------------------------------------------- quiz */
.ac-quiz-wrap { max-width: 760px; }
.ac-question { border: 1px solid var(--ac-line-soft); border-radius: 14px; padding: 20px 22px; margin: 0 0 16px; background: var(--ac-panel); }
.ac-question legend { font-weight: 600; font-size: 1.02rem; display: flex; gap: 10px; align-items: baseline; padding: 0; }
.ac-q-num { font-family: "Fraunces", serif; color: var(--ac-gold); }
.ac-q-hint { color: var(--ac-muted); font-size: 0.8rem; margin: 6px 0 0 26px; }
.ac-options { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ac-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ac-line-soft); border-radius: 10px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.ac-option:hover { border-color: var(--ac-line); }
.ac-option input { accent-color: var(--ac-gold); width: 18px; height: 18px; }
.ac-option:has(input:checked) { border-color: var(--ac-gold); background: rgba(216, 181, 111, 0.08); }
.ac-quiz-result { margin-top: 8px; }
.ac-result-head { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 14px; margin-bottom: 20px; }
.ac-result-head.is-pass { background: rgba(111, 216, 154, 0.1); border: 1px solid rgba(111, 216, 154, 0.35); }
.ac-result-head.is-fail { background: rgba(224, 115, 111, 0.08); border: 1px solid rgba(224, 115, 111, 0.3); }
.ac-result-score { font-family: "Fraunces", serif; font-size: 2.4rem; }
.ac-result-head p { color: var(--ac-muted); margin: 4px 0 0; }
.ac-review { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.ac-review li { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--ac-panel); border: 1px solid var(--ac-line-soft); }
.ac-review-mark { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; flex: none; font-size: 0.75rem; }
.ac-review li.is-correct .ac-review-mark { background: rgba(111, 216, 154, 0.16); color: var(--ac-green); }
.ac-review li.is-wrong .ac-review-mark { background: rgba(224, 115, 111, 0.16); color: var(--ac-red); }
.ac-review-q { margin: 0; font-weight: 500; }
.ac-review-exp { margin: 6px 0 0; color: var(--ac-muted); font-size: 0.85rem; }
.ac-result-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ----------------------------------------------------------- certificate */
.ac-cert-wrap { max-width: 820px; }
.ac-cert { background:
  radial-gradient(800px 500px at 50% 0%, rgba(216, 181, 111, 0.12), transparent 60%), var(--ac-panel);
  border: 1px solid var(--ac-line); border-radius: 18px; padding: 6px; box-shadow: var(--ac-shadow); }
.ac-cert-inner { border: 1px solid var(--ac-line); border-radius: 14px; padding: clamp(30px, 6vw, 60px); text-align: center; }
.ac-cert-mark { margin-bottom: 16px; }
.ac-cert-eyebrow { color: var(--ac-gold); letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.74rem; font-weight: 600; margin: 0; }
.ac-cert-label { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; color: var(--ac-muted); margin: 6px 0 26px; }
.ac-cert-presented { color: var(--ac-muted); margin: 14px 0 4px; font-size: 0.9rem; }
.ac-cert-name { font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
.ac-cert-course { font-size: clamp(1.2rem, 3vw, 1.7rem); margin: 6px 0 26px; color: var(--ac-gold); }
.ac-cert-foot { display: flex; justify-content: center; gap: 48px; border-top: 1px solid var(--ac-line-soft); padding-top: 22px; }
.ac-cert-foot div { display: flex; flex-direction: column; gap: 4px; }
.ac-cert-meta-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ac-muted); }
.ac-cert-verify { margin-top: 20px; font-size: 0.78rem; color: var(--ac-muted); }
.ac-cert-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 24px 0 14px; }
@media print {
  .ac-topbar, .ac-cert-actions, .ac-fineprint { display: none !important; }
  .ac-body { background: #fff; color: #111; }
  .ac-cert, .ac-cert-inner { border-color: #caa; box-shadow: none; }
}

/* ----------------------------------------------------------- verify */
.ac-verify-wrap { max-width: 560px; }
.ac-verify-card { background: var(--ac-panel); border: 1px solid var(--ac-line-soft); border-radius: 16px; padding: 32px; text-align: center; margin-bottom: 20px; }
.ac-verify-icon { width: 56px; height: 56px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 1.6rem; margin-bottom: 12px; }
.ac-verify-card.is-valid .ac-verify-icon { background: rgba(111, 216, 154, 0.16); color: var(--ac-green); }
.ac-verify-card.is-invalid .ac-verify-icon { background: rgba(224, 115, 111, 0.16); color: var(--ac-red); }
.ac-verify-card dl { text-align: left; margin: 20px 0 0; }
.ac-verify-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--ac-line-soft); }
.ac-verify-card dt { color: var(--ac-muted); }
.ac-verify-card dd { margin: 0; font-weight: 600; text-align: right; }

/* ----------------------------------------------------------- admin */
.ac-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin-bottom: 28px; }
.ac-stat { background: var(--ac-panel); border: 1px solid var(--ac-line-soft); border-radius: 14px; padding: 18px; text-align: center; }
.ac-stat strong { display: block; font-family: "Fraunces", serif; font-size: 1.8rem; color: var(--ac-gold); }
.ac-stat span { color: var(--ac-muted); font-size: 0.82rem; }
.ac-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 760px) { .ac-admin-grid { grid-template-columns: 1fr; } }
.ac-panel { background: var(--ac-panel); border: 1px solid var(--ac-line-soft); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.ac-panel h2 { font-size: 1.2rem; margin: 0 0 8px; }
.ac-file { position: relative; border: 1px dashed var(--ac-line); border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; color: var(--ac-muted); }
.ac-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ac-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ac-table th { text-align: left; color: var(--ac-muted); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 10px 12px; border-bottom: 1px solid var(--ac-line-soft); }
.ac-table td { padding: 12px; border-bottom: 1px solid var(--ac-line-soft); vertical-align: middle; }
.ac-row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ac-lesson-edit { border: 1px solid var(--ac-line-soft); border-radius: 12px; padding: 16px; margin-top: 12px; background: var(--ac-bg-2); }
.ac-lesson-edit-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.ac-lesson-edit-grid .ac-span-2 { grid-column: span 1; }
.ac-lesson-edit-grid .ac-span-3 { grid-column: 1 / -1; }
.ac-lesson-edit-grid label { margin-bottom: 0; }
.ac-lesson-edit-foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
@media (max-width: 620px) { .ac-lesson-edit-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ac-gold);
  color: #0a0a0a;
  font-weight: 700;
}
.skip-link:focus { left: 16px; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
   Study Plan — paced completion tracker on the dashboard
   ========================================================================== */
.ac-plan {
  border: 1px solid var(--ac-line, #2a2f3a);
  border-radius: var(--ac-radius, 16px);
  background: var(--ac-panel, #12151b);
  padding: 22px 22px 20px;
  margin: 0 0 26px;
}
.ac-plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ac-plan-title { margin: 2px 0 0; font-size: 1.35rem; color: var(--ac-text, #e8eaee); }
.ac-plan-status {
  display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent;
}
.ac-status-on_track { color: var(--ac-green, #3fb56f); border-color: rgba(63,181,111,.4); background: rgba(63,181,111,.08); }
.ac-status-ahead    { color: var(--ac-green, #3fb56f); border-color: rgba(63,181,111,.5); background: rgba(63,181,111,.12); }
.ac-status-behind   { color: #f0a58c; border-color: rgba(240,165,140,.45); background: rgba(240,165,140,.08); }
.ac-status-done     { color: var(--ac-gold, #d8b56f); border-color: rgba(216,181,111,.5); background: rgba(216,181,111,.1); }

.ac-plan-milestone {
  margin: 14px 0 0; padding: 9px 14px; border-radius: 10px; font-size: 0.88rem; font-weight: 600;
  color: var(--ac-gold, #e6c884); background: rgba(216,181,111,.08); border: 1px solid rgba(216,181,111,.25);
}

.ac-plan-progress { margin: 16px 0 4px; }
.ac-plan-bar { position: relative; height: 12px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.ac-plan-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c89f52, #e6c884); transition: width .5s ease; }
.ac-plan-bar-target { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ac-text, #e8eaee); opacity: .7; overflow: visible; }
.ac-plan-prog-labels { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 0.86rem; color: var(--ac-text, #e8eaee); }

.ac-plan-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.ac-plan-stat { border: 1px solid var(--ac-line-soft, rgba(255,255,255,.08)); border-radius: 12px; padding: 11px 13px; }
.ac-plan-stat-k { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ac-muted, #9aa3b2); }
.ac-plan-stat-v { display: block; margin-top: 4px; font-size: 1.02rem; font-weight: 700; color: var(--ac-text, #e8eaee); }
.ac-plan-stat-v.ac-ok { color: var(--ac-green, #3fb56f); }
.ac-plan-stat-v.ac-warn { color: #f0a58c; }

.ac-plan-next {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  text-decoration: none; border: 1px solid rgba(216,181,111,.3); border-radius: 12px; padding: 13px 16px;
  margin-bottom: 18px; background: linear-gradient(135deg, rgba(216,181,111,.08), rgba(199,155,78,.02));
}
.ac-plan-next-txt { display: flex; flex-direction: column; gap: 2px; }
.ac-plan-next-txt strong { color: var(--ac-text, #e8eaee); font-size: 1rem; }

.ac-plan-weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ac-plan-week { border: 1px solid var(--ac-line-soft, rgba(255,255,255,.08)); border-radius: 11px; padding: 10px; text-align: center; }
.ac-plan-week-top { font-size: 0.78rem; font-weight: 700; color: var(--ac-text, #e8eaee); margin-bottom: 7px; }
.ac-plan-week-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 6px; }
.ac-plan-week-bar > div { height: 100%; background: var(--ac-gold, #d8b56f); border-radius: 999px; }
.ac-plan-week-dates { display: block; margin-top: 2px; font-size: 0.66rem; }
.ac-week-current { border-color: rgba(216,181,111,.55); background: rgba(216,181,111,.06); }
.ac-week-current .ac-plan-week-top { color: var(--ac-gold, #e6c884); }
.ac-week-done { border-color: rgba(63,181,111,.4); }
.ac-week-done .ac-plan-week-bar > div { background: var(--ac-green, #3fb56f); }
.ac-week-behind { border-color: rgba(240,165,140,.4); }

.ac-plan-pace { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--ac-line-soft, rgba(255,255,255,.07)); }
.ac-pace-btn, .ac-pace-restart {
  border: 1px solid var(--ac-line, #2a2f3a); background: transparent; color: var(--ac-text, #e8eaee);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.82rem; cursor: pointer;
}
.ac-pace-btn.is-on { border-color: var(--ac-gold, #d8b56f); color: #120d04; background: linear-gradient(135deg, #e6c884, #c89f52); font-weight: 700; }
.ac-pace-btn:hover, .ac-pace-restart:hover { border-color: var(--ac-gold, #d8b56f); }
.ac-pace-restart { margin-left: auto; color: var(--ac-muted, #9aa3b2); }
.ac-plan-pace-status { font-size: 0.8rem; color: var(--ac-muted, #9aa3b2); width: 100%; }

@media (max-width: 620px) {
  .ac-plan-stats { grid-template-columns: repeat(2, 1fr); }
  .ac-pace-restart { margin-left: 0; }
}
