:root {
  --ink: #112033;
  --muted: #5b6878;
  --soft: #f5f8fc;
  --paper: #ffffff;
  --line: #dce5ef;
  --blue: #2463eb;
  --blue-dark: #1747ac;
  --green: #0f9f7a;
  --green-soft: #eaf8f3;
  --amber: #b7791f;
  --shadow: 0 18px 50px rgba(17, 32, 51, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(36, 99, 235, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 99, 235, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

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

button,
input,
select {
  min-width: 0;
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(220, 229, 239, 0.9);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: white;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 10px 24px rgba(36, 99, 235, 0.24);
  font-size: 13px;
  font-weight: 900;
}

.brand-text {
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 11px;
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--blue-dark);
  background: #edf4ff;
  outline: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

main {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(34px, 7vw, 82px) 0 24px;
}

.hero-section > *,
.content-layout > * {
  min-width: 0;
}

.text-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.68fr);
}

.hero-copy {
  min-width: 0;
  max-width: 640px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.hero-copy p:not(.section-kicker),
.article-content p,
.article-content li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.tool-card,
.results-card,
.article-content,
.ad-slot,
.random-output {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.tool-card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.solver-form {
  display: grid;
  gap: 18px;
}

.field-stack label,
.options-grid span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
}

.input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.tool-card:not(.compact-tool) .input-action {
  position: relative;
  display: block;
}

.tool-card:not(.compact-tool) .clear-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 82px;
  min-height: 48px;
}

.compact-tool .input-action {
  grid-template-columns: minmax(0, 1fr) auto;
}

input,
select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid #c9d6e4;
  border-radius: var(--radius);
  background: var(--paper);
  outline: none;
}

#letters {
  height: 68px;
  padding-right: 108px;
  font-size: clamp(18px, 2.5vw, 27px);
  font-weight: 850;
  letter-spacing: 0;
}

#letters::placeholder {
  color: #778393;
  font-size: 15px;
  font-weight: 700;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 99, 235, 0.12);
}

.input-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.form-message {
  min-height: 0;
  margin: 6px 0 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 750;
}

.primary-btn,
.secondary-btn,
.clear-btn,
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 900;
}

.primary-btn {
  color: white;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 12px 24px rgba(36, 99, 235, 0.22);
}

.primary-btn:disabled {
  opacity: 0.7;
}

.secondary-btn:disabled,
.copy-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.secondary-btn,
.clear-btn,
.copy-btn {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper);
}

.action-row {
  display: grid;
}

