/* Unified lesson cards (focus.js): #today, #todo, #portfolio, subject tabs. */

/* ---------- compact header ---------- */
.fx-topbar { padding: 12px 6vw 8px; align-items: center; }
.fx-topbar .brand { gap: 12px; min-width: 0; }
.fx-topbar .brand-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 1.3rem; flex: 0 0 auto; }
.fx-topbar h1 { font-size: 1.15rem; line-height: 1.25; }
.fx-headline { margin: 2px 0 0; color: var(--mint); font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
.fx-headline:empty { display: none; }
.fx-planner {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}
.fx-planner:hover { color: var(--ink); border-color: rgba(94, 234, 212, 0.4); }

/* Quieter sidebar so it does not compete with the task. */
body.is-unified .station-nav .nav-dot:not(.is-active) { opacity: 0.72; }
body.is-unified .station-nav .nav-dot:not(.is-active):hover { opacity: 1; }
@media (min-width: 960px) {
  body.is-unified .station-nav .nav-dot { padding-top: 7px; padding-bottom: 7px; font-size: 0.9rem; }
}

.workbench.is-single { display: block; }
.workbench.is-single .workbench-rail { display: none !important; }

/* ---------- view + sections ---------- */
.fx-view { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fx-sec-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 2px; }
.fx-sec-h h2 { font-size: 1.35rem; line-height: 1.2; }
.fx-sec-h h3 { font-size: 1.02rem; color: var(--ink); }
.fx-now-h { margin-top: 0; }
.fx-hint { color: var(--muted); font-size: 0.86rem; }
.fx-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}
.fx-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fx-sec-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
details.fx-sec > summary { cursor: pointer; list-style: none; }
details.fx-sec > summary::-webkit-details-marker { display: none; }
details.fx-sec > summary::before {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  margin-right: 4px;
  transition: transform 0.15s;
  align-self: center;
}
details.fx-sec[open] > summary::before { transform: rotate(45deg); }
.fx-subgroup { display: flex; flex-direction: column; gap: 8px; }
.fx-subgroup-h { margin: 6px 0 0; color: var(--gold); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.fx-empty { margin: 0; }
.fx-sec.is-unit {
  gap: 12px;
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 14, 28, 0.55);
}
.fx-sec.is-unit > .fx-sec-h {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.fx-sec.is-unit > .fx-sec-h h3 { font-size: 1.28rem; font-weight: 700; }
.fx-sec.is-unit.is-la > .fx-sec-h h3 { color: #8eb2ff; }
.fx-sec.is-unit.is-math > .fx-sec-h h3 { color: #5eead4; }
.fx-sec.is-unit.is-sci > .fx-sec-h h3 { color: #86efac; }
.fx-sec.is-unit.is-ss > .fx-sec-h h3 { color: #f5c46b; }
.fx-sec.is-unit.is-art > .fx-sec-h h3 { color: #f0abfc; }
.fx-sec.is-unit.is-pe > .fx-sec-h h3 { color: #fda4af; }
.fx-sec.is-unit.is-tech > .fx-sec-h h3 { color: #7dd3fc; }
.fx-week { display: flex; flex-direction: column; gap: 18px; }
.fx-day { display: flex; flex-direction: column; gap: 8px; }
.fx-day-h { margin: 4px 0 0; font-size: 1.08rem; color: var(--gold); }
.fx-day.is-today .fx-day-h { color: var(--ink); }

/* ---------- card ---------- */
.fx-card {
  --accent: var(--mint);
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  background: rgba(16, 24, 39, 0.86);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.fx-card.is-math { --accent: #5eead4; }
.fx-card.is-la { --accent: #8eb2ff; }
.fx-card.is-sci { --accent: #86efac; }
.fx-card.is-ss { --accent: #f5c46b; }
.fx-card.is-art { --accent: #f0abfc; }
.fx-card.is-pe { --accent: #fda4af; }
.fx-card.is-tech { --accent: #7dd3fc; }
.fx-card.is-ixl, .fx-card.is-khan { --accent: #c4b5fd; }
.fx-card.is-focus { border-color: rgba(94, 234, 212, 0.35); border-left-color: var(--accent); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.fx-card.is-complete { opacity: 0.78; }
.fx-card.is-complete .fx-title { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.35); }

.fx-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.fx-head:hover { background: rgba(255, 255, 255, 0.03); }
.fx-head:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
.fx-meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.8rem; color: var(--muted); }
.fx-subj { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.fx-type { padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--ink); font-weight: 600; }
.fx-card.is-overdue .fx-due { color: var(--coral); font-weight: 600; }
.fx-card.is-today .fx-due { color: var(--gold); font-weight: 600; }
.fx-progress { color: var(--muted); }
.fx-chip { padding: 1px 8px; border-radius: 999px; font-weight: 700; font-size: 0.74rem; }
.fx-chip.is-done { background: rgba(94, 234, 212, 0.2); color: var(--mint); }
.fx-chip.is-wait { background: rgba(245, 196, 107, 0.18); color: var(--gold); }
.fx-chip.is-started { background: rgba(142, 178, 255, 0.18); color: var(--blue); }
.fx-title { grid-column: 1; margin: 0; font-size: 1.08rem; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.fx-card.is-focus .fx-title { font-size: 1.22rem; }
.fx-caret {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.15s;
}
.fx-card.is-open .fx-caret { transform: rotate(-135deg); }

.fx-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 0 16px 16px;
  min-width: 0;
}
@media (min-width: 1000px) {
  .fx-body { grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); align-items: start; }
}
.fx-main, .fx-side { min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* video */
.fx-video { margin: 0; border-radius: 12px; overflow: hidden; background: #000; }
.fx-video video,
.fx-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.fx-video figcaption { padding: 6px 10px; font-size: 0.8rem; color: var(--muted); background: rgba(0, 0, 0, 0.5); }
.fx-media-stack { display: flex; flex-direction: column; gap: 10px; }
.fx-video-soon {
  display: grid;
  place-items: center;
  min-height: 130px;
  width: 100%;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 14px, rgba(255, 255, 255, 0.06) 14px 28px);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--muted);
  font-weight: 600;
}
.lesson-media .fx-video { margin: 8px 0; }

.fx-about { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.fx-kw { margin: 0; font-size: 0.86rem; line-height: 1.45; }
.fx-kw span { color: var(--gold); font-weight: 700; margin-right: 4px; }
.fx-note { margin: 0; color: var(--gold); font-size: 0.88rem; font-weight: 600; }

.fx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 2px; }
.fx-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 12px;
  background: linear-gradient(160deg, #5eead4, #2dd4bf);
  color: #04201c;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
}
.fx-go:hover { filter: brightness(1.08); }
.fx-nb { color: var(--muted); font-size: 0.85rem; }

/* steps */
.fx-side-h { margin: 0; color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.fx-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fx-step label {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  line-height: 1.4;
  font-size: 0.92rem;
  color: var(--ink);
}
.fx-steps.is-khan .fx-step label { grid-template-columns: auto minmax(0, 1fr); }
.fx-step input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--mint); }
.fx-step-n {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem; font-weight: 700;
}
.fx-step-t { min-width: 0; overflow-wrap: anywhere; }
.fx-step-t a { color: var(--mint); }
.fx-step.is-done .fx-step-t { color: var(--muted); text-decoration: line-through; }
.fx-step.is-done .fx-step-n { background: rgba(94, 234, 212, 0.3); color: var(--mint); }
.fx-nosteps { margin: 0; color: var(--ink); }
.fx-khan { display: flex; flex-direction: column; gap: 6px; }
.fx-mark {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  color: var(--ink); font-weight: 700; cursor: pointer;
}
.fx-mark input { width: 20px; height: 20px; accent-color: var(--mint); }
.fx-done-line { margin: 0; color: var(--mint); font-weight: 700; }
.fx-stale { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- phone ---------- */
@media (max-width: 700px) {
  .fx-topbar { padding: 10px 14px 6px; gap: 10px; }
  .fx-planner { padding: 5px 10px; font-size: 0.78rem; }
  .fx-head { padding: 12px; }
  .fx-body { padding: 0 12px 14px; gap: 12px; }
  .fx-card { border-radius: 14px; }
  .fx-video { margin-left: -12px; margin-right: -12px; border-radius: 0; }
  .fx-go { width: 100%; }
  .fx-sec-h h2 { font-size: 1.2rem; }
}
