:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-2: #eef3eb;
  --ink: #172215;
  --muted: #61705e;
  --line: #dfe7db;
  --accent: #65b91d;
  --accent-2: #ff6a2a;
  --accent-3: #188c7c;
  --danger: #c33f35;
  --shadow: 0 16px 40px rgba(35, 49, 29, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

.app-page {
  padding-left: 310px;
}

.app-page.settings-closed {
  padding-left: 70px;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.site-header,
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(23, 34, 21, .08);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.app-page .app-header {
  min-height: 56px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  padding: 0 0 18px;
  background: #1f2b2c;
  color: #34d1a4;
}

.sidebar-logo {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  color: white;
  background: #183536;
  line-height: .9;
  text-align: center;
}

.sidebar-logo strong {
  display: block;
  font-size: 30px;
}

.sidebar-logo span {
  font-size: 13px;
  color: #34d1a4;
}

.app-sidebar > a:not(.sidebar-logo) {
  display: grid;
  place-items: center;
  width: 70px;
  height: 64px;
  border-left: 4px solid transparent;
  color: rgba(52, 209, 164, .62);
  font-size: 26px;
}

.sidebar-tool {
  display: grid;
  place-items: center;
  width: 70px;
  height: 64px;
  border: 0;
  border-left: 4px solid transparent;
  color: rgba(52, 209, 164, .72);
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}

.sidebar-tool:hover {
  color: #34d1a4;
  background: rgba(255, 255, 255, .06);
}

.app-sidebar > a:hover,
.app-sidebar > a.active {
  border-left-color: #34d1a4;
  color: #34d1a4;
  background: rgba(255, 255, 255, .06);
}

.settings-drawer {
  position: fixed;
  inset: 0 auto 0 70px;
  z-index: 25;
  width: 240px;
  overflow: hidden;
  color: #c5e2d8;
  background: #293438;
  transform: translateX(-100%);
  transition: transform .2s ease;
}

.settings-drawer.active {
  transform: translateX(0);
}

.settings-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 18px 14px 28px;
}

.settings-scroll h2 {
  margin: 0 0 18px;
  color: #28cd9c;
  font-size: 18px;
}

.field-block,
.field-grid label,
.check-line {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: #28cd9c;
  font-size: 13px;
}

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

.settings-drawer input,
.settings-drawer select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #306656;
  border-radius: 4px;
  padding: 7px 8px;
  color: #c5e2d8;
  background: #242d30;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 38px;
}

.search-row input {
  border-radius: 4px 0 0 4px;
}

.search-row button {
  border: 1px solid #306656;
  border-left: 0;
  border-radius: 0 4px 4px 0;
  color: #28cd9c;
  background: #242d30;
  cursor: pointer;
}

.check-line {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.check-line input {
  width: 20px;
  min-height: 20px;
  accent-color: #28cd9c;
}

.settings-drawer .full {
  width: 100%;
  margin-top: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

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

.top-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
}

.top-nav a:hover {
  color: var(--ink);
}

.tariff-badge {
  white-space: nowrap;
  color: var(--muted);
}

.tariff-badge strong {
  color: var(--accent-3);
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.lang-switch button {
  min-width: 40px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lang-switch button.active {
  color: white;
  background: var(--ink);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 78vh;
  padding: clamp(34px, 5vw, 72px) clamp(18px, 5vw, 70px) 56px;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(101, 185, 29, .12), transparent 38%),
    linear-gradient(24deg, rgba(255, 106, 42, .18), transparent 42%),
    var(--surface);
}

.landing-hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: .94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.15;
}

.hero-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent);
  color: white;
  background: var(--accent);
}

.button.ghost {
  background: rgba(255, 255, 255, .58);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(52px, 7vw, 94px) clamp(18px, 5vw, 70px);
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-head p,
.feature-tile p,
.plan p,
.check-list {
  color: var(--muted);
}

.section-head.compact h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.feature-grid,
.plan-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-tile,
.plan,
.metric-card,
.status-card,
.keyword-card,
.file-card,
.mpr-tool,
.toolbar,
.data-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(35, 49, 29, .07);
}

.feature-tile {
  overflow: hidden;
}

