:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --paper-2: #e9f2ee;
  --surface: #fffefa;
  --surface-raised: #ffffff;
  --ink: #17212b;
  --muted: #65727e;
  --line: #d8dedc;
  --line-soft: #ebefed;
  --brand: #0f6b68;
  --brand-strong: #0b3f45;
  --accent: #c45a2d;
  --gold: #b47d19;
  --ok: #1f7a55;
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.1);
  --shadow-soft: 0 8px 22px rgba(23, 33, 43, 0.06);
  --container: min(1180px, calc(100% - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(196, 90, 45, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(15, 107, 104, 0.16), transparent 26rem),
    linear-gradient(120deg, rgba(11, 63, 69, 0.055) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  line-height: 1.55;
}

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

a:hover {
  color: var(--brand);
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(15, 107, 104, 0.25);
  outline-offset: 2px;
}

.site-header,
main,
.site-footer {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(11, 63, 69, 0.18);
  background: rgba(244, 241, 232, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--brand-strong);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 107, 104, 0.5);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #dff0ea);
  color: var(--brand);
  box-shadow: inset 0 -3px 0 rgba(11, 63, 69, 0.1);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-header nav a {
  padding: 8px 10px;
  border-radius: 7px;
  color: #52616e;
  font-size: 0.94rem;
  font-weight: 650;
}

.site-header nav a:hover {
  background: rgba(255, 254, 250, 0.9);
  color: var(--brand-strong);
}

main {
  padding: 30px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumb-sep {
  color: #9aa8a6;
}

.workbench,
.page-head,
.section,
.search-panel,
.ad-slot,
.site-footer {
  border: 1px solid rgba(11, 63, 69, 0.16);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.9);
  box-shadow: var(--shadow);
}

.workbench {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(330px, 1.12fr);
  gap: 26px;
  align-items: start;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(11, 63, 69, 0.97), rgba(15, 107, 104, 0.9)),
    var(--brand-strong);
  color: #f8fbf8;
}

.workbench::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -9rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.11), transparent 66%);
  pointer-events: none;
}

.page-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1.08fr);
  gap: 24px;
  align-items: stretch;
  padding: 24px;
}

.rich-head {
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.95), rgba(230, 244, 239, 0.96)),
    var(--surface);
}

.page-head p,
.workbench p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.workbench p {
  color: rgba(248, 251, 248, 0.76);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workbench .eyebrow {
  color: #f0c58b;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.15rem, 4.6vw, 4.45rem);
  max-width: 12ch;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.section {
  padding: 22px;
}

.section p {
  margin: 0 0 14px;
  color: var(--muted);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin-bottom: 0;
}

.section-title > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(15, 107, 104, 0.16);
  border-radius: 999px;
  background: #eef8f3;
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.app-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: #fff;
  font-weight: 850;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}

.meta-pills,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta-pills span,
.hero-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(15, 107, 104, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 760;
}

.hero-stats span {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  color: #f8fbf8;
}

.hero-stats strong {
  margin-right: 5px;
  color: #f0c58b;
}

.answer-panel {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(15, 107, 104, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
}

.answer-panel span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.answer-panel p {
  color: #34414c;
  font-size: 1.05rem;
}

.search-panel {
  position: relative;
  z-index: 1;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.workbench .search-panel {
  background: rgba(255, 254, 250, 0.96);
}

.search-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr);
  gap: 10px;
  margin-bottom: 14px;
}

label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(23, 33, 43, 0.03);
}

input:focus,
select:focus {
  border-color: rgba(15, 107, 104, 0.55);
  outline: 0;
}

.result-list {
  display: grid;
  gap: 9px;
}

.result-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-row {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 107, 104, 0.045), transparent 24%),
    var(--surface-raised);
  box-shadow: 0 1px 0 rgba(23, 33, 43, 0.03);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.result-row strong {
  color: var(--ink);
}

.result-row span,
.result-row small {
  color: var(--muted);
}

.result-row small {
  font-size: 0.78rem;
}

.result-row:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 107, 104, 0.45);
  box-shadow: var(--shadow-soft);
  color: inherit;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.app-tile {
  min-height: 146px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 248, 245, 0.95)),
    var(--surface);
  box-shadow: 0 1px 0 rgba(23, 33, 43, 0.03);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.app-tile strong,
.app-tile span,
.app-tile small {
  display: block;
}

.app-tile strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.app-tile span:not(.app-icon),
.app-tile small {
  color: var(--muted);
  font-size: 0.82rem;
}

.app-tile small {
  margin-top: 10px;
  color: #53645f;
}

.app-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 107, 104, 0.45);
  box-shadow: var(--shadow-soft);
}

.table-hint {
  max-width: 72ch;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(23, 33, 43, 0.03);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 66px;
  z-index: 2;
  color: var(--brand-strong);
  background: #eef6f3;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

td:first-child {
  width: 28%;
  color: #1f2a37;
  font-weight: 720;
}

tr:nth-child(even) td {
  background: #fbfdfb;
}

tr:hover td {
  background: #f4faf7;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

kbd {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #aeb9c2;
  border-radius: 6px;
  background: linear-gradient(#fff, #eef2f3);
  color: #111827;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.25;
  white-space: normal;
  box-shadow: inset 0 -2px 0 rgba(31, 42, 55, 0.14);
  cursor: copy;
}

kbd.copied {
  border-color: var(--ok);
  color: var(--ok);
}

.check-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.check-list li + li {
  margin-top: 8px;
}

details {
  border-top: 1px solid var(--line-soft);
  padding: 12px 0;
}

details:first-of-type {
  border-top: 0;
}

summary {
  cursor: pointer;
  font-weight: 760;
}

.source-note {
  padding: 14px 16px;
  border: 1px solid rgba(180, 125, 25, 0.3);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff9ea;
  color: var(--muted);
}

.source-note strong {
  color: var(--ink);
}

.ad-slot {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-style: dashed;
  box-shadow: none;
  background:
    repeating-linear-gradient(135deg, rgba(15, 107, 104, 0.045) 0 8px, transparent 8px 16px),
    rgba(255, 254, 250, 0.82);
  color: #738079;
  text-align: center;
}

.ad-slot span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.article-body {
  max-width: 820px;
}

.site-footer {
  padding: 22px;
  margin-bottom: 24px;
  color: var(--muted);
  box-shadow: none;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .workbench,
  .page-head,
  .split {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .app-grid,
  .result-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 20px, 1180px);
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    justify-content: flex-start;
  }

  .workbench,
  .page-head,
  .section {
    padding: 16px;
  }

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

  .search-controls,
  .app-grid,
  .result-list.compact {
    grid-template-columns: 1fr;
  }

  th {
    top: 0;
  }

  th,
  td {
    padding: 10px;
  }
}
