:root {
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.11);
  --line-strong: rgba(0, 0, 0, 0.22);
  --accent: #0071e3;
  --accent-2: #248a6b;
  --accent-3: #bf5b2c;
  --danger: #c02d20;
  --soft: #f0f4f8;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 1px 1px rgba(0, 0, 0, 0.04), 0 12px 36px rgba(0, 0, 0, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Inter, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
.file-button {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--surface-strong);
  color: var(--ink);
  border-radius: 8px;
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

button:hover,
.file-button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}

button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.18);
}

.topbar {
  min-height: 72px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(58, 112, 253, 0.22);
  flex: 0 0 auto;
}

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

.brand-title {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.brand-subtitle {
  display: block;
}

.brand-subtitle,
.workbench-intro p,
.section-head p,
.seo-grid p,
.powered p,
.panel-head p,
.input-meta,
.field label,
.metric-strip span {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.top-nav a {
  border-radius: 8px;
  padding: 8px 10px;
  transition: background 160ms ease, color 160ms ease;
}

.top-nav a:hover {
  color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.export-menu {
  position: relative;
}

.export-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  z-index: 20;
}

.export-panel[hidden] {
  display: none;
}

.export-panel button {
  justify-content: flex-start;
  width: 100%;
}

.file-button input {
  display: none;
}

.tool-workbench-section {
  scroll-margin-top: 86px;
  padding: 14px 20px 24px;
  min-height: calc(100vh - 72px);
}

.workbench-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 2px 12px;
}

.eyebrow {
  color: var(--accent);
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 7px;
}

.workbench-intro h1 {
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 760;
}

.workbench-intro h2 {
  font-size: 24px;
  line-height: 1.15;
  margin-top: 6px;
}

.workbench-intro h3 {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 750;
}

.workbench-intro p {
  max-width: 720px;
  line-height: 1.5;
  margin-top: 9px;
}

.quick-facts {
  max-width: 340px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(460px, 1fr) minmax(320px, 430px);
  gap: 16px;
  max-width: 1460px;
  margin: 0 auto;
  height: calc(100vh - 220px);
  min-height: 500px;
}

.panel,
.chart-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow: hidden;
}

.input-panel {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.panel h2,
.panel-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  line-height: 24px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.78);
}

.status-pill.ready {
  color: var(--accent-2);
  border-color: rgba(22, 131, 111, 0.35);
  background: rgba(22, 131, 111, 0.08);
}

