/* Panels in the V8 study workspace */
.ax8-view { display: grid; gap: 16px; min-width: 0; }
.ax8-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ax8-head h2 { font: 800 clamp(1.65rem, 4vw, 2.45rem)/1.12 Sora, system-ui, sans-serif; margin: 6px 0 8px; letter-spacing: -.04em; }
.ax8-head h3 { font-size: 1.4rem; margin: 6px 0; }
.ax8-head p, .ax8-panel-head p, .ax8-inline p, .ax8-subtle { color: var(--ax-soft); margin: 4px 0 0; line-height: 1.5; }
.ax8-actions, .ax8-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ax8-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.ax8-panel-head h3 { margin: 0; }
.ax8-panel-head input[type="search"] { max-width: 240px; }
.ax8-tabs button[aria-pressed="true"] {
  background: rgba(139, 232, 207, .13);
  border-color: rgba(139, 232, 207, .52);
  color: var(--ax-mint);
}
.ax8-tag {
  display: inline-block; width: max-content; max-width: 100%; border-radius: 999px; border: 1px solid var(--ax-line);
  padding: 4px 9px; color: var(--ax-soft); background: rgba(170, 186, 207, .06); font-size: .71rem; font-weight: 750;
}
.ax8-tag[data-proof="work"] { color: var(--ax-gold); border-color: rgba(240, 203, 121, .26); background: rgba(240, 203, 121, .08); }
.ax8-tag[data-proof="review"] { color: var(--ax-mint); border-color: rgba(139, 232, 207, .28); background: rgba(139, 232, 207, .09); }
.ax8-map-layout { display: grid; grid-template-columns: minmax(155px, .66fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.ax8-map-rail { min-width: 0; }
.ax8-map-rail > div + div { margin-top: 12px; }
.ax8-map-rail [data-course] {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 6px; text-align: left;
  padding: 10px 8px; border: 1px solid transparent; border-radius: 9px; color: var(--ax-ink); background: transparent; cursor: pointer;
}
.ax8-map-rail [data-course] strong { overflow-wrap: anywhere; }
.ax8-map-rail [data-course] span { font-size: .7rem; color: var(--ax-soft); white-space: nowrap; }
.ax8-map-rail [data-course]:hover { background: rgba(139, 232, 207, .05); }
.ax8-map-rail [data-course][aria-pressed="true"] { background: rgba(139, 232, 207, .09); border-color: rgba(139, 232, 207, .25); color: var(--ax-mint); }
.ax8-map-main, .ax8-topic-row, .ax8-topic-row > div { min-width: 0; }
#ax8MapRows { margin-top: 12px; }
.ax8-topic-group + .ax8-topic-group { border-top: 1px solid var(--ax-line); }
.ax8-topic-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 10px; align-items: center; padding: 12px 0;
}
.ax8-topic-row strong { display: block; overflow-wrap: anywhere; }
.ax8-topic-row p, .ax8-agenda-row p { font-size: .83rem; line-height: 1.42; margin-top: 4px; color: var(--ax-soft); overflow-wrap: anywhere; }
.ax8-subtopics { margin: 0 0 8px 8px; border-left: 2px solid rgba(139, 232, 207, .2); padding-left: 12px; }
.ax8-salon-tabs { display: grid; gap: 10px; margin-bottom: 12px; }
.ax8-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; margin: 12px 0; }
.ax8-exam-card { display: grid; gap: 9px; align-content: start; justify-items: start; min-width: 0; }
.ax8-exam-card h3, .ax8-inline b { font-size: 1.05rem; line-height: 1.28; }
.ax8-exam-card p, .ax8-quiz fieldset > small { color: var(--ax-soft); }
.ax8-exam-card select { max-width: 235px; }
.ax8-highlight { margin: 12px 0; max-width: 460px; }
.ax8-highlight > h3 { margin: 0 0 8px; }
.ax8-filter {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: 8px 12px; margin: 12px 0;
}
.ax8-filter label { margin: 0; }
.ax8-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 12px 0; }
.ax8-inline > div { flex: 1 1 180px; min-width: 0; }
.ax8-inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 9px; }
.ax8-inline-form label { margin: 0; }
.ax8-inline-form span { color: var(--ax-mint); }
.ax8-inline-form input { display: block; margin-top: 4px; color-scheme: dark; }
.ax8-help {
  border: 1px solid var(--ax-line); border-radius: 11px; background: rgba(139, 232, 207, .03); color: var(--ax-soft);
  padding: 9px 12px; margin: 8px 0;
}
.ax8-help summary { color: var(--ax-ink); font-weight: 740; cursor: pointer; line-height: 1.45; }
.ax8-help p { margin: 7px 0 2px; line-height: 1.54; }
.ax8-exam-card .ax8-help { margin: 0; width: 100%; }
.ax8-empty .btn { margin-top: 10px; }
.ax8-quiz .ax8-head { margin: 12px 0 16px; }
.ax8-quiz fieldset > small { display: block; margin: 3px 0 8px; }
.ax8-result > .ax-results { margin: 16px 0; }
.ax8-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.ax8-days button {
  display: grid; place-content: center; min-height: 60px; gap: 4px; min-width: 0; padding: 4px; cursor: pointer;
  border: 1px solid var(--ax-line); border-radius: 10px; color: var(--ax-ink); background: var(--ax-raised);
}
.ax8-days button[aria-pressed="true"] { color: var(--ax-mint); border-color: rgba(139, 232, 207, .46); background: rgba(139, 232, 207, .12); }
.ax8-days button[aria-current="date"] strong { text-decoration: underline; text-underline-offset: 4px; }
.ax8-days button small { color: var(--ax-soft); font-size: .72rem; }
.ax8-agenda { margin-top: 12px; }
.ax8-agenda-row {
  display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 12px 0; border-top: 1px solid var(--ax-line);
}
.ax8-agenda-row:first-of-type { margin-top: 12px; }
.ax8-wide { grid-column: 1 / -1; }
.ax8-photo-field {
  background: var(--ax-raised); border: 1px dashed rgba(139, 232, 207, .4); border-radius: 12px;
  padding: 12px; min-width: 0;
}
.ax8-photo-field small, .ax8-photo-field p { color: var(--ax-soft); font-weight: 450; font-size: .86rem; }
.ax8-photo-field .ax8-actions { margin: 10px 0; }
.ax8-photo-field img, .ax8-photo-slot img, .ax8-wall-preview {
  display: block; max-width: 100%; max-height: 270px; object-fit: contain; border: 1px solid var(--ax-line); border-radius: 8px; margin: 8px 0;
}
.ax8-wrong-card { display: grid; gap: 10px; margin: 0; min-width: 0; }
.ax8-wrong-card h3 { margin: 4px 0; }
.ax8-wrong-note { white-space: pre-wrap; overflow-wrap: anywhere; border-left: 2px solid var(--ax-line); padding-left: 10px; color: var(--ax-soft); }
.ax8-check { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.ax8-check input { width: auto; }
.ax8-wrong-footer { padding-top: 10px; border-top: 1px solid var(--ax-line); }
.ax8-delete { margin-left: auto; }
.ax8-resume { margin: 10px 0; }
.ax8-dash-proof { color: var(--ax-mint); font-weight: 730; }
@media (max-width: 760px) {
  .ax8-map-layout { grid-template-columns: minmax(0, 1fr); }
  #ax8MapCourses { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 4px; }
  .ax8-map-rail [data-course] { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .ax8-head, .ax8-panel-head { flex-wrap: wrap; }
  .ax8-filter { grid-template-columns: minmax(0, 1fr); }
  .ax8-topic-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ax8-topic-row > div { grid-column: 1 / -1; }
  .ax8-topic-row .btn { justify-self: end; }
  .ax8-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ax8-agenda-row { grid-template-columns: auto minmax(0, 1fr); }
  .ax8-agenda-row .btn { grid-column: 2; justify-self: start; }
}
