:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #27243a;
  background: #f8f7fb;
  font-synthesis: none;
  --purple: #49378c;
  --muted: #747184;
  --line: #e8e5ef;
  --pale: #eeeaf8;
  --coral: #f3b49c
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

button,
input,
select,
textarea {
  font: inherit
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent
}

button {
  cursor: pointer
}

button:disabled {
  opacity: .5;
  cursor: wait
}

a {
  color: inherit;
  text-decoration: none
}

[hidden] {
  display: none !important
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -1.8px;
  font-weight: 650
}

h2 {
  font-size: 1.65rem;
  letter-spacing: -.7px
}

h3 {
  font-size: 1.05rem
}

.muted,
.help {
  color: var(--muted);
  line-height: 1.7
}

.eyebrow {
  font-size: .68rem;
  letter-spacing: 2px;
  font-weight: 750;
  color: var(--purple);
  margin-bottom: 16px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -.8px
}

.brand-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  background: var(--purple);
  color: white;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 1.55rem
}

.brand-icon span {
  position: absolute;
  right: 4px;
  top: 0;
  color: var(--coral)
}

.signin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh
}

.intro {
  background: #eae4f5;
  padding: 50px 12%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden
}

.intro-copy {
  margin: auto 0;
  padding: 65px 0
}

.intro h1 {
  font-size: clamp(3rem, 5.3vw, 5rem);
  line-height: 1.05;
  letter-spacing: -3px;
  color: #382b65
}

.intro-copy>p:not(.eyebrow) {
  line-height: 1.8;
  color: #615779
}

.intro-footer {
  font-size: .8rem;
  color: #756687;
  margin: 0
}

.motif {
  display: flex;
  align-items: end;
  margin-top: 44px;
  height: 130px;
  gap: 12px
}

.motif span {
  display: block;
  width: 65px;
  border-radius: 50px 50px 12px 12px;
  background: #b4a5d3;
  height: 90px;
  transform: rotate(-12deg)
}

.motif span:nth-child(2) {
  height: 130px;
  background: var(--purple);
  transform: rotate(5deg)
}

.motif span:nth-child(3) {
  height: 70px;
  background: var(--coral);
  transform: rotate(17deg)
}

.signin-form {
  display: grid;
  place-items: center;
  padding: 50px 30px;
  background: #fff
}

.signin-card {
  width: 100%;
  max-width: 370px
}

.signin-card h2 {
  font-size: 2rem
}

.signin-card form {
  margin-top: 35px
}

.help {
  font-size: .8rem;
  text-align: center;
  margin-top: 24px
}

label {
  display: block;
  font-size: .8rem;
  font-weight: 650;
  margin: 18px 0 8px
}

input:not([type=checkbox]),
select,
textarea {
  width: 100%;
  border: 1px solid #dcd8e6;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: #27243a
}

textarea {
  resize: vertical;
  min-height: 85px
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d8c9f9;
  outline-offset: 2px
}

.primary,
.secondary {
  padding: 12px 19px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: .85rem;
  font-weight: 650
}

.primary {
  background: var(--purple);
  color: #fff
}

.primary:hover {
  background: #392872
}

.secondary {
  background: white;
  border-color: #dcd8e6;
  color: #514967
}

.wide {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.error {
  color: #a62e43;
  font-size: .84rem;
  line-height: 1.5;
  margin: 12px 0;
  min-height: 1em
}

.workspace {
  display: flex;
  min-height: 100vh
}

.sidebar {
  width: 238px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid var(--line);
  padding: 33px 22px;
  display: flex;
  flex-direction: column
}

.sidebar .brand {
  padding-left: 8px
}

.nav-label {
  font-size: .62rem;
  letter-spacing: 1.8px;
  color: #95909f;
  margin: 45px 13px 15px;
  font-weight: 700
}

nav {
  display: flex;
  flex-direction: column;
  gap: 5px
}

nav button {
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border-radius: 8px;
  color: #6c667b;
  font-size: .86rem
}

nav button.active {
  color: var(--purple);
  background: var(--pale);
  font-weight: 700
}

nav button:hover {
  background: #f6f3fa
}

.nav-icon {
  width: 20px;
  font-size: 1.1rem
}

.small-mark {
  font-size: 1.6rem;
  color: #a192bd
}

.main-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column
}

.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: .8rem;
  color: #797283
}

.account {
  display: flex;
  gap: 15px;
  align-items: center
}

.account>span {
  font-weight: 600;
  color: #453c56
}

.quiet {
  border: 0;
  background: none;
  padding: 8px;
  color: #766b8b;
  font-size: .78rem
}