.feature-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-tile h3,
.feature-tile p,
.plan,
.metric-card {
  padding: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  background: var(--surface-2);
}

.section-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.check-list {
  padding-left: 20px;
}

.plan.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(101, 185, 29, .16);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 5vw, 70px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.app-shell {
  padding: 18px clamp(16px, 4vw, 42px) 52px;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.app-hero > div,
.status-card {
  padding: 16px;
}

.app-hero > div {
  min-height: 132px;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(130deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .44)),
    url("assets/trends/header.png") center / cover;
}

.app-hero h1 {
  max-width: 720px;
  margin-bottom: 6px;
  font-size: clamp(30px, 3.8vw, 48px);
}

.app-hero .hero-lead {
  color: rgba(255, 255, 255, .84);
  font-size: clamp(16px, 1.6vw, 20px);
}

.status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.manifest-line {
  margin: 0 0 10px;
  font-size: 14px;
}

.crawl-progress {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 13px;
}

.crawl-progress.active {
  color: #1f5d47;
  background: rgba(52, 209, 164, .12);
}

.crawl-progress.complete {
  color: #286713;
  background: rgba(101, 185, 29, .14);
}

.emoji-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
}

.emoji-progress span {
  overflow: hidden;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 13px;
}

.tag.ok {
  color: #286713;
  background: rgba(101, 185, 29, .16);
}

.tag.ai {
  color: #7a3714;
  background: rgba(255, 106, 42, .17);
}

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

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

.ring {
  min-height: 72px;
  padding: 10px;
  border-radius: 8px;
  background:
    conic-gradient(var(--accent) var(--ring), var(--surface-2) 0);
}

.ring-inner {
  display: grid;
  place-content: center;
  height: 100%;
  border-radius: 6px;
  background: var(--surface);
  text-align: center;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
}

.toolbar label,
.mpr-tool label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.toolbar select,
.toolbar input,
.mpr-tool input,
.mpr-tool textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--surface);
}

.toolbar select {
  min-width: 260px;
}

.toolbar input {
  width: 96px;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
}

.tabs button.active {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.keyword-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.keyword-card {
  padding: 14px;
  border-left: 5px solid var(--tile-color, var(--accent));
}

.keyword-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 19px;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.score-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.score-fill {
  height: 100%;
  background: var(--tile-color, var(--accent));
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.guru-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.file-card {
  position: relative;
  overflow: hidden;
}

.guru-card {
  background: #fff;
  box-shadow: 0 3px 12px rgba(31, 43, 44, .12);
}

.file-actions {
  position: absolute;
  top: 0;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  gap: 2px;
  overflow: hidden;
  border-radius: 0 0 4px 4px;
  background: #20c997;
}

.file-actions a,
.file-actions button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 26px;
  border: 0;
  color: white;
  background: transparent;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.file-actions svg,
.overlay-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-actions a:hover,
.file-actions button:hover {
  background: rgba(0, 0, 0, .12);
}

.inline-link {
  border: 0;
  padding: 0;
  color: var(--accent-3);
  background: transparent;
  cursor: pointer;
}

.file-thumb {
  position: relative;
  display: block;
}

.trend-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #ff5a1f, #ff006e);
  box-shadow: 0 8px 18px rgba(255, 88, 31, .28);
  font-size: 13px;
  font-weight: 900;
}

.trend-badge b {
  color: inherit;
}

.card-overlay {
  position: absolute;
  inset: 8px;
  z-index: 3;
  display: none;
  overflow: auto;
  padding: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 28px rgba(31, 43, 44, .18);
}

.file-card.panel-open {
  min-height: 430px;
}

.file-card.history-open {
  min-height: 520px;
}

.history-overlay {
  inset: 6px;
}

.keywords-overlay,
.details-overlay,
.history-overlay {
  background: rgba(255, 255, 255, .98);
}

.card-overlay.opened {
  display: block;
}

.overlay-head {
  position: sticky;
  top: -14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -14px -14px 12px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
}

.overlay-title {
  color: var(--accent-3);
  font-weight: 800;
}

.overlay-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.overlay-actions button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-3);
  background: var(--surface);
  cursor: pointer;
}

.overlay-actions button:hover,
.overlay-actions button.copied {
  color: white;
  border-color: var(--accent-3);
  background: var(--accent-3);
}

