.tools-hero {
  padding: clamp(44px, 7vw, 88px) 0;
  background: radial-gradient(ellipse at top right, #24264d, transparent 68%), var(--b-night);
  color: #eef0ff;
}
.tools-wrap { width: min(calc(100% - 40px), 1080px); margin: auto; }
.tools-hero a { color: var(--b-amber); }
.tools-hero h1 {
  max-width: 840px;
  margin: 14px 0;
  font: 800 clamp(36px, 6vw, 70px)/1.05 var(--b-display);
  letter-spacing: -.04em;
}
.tools-hero p { max-width: 64ch; margin: 0; color: #c0c4dc; font-size: 18px; }
.tools-main { padding: clamp(30px, 6vw, 68px) 0; }
.tools-main h2 { margin: 0 0 14px; font: 800 clamp(24px, 3.5vw, 34px)/1.15 var(--b-display); }
.tools-main h3 { margin: 0 0 8px; font: 750 21px/1.25 var(--b-display); }
.tools-main p { margin: 0 0 16px; color: var(--b-soft); }
.tools-main a:not(.tool-button) { color: #795414; text-decoration: underline; text-underline-offset: 3px; }
.tool-panel {
  min-width: 0;
  background: var(--b-card);
  border: 1px solid var(--b-line);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 36px);
}
.tool-layout, .tool-fields { display: grid; gap: 18px; }
.tool-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.tool-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-field { display: grid; align-content: start; gap: 5px; min-width: 0; }
.tool-field label { font-weight: 700; }
@media (min-width: 521px) {
  .tool-field { grid-row: span 3; grid-template-rows: subgrid; }
  .tool-field:last-child { grid-column: 1 / -1; }
}
.tool-fields input, .tool-fields select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 8px;
  border: 1px solid #827c99;
  border-radius: 8px;
  background: white;
  color: var(--b-ink);
  font: 400 1rem var(--b-body);
}
.tool-fields small { display: block; font-weight: 400; color: var(--b-soft); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tool-button, .tools-main a.tool-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--b-night);
  color: white;
  font: 700 1rem var(--b-body);
  cursor: pointer;
}
.tool-button:hover { background: var(--b-night2); }
.tool-button:disabled { opacity: .55; cursor: default; }
.tool-reset, .tool-reset:hover { background: transparent; color: var(--b-ink); border-color: #827c99; }
.tools-page :focus-visible { outline: 2px solid #795414; outline-offset: 3px; }
.tool-result { margin-top: 22px; padding: 18px; background: #f0ece4; border-left: 4px solid #bd8229; border-radius: 8px; }
.tool-result p, .tool-panel p:last-child { margin-bottom: 0; }
.tool-details { margin-top: 28px; }
@media (max-width: 900px) { .tool-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tool-fields { grid-template-columns: 1fr; } }

.tool-result h3 { font-size: clamp(22px, 3vw, 29px); }
.tool-result h3:focus-visible { outline-offset: 4px; border-radius: 4px; }
.tool-result .decision-reason { margin-bottom: 12px; }
.decision-example {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--b-card);
}

.tool-fields .tool-full { grid-column: 1 / -1; }
.tool-field textarea, .tool-output textarea {
  width: 100%;
  min-height: 105px;
  resize: vertical;
  padding: 10px;
  border: 1px solid #827c99;
  border-radius: 8px;
  background: white;
  color: var(--b-ink);
  font: 400 1rem/1.5 var(--b-body);
}
.tool-output textarea { display: block; margin: 5px 0 8px; }
.tool-output .tool-button { margin-bottom: 15px; }
.tool-output label { font-weight: 700; }
.tool-siblings { margin-top: 20px; }

.workweek { margin: 18px 0 0; padding: 8px 12px; border: 1px solid var(--b-line); border-radius: 8px; }
.workweek legend { font-weight: 700; }
.week-options { display: flex; flex-wrap: wrap; gap: 0 12px; }
.week-options label { display: inline-flex; gap: 5px; align-items: center; min-height: 36px; }
.tool-button[hidden] { display: none; }

.workweek { min-width: 0; }

.tool-eyebrow,
.preview-label {
  font: 600 12px/1.5 var(--b-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.tool-inline { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.tool-hub .tools-hero {
  background: #e9e8fa;
  color: var(--b-ink);
  border-bottom: 1px solid #d7d4ec;
  padding: clamp(38px, 6vw, 80px) 0;
}
.hub-hero-layout,
.hub-tool-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 80px);
}
.tool-hub .tools-hero h1 {
  font-size: clamp(40px, 5.1vw, 70px);
  line-height: .97;
  margin: 13px 0 20px;
}
.tool-hub .tools-hero p { color: var(--b-soft); }
.tool-hub .tools-hero :is(.tool-eyebrow, .preview-label) { color: #46417f; font-size: 12px; }
.tool-hub .tools-hero .hub-intro { max-width: 37ch; font-size: clamp(16px, 2vw, 20px); }
.tool-hub .tools-hero .tool-button { color: white; margin-top: 23px; }
.tool-hub .tools-hero .hub-note { margin-top: 10px; font-size: 14px; }
.hub-decision {
  background: #fffcff;
  border: 1px solid #c9c4e7;
  border-radius: 14px;
  padding: clamp(19px, 3.5vw, 35px);
  box-shadow: 7px 7px 0 #d8d4ef;
}
.tool-hub .hub-decision .preview-subject {
  margin: 8px 0 19px;
  color: var(--b-ink);
  font: 760 clamp(20px, 3vw, 30px)/1.15 var(--b-display);
}
.preview-decision {
  background: #eeedf9;
  border-left: 3px solid #7368af;
  border-radius: 4px 9px 9px 4px;
  padding: 13px 15px;
  margin: 0 0 12px;
}
.tool-hub .preview-decision p { margin: 4px 0 0; font-size: 15px; }
.tool-hub .hub-decision .tool-inline { color: #443779; text-decoration: underline; }
.hub-tool-row {
  padding: clamp(23px, 4.5vw, 48px);
  margin-bottom: 22px;
  border: 1px solid var(--b-line);
  border-radius: 16px;
}
.hub-draft { background: #e4eee4; }
.hub-timing { background: #f5e9d2; }
.hub-tool-row h2 {
  max-width: 16ch;
  font-size: clamp(30px, 4.5vw, 52px);
  letter-spacing: -.035em;
}
.hub-tool-row .tool-eyebrow { margin-bottom: 9px; }
.hub-message,
.hub-calendar {
  background: #fffdf8;
  border: 1px solid var(--b-line);
  border-radius: 11px;
  padding: clamp(15px, 3vw, 26px);
}
.hub-message > p:not(.preview-label) {
  font-size: clamp(16px, 2.25vw, 21px);
  color: var(--b-ink);
}
.hub-message .preview-label { border-bottom: 1px solid var(--b-line); padding-bottom: 10px; }
.preview-week {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 15px;
  padding: 0;
}
.preview-week li {
  background: #f5f1e8;
  color: #303042;
  border: 1px solid var(--b-line);
  border-radius: 7px;
  text-align: center;
  padding: 9px 2px;
}
.preview-week li:last-child { background: #ffe6b5; border-color: #e2b96f; }
.preview-week strong,
.preview-week span { display: block; }
.preview-week span { font-size: 12px; }
.hub-proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 12px 25px;
  border-top: 1px solid var(--b-line);
  border-bottom: 1px solid var(--b-line);
  padding: clamp(22px, 4vw, 42px) 0;
  margin: 38px 0;
}
.hub-proof > .tool-eyebrow { color: #795414; }
.hub-end {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.hub-end h2 { font-size: clamp(22px, 3vw, 29px); }
.hub-end ul { padding-left: 20px; margin: 0; }

.tool-check { --tool-accent: #eeebfb; --tool-ink: #483b83; }
.tool-write { --tool-accent: #e9f2e8; --tool-ink: #25583e; }
.tool-plan { --tool-accent: #f9edd5; --tool-ink: #704910; }
:is(.tool-check, .tool-write, .tool-plan) .tools-hero {
  background: var(--tool-accent);
  color: var(--b-ink);
  border-bottom: 1px solid var(--b-line);
  padding: clamp(24px, 4vw, 44px) 0;
}
:is(.tool-check, .tool-write, .tool-plan) .tools-hero :is(a, p) { color: var(--tool-ink); }
:is(.tool-check, .tool-write, .tool-plan) .tools-hero h1 { font-size: clamp(34px, 5.2vw, 63px); }
:is(.tool-check, .tool-write, .tool-plan) .tools-main { padding-top: clamp(22px, 3vw, 38px); }
:is(.tool-check, .tool-write, .tool-plan) .tool-layout > section { border-radius: 13px; }
.tool-aside {
  min-width: 0;
  background: var(--tool-accent);
  border: 1px solid var(--b-line);
  border-radius: 13px;
  padding: clamp(20px, 3vw, 32px);
}
.tool-aside h2 { font-size: clamp(23px, 3vw, 33px); letter-spacing: -.02em; }
.tool-aside .tool-eyebrow { color: var(--tool-ink); margin-bottom: 9px; }
.tools-main .tool-aside a.tool-inline { color: var(--tool-ink); }
.tool-aside .aside-example {
  border-top: 1px solid var(--b-line);
  margin: 20px 0 0;
  padding-top: 14px;
}
.tool-aside p.aside-example { margin-bottom: 4px; }
.aside-example p { margin-bottom: 8px; }
.aside-example .preview-label { color: var(--tool-ink); }
.tool-example {
  min-height: 44px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--tool-ink);
  font: 700 1rem var(--b-body);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.tool-result { background: var(--tool-accent, #f0ece4); border-color: var(--tool-ink, #bd8229); }
.tool-write .tool-field textarea { min-height: 76px; }
.tool-write .tool-field.tool-full { grid-row: auto; grid-template-rows: auto auto; }
.tool-write .tool-fields { row-gap: 15px; }
.tool-write .optional { color: var(--b-soft); font-weight: 400; }
.tools-main .draft-private { margin: 8px 0 10px; font-size: 14px; }
.draft-ai summary { min-height: 40px; padding: 6px 0; color: var(--tool-ink); font-weight: 700; cursor: pointer; }
.draft-ai[open] { border-top: 1px solid var(--b-line); padding-bottom: 12px; }
.draft-ai p { margin-bottom: 10px; font-size: 14px; }
#draft-status:not(:empty) { margin: 9px 0 0; }
.tool-scan {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid var(--b-line);
}
.tools-main .tool-scan p { flex: 1 1 350px; margin: 0; }
@media (max-width: 760px) {
  .hub-hero-layout, .hub-tool-row, .hub-proof, .hub-end { grid-template-columns: 1fr; }
  .hub-proof > .tool-eyebrow { margin: 0; }
}

.hub-research { margin: clamp(32px, 6vw, 64px) 0 38px; }
.hub-research > h2 { max-width: 24ch; margin-bottom: 20px; }
.hub-research .hub-proof { margin: 0; border-bottom: 0; align-items: start; }
.hub-research .hub-proof:last-child { border-bottom: 1px solid var(--b-line); }
.tools-main .research-figure { margin: 0; color: var(--b-ink); }
.research-figure strong {
  display: block;
  font: 800 clamp(32px, 4.5vw, 61px)/1 var(--b-display);
  letter-spacing: -.05em;
}
.research-figure span {
  display: block;
  margin-top: 5px;
  color: var(--b-soft);
  font-size: 14px;
}
.hub-scan-mark { display: block; border-radius: 10px; margin: 0 0 10px; }
.hub-lead { scroll-margin-top: 25px; }
.tools-main .hub-lead :is(h2, p, a:not(.tool-button)) { color: inherit; }
.tools-main .hub-lead a:not(.tool-button) { color: #ffd28a; }
