@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/inter-latin.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --ground: #eff0e9;
  --sheet: #fbfbf4;
  --ink: #13282e;
  --muted: #536669;
  --line: #c3ccc4;
  --night: #11252b;
  --accent: #f5c74b;
  --teal: #216c76;
  --gutter: clamp(18px, 5.2vw, 84px);
  --sans: Inter, 'Avenir Next', 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 15px;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  overflow-wrap: break-word;
}
h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #0c8496;
  outline-offset: 3px;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: absolute;
  z-index: 10;
  background: white;
  padding: 8px;
}
.wrap {
  max-width: 1560px;
  width: 100%;
  margin: auto;
  padding-inline: var(--gutter);
}
.mast {
  background: var(--night);
  color: #f2f1df;
  border-bottom: 1px solid #788e87;
}
.mast-inner,
.foot,
.desk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mast-inner {
  min-height: 66px;
}
.mast-brand {
  display: grid;
  justify-items: start;
  padding-block: 4px;
}
.library-return {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 24px;
  color: #c2d1ce;
  font-size: 12px;
  font-weight: 600;
}
.library-return:hover {
  color: var(--accent);
  text-decoration: underline;
}
.brand {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.105em;
}
.logomark {
  width: 27px;
  height: 27px;
  display: flex;
  gap: 2px;
  align-items: end;
  transform: skewY(-8deg);
  border-bottom: 3px solid var(--accent);
  padding: 2px 0;
}
.logomark i {
  background: var(--accent);
  width: 7px;
  transform: skewX(-17deg);
  height: 67%;
}
.logomark i:nth-child(2) {
  height: 82%;
}
.logomark i:nth-child(3) {
  height: 100%;
}
nav {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.6vw, 42px);
  font-size: 13px;
  font-weight: 650;
}
nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
nav a:hover {
  color: var(--accent);
}
.guide-nav {
  border: 1px solid #778881;
  padding: 7px 14px;
}
.hero {
  background: #1a3139 url('assets/porter-coast.webp') center 54% / cover no-repeat;
  color: #fffef2;
  isolation: isolate;
  position: relative;
}
.hero:before {
  content: '';
  z-index: -1;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0a202bd4, #0b25355e 37%, transparent 68%),
    linear-gradient(0deg, #122c3530, transparent 30%);
}
.hero-inner {
  padding-top: clamp(38px, 4.9vw, 78px);
  padding-bottom: clamp(35px, 4vw, 69px);
}
.kicker,
.mini,
.result-line,
.metric small,
.episode-no,
.rail-n,
.category,
.count,
.group-count,
.info-source {
  font-family: var(--mono);
}
.kicker {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
  line-height: 1.45;
}
.hero-kicker {
  color: #dfe9e1;
  display: flex;
  align-items: center;
  gap: 11px;
}
.hero-kicker i {
  background: var(--accent);
  width: 22px;
  height: 3px;
  transform: skewX(-22deg);
}
h1 {
  font-size: clamp(74px, 8.3vw, 144px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.09em;
  margin: 12px 0 10px;
}
h1 em {
  font-style: normal;
  font-weight: 320;
}
.hero-sub {
  font-size: clamp(15px, 1.4vw, 23px);
  color: #e7ece2;
  letter-spacing: -0.012em;
}
.primary,
.dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
  font-size: 13px;
  font-weight: 700;
}
.primary {
  margin-top: 24px;
  background: var(--accent);
  color: #17262a;
}
.primary:hover {
  background: #ffe180;
}
.primary span {
  font-size: 19px;
  line-height: 1;
}
.dark-button {
  background: var(--night);
  color: #fffef0;
}
.dark-button:hover {
  background: #25464e;
}
.primary:disabled,
.dark-button:disabled {
  opacity: 0.5;
}
.meters-area {
  border-block: 1px solid #aebdb4;
  background: #e2e6db;
}
.meters {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
}
.metric {
  display: block;
  text-align: left;
  background: none;
  border: 0;
  border-right: 1px solid #b6c2b8;
  padding: 17px clamp(12px, 1.7vw, 28px);
  min-width: 0;
}
.metric:first-child {
  padding-left: 0;
}
.metric:last-child {
  border: 0;
}
.metric:hover .metric-title {
  text-decoration: underline;
}
.metric-title {
  font: 650 10px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.085em;
  display: block;
  color: #42595b;
}
.metric-value {
  display: block;
  font-size: clamp(25px, 2.35vw, 39px);
  font-weight: 660;
  letter-spacing: -0.065em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-weight: 400;
  letter-spacing: -0.035em;
  color: #586969;
  font-size: 13px;
  white-space: nowrap;
}
.bar {
  display: block;
  height: 3px;
  background: #bfcac2;
  width: 100%;
  overflow: hidden;
  margin-top: 8px;
}
.bar i {
  display: block;
  height: 100%;
  background: #387c80;
}
.content {
  padding-bottom: 42px;
}
.dispatch {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 2.4fr) auto;
  align-items: center;
  gap: 24px;
  padding: 21px 24px;
  background: #f9f9ee;
  border: 1px solid var(--line);
  border-left: 4px solid #b78e21;
  margin: 26px 0 33px;
}
.dispatch-tag {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #5e552f;
}
.nav-symbol {
  height: 19px;
  width: 14px;
  background: #93762e;
  clip-path: polygon(100% 0, 65% 100%, 44% 61%, 0 48%);
}
.mini {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.dispatch-body h2 {
  font-size: clamp(19px, 2vw, 29px);
  letter-spacing: -0.045em;
  line-height: 1.22;
  margin: 3px 0;
}
.dispatch-tools {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 4px;
}
.dispatch-tools button,
.undo,
#clear,
.text-link,
.method a,
.rescue {
  background: none;
  border: 0;
  padding: 3px 0;
  font-size: 12px;
  color: #265c64;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dispatch-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.undo:disabled {
  visibility: hidden;
}
.overline {
  color: #557074;
  margin-bottom: 5px;
}
.desk-head h2 {
  font-size: clamp(30px, 3vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.065em;
  font-weight: 660;
}
.views {
  display: inline-flex;
  border: 1px solid #a9b7ac;
  padding: 3px;
  background: #e1e7dd;
}
.views button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  color: #405757;
  font-weight: 650;
  font-size: 12px;
}
.views [aria-pressed='true'] {
  background: var(--night);
  color: white;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(190px, 22%) minmax(0, 1fr);
  gap: clamp(18px, 2.8vw, 48px);
  align-items: start;
  margin-top: 20px;
}
#episodes {
  border-top: 2px solid #81948b;
}
.rail-head {
  padding: 14px 9px 10px;
  color: #536a6c;
}
#episode-rail {
  display: grid;
  gap: 2px;
}
.rail-item {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px;
  min-height: 37px;
  padding: 8px 9px;
  width: 100%;
  line-height: 1.3;
  text-align: left;
  border: 0;
  background: none;
  font-size: 13px;
}
.rail-item:hover {
  background: #e0e5db;
}
.rail-item[aria-current='true'] {
  background: #dbe5d9;
  box-shadow: inset 3px 0 #28737a;
  font-weight: 700;
}
.episode-no,
.rail-n {
  font-size: 10px;
  color: #56706d;
}
.notebook {
  border: 1px solid var(--line);
  background: var(--sheet);
  min-width: 0;
}
.filters {
  padding: 16px 19px;
  border-bottom: 1px solid var(--line);
}
.search-line {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #adbcb3;
  padding: 9px 13px;
  min-height: 42px;
}
.search-line:focus-within {
  outline: 2px solid #0c8496;
}
.search-line i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.6px solid #607974;
  position: relative;
  flex-shrink: 0;
}
.search-line i:after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: -4px;
  background: #607974;
  width: 6px;
  height: 1.6px;
  transform: rotate(45deg);
}
.search-line input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 14px;
  min-width: 0;
  background: none;
}
.filter-line,
.result-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-line {
  margin-top: 10px;
}
.filter-line label {
  min-width: 0;
}
.filter-line select {
  max-width: 100%;
  background: #f1f3ec;
  border: 1px solid #bdc7be;
  padding: 6px 7px;
  font-size: 12px;
}
.hide {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin-left: auto;
}
input[type='checkbox'] {
  accent-color: #1c6570;
  cursor: pointer;
}
.result-line {
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
  justify-content: space-between;
}
.ep-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 15px 19px 8px;
  font-size: 19px;
  letter-spacing: -0.045em;
  font-weight: 650;
}
.ep-heading span {
  font: 650 10px var(--mono);
  letter-spacing: 0.04em;
  color: #547475;
}
.group > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 9px 19px;
  background: #eaf0e6;
  color: #364c4b;
  font-size: 12px;
  font-weight: 650;
  border-top: 1px solid #c9d3c9;
}
summary::-webkit-details-marker {
  display: none;
}
.group-count {
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
  color: #546b67;
}
.row {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px;
  border-top: 1px solid #d7ddd3;
  padding: 11px 19px;
  scroll-margin-top: 18px;
}
.row.nested {
  padding-left: 35px;
}
.row > input {
  margin: 3px 0;
  width: 16px;
  height: 16px;
}
.row > details > summary {
  list-style: none;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
}
.row > details > summary:after {
  content: '+';
  font: 15px var(--mono);
  color: #55726e;
}
.row > details[open] > summary:after {
  content: '−';
}
.row-title {
  font-weight: 640;
  line-height: 1.45;
  font-size: 14px;
}
.row.done .row-title {
  color: #5a6c64;
  text-decoration: line-through;
}
.category {
  color: #49655e;
  line-height: 1.35;
  font-size: 10px;
  background: #e8ece0;
  border: 1px solid #ced7c8;
  padding: 2px 6px;
  max-width: 170px;
}
.how,
.warning,
.spoiler,
.empty,
.method p {
  font-size: 14px;
  line-height: 1.65;
  color: #3c5355;
}
.how {
  margin: 8px 0 5px;
  white-space: pre-line;
}
.how a,
.warning a,
.spoiler a,
.intel-links a {
  text-decoration: underline;
  color: #185a69;
  text-underline-offset: 3px;
}
.warning {
  margin-bottom: 7px;
  padding: 8px 11px;
  border-left: 3px solid #bb8e26;
  background: #fbefd1;
  color: #574722;
}
.warning strong {
  display: block;
}
.row > .warning {
  grid-column: 1/-1;
}
.spoiler {
  margin: 8px 0;
  font-size: 12px;
}
.spoiler p {
  margin: 3px 0;
}
.row-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.row-tools button,
.row-tools a {
  font-size: 11px;
  color: #37646a;
  border: 0;
  padding: 3px 0;
  background: none;
  text-decoration: underline;
}
.row.skipped .row-title:after {
  content: ' · Skipped';
  color: #775d23;
  font: 10px var(--mono);
}
.more {
  margin: 15px 19px;
  background: #e9eee4;
  border: 1px solid #b7c7bc;
  padding: 7px 12px;
  font-size: 13px;
}
.empty,
.notice {
  padding: 22px;
}
.support {
  margin-top: 42px;
  border-top: 1px solid #acb9ae;
  padding-top: 24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.stat-block {
  border: 1px solid var(--line);
  background: var(--sheet);
  padding: 15px;
}
.stat-block h3 {
  font-size: 16px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.stat-entry {
  margin: 9px 0;
  font-size: 12px;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.stat-entry .bar {
  height: 3px;
  margin-top: 4px;
}
#intel {
  margin-top: 17px;
}
.intel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 0 24px;
}
.intel-fact {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.intel-fact dt {
  color: var(--muted);
  font: 11px var(--mono);
}
.intel-fact dd {
  margin: 5px 0;
  font-size: 14px;
}
.intel-links {
  font-size: 12px;
  color: var(--muted);
}
.intel-links a + a:before {
  content: ' · ';
}
.method {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.method summary {
  font-weight: 650;
}
.method p {
  max-width: 80ch;
  margin: 7px 0;
}
#storage-status:not(:empty) {
  padding: 14px;
  background: #fbefd1;
}
footer {
  background: var(--night);
  color: #e5ebe0;
}
.foot {
  padding-block: 19px;
  font-size: 12px;
}
.foot a:hover {
  text-decoration: underline;
}
@media (max-width: 850px) {
  .dispatch {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 20px;
  }
  .dispatch-tag {
    grid-column: 1/-1;
  }
  .workspace-grid {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 14px;
  }
  .rail-item {
    padding-inline: 6px;
    grid-template-columns: 19px minmax(0, 1fr) auto;
  }
  .category {
    max-width: 110px;
  }
  .metric {
    padding-inline: 12px;
  }
}
@media (max-width: 650px) {
  .mast-inner {
    min-height: 52px;
    gap: 10px;
  }
  .brand {
    gap: 7px;
    font-size: 13px;
  }
  .logomark {
    width: 22px;
    height: 22px;
  }
  nav {
    gap: 12px;
    font-size: 11px;
  }
  nav .guide-nav {
    padding: 5px 8px;
  }
  .hero {
    background-position: 75% center;
  }
  .hero-inner {
    padding-block: 36px;
  }
  .hero-kicker {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .hero-kicker i {
    width: 15px;
  }
  h1 {
    font-size: clamp(59px, 14vw, 82px);
  }
  .hero-sub {
    font-size: 14px;
  }
  .primary {
    font-size: 12px;
    min-height: 38px;
    margin-top: 18px;
  }
  .meters {
    display: flex;
    flex-wrap: wrap;
    padding-block: 8px;
    gap: 6px 0;
  }
  .metric,
  .metric:first-child {
    flex: 1;
    padding: 3px 7px;
  }
  .metric:first-child {
    padding-left: 0;
  }
  .metric:last-child {
    padding-right: 0;
  }
  .metric-title {
    letter-spacing: 0;
    font-size: 8px;
  }
  .metric-value {
    font-size: 20px;
  }
  .metric small {
    font-size: 9px;
  }
  .metric .bar {
    margin-top: 4px;
  }
  .dispatch {
    padding: 14px 12px;
    margin: 17px 0 23px;
    gap: 7px 12px;
  }
  .dispatch-tools {
    gap: 10px;
  }
  .dispatch-tools button,
  .undo {
    font-size: 11px;
  }
  .dark-button {
    padding: 7px 10px;
    font-size: 11px;
    gap: 6px;
    min-height: 35px;
  }
  .dispatch-tag .kicker {
    font-size: 9px;
  }
  .nav-symbol {
    width: 11px;
    height: 14px;
  }
  .dispatch-body h2 {
    font-size: 19px;
  }
  .desk-head {
    align-items: end;
    gap: 9px;
  }
  .desk-head h2 {
    font-size: 29px;
  }
  .views button {
    padding: 5px 7px;
    font-size: 11px;
  }
  .workspace-grid {
    display: block;
    margin-top: 14px;
  }
  #episodes {
    display: none;
  }
  .filters {
    padding: 12px;
  }
  .filter-line {
    gap: 6px;
  }
  .filter-line select {
    font-size: 11px;
    max-width: 175px;
  }
  .hide {
    margin-left: 0;
  }
  .row {
    padding: 9px 11px;
    grid-template-columns: 17px minmax(0, 1fr);
    gap: 3px 8px;
  }
  .row.nested {
    padding-left: 21px;
  }
  .category {
    grid-column: 2;
    justify-self: start;
    background: none;
    border: 0;
    padding: 0;
    max-width: 100%;
  }
  .ep-heading,
  .group > summary {
    padding-inline: 11px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .foot {
    flex-wrap: wrap;
    gap: 10px 14px;
  }
  #recent {
    max-width: 125px;
    text-align: right;
  }
}
@media (max-width: 390px) {
  nav { gap: 9px; }
  nav .guide-nav span { display: none; }
  nav a:first-child {
    display: none;
  }
  .hero-inner {
    padding-block: 30px;
  }
  .dispatch-action {
    align-items: end;
  }
  .dispatch {
    gap: 6px;
  }
  .hide {
    font-size: 11px;
  }
  .filter-line select {
    max-width: 135px;
  }
  .metric-value {
    font-size: 18px;
  }
}
@media print {
  .mast,
  .hero,
  .meters-area,
  .dispatch,
  .filters,
  .views,
  .row-tools,
  .more,
  .support,
  footer,
  #episodes {
    display: none;
  }
  .workspace-grid {
    display: block;
  }
  .content {
    padding: 0;
  }
  .notebook {
    border: 0;
  }
  .row {
    break-inside: avoid;
  }
}
.flag {
  font: 700 10px var(--mono);
  margin: 6px 0;
  color: #865e0c;
}
.steam-rate,
.info-source a {
  color: #245e66;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 11px;
}
.steam-rate {
  display: inline-block;
  margin-bottom: 6px;
}
.info-source a + a {
  margin-left: 6px;
}
#stats > .mini {
  margin-top: 14px;
}

.next-warning {
  font-size: 12px;
  line-height: 1.45;
  color: #72551e;
  margin: 3px 0;
}
.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 19px;
  background: #e7ece2;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.shelf-head a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trophy-meta {
  max-width: none;
  white-space: nowrap;
  color: #3a5855;
}
.trophy-meta small {
  display: block;
  font-size: 10px;
  font-weight: 500;
}
@media (max-width: 650px) {
  .trophy-meta small {
    display: inline;
  }
  .trophy-meta small:before {
    content: ' · ';
  }
}
