:root {
  --bg: #f4f7fb;
  --panel: #fff;
  --text: #15202e;
  --muted: #5c6878;
  --line: #d7e0ea;
  --accent: #0f766e;
  --soft: #eaf7f4;
  --shadow: 0 18px 50px rgba(26, 39, 60, .1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #eef6f4 0, #f8fafc 340px, var(--bg) 100%);
  color: var(--text);
  line-height: 1.55;
}

a { color: #0f5f59; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(14px, 4vw, 48px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 900;
  color: var(--text);
  font-size: 1.08rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: .94rem;
}

nav a {
  padding: 8px 10px;
  border-radius: 7px;
  color: #334155;
}

nav a:hover {
  background: #eef2f7;
  text-decoration: none;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: 28px;
  align-items: end;
  padding: clamp(38px, 7vw, 82px) 0 30px;
}

.eyebrow {
  color: #0f5f59;
  font-weight: 850;
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .08em;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 4.45rem);
  line-height: 1.03;
  letter-spacing: 0;
  margin: 0;
  color: #101928;
}

h2 {
  font-size: clamp(1.32rem, 3vw, 2rem);
  letter-spacing: 0;
  margin: 0 0 14px;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 740px;
}

.search-box,
.calculator,
.info-panel,
.ad-slot,
.content-card,
.tool-card {
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-box,
.calculator,
.info-panel,
.content-card {
  padding: 22px;
}

.calculator form {
  display: grid;
  gap: 14px;
}

.calculator form > button {
  margin-top: 6px;
}

.calculator form.field-grid > button,
.calculator form .full {
  margin-top: 0;
}

label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

input,
select,
textarea,
button {
  width: 100%;
  min-height: 46px;
  border: 1px solid #b8c5d4;
  border-radius: 7px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 118, 110, .18);
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

button {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 900;
  cursor: pointer;
}

button:hover { background: #115e59; }

.tool-section { padding: 28px 0; }

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

.tool-section-header h2 { margin: 0; }
.section-link { font-weight: 850; white-space: nowrap; }

.tool-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.featured-shelf .tool-card:nth-of-type(n + 7) {
  display: none;
}

.tool-card {
  position: relative;
  display: block;
  min-height: 132px;
  padding: 20px;
  color: var(--text);
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}

.tool-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  background: var(--soft);
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(15, 118, 110, .13);
}

.tool-card span {
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
}

.tool-card small {
  color: var(--muted);
  font-size: .94rem;
}

.tool-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #ecfeff;
  border: 1px solid #bae6fd;
  color: #155e75;
  position: relative;
  overflow: hidden;
}

