/* Ewings Lab O/L — on top of the simulations' design (/simulations/assets/sim.css) */
html, body { margin: 0; }
.ol-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html[lang="si"] .ol-title, html[lang="si"] body { font-family: "Noto Sans Sinhala", "Plus Jakarta Sans", system-ui, sans-serif; }

/* the guide: the step to do now */
.guide { position: absolute; left: 14px; top: 14px; z-index: 5; width: min(390px, 40%); padding: 10px 12px 12px 14px; border-radius: 20px; display: grid; gap: 6px; }
.guide__head { display: flex; align-items: center; gap: 6px; }
.guide__head h2 { flex: 1; min-width: 0; margin: 0; font-size: 14.5px; font-weight: 800; line-height: 1.3; display: flex; gap: 8px; align-items: flex-start; }
.guide__head .ew-round { width: 32px; height: 32px; flex: none; font-size: 18px; }
.guide__body p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.6; }
.guide.is-folded .guide__body { display: none; }
.ol-prno { flex: none; display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--color-blue); color: var(--color-blue-contrast); font-size: 12.5px; font-weight: 800; }
.ol-stepline { font-size: 13.5px; font-weight: 700; color: var(--color-blue); margin-bottom: 2px; }
.ol-stepline b { color: var(--color-text-muted); font-weight: 800; }
.ol-stepbtns { display: flex; align-items: center; gap: 8px; }
.ol-stepbtns .ew-round { width: 38px; height: 38px; flex: none; }
.ol-stepbtns .ew-round svg { width: 18px; height: 18px; }
.ol-stepbtns .ew-btn { margin-left: auto; }
.ol-next svg { width: 16px; height: 16px; }
.ol-dots { display: flex; gap: 5px; flex-wrap: wrap; }
.ol-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border-strong); }
.ol-dots i.is-done { background: var(--color-success, #1f9d55); }
.ol-dots i.is-on { background: var(--color-blue); transform: scale(1.3); }

/* the experiment box: controls and readings, on the 3D view */
.ol-exp { position: absolute; left: 14px; bottom: 70px; z-index: 5; width: min(360px, 38%); max-height: calc(100% - 330px); min-height: 120px; overflow-y: auto; padding: 10px 14px 12px; border-radius: 22px; scrollbar-width: thin; }
.ol-exp.is-folded { min-height: 0; }
.ol-exp__head { display: flex; align-items: center; gap: 6px; }
.ol-exp__head h2 { flex: 1; margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.ol-exp__head h2 svg { width: 18px; height: 18px; color: var(--color-blue); }
.ol-exp__head .ew-round { width: 32px; height: 32px; font-size: 18px; flex: none; }
.ol-exp__body { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ol-exp--panel .ol-exp__body { margin-top: 10px; }
.ol-ctl { display: flex; flex-direction: column; gap: 6px; }
.ol-ctl .lbl { font-size: 13px; }
.ol-ctl .big-val { font-size: 20px; font-variant-numeric: tabular-nums; }
.ol-ctl .slider { grid-template-columns: 40px 1fr 40px; gap: 6px; }
.ol-ctl .chips button { min-height: 36px; font-size: 13px; }
.ol-quick button { min-height: 34px; font-size: 12.5px; }
.ol-read { margin: 0; display: grid; gap: 4px; padding: 8px 10px; border-radius: 14px; background: var(--color-surface-sunken); }
.ol-read div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.ol-read dt { color: var(--color-text-muted); }
.ol-read dd { margin: 0; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.ol-read .is-strong dd { color: var(--color-blue); }
.ol-recrow .ew-btn svg { width: 16px; height: 16px; }
.ol-legend { display: grid; gap: 4px; font-size: 12.5px; }
.ol-legend div { display: flex; align-items: center; gap: 8px; line-height: 1.35; }
.ol-legend i { flex: none; width: 22px; height: 4px; border-radius: 2px; }

/* the image preview: what the eye / a screen sees */
.ol-see { flex-direction: column; align-items: stretch; gap: 4px; width: 236px; padding: 8px 8px 10px; border-radius: 18px; }
.ol-see__h { font-size: 12.5px; font-weight: 800; color: var(--color-text-muted); }
.ol-see svg { width: 100%; height: auto; display: block; }
.ol-see__bg { fill: #f6f4ec; stroke: rgba(0,0,0,.12); }
.is-virt .ol-see__bg { fill: #1f2630; stroke: rgba(255,255,255,.15); }
.ol-see__axis { stroke: rgba(0,0,0,.25); stroke-width: 1.5; stroke-dasharray: 5 4; }
.is-virt .ol-see__axis { stroke: rgba(255,255,255,.3); }
.ol-see__t { font-size: 11px; font-weight: 700; fill: #5a606a; }
.is-virt .ol-see__t { fill: #c9ced6; }
.ol-see__n { font-size: 12px; color: var(--color-text-muted); }
.ol-see__nat { font-size: 13px; color: var(--color-blue); }
.ol-statbtn { border: 0; font: inherit; cursor: pointer; color: var(--color-text); }
.ol-statbtn svg { width: 16px; height: 16px; }
.ol-statsep { opacity: .5; }

/* the inspector */
.inspect { position: absolute; right: 14px; top: 64px; z-index: 6; width: clamp(240px, 32%, 300px); max-height: calc(100% - 150px); overflow-y: auto; padding: 12px 14px; border-radius: 22px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.inspect__head { display: flex; align-items: center; gap: 6px; }
.inspect__head h2 { flex: 1; min-width: 0; margin: 0; font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.inspect__head .ew-round { width: 34px; height: 34px; flex: none; font-size: 18px; }
.inspect__body { display: flex; flex-direction: column; gap: 8px; }
.inspect.is-folded .inspect__body { display: none; }
.inspect .slider { grid-template-columns: 36px 1fr 36px; gap: 6px; }
.inspect .chips button { min-height: 34px; font-size: 13px; }
.inspect .lbl { font-size: 13px; }

/* the panel */
.ol-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative; }
.ol-tab svg { width: 17px; height: 17px; flex: none; }
.ol-badge { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--color-blue); color: var(--color-blue-contrast); font-size: 11px; display: inline-grid; place-items: center; }
.ol-group h3 { margin: 12px 0 6px; font-size: 13px; font-weight: 800; color: var(--color-text-faint); }
html[lang="en"] .ol-group h3 { text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.setups { display: grid; gap: 6px; }
.setups button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 14px; background: var(--color-surface-sunken); color: var(--color-text); font: inherit; font-weight: 700; font-size: 14px; text-align: left; cursor: pointer; line-height: 1.35; }
.setups button:hover { background: var(--color-blue-soft); color: var(--color-blue); }
.setups button b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-surface); font-size: 13px; }
.setups button:disabled { opacity: .6; cursor: default; }
.ol-pcard { display: flex; flex-direction: column; gap: 10px; }
.ol-backbtn { align-self: flex-start; }
.ol-backbtn svg { width: 16px; height: 16px; }
.ol-ptitle { margin: 0; font-size: 17px; font-weight: 800; display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.ol-aim { margin: 0; font-size: 14px; line-height: 1.6; }
.ol-appl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ol-appi { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--color-surface-sunken); font-size: 12.5px; font-weight: 700; }
.ol-appi svg { width: 30px; height: 24px; }
.ol-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ol-steps button { display: flex; gap: 10px; width: 100%; padding: 10px 12px; border: 1.5px solid transparent; border-radius: 14px; background: var(--color-surface-sunken); color: var(--color-text); font: inherit; text-align: left; cursor: pointer; }
.ol-steps b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-surface); font-size: 12.5px; }
.ol-steps span { display: grid; gap: 3px; }
.ol-steps strong { font-size: 14px; }
.ol-steps em { font-style: normal; font-size: 13px; line-height: 1.55; color: var(--color-text-muted); }
.ol-steps .is-on button { border-color: var(--color-blue); background: var(--color-blue-soft); }
.ol-steps .is-on b { background: var(--color-blue); color: var(--color-blue-contrast); }
.ol-notes { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.6; }
.ol-tablewrap { overflow-x: auto; }
.ol-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ol-table th, .ol-table td { padding: 7px 8px; border-bottom: 1px solid var(--color-border); text-align: left; }
.ol-table th { font-size: 12.5px; color: var(--color-text-muted); font-weight: 800; background: var(--color-surface-sunken); }
.ol-imgtable tbody tr { cursor: pointer; }
.ol-imgtable tbody tr:hover { background: var(--color-blue-soft); }
.ol-imgtable tr.is-on { background: var(--color-blue-soft); }
.ol-imgtable tr.is-on td { font-weight: 800; color: var(--color-blue); }
.ol-now { margin-left: 6px; font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--color-blue); color: var(--color-blue-contrast); }
.ol-concl { margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: var(--color-gold-soft, #fff3d6); font-size: 14px; line-height: 1.6; }
.ol-concl p { margin: 4px 0 0; }
.kitgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.kitgrid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 9px; min-height: 96px; border: 1.5px solid transparent; border-radius: 18px; background: var(--color-surface-sunken); color: var(--color-text); font: inherit; font-weight: 700; font-size: 12.5px; line-height: 1.25; text-align: center; cursor: pointer; }
.kitgrid button:hover { border-color: var(--color-blue); background: var(--color-blue-soft); color: var(--color-blue); }
.kitgrid svg { width: 42px; height: 34px; flex: none; }

/* labels on the 3D view */
.tags .tag { position: absolute; left: 0; top: 0; padding: 2px 7px; border-radius: 7px; font-size: 12px; font-weight: 700; line-height: 1.35; background: rgba(255, 255, 255, .92); color: #1b1b1b; box-shadow: 0 1px 3px rgba(0, 0, 0, .22); white-space: nowrap; font-variant-numeric: tabular-nums; transition: opacity .15s; }
.tags .tag b { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 800; font-size: 13.5px; color: #d8433a; }
.tags .tag--mark { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 800; font-size: 13px; padding: 0 6px; background: rgba(20, 24, 30, .78); color: #fff; }
.tags .tag--obj { background: #ff9e1f; color: #1b1b1b; font-family: Georgia, serif; font-style: italic; font-weight: 800; }
.tags .tag--img { background: #ffd27a; color: #1b1b1b; font-family: Georgia, serif; font-style: italic; font-weight: 800; }
.tags .tag--v { background: transparent; color: #ffd27a; border: 1.5px dashed #ffd27a; }
.tags .tag--read { border: 1.5px solid #eeaa1f; font-weight: 800; }
.tags .tag--tir { border: 1.5px solid #d8433a; }
.tags .tag--name { font-weight: 700; color: #2d3138; background: rgba(255, 255, 255, .82); }
[data-theme="dark"] .tags .tag { background: rgba(30, 31, 35, .9); color: #f1f1f1; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
[data-theme="dark"] .tags .tag b { color: #ff8a80; }
[data-theme="dark"] .tags .tag--obj { background: #ff9e1f; color: #1b1b1b; }
[data-theme="dark"] .tags .tag--img { background: #ffd27a; color: #1b1b1b; }
[data-theme="dark"] .tags .tag--v { background: transparent; color: #ffd27a; }
[data-theme="dark"] .tags .tag--name { color: #d6d9de; }

.views { max-width: calc(100% - 28px); }
@media (max-width: 1000px) {
  .guide { left: 8px; right: 8px; top: 8px; width: auto; }
  .guide__body p { font-size: 13px; }
  .status { top: auto; bottom: 60px; right: 8px; left: auto; flex-direction: column; align-items: flex-end; }
  .ol-see { width: 190px; }
  .inspect { left: 8px; right: 8px; width: auto; top: auto; bottom: 60px; max-height: 46%; }
  .ol-exp--panel { order: -1; }
}
@media (max-width: 560px) {
  .ol-hide-sm { display: none !important; }
  .ol-title { font-size: 14px; }
  .ew-chip { display: none; }
  .ol-see { display: none; }
  .ol-tab span { font-size: 12.5px; }
}

/* the kit switch (light / magnetism) in the top bar, and the magnetism apparatus list */
.ol-kit { margin-left: 4px; }
.ol-kit button { padding-inline: 12px; white-space: nowrap; }
@media (max-width: 700px) { .ol-kit button { padding-inline: 8px; font-size: 12px; } }
.kitgrid .ol-kititem { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 9px; min-height: 96px; border-radius: 18px; background: var(--color-surface-sunken); color: var(--color-text); font-weight: 700; font-size: 12.5px; line-height: 1.25; text-align: center; }
.kitgrid .ol-kititem svg { width: 42px; height: 34px; flex: none; }

/* the step buttons at the bottom left of the view (back / next) */
.ol-stepnav { position: absolute; left: 14px; bottom: 14px; z-index: 6; display: flex; gap: 10px; padding: 8px; border-radius: 999px; }
.ol-stepnav .ew-round { width: 46px; height: 46px; }
.ol-stepnav .ew-round svg { width: 22px; height: 22px; }
.ol-stepnav__next { background: var(--color-blue) !important; color: #fff !important; }
.ol-stepnav .ew-round:disabled { opacity: 0.4; }
.ol-gencard .chips button { display: inline-flex; align-items: center; gap: 6px; }
.ol-gencard .chips svg { width: 16px; height: 16px; }