.content {
  padding: 44px 42px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px
}

.page-title h1 {
  font-size: 2.15rem;
  margin-bottom: 9px
}

.page-title p {
  margin: 0;
  font-size: .87rem
}

.pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 50px;
  background: #eef5f0;
  color: #407154;
  font-size: .67rem;
  font-weight: 700;
  white-space: nowrap
}

.pill.inactive {
  color: #88818e;
  background: #eeedf1
}

.hero {
  background: #eee9f7;
  border: 1px solid #e5ddf2;
  border-radius: 16px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0
}

.hero h2 {
  color: #493877;
  font-size: 1.6rem;
  margin-bottom: 10px
}

.hero p {
  max-width: 510px;
  color: #7b6f90;
  line-height: 1.7;
  font-size: .87rem;
  margin-bottom: 0
}

.hero-symbol {
  font-size: 5rem;
  color: #b5a1d2;
  line-height: 1
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 27px 0
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  text-align: left
}

.card .count {
  font-size: 2.1rem;
  color: #413452;
  display: block;
  letter-spacing: -1px;
  margin: 10px 0
}

.card p {
  margin-bottom: 0;
  color: #8c8496;
  font-size: .8rem
}

.card h3 {
  color: #766a88;
  font-size: .8rem;
  font-weight: 500;
  margin: 0
}

.section-heading {
  font-size: 1rem;
  margin: 34px 0 16px
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden
}

.panel-title {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between
}

.panel-title h3 {
  margin: 0
}

.panel-title span {
  font-size: .75rem;
  color: var(--muted)
}

.table-wrap {
  overflow: auto
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: .83rem
}

th {
  text-align: left;
  background: #fbfafd;
  color: #958a9e;
  font-size: .63rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  padding: 14px 24px;
  font-weight: 600
}

td {
  padding: 17px 24px;
  border-top: 1px solid #f0edf5;
  color: #6f647e
}

td:first-child {
  font-weight: 600;
  color: #493e59
}

td.actions {
  white-space: nowrap;
  text-align: right
}

td .quiet {
  padding: 5px 8px
}

.name-description {
  font-size: .73rem;
  font-weight: 400;
  color: #8d8597;
  margin-top: 4px;
  max-width: 350px;
  white-space: pre-wrap
}

.empty {
  padding: 45px 24px;
  text-align: center
}

.empty h3 {
  margin-top: 16px
}

.empty p {
  color: #8a8098;
  line-height: 1.7;
  font-size: .86rem
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0
}

.toolbar input {
  max-width: 320px
}

.toolbar label {
  margin: 0;
  font-weight: 400
}

.check {
  display: flex;
  gap: 9px;
  align-items: center
}

.check input {
  accent-color: var(--purple);
  width: 17px;
  height: 17px
}

.page-footer {
  padding: 26px 42px;
  margin-top: auto;
  color: #aaa1b3;
  font-size: .7rem;
  display: flex;
  justify-content: space-between
}

.page-footer span {
  color: #b7afbf
}

dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 90px #28213733;
  width: min(540px, calc(100% - 30px));
  padding: 28px;
  max-height: 90vh;
  overflow: auto;
  color: #27243a
}

dialog::backdrop {
  background: #20152e66;
  backdrop-filter: blur(3px)
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between
}

.dialog-heading h2 {
  margin-bottom: 6px
}

.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 25px
}

#message {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  background: #302448;
  color: white;
  border-radius: 10px;
  box-shadow: 0 5px 30px #30244833;
  z-index: 10;
  font-size: .85rem;
  max-width: 90vw
}

.notice {
  background: #fff7e8;
  border: 1px solid #f4e4c5;
  color: #86704a;
  padding: 17px;
  border-radius: 10px;
  font-size: .84rem;
  line-height: 1.7
}

.section-subtitle {
  color: var(--muted);
  font-size: .85rem;
  margin: -5px 0 20px
}

@media(max-width:1000px) {
  .sidebar {
    width: 200px;
    padding: 28px 14px
  }

  .content {
    padding: 30px 25px
  }

  .topbar {
    padding: 0 25px
  }

  .cards {
    gap: 10px
  }

  .card {
    padding: 19px
  }

  .account {
    gap: 5px
  }

  .intro {
    padding: 40px 10%
  }
}