.tool-badge[data-tone="time"] { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.tool-badge[data-tone="convert"] { background: #ecfdf5; border-color: #bbf7d0; color: #166534; }
.tool-badge[data-tone="money"] { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.tool-badge[data-tone="play"] { background: #fdf2f8; border-color: #fbcfe8; color: #9d174d; }

.tool-badge::before,
.tool-badge::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.tool-badge[data-icon="calendar"]::before {
  width: 24px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 5px;
  top: 12px;
  left: 9px;
}

.tool-badge[data-icon="calendar"]::after {
  width: 18px;
  height: 3px;
  background: currentColor;
  top: 18px;
  left: 12px;
  box-shadow: 0 7px 0 -1px currentColor;
}

.tool-badge[data-icon="hourglass"]::before {
  width: 22px;
  height: 26px;
  border: 3px solid currentColor;
  border-radius: 5px;
  clip-path: polygon(0 0,100% 0,58% 50%,100% 100%,0 100%,42% 50%);
}

.tool-badge[data-icon="person"]::before {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  top: 9px;
  left: 15px;
}

.tool-badge[data-icon="person"]::after {
  width: 24px;
  height: 14px;
  border-radius: 14px 14px 5px 5px;
  background: currentColor;
  left: 9px;
  top: 24px;
}

.tool-badge[data-icon="terminal"]::before {
  width: 26px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 5px;
}

.tool-badge[data-icon="terminal"]::after {
  width: 10px;
  height: 10px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
  left: 11px;
  top: 16px;
}

.tool-badge[data-icon="cake"]::before {
  width: 26px;
  height: 17px;
  border-radius: 5px 5px 7px 7px;
  background: currentColor;
  bottom: 7px;
}

.tool-badge[data-icon="cake"]::after {
  width: 4px;
  height: 13px;
  background: currentColor;
  top: 8px;
  left: 19px;
  box-shadow: 0 -5px 0 -1px #facc15;
}

.tool-badge[data-icon="moon"]::before {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: currentColor;
}

.tool-badge[data-icon="moon"]::after {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fdf2f8;
  left: 18px;
  top: 7px;
}

.tool-badge[data-icon="film"]::before {
  width: 28px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 5px;
}

.tool-badge[data-icon="film"]::after {
  width: 4px;
  height: 4px;
  background: currentColor;
  left: 10px;
  top: 12px;
  box-shadow: 0 8px currentColor, 18px 0 currentColor, 18px 8px currentColor;
}

.tool-badge[data-icon="scale"]::before {
  width: 26px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 8px;
  top: 16px;
}

.tool-badge[data-icon="scale"]::after {
  width: 3px;
  height: 10px;
  background: currentColor;
  top: 12px;
  box-shadow: 6px 2px 0 currentColor;
  transform: rotate(35deg);
}

.tool-badge[data-icon="ruler"]::before {
  width: 29px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 4px;
  transform: rotate(-18deg);
}

.tool-badge[data-icon="ruler"]::after {
  width: 3px;
  height: 8px;
  background: currentColor;
  left: 15px;
  top: 16px;
  box-shadow: 7px 0 currentColor, 14px 0 currentColor;
  transform: rotate(-18deg);
}

.tool-badge[data-icon="thermo"]::before {
  width: 9px;
  height: 24px;
  border: 3px solid currentColor;
  border-radius: 9px;
  top: 8px;
}

.tool-badge[data-icon="thermo"]::after {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: currentColor;
  bottom: 7px;
}

.tool-badge[data-icon="route"]::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  left: 9px;
  top: 27px;
  box-shadow: 20px -14px 0 currentColor;
}

.tool-badge[data-icon="route"]::after {
  width: 24px;
  height: 18px;
  border-top: 3px dashed currentColor;
  border-right: 3px dashed currentColor;
  transform: rotate(-20deg);
}

.tool-badge[data-icon="drop"]::before {
  width: 20px;
  height: 26px;
  background: currentColor;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
}

.tool-badge[data-icon="cup"]::before,
.tool-badge[data-icon="coffee"]::before {
  width: 24px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 4px 4px 8px 8px;
  bottom: 9px;
}

.tool-badge[data-icon="cup"]::after,
.tool-badge[data-icon="coffee"]::after {
  width: 9px;
  height: 9px;
  border: 3px solid currentColor;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  right: 6px;
  bottom: 15px;
}

.tool-badge[data-icon="planet"]::before {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: currentColor;
}

.tool-badge[data-icon="planet"]::after {
  width: 34px;
  height: 12px;
  border: 3px solid currentColor;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.tool-badge[data-icon="recipe"]::before {
  width: 24px;
  height: 28px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.tool-badge[data-icon="recipe"]::after {
  width: 12px;
  height: 3px;
  background: currentColor;
  top: 15px;
  box-shadow: 0 7px currentColor;
}

.tool-badge[data-icon="pizza"]::before {
  width: 28px;
  height: 28px;
  background: currentColor;
  clip-path: polygon(50% 0,100% 100%,0 100%);
  transform: rotate(42deg);
}

.tool-badge[data-icon="pizza"]::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fdf2f8;
  left: 17px;
  top: 18px;
  box-shadow: 7px 8px 0 #fdf2f8;
}

.tool-badge[data-icon="runner"]::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  top: 8px;
}

.tool-badge[data-icon="runner"]::after {
  width: 24px;
  height: 18px;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: skew(-22deg) rotate(-10deg);
  top: 20px;
}

.tool-badge[data-icon="fuel"]::before {
  width: 18px;
  height: 25px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.tool-badge[data-icon="fuel"]::after {
  width: 10px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  right: 8px;
  top: 14px;
  border-radius: 0 8px 0 0;
}

.tool-badge[data-icon="screen"]::before {
  width: 28px;
  height: 19px;
  border: 3px solid currentColor;
  border-radius: 4px;
  top: 9px;
}

.tool-badge[data-icon="screen"]::after {
  width: 18px;
  height: 3px;
  background: currentColor;
  bottom: 8px;
}

.tool-badge[data-icon="percent"]::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  left: 11px;
  top: 11px;
  box-shadow: 14px 14px 0 currentColor;
}

.tool-badge[data-icon="percent"]::after {
  width: 3px;
  height: 28px;
  background: currentColor;
  transform: rotate(35deg);
}

.tool-badge[data-icon="tag"]::before {
  width: 26px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 5px;
  transform: rotate(-28deg);
}

.tool-badge[data-icon="tag"]::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  left: 13px;
  top: 14px;
}

.tool-badge[data-icon="receipt"]::before {
  width: 22px;
  height: 28px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.tool-badge[data-icon="receipt"]::after {
  width: 12px;
  height: 3px;
  background: currentColor;
  top: 13px;
  box-shadow: 0 7px currentColor, 0 14px currentColor;
}

.tool-badge[data-icon="wallet"]::before {
  width: 28px;
  height: 21px;
  border: 3px solid currentColor;
  border-radius: 7px;
}

.tool-badge[data-icon="wallet"]::after {
  width: 10px;
  height: 8px;
  border: 3px solid currentColor;
  border-radius: 5px;
  right: 6px;
}

.tool-badge[data-icon="chart"]::before {
  width: 5px;
  height: 12px;
  background: currentColor;
  left: 11px;
  bottom: 9px;
  box-shadow: 8px -6px 0 currentColor, 16px -13px 0 currentColor;
}

.tool-badge[data-icon="chart"]::after {
  width: 27px;
  height: 3px;
  background: currentColor;
  bottom: 8px;
}

.tool-badge[data-icon="split"]::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  top: 9px;
  box-shadow: -10px 20px 0 currentColor, 10px 20px 0 currentColor;
}

.tool-badge[data-icon="split"]::after {
  width: 23px;
  height: 18px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-top: 3px solid currentColor;
  top: 17px;
}

.tool-badge[data-icon="goal"]::before,
.tool-badge[data-icon="target"]::before {
  width: 28px;
  height: 28px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.tool-badge[data-icon="goal"]::after,
.tool-badge[data-icon="target"]::after {
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.tool-badge[data-icon="stack"]::before,
.tool-badge[data-icon="streak"]::before {
  width: 25px;
  height: 7px;
  background: currentColor;
  border-radius: 4px;
  top: 11px;
  box-shadow: 0 9px 0 currentColor, 0 18px 0 currentColor;
}

.tool-badge[data-icon="bolt"]::before {
  width: 20px;
  height: 30px;
  background: currentColor;
  clip-path: polygon(48% 0, 100% 0, 65% 39%, 98% 39%, 34% 100%, 44% 56%, 5% 56%);
}

.tool-badge[data-icon="clock"]::before {
  width: 28px;
  height: 28px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.tool-badge[data-icon="clock"]::after {
  width: 11px;
  height: 11px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  left: 20px;
  top: 11px;
}

.tool-badge[data-icon="doc"]::before {
  width: 23px;
  height: 29px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.tool-badge[data-icon="doc"]::after {
  width: 13px;
  height: 3px;
  background: currentColor;
  top: 14px;
  box-shadow: 0 7px currentColor, 0 14px currentColor;
}

.tool-badge[data-icon="palette"]::before {
  width: 28px;
  height: 24px;
  border-radius: 50% 50% 45% 45%;
  background: currentColor;
}

.tool-badge[data-icon="palette"]::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  left: 12px;
  top: 13px;
  box-shadow: 8px 0 0 #fff, 4px 8px 0 #fff;
}

.article-card {
  display: block;
  padding: 20px;
}

.article-long {
  max-width: 880px;
}

.article-long h2 {
  margin-top: 28px;
}

.article-long p {
  color: var(--muted);
  max-width: 760px;
}

.article-hero {
  margin: 24px 0 30px;
  max-width: 880px;
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 35 / 18;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}


.article-card h3 { color: var(--text); }
.article-card p,
.content-card li { color: var(--muted); }

.story-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #99f6e4;
  background: linear-gradient(135deg, #f0fdfa 0, #fff7ed 100%);
}

.story-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), #f97316);
}

.challenge-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.challenge-header h2 {
  margin: 0;
}

.challenge-kicker,
.challenge-score span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.challenge-kicker {
  color: #fff;
  background: #0f766e;
}

.challenge-intro {
  max-width: 720px;
  margin: 0 0 14px;
  color: #334155;
  font-weight: 650;
}

.challenge-score {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.challenge-score span {
  color: #7c2d12;
  background: rgba(255, 237, 213, .95);
  border: 1px solid #fed7aa;
}

.challenge-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
}

.challenge-steps li {
  padding-left: 4px;
  color: #26364a;
}

.challenge-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0 0;
  font-weight: 850;
}

.challenge-links-label {
  color: #334155;
  margin-right: 2px;
}

.challenge-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #99f6e4;
}

.daily-quest-panel {
  padding: 24px;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0fdfa 0, #fff7ed 100%);
}

.daily-quest-panel .tool-section-header {
  align-items: center;
}

.quest-complete {
  width: auto;
  min-width: 150px;
  padding: 10px 14px;
}

.quest-complete[aria-pressed="true"] {
  color: #14532d;
  background: #dcfce7;
  border-color: #86efac;
}

.quest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quest-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  color: var(--text);
}