.details-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 10px;
  margin: 0;
  font-size: 13px;
}

.details-list dt {
  color: var(--muted);
}

.details-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.history-bars {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 180px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 6px;
  background: var(--surface-2);
}

.history-bars span {
  flex: 1;
  min-width: 5px;
  border-radius: 2px 2px 0 0;
  background: #20c997;
}

.history-list {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.history-list div {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(238, 243, 235, .7);
}

.history-list span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}

.thumb-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  font-weight: 800;
}

.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-body {
  padding: 14px;
}

.guru-card .file-body {
  padding: 9px 10px 12px;
}

.file-title {
  min-height: 48px;
  font-weight: 700;
}

.guru-card .file-title {
  min-height: 0;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.file-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: var(--muted);
  font-size: 13px;
}

.file-meta-line b,
.file-meta-line span:first-child b {
  color: #20c997;
}

.age-pill {
  white-space: nowrap;
}

.stars {
  margin-left: auto;
  color: #20c997;
  letter-spacing: 0;
  white-space: nowrap;
}

.keyword-details {
  margin-top: 8px;
}

.keyword-details summary {
  color: var(--accent-3);
  cursor: pointer;
}

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.keyword-chips span {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.data-table {
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px minmax(140px, .9fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.data-table.slim .table-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.table-row:last-child {
  border-bottom: 0;
}

.authors-list {
  display: grid;
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.author-row {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(35, 49, 29, .07);
}

.author-summary {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.author-name-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.author-name-line a,
.author-name-line strong {
  color: var(--accent-3);
  font-size: 20px;
  font-weight: 800;
}

.author-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.author-score b {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.author-score span,
.author-stats {
  color: var(--muted);
}

.author-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.author-posters {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 10px;
  min-width: 0;
}

.author-poster {
  position: relative;
  display: block;
  min-height: 118px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2);
}

.author-poster img,
.author-poster .thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
}

.author-poster-top,
.author-poster-score {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: white;
  background: rgba(20, 31, 21, .82);
  font-size: 12px;
  font-weight: 800;
}

.author-poster-top {
  left: 7px;
  bottom: 7px;
}

.author-poster-score {
  top: 7px;
  right: 7px;
  background: var(--accent);
}

.author-poster-empty {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  min-height: 118px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.metric-card h3 {
  font-size: 20px;
}

.category-card,
.keyword-card {
  cursor: pointer;
}

.category-card:hover,
.keyword-card:hover {
  border-color: var(--accent);
}

.metric-value {
  margin: 10px 0;
  font-size: 34px;
  font-weight: 800;
}

.mpr-tool {
  display: grid;
  gap: 12px;
  max-width: 820px;
  padding: 16px;
}

.mpr-tool textarea {
  min-height: 120px;
  resize: vertical;
}

.mpr-tool pre {
  overflow: auto;
  min-height: 80px;
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #111a10;
  color: #e7f5df;
}

.empty {
  padding: 18px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .55);
}

.danger {
  color: var(--danger);
}

body.is-updating .file-grid,
body.is-updating .keyword-grid,
body.is-updating .metric-grid,
body.is-updating .data-table {
  opacity: .62;
  transition: opacity .16s ease;
}

@media (max-width: 920px) {
  .app-page {
    padding-left: 0;
  }

  .app-page.settings-closed {
    padding-left: 0;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    flex-direction: row;
    width: 100%;
    height: 58px;
    padding: 0;
  }

  .settings-drawer {
    inset: 58px 0 auto 0;
    width: 100%;
    max-height: min(70vh, 620px);
    transform: translateY(-115%);
  }

  .settings-drawer.active {
    transform: translateY(0);
  }

  .sidebar-logo,
  .app-sidebar > a:not(.sidebar-logo),
  .sidebar-tool {
    width: 58px;
    height: 58px;
  }

  .site-header,
  .app-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .top-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .landing-hero,
  .split,
  .app-hero {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .plan-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .table-row,
  .data-table.slim .table-row {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  h1 {
    font-size: 42px;
  }

  .landing-hero {
    min-height: auto;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar label,
  .toolbar select,
  .toolbar input,
  .toolbar .button {
    width: 100%;
  }

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