@media(max-width:700px) {
  .signin {
    grid-template-columns: 1fr
  }

  .intro {
    padding: 24px
  }

  .intro-copy {
    padding: 30px 0 0
  }

  .intro h1 {
    font-size: 2.7rem;
    letter-spacing: -1.5px
  }

  .intro-copy>p:not(.eyebrow),
  .intro-footer,
  .motif {
    display: none
  }

  .intro-copy .eyebrow {
    margin-top: 10px
  }

  .signin-form {
    padding: 35px 25px
  }

  .workspace {
    display: block
  }

  .sidebar {
    width: 100%;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line)
  }

  .nav-label {
    display: none
  }

  nav {
    flex-direction: row;
    overflow-x: auto;
    margin-top: 18px;
    padding-bottom: 4px
  }

  nav button {
    width: auto;
    white-space: nowrap;
    padding: 10px 12px
  }

  .sidebar .brand {
    padding: 0
  }

  .topbar {
    height: auto;
    min-height: 65px;
    padding: 12px 20px;
    gap: 10px;
    flex-wrap: wrap
  }

  .content {
    padding: 28px 20px
  }

  .page-title {
    align-items: start;
    flex-wrap: wrap
  }

  .page-title > div { min-width: 0; flex: 1 1 220px; }
  .page-title > a, .page-title > button { flex: 0 1 auto; white-space: normal; }

  .page-title h1 {
    font-size: 1.8rem
  }

  .page-title .primary {
    white-space: nowrap;
    padding: 10px
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
  }

  .card {
    padding: 15px 12px
  }

  .card .count {
    font-size: 1.6rem
  }

  .card p {
    font-size: .65rem
  }

  .hero {
    padding: 24px
  }

  .hero-symbol {
    display: none
  }

  .hero h2 {
    font-size: 1.35rem
  }

  .hero p {
    font-size: .8rem
  }

  .toolbar {
    align-items: start;
    flex-direction: column
  }

  .page-footer {
    padding: 25px 20px
  }

  .page-footer span {
    display: none
  }

  td,
  th {
    padding: 14px 16px
  }

  .account {
    font-size: .75rem
  }
}

@media (max-width: 700px) {
  .page-title .eyebrow { display: none; }
}

.sort-heading {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
}
.sort-heading:hover, th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--purple); }
.sort-heading span { white-space: nowrap; }