.quest-step:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.quest-step span {
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
}

.quest-step strong,
.quest-step small {
  min-width: 0;
}

.quest-step small {
  color: var(--muted);
}

.recent-tools-card a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.guide-band {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
}

.guide-band h2 {
  margin-bottom: 6px;
}

.guide-band .lede {
  margin-top: 0;
  font-size: 1rem;
}

.visual-card {
  overflow: hidden;
  min-height: 170px;
  padding: 18px;
  background: #101928;
  color: #fff;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: var(--shadow);
}

.visual-card h2 {
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.visual-card p {
  color: rgba(255, 255, 255, .78);
  margin: 10px 0 0;
}

.visual-card .visual-action {
  padding: 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 850;
}

.visual-stage {
  min-height: 92px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
}

.pizza-art {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 32%, #b91c1c 0 5px, transparent 6px),
    radial-gradient(circle at 62% 40%, #b91c1c 0 5px, transparent 6px),
    radial-gradient(circle at 50% 68%, #b91c1c 0 5px, transparent 6px),
    radial-gradient(circle, #fde68a 0 58%, #f59e0b 59% 70%, #b45309 71%);
  box-shadow: 0 0 0 8px rgba(251, 191, 36, .16);
}

.orbit-art {
  position: relative;
  width: 112px;
  height: 112px;
  border: 1px dashed rgba(255, 255, 255, .35);
  border-radius: 50%;
}

.orbit-art::before,
.orbit-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.orbit-art::before {
  width: 42px;
  height: 42px;
  left: 34px;
  top: 34px;
  background: #60a5fa;
}

.orbit-art::after {
  width: 18px;
  height: 18px;
  right: 6px;
  top: 18px;
  background: #f97316;
}

.marathon-art {
  display: grid;
  grid-template-columns: repeat(4, 34px);
  gap: 8px;
}

.marathon-art span {
  height: 52px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8fafc, #94a3b8);
  border: 3px solid rgba(255, 255, 255, .3);
}

.sleep-art {
  width: 132px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(90deg, #312e81, #0f172a);
  position: relative;
}

.sleep-art::before {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  right: 26px;
  top: 14px;
  box-shadow: -10px 0 0 #fde68a;
}

.pace-art,
.fuel-art,
.money-art {
  width: 150px;
  height: 62px;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 12px, transparent 12px 24px);
  border: 1px solid rgba(255,255,255,.2);
  position: relative;
}

.pace-art::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 24px;
  width: 82px;
  height: 8px;
  border-radius: 99px;
  background: #22c55e;
  box-shadow: 42px 0 0 #facc15;
}

.fuel-art::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 52px;
  height: 30px;
  border-radius: 6px;
  border: 4px solid #38bdf8;
  box-shadow: 54px 0 0 -8px #f97316;
}

.money-art::after {
  content: "";
  position: absolute;
  inset: 15px 22px;
  border-radius: 6px;
  background: #86efac;
  box-shadow: 12px 8px 0 #22c55e, 24px 16px 0 #15803d;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding: 34px 0 54px;
}

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

.full { grid-column: 1 / -1; }

.result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid #b8ded8;
  font-weight: 900;
  font-size: 1.18rem;
  min-height: 62px;
  overflow-wrap: anywhere;
}

.result pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: 0.95rem/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.result-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 850;
}