.advanced-options {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.advanced-options summary {
  padding: 15px;
  font-weight: 900;
  cursor: pointer;
}

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

.options-grid.one-line {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding: 0;
}

.banner-ad {
  margin: 6px 0 26px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 92px;
  color: #7b8794;
  background: #f2f5f8;
  box-shadow: none;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
  padding-bottom: 70px;
}

.sidebar-ad {
  min-width: 0;
}

.sidebar-sticky {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.sidebar-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(17, 32, 51, 0.08);
}

.sidebar-panel h2 {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #cfe0f2;
  font-size: 20px;
  line-height: 1.15;
}

.sidebar-list {
  display: grid;
  gap: 10px;
}

.sidebar-tool-list {
  display: grid;
  gap: 8px;
}

.sidebar-tool-list a {
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.sidebar-tool-list span {
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.sidebar-tool-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.sidebar-tool-list a:hover {
  border-color: rgba(15, 159, 122, 0.32);
  background: var(--green-soft);
}

.sidebar-list a {
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.sidebar-list a:hover,
.sidebar-word-grid a:hover {
  color: var(--green);
  text-decoration: underline;
}

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

.sidebar-word-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: var(--blue-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 14px;
  font-weight: 850;
}

.side-ad {
  min-height: 280px;
}

.results-card {
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 26px;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.results-toolbar h2 {
  margin-bottom: 0;
}

.results-summary {
  padding: 14px 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.word-group {
  margin-top: 22px;
}

.word-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
}

.word-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.word-name {
  color: var(--blue-dark);
  font-size: 19px;
  font-weight: 900;
}

.word-name:hover,
.detail-link:hover {
  text-decoration: underline;
}

.word-meta {
  color: var(--muted);
  font-size: 13px;
}

.word-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-link {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.copy-btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.inline-ad {
  margin-top: 22px;
}

.article-content {
  padding: clamp(22px, 4vw, 36px);
  margin-bottom: 26px;
  min-width: 0;
}

.article-content h2:not(:first-child) {
  margin-top: 34px;
}

.steps-list,
.check-list {
  padding-left: 22px;
}

.article-ad {
  margin: 28px 0;
}

.compact-tool {
  max-width: 620px;
  width: 100%;
}

.random-output {
  margin-top: 18px;
  padding: 18px;
  color: var(--muted);
  box-shadow: none;
}

.random-output strong,
.random-word-link {
  display: inline-block;
  color: var(--blue-dark);
  font-size: 26px;
  font-weight: 900;
}

.random-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: white;
  border-radius: var(--radius);
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.dictionary-layout {
  padding-top: clamp(28px, 5vw, 56px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--blue-dark);
}

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

.dictionary-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: var(--shadow);
}

.dictionary-hero h1 {
  margin-bottom: 10px;
}

.word-score-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 170px;
  padding: 18px;
  color: white;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.word-score-card span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.word-score-card strong {
  font-size: 48px;
  line-height: 1;
}

.word-score-card .copy-btn {
  color: white;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.word-stat-grid,
.validity-grid,
.tool-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.word-stat-grid div,
.validity-grid div,
.tool-link-grid a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.word-stat-grid span,
.validity-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.word-stat-grid strong,
.validity-grid strong {
  color: var(--ink);
  font-size: 22px;
}

.validity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.validity-grid .is-valid {
  border-color: rgba(15, 159, 122, 0.28);
  background: var(--green-soft);
}

.validity-grid .is-invalid {
  border-color: rgba(180, 35, 24, 0.22);
  background: #fff4f2;
}

.example-text {
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
}

.muted-text {
  color: var(--muted);
}

.source-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.sense-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.sense-list li {
  color: var(--muted);
  line-height: 1.65;
}

.sense-list span {
  display: block;
  margin-top: 4px;
  color: #3f4d5d;
  font-size: 14px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--blue-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-weight: 850;
}

.two-column-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.two-column-content h2 {
  font-size: clamp(21px, 2vw, 28px);
}

.tool-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.tool-link-grid a {
  color: var(--blue-dark);
  font-weight: 900;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.blog-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.blog-card h2,
.blog-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.22;
}

.blog-card a {
  color: var(--blue-dark);
}

.blog-card a:hover {
  color: var(--green);
  text-decoration: underline;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.blog-card .compact-text {
  font-size: 14px;
  line-height: 1.55;
}

.blog-card .secondary-btn {
  justify-self: start;
  margin-top: 4px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.editorial-note,
.toc-box,
.worked-example,
.author-box {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.editorial-note {
  border-color: rgba(15, 159, 122, 0.28);
  background: var(--green-soft);
}

.editorial-note strong,
.toc-box strong,
.worked-example strong,
.author-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.toc-box ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.toc-box a {
  color: var(--blue-dark);
  font-weight: 850;
}

.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}

.takeaway-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.example-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.example-tiles span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #c9d6e4;
  border-radius: var(--radius);
  background: white;
  color: var(--blue-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.author-box {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: white;
}

.author-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: white;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 950;
}

.author-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.author-box p {
  margin-bottom: 0;
  font-size: 15px;
}

.article-hero-visual {
  margin: 24px 0;
}

.article-hero-visual img,
.author-profile-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.article-hero-visual figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.example-table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.example-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

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

.example-table th {
  color: var(--ink);
  background: var(--soft);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.example-table tr:last-child td {
  border-bottom: 0;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid rgba(36, 99, 235, 0.24);
  border-radius: var(--radius);
  background: #f4f8ff;
}

.download-card p {
  margin-bottom: 0;
}

.author-profile-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.author-profile-card img {
  max-width: 180px;
}

.editorial-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.article-cta {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(15, 159, 122, 0.28);
  border-radius: var(--radius);
  background: var(--green-soft);
}

.article-cta p {
  margin-bottom: 12px;
}

.inline-submit {
  min-width: 136px;
}

.site-footer {
  background: #0d1b2f;
  color: white;
}

.footer-inner {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(150px, 0.75fr));
  gap: 28px;
  padding: 38px 0;
}

.footer-inner p {
  max-width: 520px;
  margin: 14px 0 0;
  color: #c6d1df;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a {
  width: fit-content;
  padding: 4px 0;
  color: #dce5ef;
  font-weight: 750;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 74px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-section,
  .text-hero,
  .content-layout,
  .dictionary-hero,
  .two-column-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .sidebar-ad {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
    padding: 12px 14px;
  }

  .brand-text {
    max-width: 210px;
    line-height: 1.1;
  }

  .site-nav {
    inset: 68px 14px auto;
  }

  main,
  .footer-inner {
    width: calc(100vw - 28px);
  }

  .hero-section {
    padding-top: 34px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.02;
  }

  .article-content h1,
  .text-hero h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .article-content {
    padding: 20px;
  }

  .article-meta {
    gap: 8px 14px;
  }

  .input-action,
  .options-grid,
  .options-grid.one-line,
  .word-stat-grid,
  .validity-grid,
  .tool-link-grid,
  .blog-grid,
  .takeaway-grid,
  .download-card,
  .author-profile-card,
  .results-toolbar,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  #letters {
    height: 60px;
    padding-right: 14px;
    font-size: 18px;
  }

  #letters::placeholder {
    font-size: 13px;
  }

  .tool-card:not(.compact-tool) .input-action {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tool-card:not(.compact-tool) .clear-btn {
    position: static;
    justify-self: end;
    min-width: 88px;
  }

  .clear-btn {
    min-height: 40px;
  }

  .footer-col {
    gap: 6px;
  }

  .author-box {
    grid-template-columns: 1fr;
  }
}