/* Skill administration and eligibility preview */
.skill-editor { width: min(760px, calc(100vw - 32px)); }
.skill-group { border: 1px solid var(--border, #e4dff0); border-radius: 12px; padding: 16px; margin: 18px 0; min-width: 0; }
.skill-group legend { font-weight: 600; padding: 0 6px; }
.skill-group .check { margin: 10px 0; }
.skill-editor textarea { min-height: 88px; }
.skill-editor h3 { margin-top: 28px; }
.media-link { display: inline-block; margin-top: 12px; }
.eligibility-preview { margin-top: 28px; padding: 24px; }
.eligibility-form { max-width: 560px; }
.eligibility-form button { margin-top: 20px; }
.eligibility-result { padding: 12px 0; border-bottom: 1px solid var(--border, #e4dff0); }
.eligibility-result p { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Stage 3 dynamic lesson-plan wizard */
.plan-steps { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 16px; }
.plan-steps button { flex: 0 0 auto; border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 999px; padding: 9px 14px; }
.plan-steps button.active { background: var(--purple); border-color: var(--purple); color: white; }
.plan-step { padding: 26px; }
.plan-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.plan-facts dt { color: var(--muted); }
.plan-facts dd { margin: 0; font-weight: 600; }
.plan-station { margin: 24px 0; border-top: 1px solid var(--line); padding-top: 20px; }
.plan-programs { border: 0; padding: 0; margin-top: 18px; }
.plan-program { border-top: 1px solid var(--line); padding: 14px 0; }
.plan-program > summary { color: var(--purple); cursor: pointer; font-weight: 700; padding: 4px 0; }
.plan-program > .check { display: inline-flex; margin: 10px 18px 5px 16px; }
.plan-skills { margin: 12px 0 0 24px; }
.plan-skills h5 { font-size: .78rem; letter-spacing: .06em; margin: 0 0 8px; text-transform: uppercase; }
.plan-skills > input { max-width: 380px; }
.plan-skill { border-left: 3px solid var(--pale); padding: 7px 12px; }
.plan-skill > .check { display: inline-flex; margin: 4px 0; }
.plan-notes { margin: 7px 0; }
.plan-notes summary { color: var(--purple); cursor: pointer; font-weight: 700; padding: 4px 0; }
.plan-notes textarea { margin-top: 7px; }
.skill-order-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.plan-warning { border-left: 4px solid #c18420; background: #fff8e9; padding: 12px 16px; }
.plan-summary-area { border-top: 1px solid var(--line); padding: 14px 0; }
.plan-summary-area > h3 { margin-bottom: 3px; }
.plan-summary-area > p { margin-top: 0; }
.plan-summary-empty { margin-left: 18px; }
.plan-summary-station { margin: 16px 0 0 18px; }
.plan-summary-station h4 { margin-bottom: 8px; }
.plan-summary-skills { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0 0 0 18px; }
.plan-summary-skill { align-items: center; display: flex; flex-wrap: wrap; gap: 7px 12px; }
.plan-summary-skill-name { font-weight: 600; overflow-wrap: anywhere; }
.spotting-indicator { align-items: center; background: #fff3d6; border: 1px solid #e4bd68; border-radius: 999px; color: #6c4a00; display: inline-flex; font-size: .78rem; font-weight: 700; padding: 3px 9px; white-space: nowrap; }
.spotting-indicator::before { background: #c18420; border-radius: 50%; content: ''; height: 7px; margin-right: 6px; width: 7px; }
.wizard-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 640px) {
  .plan-step { padding: 18px; }
  .plan-summary-empty { margin-left: 8px; }
  .plan-summary-station { margin-left: 8px; }
  .plan-summary-skills { padding-left: 8px; }
  .wizard-actions button { flex: 1 1 auto; }
}

.plan-summary-area > .spotting-indicator { max-width: 100%; white-space: normal; overflow-wrap: anywhere; border-radius: 10px; }
.plan-summary-area > .spotting-indicator::before { flex-shrink: 0; }

.coach-plan-group { margin-bottom: 1.25rem; }
.coach-plan-card { padding: 1rem 0; border-top: 1px solid var(--line, #e6e1ef); }
.coach-controls { margin-bottom: 1.5rem; }
.coach-toggles { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; border: 0; padding: 0; }
.coach-area { margin-bottom: 1rem; overflow-wrap: anywhere; }
.coach-station { margin: 1rem 0; padding: .75rem; border-top: 1px solid #e6e1ef; }
.coach-skill { margin: .5rem 0; }
.coach-area > h3, .coach-skill > button.quiet { font-size: 1.05rem; font-weight: 700; }
.coach-skill p, .coach-skill-dialog p { white-space: pre-wrap; }
.coach-skill img, .coach-skill-dialog img { max-width: 100%; max-height: 24rem; object-fit: contain; }
.coach-skill figure, .coach-skill-dialog figure { margin: .75rem 0; }
.coach-skill figure a, .coach-skill-dialog figure a { display: block; }
.coach-skill-dialog { width: min(42rem, 90vw); overflow-wrap: anywhere; }

.print-branding, .print-copyright, .print-skill-name { display: none; }
@page {
  size: A4 portrait;
  margin: 14mm 12mm 22mm;
  @bottom-right { content: "Page " counter(page) " of " counter(pages); font-size: 8pt; }
}
@media print {
  html, body { background: white !important; color: #111 !important; font-size: 10pt; }
  body > :not(#workspace), .sidebar, .topbar, .page-footer, .page-title, .coach-controls,
  #content > :not(#coach-content), dialog, #message, #coach-content button { display: none !important; }
  #workspace, .main-column, #content, #coach-content { display: block !important; margin: 0 !important; padding: 0 !important; width: auto !important; min-height: 0 !important; }
  #coach-content { font-size: 10pt; }
  .print-branding { display: flex; align-items: center; gap: 5mm; margin-bottom: 6mm; break-inside: avoid; border-bottom: 1px solid #777; padding-bottom: 4mm; }
  .print-branding img { width: 18mm; height: 18mm; object-fit: contain; }
  .print-branding p { margin: 1mm 0; }
  .print-copyright { display: block; margin-top: 5mm; border-top: 1px solid #777; padding-top: 3mm; font-size: 8pt; break-inside: avoid; }
  .print-skill-name { display: block; font-weight: 600; break-after: avoid; }
  .coach-area { border: 0; box-shadow: none; border-radius: 0; margin: 0 0 5mm; padding: 0; overflow: visible; }
  .coach-area > .spotting-indicator { display: block; width: fit-content; break-after: avoid; }
  .coach-station { margin: 2mm 0; padding: 2mm 0; break-inside: auto; }
  .coach-skill { break-inside: auto; }
  #coach-content h2 { font-size: 15pt; margin: 3mm 0; }
  #coach-content h3 { font-size: 13pt; margin: 3mm 0 2mm; }
  #coach-content h4 { font-size: 11pt; margin: 2mm 0; }
  #coach-content h2, #coach-content h3, #coach-content h4 { break-after: avoid; }
  #coach-content p { margin: 1.5mm 0; orphans: 3; widows: 3; }
  .spotting-indicator { color: #111; background: transparent; border-color: #777; font-size: 9pt; }
  .coach-skill img { max-width: 100%; max-height: 55mm; object-fit: contain; }
  .coach-skill figure { break-inside: avoid; }
  #coach-content a { color: #111; text-decoration: none; overflow-wrap: anywhere; }
}

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: white; color: #49378c; padding: .75rem 1rem; border: 2px solid currentColor; border-radius: 6px; }
.skip-link:focus { top: 1rem; }
@media print { .skip-link { display: none !important; } }

.coach-report-program { margin: .75rem 0; padding-left: .75rem; border-left: 2px solid #e6e1ef; }
.coach-report-program h5 { font-size: 1rem; margin: .5rem 0; }
@media print { .coach-report-program h5 { break-after: avoid; font-size: 10pt; } }

.skill-media-preview img, .skill-media-preview video { display: block; max-width: 100%; max-height: 240px; margin-top: 12px; object-fit: contain; }

/* Report images fill horizontal rows and wrap within the screen/printed page. */
.coach-media-gallery { display: flex; flex-wrap: wrap; gap: 1rem; margin: .75rem 0; }
.coach-media-gallery > figure { flex: 1 1 14rem; min-width: 0; max-width: 100%; margin: 0; }
.coach-media-gallery > figure img { display: block; width: 100%; }
.coach-media-gallery > figure a { overflow-wrap: anywhere; }
@media print {
  .coach-media-gallery { gap: 3mm; margin: 2mm 0; }
  .coach-media-gallery > figure { flex-basis: 45mm; }
}

.equipment-image {max-width: 180px; max-height: 130px; object-fit: contain; display: block; margin: .5rem 0;}
.equipment-item {display: inline-block; vertical-align: top; padding: .7rem; margin: .4rem; border: 1px solid #dce4e1; border-radius: 8px; max-width: 100%;}
.plan-equipment {padding: .7rem 0; border-bottom: 1px solid #dce4e1;}
.asset-fields {display: grid; gap: .6rem;}
.relation-options {max-height: 220px; overflow: auto;}
.coach-media-gallery video {max-width: 100%; width: 320px;}

.settings-navigation-row {display: flex; align-items: center;}
.settings-navigation-row > [data-page] {flex: 1; min-width: 0;}
.settings-navigation-row .settings-menu-toggle {width: 38px; flex: 0 0 38px; justify-content: center; padding: 13px 6px;}
.settings-navigation-row.has-active-child {border-radius: 8px; background: var(--pale);}
.settings-submenu {display: flex; flex-direction: column; gap: 3px; margin: 4px 0 4px 18px; padding-left: 8px; border-left: 1px solid var(--line);}
.settings-submenu button {font-size: .8rem; padding: 10px 8px; gap: 8px;}
@media (max-width: 700px) {
  #navigation {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible;}
  #navigation > button {width: 100%; white-space: normal;}
  .settings-navigation {display: contents;}
  .settings-submenu {grid-column: 1 / -1; margin-left: 12px;}
  .settings-submenu button {width: 100%; white-space: normal;}
}

.plan-skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 12px; }
.plan-skill-grid > .plan-skill { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.plan-skill-search > input { max-width: 380px; }
.plan-skill-preview { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: var(--pale); margin: 8px 0; overflow: hidden; border-radius: 5px; }
.plan-skill-preview > img, .plan-skill-preview > video { width: 100%; height: 100%; object-fit: contain; }

#skill-stations > .compact-station-guidance { padding: 8px 10px; margin: 6px 0; border-radius: 8px; }
.skill-station-header { max-width: 480px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto 32px; gap: 8px; align-items: center; }
.skill-station-header > * { min-width: 0; }
.skill-station-header select { min-height: 32px; padding: 5px 24px 5px 8px; margin: 0; font-size: .82rem; }
.skill-station-header > .check { margin: 0; gap: 5px; min-height: 32px; }
.skill-station-header .station-delete { display: inline-flex; justify-content: center; align-items: center; padding: 6px; width: 32px; height: 32px; margin: 0; }
.compact-station-guidance > .skill-station-details { margin: 4px 0 0; }
.compact-station-guidance > .skill-station-details > summary { font-size: .8rem; padding: 3px 0; }
@media (max-width: 440px) { .skill-station-header { gap: 4px; } .skill-station-header select { font-size: .75rem; padding-left: 4px; } }
.skill-station-header .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