.result-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.result-list div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.result-list dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.result-list dd {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.result-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.info-panel,
.content-card { margin-top: 18px; }

.search-results { margin-top: 12px; }

.sidebar {
  position: sticky;
  top: 86px;
}

.ad-slot {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  margin: 18px 0;
  padding: 12px;
  text-align: center;
  box-shadow: none;
  background: #fbfcfe;
}

.ad-slot span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { margin-right: 12px; }
.hidden { display: none !important; }

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero,
  .tool-layout { grid-template-columns: 1fr; }

  .tool-grid,
  .quest-grid,
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .featured-shelf .tool-card:nth-of-type(n + 5) {
    display: none;
  }

  .sidebar { position: static; }
}

@media (max-width: 560px) {
  main,
  .site-footer { width: min(100% - 20px, 1120px); }

  .tool-grid,
  .field-grid,
  .quest-grid,
  .article-grid { grid-template-columns: 1fr; }

  .featured-shelf .tool-card:nth-of-type(n + 3) {
    display: none;
  }

  .tool-section-header { display: block; }
  .section-link { display: inline-block; margin-top: 4px; }
  .hero { padding: 24px 0 18px; gap: 16px; }
  .tool-card { min-height: 104px; }
  nav { gap: 6px; }
  .site-header { padding: 12px 10px; }
  h1 { font-size: 2.15rem; }
}