textarea {
  flex: 1;
  width: 100%;
  min-height: 310px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  line-height: 1.5;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

textarea:focus,
input:focus,
select:focus {
  outline: 3px solid rgba(0, 113, 227, 0.14);
  border-color: var(--accent);
}

.input-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.input-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.csv-format-note {
  border-left: 3px solid rgba(0, 113, 227, 0.32);
  background: rgba(0, 113, 227, 0.055);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  padding: 9px 10px;
  border-radius: 0 8px 8px 0;
}

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

.csv-format-note code {
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
}

.warnings {
  color: var(--danger);
  font-size: 12px;
  line-height: 1.4;
  min-height: 18px;
}

.chart-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chart-controls {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.primary-controls,
.advanced-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-controls {
  justify-content: space-between;
}

.advanced-controls {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.advanced-controls[hidden] {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.title-field {
  flex: 1 1 180px;
}

.field input,
.field select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-height: 36px;
  min-width: 188px;
  background: rgba(255, 255, 255, 0.72);
}

.segmented button {
  border: 0;
  border-radius: 0;
  min-height: 34px;
}

.toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.secondary-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.chart-shell {
  flex: 1;
  min-height: 0;
  padding: 14px;
}

#boxPlotSvg {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.axis path,
.axis line {
  stroke: var(--line-strong);
}

.grid-line {
  stroke: #e8edf3;
  stroke-width: 1;
}

.axis-label,
.tick-label,
.group-label,
.chart-title {
  fill: var(--ink);
  font-size: 12px;
}

.chart-title {
  font-weight: 700;
  font-size: 18px;
}

.tick-label {
  fill: var(--muted);
}

.box {
  stroke-width: 2;
}

.median-line,
.whisker-line,
.whisker-cap {
  stroke: #172033;
  stroke-width: 2;
}

.mean-marker {
  fill: #fff;
  stroke: #172033;
  stroke-width: 2;
}

.raw-point {
  opacity: 0.35;
}

.outlier-point {
  fill: #fff;
  stroke: var(--danger);
  stroke-width: 2;
}

.results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.results-panel {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.results-panel > * {
  flex-shrink: 0;
}

.results-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.metric-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.68);
  min-width: 0;
}

.metric-strip strong {
  display: block;
  font-size: 19px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.table-wrap {
  display: block;
  width: auto;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.result-details {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.result-details summary {
  cursor: pointer;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
  list-style-position: inside;
}

.result-details .table-wrap,
.result-details .question-grid,
.result-details .ai-answer,
.result-details .wide-button,
.result-details .ai-bullets {
  margin: 0 10px 10px;
  max-width: calc(100% - 20px);
}

.result-details .question-grid {
  margin-top: 0;
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #fff;
}

th {
  color: var(--muted);
  font-weight: 650;
  background: #f8f8fa;
}

.ai-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 113, 227, 0.06);
}

.ai-summary h2,
.ai-title {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
}

.ai-summary p,
.ai-answer,
.ai-bullets {
  line-height: 1.5;
  font-size: 13px;
}

.question-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.question-grid button {
  justify-content: flex-start;
}

.ai-answer {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-strong);
  overflow: auto;
}

.wide-button {
  width: calc(100% - 20px);
}

.ai-bullets {
  margin: 0;
  padding-left: 18px;
  overflow: auto;
}

.ai-bullets li {
  margin-bottom: 8px;
}

.calculation-notes {
  margin-top: 14px;
  max-width: 1460px;
  margin-left: auto;
  margin-right: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.calculation-notes summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 800;
  color: var(--ink);
}

.calculation-notes ul {
  margin: 0;
  padding: 0 18px 16px 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.content-section,
.keyword-page {
  scroll-margin-top: 86px;
  padding: 58px 24px;
}

.content-section,
.keyword-page-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.content-section.alt {
  max-width: none;
  background: #ffffff;
}

.content-section.alt > * {
  max-width: 1132px;
  margin-left: auto;
  margin-right: auto;
}

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

.feature-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article,
.keyword-links a,
.keyword-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.feature-grid article,
.keyword-card {
  padding: 18px;
}

.feature-grid h3,
.keyword-card h2,
.keyword-card h3 {
  font-size: 18px;
  line-height: 1.25;
}

.feature-grid p,
.keyword-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.feature-grid p a {
  color: var(--accent);
  font-weight: 750;
}

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

.toc-grid a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.toc-grid a {
  min-height: 48px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  color: var(--accent);
  font-weight: 750;
  line-height: 1.35;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.toc-grid a:hover {
  background: #fff;
  border-color: rgba(0, 113, 227, 0.32);
  transform: translateY(-1px);
}

.step-list {
  display: grid;
  gap: 12px;
}

.step-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.step-list article > span {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-list h3 {
  font-size: 18px;
}

.step-list p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.internal-link-line {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.internal-link-line a,
.keyword-card a {
  color: var(--accent);
  font-weight: 700;
}

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

.keyword-links a {
  min-height: 58px;
  padding: 14px;
  display: flex;
  align-items: center;
  color: var(--accent);
  font-weight: 750;
}

.page-entry-groups {
  display: grid;
  gap: 18px;
}

.page-entry-group {
  display: grid;
  gap: 10px;
}

.page-entry-group h3 {
  font-size: 18px;
}

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

.page-entry-grid a {
  min-height: 118px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-entry-grid strong {
  color: var(--accent);
  line-height: 1.25;
}

.page-entry-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.keyword-page {
  background: var(--bg);
}

.keyword-page-hero {
  padding: 58px 0 24px;
}

.keyword-page-hero h1 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
}

.keyword-page-hero p {
  margin-top: 14px;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.keyword-tool-entry {
  margin-bottom: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.keyword-tool-entry strong {
  display: block;
  font-size: 18px;
}

.keyword-tool-entry p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.keyword-tool-entry textarea {
  min-height: 96px;
  max-height: 130px;
  resize: vertical;
}

.keyword-tool-entry button {
  min-height: 42px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.keyword-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.keyword-stack {
  display: grid;
  gap: 14px;
}

.keyword-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.keyword-card .button-link {
  margin-top: 14px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
}

.subpage-entrances {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.subpage-entrances h2 {
  font-size: 18px;
}

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

.subpage-entrance-grid a {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--accent);
  font-weight: 700;
  line-height: 1.35;
}

.seo-section,
.powered {
  scroll-margin-top: 86px;
  padding: 52px 24px;
}

.seo-section {
  max-width: 1180px;
  margin: 0 auto;
}

.seo-section.alt,
.export-section {
  max-width: none;
  background: #ffffff;
}

.seo-section.alt > *,
.export-section > * {
  max-width: 1132px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 30px;
  line-height: 1.15;
}

.section-head p {
  margin-top: 8px;
  line-height: 1.6;
}

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

.seo-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-grid article,
.powered {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.seo-grid article {
  padding: 18px;
  min-height: 126px;
}

.seo-grid h3 {
  font-size: 18px;
  line-height: 1.25;
}

.seo-grid p {
  margin-top: 10px;
  line-height: 1.55;
  font-size: 14px;
}

.powered {
  max-width: 1132px;
  margin: 42px auto 56px;
  text-align: center;
}

.powered h2 {
  font-size: 28px;
}

.powered p {
  margin-top: 8px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
  max-width: 360px;
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .top-nav {
    order: 3;
    width: 100%;
  }

  .workspace {
    grid-template-columns: minmax(260px, 330px) minmax(420px, 1fr);
    height: auto;
    min-height: 0;
  }

  .results-panel {
    grid-column: 1 / -1;
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px;
  }

  .top-nav,
  .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .brand-subtitle {
    display: none;
  }

  .export-panel {
    left: 0;
    right: auto;
  }

  .tool-workbench-section {
    min-height: 0;
    padding: 14px;
  }

  .workbench-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
  }

  .workbench-intro h2 {
    font-size: 19px;
  }

  .workbench-intro h3 {
    font-size: 16px;
  }

  .workbench-intro h1 {
    font-size: 32px;
  }

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

  .workspace {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .input-panel {
    order: 1;
    overflow: visible;
  }

  .results-panel {
    order: 2;
    min-height: 0;
    overflow: visible;
  }

  .chart-panel {
    order: 3;
  }

  textarea {
    min-height: 160px;
  }

  .input-hint {
    display: none;
  }

  .primary-controls,
  .advanced-controls {
    align-items: stretch;
  }

  .segmented {
    flex: 1 1 190px;
  }

  .field,
  .title-field {
    flex: 1 1 100%;
  }

  #boxPlotSvg {
    min-height: 320px;
  }

  .seo-grid,
  .seo-grid.three,
  .feature-grid,
  .feature-grid.two,
  .keyword-links,
  .page-entry-grid,
  .keyword-tool-entry,
  .subpage-entrance-grid,
  .keyword-page-grid {
    grid-template-columns: 1fr;
  }

  .keyword-page,
  .content-section {
    padding: 36px 16px;
  }

  .keyword-page-hero {
    padding: 30px 0 16px;
  }

  .keyword-page-hero h1 {
    font-size: 34px;
  }

  .keyword-page-hero p {
    font-size: 16px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .workbench-intro,
  .input-panel,
  .results-panel,
  .chart-controls,
  .seo-section,
  .powered,
  .toast {
    display: none !important;
  }

  .workspace {
    display: block;
    height: auto;
    padding: 0;
  }

  .chart-panel {
    border: 0;
    box-shadow: none;
  }

  .chart-shell {
    padding: 0;
  }

  #boxPlotSvg {
    min-height: 720px;
    border: 0;
  }
}
