:root {
  --ink: #1a2e28;
  --muted: #5a7268;
  --paper: #f3f6f1;
  --card: #ffffff;
  --line: #d5e0d8;
  --lake: #1f6f6a;
  --lake-deep: #134e4a;
  --sun: #e8a838;
  --ok: #2f8f5b;
  --shadow: 0 12px 40px rgba(26, 46, 40, 0.08);
  --radius: 18px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(31, 111, 106, 0.18), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(232, 168, 56, 0.16), transparent 55%),
    linear-gradient(180deg, #eef4ef 0%, #f7faf6 40%, #eef3f0 100%);
}

.top {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 1rem;
  display: grid;
  gap: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lake);
  font-weight: 700;
}

.top h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.top__stats {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.stat__label {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat__value {
  font-variant-numeric: tabular-nums;
}

.stat__value strong {
  font-size: 1.35rem;
  color: var(--lake-deep);
}

.progress {
  height: 10px;
  background: #e7eee9;
  border-radius: 999px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lake), #3aa39a);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.top__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
}

.toggle {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  color: var(--ink);
  border-color: #b8c9bf;
}

.btn--link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  color: var(--lake-deep);
  background: #e8f3f1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
}

.btn--link:hover {
  border-color: var(--lake);
  background: #dceeea;
}

.site-nav {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

.site-nav a:hover {
  color: var(--lake-deep);
  border-color: var(--lake);
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--lake);
  border-color: var(--lake);
}

.calc-wrap .site-nav {
  padding: 0 0 1rem;
  max-width: none;
}

.foot a {
  color: var(--lake);
  font-weight: 700;
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

.day-jump {
  max-width: 820px;
  margin: 0 auto 0.5rem;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.day-jump a {
  text-decoration: none;
  color: var(--lake-deep);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.day-jump a:hover {
  background: #fff;
  border-color: var(--lake);
}

.days {
  max-width: 820px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 3rem;
  display: grid;
  gap: 0.9rem;
}

.day {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 0.85rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 1rem;
}

.day.is-complete {
  opacity: 0.72;
}

.day.is-complete .day__num {
  color: var(--ok);
}

.day__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.day__num {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lake);
}

.day h2 {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.day__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.pill {
  display: inline-block;
  max-width: 14rem;
  text-align: right;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--lake-deep);
  background: #e8f3f1;
  border-radius: 8px;
  padding: 0.28rem 0.5rem;
}

.day__count {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 600;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto;
  column-gap: 0.7rem;
  align-items: start;
  padding: 0.55rem 0.45rem;
  border-radius: 12px;
  cursor: pointer;
}

.check:hover {
  background: #f5f9f6;
}

.check__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check__box {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  border: 2px solid #9bb5ab;
  border-radius: 6px;
  background: #fff;
  transition: 0.15s ease;
}

.check__input:checked + .check__box {
  background: var(--lake);
  border-color: var(--lake);
  box-shadow: inset 0 0 0 2px #fff;
}

.check__text {
  color: var(--ink);
}

.check__body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: baseline;
}

.check__link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lake);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(31, 111, 106, 0.35);
}

.check__link:hover {
  color: var(--lake-deep);
  border-bottom-color: var(--lake-deep);
}

.check__input:checked ~ .check__body .check__text {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.check__input:checked ~ .check__text {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

body.hide-done .check:has(.check__input:checked) {
  display: none;
}

body.hide-done .day.is-complete {
  display: none;
}

.foot {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.foot__path code {
  font-size: 0.84em;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

@media (max-width: 560px) {
  .day__head {
    flex-direction: column;
  }

  .day__meta {
    align-items: flex-start;
  }

  .pill {
    text-align: left;
    max-width: none;
  }
}

/* ---------- Calculator ---------- */
.calc-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.calc-wrap .back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--lake);
  font-weight: 700;
  text-decoration: none;
}

.calc-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.calc-head .lede {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.calc-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}

.calc-tab {
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  cursor: pointer;
}

.calc-tab.is-active {
  background: var(--card);
  color: var(--lake-deep);
  border-color: var(--lake);
  box-shadow: var(--shadow);
}

.calc-panel {
  display: none;
  gap: 1rem;
}

.calc-panel.is-active {
  display: grid;
}

.calc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 1.25rem;
}

.calc-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.2rem;
}