@media (max-width: 640px) {
  body {
    background: linear-gradient(180deg, #eef6f4 0, #f8fafc 220px, var(--bg) 100%);
  }

  .site-header {
    position: static;
  }

  .brand {
    font-size: 1rem;
  }

  nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
  }

  .eyebrow {
    font-size: .74rem;
    margin-bottom: 8px;
  }

  h1 {
    font-size: clamp(1.9rem, 12vw, 2.45rem);
    line-height: 1.06;
  }

  h2 {
    font-size: 1.32rem;
  }

  .lede {
    font-size: 1rem;
  }

  .search-box,
  .calculator,
  .content-card,
  .guide-band {
    padding: 16px;
  }

  input,
  select,
  textarea,
  button {
    min-height: 50px;
    font-size: 16px;
  }

  button {
    margin-top: 2px;
  }

  .tool-section {
    padding: 20px 0;
  }

  .tool-grid,
  .article-grid {
    gap: 10px;
  }

  .tool-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding: 14px;
  }

  .tool-card span,
  .tool-card small {
    grid-column: 2;
  }

  .tool-card span {
    margin-bottom: 3px;
    line-height: 1.2;
  }

  .tool-card small {
    font-size: .88rem;
    line-height: 1.35;
  }

  .tool-badge {
    grid-row: 1 / span 2;
    width: 38px;
    height: 38px;
    margin: 0;
  }

  .tool-layout {
    padding: 24px 0 36px;
    gap: 16px;
  }

  .result {
    font-size: 1.03rem;
    min-height: 58px;
    padding: 15px;
  }

  .challenge-steps {
    padding-left: 19px;
  }

  .visual-card {
    min-height: auto;
  }

  .visual-stage {
    min-height: 76px;
  }

  .ad-slot {
    min-height: 86px;
    margin: 12px 0;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-footer {
    display: block;
    font-size: .92rem;
  }
}

@media (max-width: 390px) {
  main,
  .site-footer {
    width: min(100% - 16px, 1120px);
  }

  .tool-card {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 10px;
    padding: 12px;
  }

  .tool-badge {
    width: 34px;
    height: 34px;
    transform: scale(.92);
    transform-origin: center;
  }

  .search-box,
  .calculator,
  .content-card,
  .guide-band {
    padding: 14px;
  }
}
