/* ===========================================================
  COURSE PLANNER – interface
   Dark rail, light paper, course colours carry the meaning.
   =========================================================== */

:root {
  --ink-900: #161b26;
  --ink-800: #1f2634;
  --ink-700: #2c3442;
  --gold: #e0b13f;

  --paper: #edf0f4;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --text: #121820;
  --muted: #5d6a78;
  --faint: #8a95a1;
  --line: #dde3ea;
  --line-2: #eaeef3;

  --good: #146b4c;
  --good-bg: #e6f3ed;
  --warn: #935200;
  --warn-bg: #fdf1df;
  --bad: #a92f3c;
  --bad-bg: #fdecee;

  --hour: 64px;
  --gutter: 60px;
  --rail: 214px;
  --r-lg: 12px;
  --r-md: 9px;
  --r-sm: 6px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.icon {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------------------------------------------------- frame ---- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100%; }

.rail {
  background: var(--ink-900); color: #c9d1dc;
  display: flex; flex-direction: column;
  padding: 20px 12px 14px;
  position: sticky; top: 0; height: 100vh;
}
.wordmark { padding: 0 10px 22px; line-height: 1.15; }
.wordmark-title { display: block; font-family: var(--serif); font-size: 23px; color: #fff; letter-spacing: .01em; }

nav { display: flex; flex-direction: column; gap: 2px; }
.navitem {
  display: flex; align-items: center; gap: 10px;
  font: inherit; text-align: left; cursor: pointer;
  background: none; border: 0; border-radius: var(--r-md);
  padding: 9px 10px; color: #b7c1cd; position: relative;
}
.navitem:hover { background: var(--ink-800); color: #fff; }
.navitem.is-active { background: var(--ink-700); color: #fff; }
.navitem.is-active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--gold);
}
.navitem .icon { opacity: .85; }
.navitem.is-active .icon { opacity: 1; color: var(--gold); }

.railfoot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid #262d3b; font-size: 12.5px; color: #8b97a5; }
.railhelp {
  display: flex; align-items: center; gap: 8px; width: 100%;
  font: inherit; font-size: 13px; color: #b7c1cd; background: none;
  border: 1px solid #2d3545; border-radius: var(--r-md); padding: 7px 9px;
  cursor: pointer; margin-bottom: 12px;
}
.railhelp:hover { background: var(--ink-800); color: #fff; border-color: #3b455a; }
.railfoot .bar { height: 4px; border-radius: 3px; background: #2a3341; margin-top: 8px; overflow: hidden; }
.railfoot .bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.railfoot b { color: #e6ebf1; font-weight: 600; }
.copyright {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid #262d3b;
  font-size: 11px; color: #8390a1;
}
.copyright a { color: #b7c1cd; text-decoration: none; }
.copyright a:hover { text-decoration: underline; }
.disclaimer { display: block; margin-top: 5px; line-height: 1.4; color: #687484; }

main { padding: 22px 26px 34px; min-width: 0; }
.view.is-hidden { display: none; }
.col-narrow { max-width: 780px; }
.col-wide { max-width: 1120px; }

h1 { font-family: var(--serif); font-size: 25px; font-weight: 400; margin: 0 0 4px; letter-spacing: .005em; }
h2 { font-size: 14px; font-weight: 600; margin: 0; }
p.lede { color: var(--muted); margin: 0 0 20px; max-width: 70ch; }
.hint { color: var(--faint); font-size: 12.5px; margin: -4px 0 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em;
  background: #e5eaf0; padding: 1px 4px; border-radius: 4px; }

/* -------------------------------------------------------- controls -- */
.viewhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.spacer { flex: 1 1 auto; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; padding: 7px 13px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); cursor: pointer;
}
.btn:hover { border-color: var(--faint); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--ink-700); border-color: var(--ink-700); }
.btn-danger { color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); }
.btn-small { padding: 5px 9px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn-small .icon { width: 14px; height: 14px; }

.linkbtn {
  display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 13px;
  background: none; border: 0; padding: 0; color: var(--text);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.linkbtn:hover { color: #000; }

.toggle {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 13px; cursor: pointer;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
}
.toggle:hover { border-color: var(--faint); }
.toggle.is-on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.toggle.is-on .icon { color: var(--gold); }

.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.segmented button {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; border: 0; background: none; color: var(--muted);
  padding: 7px 15px; cursor: pointer; border-right: 1px solid var(--line-2);
}
.segmented button:last-child { border-right: 0; }
.segmented button:hover { background: var(--surface-2); color: var(--text); }
.segmented button.is-active { background: var(--ink-900); color: #fff; }
.segmented button.is-active .icon { color: var(--gold); }

.addbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.addbar-label { color: var(--muted); }

.weeknav { display: flex; align-items: center; gap: 3px; }
.weeknav button {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-md); cursor: pointer; color: var(--text);
}
.weeknav button:hover { border-color: var(--faint); }
.weeklabel { min-width: 205px; text-align: center; line-height: 1.25; }
.weeklabel strong { font-weight: 600; }
.weeklabel span { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

input[type=text], input[type=date], input[type=number], select, textarea {
  font: inherit; padding: 7px 9px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface); color: var(--text);
}
textarea {
  width: 100%; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.55; resize: vertical;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.field { display: flex; gap: 8px; align-items: center; color: var(--muted); }

/* ----------------------------------------------------------- chips -- */
.chipset { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 9px; }
.chipset-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--faint); min-width: 74px;
}
.chipset-label .icon { width: 13px; height: 13px; }
.chips { margin-bottom: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface);
  padding: 5px 12px 5px 9px; border-radius: 999px; cursor: pointer;
  font-size: 13px; color: var(--text);
}
.chip:hover { border-color: var(--faint); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ev); flex: none; }
.chip .icon { width: 13px; height: 13px; color: var(--faint); }
.chip b { font-weight: 650; }
.chip-title { color: var(--muted); max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.is-off .chip-title { color: var(--faint); }
.chip.is-required { background: color-mix(in srgb, var(--ev) 9%, #fff); border-color: color-mix(in srgb, var(--ev) 30%, #fff); font-weight: 550; }
.chip.is-elective { border-style: dashed; }
.chip.is-elective .dot { background: transparent; border: 2px solid var(--ev); }
.chip.is-off { color: var(--faint); background: var(--surface-2); border-color: var(--line); }
.chip.is-off .dot { background: var(--line); border-color: var(--line); }

/* -------------------------------------------------------- calendar -- */
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cal-headrow { display: flex; border-bottom: 1px solid var(--line); background: var(--surface); }
.cal-gutterhead { width: var(--gutter); flex: none; border-right: 1px solid var(--line-2); }
.cal-dayheads { flex: 1; display: grid; }
.dayhead { padding: 9px 11px; border-right: 1px solid var(--line-2); }
.dayhead:last-child { border-right: 0; }
.dayhead b { font-weight: 600; }
.dayhead span { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; margin-left: 6px; }
.dayhead.is-today { background: #fbf6e8; box-shadow: inset 0 -2px 0 var(--gold); }
.dayhead.is-today b { color: #7a5a00; }

.cal-scroll { display: flex; max-height: calc(100vh - 282px); overflow-y: auto; padding: 12px 0 18px; }
.cal-gutter { width: var(--gutter); flex: none; position: relative; border-right: 1px solid var(--line-2); }
.cal-gutter div {
  position: absolute; right: 9px; font-size: 11px; color: var(--faint);
  transform: translateY(-50%); font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.cal-days { flex: 1; display: grid; }
.daycol {
  position: relative; border-right: 1px solid var(--line-2);
  background-image:
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hour)),
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--hour) / 2),
      var(--line-2) calc(var(--hour) / 2) calc(var(--hour) / 2 + 1px), transparent calc(var(--hour) / 2 + 1px) var(--hour));
}
.daycol:last-child { border-right: 0; }
.daycol.is-today { background-color: #fefcf6; }

.nowline { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid #c0392b; z-index: 5; }
.nowline::before {
  content: ""; position: absolute; left: -3px; top: -4px; width: 7px; height: 7px;
  border-radius: 50%; background: #c0392b;
}

.ev {
  position: absolute; border-radius: var(--r-sm); padding: 4px 6px;
  font-size: 11.5px; line-height: 1.3; overflow: hidden; cursor: pointer;
  border: 1px solid var(--ev); background: var(--ev); color: #fff;
  display: flex; flex-direction: column; gap: 1px;
}
.ev .evtop { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.ev .evtop .icon { width: 13px; height: 13px; }
.ev .evtop b { font-weight: 600; letter-spacing: .01em; }
.ev .meta { opacity: .88; font-variant-numeric: tabular-nums; }
.ev .evmarks { margin-left: auto; display: flex; align-items: center; gap: 3px; }
.ev .evmarks .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.ev .clashmark { background: #fff; color: var(--bad); border-radius: 50%; display: grid; place-items: center; width: 15px; height: 15px; }
.ev .clashmark .icon { width: 11px; height: 11px; }

.ev.is-class {
  background: color-mix(in srgb, var(--ev) 11%, #fff);
  color: color-mix(in srgb, var(--ev) 78%, #191919);
  border-color: color-mix(in srgb, var(--ev) 32%, #fff);
  border-left: 4px solid var(--ev);
  background-image: repeating-linear-gradient(135deg,
    transparent 0 7px, color-mix(in srgb, var(--ev) 9%, transparent) 7px 14px);
}
.ev.is-elective { border-style: dashed; }
.ev.is-elective:not(.is-class) { border-color: rgba(255, 255, 255, .82); }
.ev.is-elective.is-class { border-left-style: solid; }
.ev.is-dim { opacity: .36; }
.ev.is-dim:hover { opacity: .75; }
.ev.is-chosen {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ev), 0 1px 3px rgba(16,24,40,.18);
  z-index: 3;
}
.ev.is-class.is-chosen {
  background: color-mix(in srgb, var(--ev) 39%, #dfe7f2 61%);
  color: color-mix(in srgb, var(--ev) 75%, #191919);
  border-color: color-mix(in srgb, var(--ev) 32%, #fff);
  border-left: 4px solid var(--ev);
  background-image: repeating-linear-gradient(135deg,
    rgba(255,255,255,.14) 0 7px, rgba(17,26,38,.10) 7px 14px);
}
.ev.is-chosen:not(.is-class) {
  background: color-mix(in srgb, var(--ev) 54%, #eff3f8);
  color: color-mix(in srgb, var(--ev) 75%, #191919);
  border-color: color-mix(in srgb, var(--ev) 32%, #fff);
}
.ev.is-clash { z-index: 4; }
.ev.is-clash::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-sm);
  border: 2px dashed var(--bad);
}

.legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin: 12px 2px 0; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg-hint { color: var(--faint); }
.legmark { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); display: inline-block; }
.legmark.is-ring { background: transparent; border: 2px solid var(--muted); }

.empty {
  border: 1px dashed var(--line); border-radius: var(--r-lg);
  padding: 34px; text-align: center; color: var(--muted); background: var(--surface);
}
.empty .icon { width: 26px; height: 26px; color: var(--faint); margin-bottom: 8px; }

/* ----------------------------------------------------------- cards -- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 15px 17px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ev); }
.card.is-elective::before {
  background: repeating-linear-gradient(to bottom, var(--ev) 0 6px, transparent 6px 11px);
}
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-head .code { font-weight: 650; font-size: 15px; letter-spacing: .01em; }
.card-head .title { color: var(--muted); flex: 1; min-width: 140px; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
  border-radius: 999px; padding: 2px 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-family: inherit;
}
.tag .icon { width: 13px; height: 13px; }
.tag-required { background: #eef1f6; border-color: #d5dce7; color: #2f3b4d; }
.tag-elective { border-style: dashed; }
button.tag:hover { border-color: var(--faint); }

.kindgroup { margin-top: 14px; }
.kindhead { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 12.5px; color: var(--muted); }
.kindhead .icon { color: var(--ev); width: 15px; height: 15px; }
.kindhead .name { font-weight: 600; color: var(--text); font-size: 13px; }
.state { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.state .icon { width: 13px; height: 13px; }
.state-ok { background: var(--good-bg); color: var(--good); }
.state-open { background: var(--warn-bg); color: var(--warn); }
.state-fixed { background: #edf0f4; color: var(--muted); }

.options { display: grid; gap: 6px; }
.option {
  display: grid; grid-template-columns: 22px 172px 1fr auto; gap: 12px; align-items: center;
  border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 8px 11px;
  cursor: pointer; background: var(--surface); text-align: left; font: inherit; color: inherit;
}
.option:hover { background: var(--surface-2); border-color: var(--line); }
.option.is-chosen {
  border: 2px solid color-mix(in srgb, var(--ev) 70%, #fff);
  background: linear-gradient(135deg, color-mix(in srgb, var(--ev) 22%, #f9fbff), color-mix(in srgb, var(--ev) 34%, #edf1f6));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ev) 16%, #fff), 0 8px 18px rgba(16, 24, 40, .08);
  transform: translateY(-1px);
}
.option .tick { color: var(--faint); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.option.is-chosen .tick {
  color: #fff; background: var(--ev); border: 2px solid color-mix(in srgb, var(--ev) 60%, #fff);
  box-shadow: 0 0 0 2px rgba(255,255,255,.9);
}
.option.is-chosen .tick .icon { stroke-width: 2.4; }
.option .when { font-variant-numeric: tabular-nums; font-weight: 550; white-space: nowrap; }
.option .when .line { display: flex; align-items: center; gap: 6px; }
.option .where { color: var(--muted); font-size: 12.5px; display: grid; gap: 2px; }
.option .where span { display: inline-flex; align-items: center; gap: 5px; }
.option .where .icon { width: 13px; height: 13px; color: var(--faint); }
.option .wks { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }

.termtag {
  font-size: 10.5px; border: 1px solid var(--line); border-radius: 4px;
  padding: 0 4px; color: var(--muted); background: var(--surface-2);
  font-variant-numeric: tabular-nums; letter-spacing: .03em;
}

/* ---------------------------------------------------------- notes --- */
.note { border-radius: var(--r-md); padding: 10px 13px; margin: 0 0 12px; font-size: 13px; display: flex; gap: 9px; align-items: flex-start; }
.note .icon { margin-top: 2px; }
.note-warn { background: var(--warn-bg); color: var(--warn); }
.note-bad { background: var(--bad-bg); color: var(--bad); }
.note-ok { background: var(--good-bg); color: var(--good); }
.note ul { margin: 5px 0 0; padding-left: 17px; }
.note b { font-weight: 600; }
.note a { color: inherit; }

/* ----------------------------------------------------------- plan --- */
.planwrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px; }
.planwrap > h2 {
  padding: 11px 15px; border-bottom: 1px solid var(--line-2); background: var(--surface-2);
  display: flex; align-items: center; gap: 8px; font-size: 13px;
}
table.plan { width: 100%; border-collapse: collapse; }
table.plan th, table.plan td { text-align: left; padding: 9px 15px; border-bottom: 1px solid var(--line-2); }
table.plan tr:last-child td { border-bottom: 0; }
table.plan th { font-size: 12px; color: var(--faint); font-weight: 600; }
table.plan td.when, table.plan td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.plan .course { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
table.plan .swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--ev); flex: none; }
table.plan .swatch.is-elective { background: transparent; border: 2px solid var(--ev); }
table.plan .kind { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
table.plan .kind .icon { color: var(--ev); }

/* ------------------------------------------------------- settings --- */
fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 16px 14px; margin: 0 0 12px; background: var(--surface); }
legend { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); padding: 0 6px; }
fieldset label { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 5px 0; max-width: 430px; }
.feedback { color: var(--good); display: inline-flex; align-items: center; gap: 6px; }

.preview-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.preview-table th, .preview-table td { border-bottom: 1px solid var(--line-2); padding: 7px 11px; text-align: left; }
.preview-table tr:last-child td { border-bottom: 0; }
.preview-table th { font-size: 12px; color: var(--faint); font-weight: 600; background: var(--surface-2); }
.preview-table td.when, .preview-table td:nth-child(5), .preview-table td:last-child {
  white-space: nowrap; font-variant-numeric: tabular-nums; }
.preview-table .kind { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.preview-head { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 2px; }
.preview-head .code { font-weight: 650; }
.preview-head .title { color: var(--muted); }

/* ------------------------------------------------------ intro tour -- */
.tour { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 22px; }
.tour[hidden] { display: none; }
.tour-backdrop { position: absolute; inset: 0; background: rgba(14, 18, 26, .62); }
.tour-box {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 44px);
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(8, 12, 20, .35);
}
.tour-head {
  display: flex; align-items: center; padding: 12px 16px;
  border-bottom: 1px solid var(--line-2); background: var(--surface-2);
}
.tour-count { font-size: 12px; color: var(--faint); letter-spacing: .04em; }
.tour-skip {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-size: 13px; background: none; border: 0; color: var(--muted); cursor: pointer;
}
.tour-skip:hover { color: var(--text); }
.tour-body { padding: 20px 22px 6px; overflow-y: auto; }
.tour-body h2 { font-family: var(--serif); font-size: 21px; font-weight: 400; margin-bottom: 8px; }
.tour-body p { color: var(--muted); margin: 0 0 12px; max-width: 64ch; }
.tour-body .tour-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 9px; }
.tour-body .tour-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.tour-body .tour-list .icon { margin-top: 2px; color: var(--text); }
.tour-body .tour-list b { color: var(--text); font-weight: 600; }
.tour-foot { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line-2); }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: block; }
.tour-dots i.is-on { background: var(--ink-900); }

.shot {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; background: #fff; margin-bottom: 12px;
}
.shot img { display: block; width: 100%; height: auto; }
.shot-mark {
  position: absolute; border: 3px dashed #d8323f; border-radius: 4px;
  background: rgba(216, 50, 63, .07);
  left: .6%; top: 31.5%; width: 94.3%; height: 66.6%;
}
.shot-tip {
  position: absolute; right: 7%; top: 32.6%;
  background: #d8323f; color: #fff; font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
}
.shot-caption { font-size: 12.5px; color: var(--faint); margin: -4px 0 14px; }

.swatchrow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* ------------------------------------------------------ responsive -- */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; overflow-x: auto; }
  .wordmark { padding: 0 8px 0 4px; }
  .wordmark-sub { display: none; }
  nav { flex-direction: row; }
  .navitem { padding: 8px; white-space: nowrap; }
  .navitem.is-active::before { left: 8px; right: 8px; top: auto; bottom: -10px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .railfoot { margin: 0 0 0 auto; padding: 0; border: 0; }
  .railfoot #progress { display: none; }
  .railhelp { margin: 0; white-space: nowrap; }
  main { padding: 16px 14px 28px; }
  .cal-scroll { max-height: none; }
  .option { grid-template-columns: 22px 1fr; }
  .option .wks { grid-column: 2; text-align: left; }
  .chipset-label { min-width: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .ev, .option, .chip, .btn, .toggle, .navitem { transition: background-color .13s ease, opacity .13s ease, border-color .13s ease; }
}

/* -------------------------------------------------- mobile notice --- */
.subhead { font-family: var(--serif); font-size: 17px; font-weight: 400; margin: 26px 0 4px; }

.mobilegate { display: none; }
@media (max-width: 820px) {
  .mobilegate {
    display: grid; place-items: center; position: fixed; inset: 0; z-index: 90;
    background: var(--ink-900); color: #d5dce6; padding: 26px;
  }
  body.gate-off .mobilegate { display: none; }
  .mobilegate-box { max-width: 420px; text-align: left; }
  .mobilegate-box .icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 14px; }
  .mobilegate-box h2 {
    font-family: var(--serif); font-size: 26px; font-weight: 400; color: #fff; margin-bottom: 10px;
  }
  .mobilegate-box p { color: #98a4b3; margin: 0 0 12px; }
  .mobilegate-box .btn { margin-top: 8px; background: #fff; border-color: #fff; color: var(--ink-900); }
}