.calc-hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.calc-empty {
  margin: 0;
  color: var(--muted);
}

.target-grid {
  display: grid;
  gap: 0.55rem;
}

.target-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7faf7;
  cursor: pointer;
}

.target-card:has(input:checked) {
  border-color: var(--lake);
  background: #e8f3f1;
}

.target-card input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--lake);
}

.target-card__body {
  display: grid;
  gap: 0.15rem;
}

.target-card__body strong {
  font-size: 0.98rem;
}

.target-card__body small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.calc-field--cash {
  grid-column: 1 / -1;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #e8f3f1;
}

.calc-field--cash input {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.calc-field {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.calc-field input,
.calc-field select {
  font: inherit;
  font-weight: 400;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  width: 100%;
}

.track-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}

.track-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.track-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: #f3f6f1;
  cursor: pointer;
}

.track-item input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--lake);
}

.track-item small {
  color: var(--muted);
  margin-left: 0.35rem;
}

.track-status,
.selected-names {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
}

.track-status.is-ok,
.is-ok {
  color: var(--ok);
  font-weight: 600;
}

.track-status.is-warn,
.is-warn {
  color: #b45309;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.calc-table th,
.calc-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.calc-table .num {
  text-align: right;
}

.cost-summary {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.cost-summary .cost-total {
  margin-top: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.cost-summary strong {
  color: var(--lake-deep);
  font-variant-numeric: tabular-nums;
}

.calc-actions {
  margin-top: 1rem;
}

.btn-primary,
.btn-ghost,
.btn-icon {
  font: inherit;
  cursor: pointer;
}

.btn-primary {
  font-weight: 700;
  color: #fff;
  background: var(--lake);
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1rem;
}

.btn-primary:hover {
  background: var(--lake-deep);
}

.btn-ghost {
  font-weight: 600;
  color: var(--lake-deep);
  background: #f3f6f1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  margin-top: 0.75rem;
}

.btn-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  align-self: end;
}

.skill-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.skill-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faf7;
  cursor: pointer;
}

.skill-check:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

.skill-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--lake);
}

.skill-check em {
  font-style: normal;
  color: var(--lake);
  font-weight: 700;
}

.skill-check small {
  color: var(--muted);
}

.fish-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.fish-quick__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-right: 0.2rem;
}

.fish-quick button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--lake-deep);
  cursor: pointer;
}

.fish-rows {
  display: grid;
  gap: 0.65rem;
}

.fish-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr) minmax(0, 0.7fr) auto auto;
  gap: 0.45rem;
  align-items: end;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafcf9;
}

.fish-row__line {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--lake-deep);
  padding-bottom: 0.55rem;
  white-space: nowrap;
}

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

  .fish-row {
    grid-template-columns: 1fr 1fr;
  }

  .fish-row__name {
    grid-column: 1 / -1;
  }

  .fish-row__line {
    padding-bottom: 0;
    align-self: center;
  }
}

/* ---------- Home / summary ---------- */
.home-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.4rem 1.25rem 1.2rem;
}

.home-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.home-hero__lead {
  margin: 0.9rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.home-cta .btn-ghost {
  margin-top: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.home-cta .btn-primary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.home {
  max-width: 820px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 2.5rem;
  display: grid;
  gap: 1rem;
}

.home-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 1.25rem;
}

.home-card h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.25rem;
}

.home-card p {
  margin: 0;
  line-height: 1.5;
}

.home-muted {
  margin-top: 0.65rem !important;
  color: var(--muted);
  font-size: 0.9rem;
}

.home-muted a {
  color: var(--lake);
  font-weight: 700;
  text-decoration: none;
}

.home-bullets {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.home-bullets li {
  line-height: 1.45;
}

.home-table {
  margin-top: 0.25rem;
}

.home-miles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.home-miles li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.home-miles li:last-child {
  border-bottom: 0;
}

.home-miles span {
  font-weight: 700;
  color: var(--lake);
  font-variant-numeric: tabular-nums;
}

.home-tools {
  display: grid;
  gap: 0.55rem;
}

.home-tools a {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7faf7;
}

.home-tools a:hover {
  border-color: var(--lake);
  background: #e8f3f1;
}

.home-tools strong {
  color: var(--lake-deep);
}

.home-tools span {
  color: var(--muted);
  font-size: 0.88rem;
}

body:has(.home-hero) .site-nav {
  margin-bottom: 0.5rem;
}

/* ---------- Bundles ---------- */
.bundle-meta {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.bundle-goal {
  max-width: 820px;
  margin: 0 auto 1rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  width: calc(100% - 2.5rem);
  box-sizing: border-box;
}

.bundle-goal.is-ok {
  color: var(--ok);
  background: #eaf7ef;
  border-color: #b7e0c6;
}

.bundle-goal.is-warn {
  color: #b45309;
  background: #fff7ed;
  border-color: #f5d0a9;
}

.bundle-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: grid;
  gap: 1rem;
}

.bundle-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem 1rem;
}

.bundle-card.is-complete {
  border-color: #8fc9a8;
  background: linear-gradient(180deg, #f4fbf6 0%, #fff 40%);
}

.bundle-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.bundle-card__badge {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bundle-card__badge.p1 { color: var(--lake); }
.bundle-card__badge.p2 { color: #b45309; }
.bundle-card__badge.p3 { color: var(--muted); }

.bundle-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
}

.bundle-card__room {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.bundle-card__count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--lake-deep);
  background: #e8f3f1;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
}

.bundle-card__note {
  margin: 0.65rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.bundle-card__status {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.bundle-card__status.is-ok {
  color: var(--ok);
}

.qty {
  font-style: normal;
  font-weight: 700;
  color: var(--lake);
  margin-left: 0.2rem;
}

body.hide-done-bundles .bundle-card.is-complete {
  display: none;
}

@media (max-width: 560px) {
  .bundle-card__head {
    flex-direction: column;
  }
}

/* ---------- Dictionary ---------- */
.dict-hub {
  max-width: 820px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 2.5rem;
}

.dict-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.dict-cat {
  display: grid;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.dict-cat:hover {
  border-color: var(--lake);
  background: #e8f3f1;
}

.dict-cat strong {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--lake-deep);
}

.dict-cat span {
  color: var(--muted);
  font-size: 0.88rem;
}

.dict-toolbar {
  max-width: 1100px;
}

.dict-search {
  margin: 0.75rem 0;
}

.dict-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.dict-filter-reset {
  min-height: 2.65rem;
  white-space: nowrap;
}

.dict-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.dict-chips button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.dict-chips button.is-active {
  background: var(--lake);
  border-color: var(--lake);
  color: #fff;
}

.dict-count {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.dict-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

.dict-table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.35rem;
}

.dict-table {
  font-size: 0.88rem;
}

.dict-table th {
  position: sticky;
  top: 0;
  background: #f3f6f1;
  z-index: 1;
  white-space: nowrap;
}

.dict-table td {
  vertical-align: top;
  max-width: 22rem;
}

.dict-row.is-expandable {
  cursor: pointer;
}

.dict-row.is-expandable:hover {
  background: #f3faf7;
}

.dict-detail td {
  background: #f7faf7;
  color: var(--muted);
  font-size: 0.84rem;
  max-width: none;
}

.dict-detail pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 1.45;
}

.inline-link {
  color: var(--lake);
  font-weight: 700;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .dict-grid {
    grid-template-columns: 1fr;
  }

  .dict-selects {
    grid-template-columns: 1fr 1fr;
  }

  .dict-filter-reset {
    grid-column: 1 / -1;
  }
}
