:root {
  --ink: #17232c;
  --muted: #687b89;
  --soft-muted: #8da0ad;
  --paper: #ffffff;
  --canvas: #f2f5f6;
  --warm: #f2eee7;
  --line: #dce4e8;
  --blue: #55acee;
  --blue-dark: #268dd4;
  --blue-soft: #dff1ff;
  --navy: #20394a;
  --radius: 16px;
  --shadow: 0 28px 70px rgba(31, 55, 70, 0.1);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(23, 35, 44, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 44, 0.025) 1px, transparent 1px),
    var(--canvas);
  background-size: 40px 40px;
}

button,
input,
select {
  font: inherit;
}

button,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

.site-header {
  height: 72px;
  padding: 0 clamp(22px, 4.5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 35, 44, 0.12);
  background: rgba(242, 245, 246, 0.88);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 9px;
  background: var(--blue);
  color: white;
  font-size: 17px;
  font-weight: 800;
  transform: rotate(-4deg);
}

.brand-mark::first-letter {
  transform: rotate(4deg);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45b982;
  box-shadow: 0 0 0 4px rgba(69, 185, 130, 0.12);
}

main {
  overflow: hidden;
}

.hero {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 630px;
  padding: clamp(68px, 9vw, 132px) clamp(22px, 5vw, 80px) 98px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(70px, 10vw, 170px);
  align-items: end;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(85, 172, 238, 0.24);
  border-radius: 50%;
  top: -275px;
  right: 19%;
  box-shadow: 0 0 0 82px rgba(85, 172, 238, 0.04), 0 0 0 164px rgba(85, 172, 238, 0.025);
  pointer-events: none;
}

.eyebrow,
.spec-heading,
.subheading-row,
.preview-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eyebrow {
  max-width: 580px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(23, 35, 44, 0.38);
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 27px 0 28px;
  max-width: 780px;
  font-size: clamp(54px, 6.6vw, 102px);
  font-weight: 720;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.hero-lede {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.022em;
}

.text-link {
  width: max-content;
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 36px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link span {
  color: var(--blue-dark);
  font-size: 20px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(4px);
}

.layout-spec {
  padding: 25px 0 0;
  border-top: 4px solid var(--ink);
}

.spec-heading {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.specs {
  display: grid;
  gap: 20px;
}

.spec {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 22px;
}

.spec p {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.spec strong {
  color: var(--blue-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.spec p span {
  font-size: 13px;
  font-weight: 650;
}

.mini-grid {
  width: 118px;
  height: 59px;
  display: grid;
  gap: 3px;
  overflow: hidden;
  border-radius: 5px;
}

.mini-grid i {
  display: block;
  background: var(--navy);
}

.mini-grid--2,
.mini-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

.mini-grid--4 {
  grid-template-rows: repeat(2, 1fr);
}

.mini-grid--3 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.mini-grid--3 i:first-child {
  grid-row: 1 / 3;
}

.spec:nth-child(2) .mini-grid i:first-child,
.spec:nth-child(3) .mini-grid i:nth-child(2),
.spec:nth-child(3) .mini-grid i:nth-child(3) {
  background: var(--blue);
}

.spec-note {
  margin: 29px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.composer-shell {
  width: min(1480px, calc(100% - clamp(24px, 5vw, 80px)));
  margin: 0 auto clamp(100px, 10vw, 164px);
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  background: var(--paper);
  border: 1px solid rgba(23, 35, 44, 0.13);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.control-panel {
  min-height: 810px;
  padding: 35px 30px 30px;
  border-right: 1px solid var(--line);
  background: #fbfcfc;
}

.panel-heading,
.preview-toolbar,
.export-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.step-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 790;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.step-label--blue {
  color: #297fb5;
}

.panel-heading h2,
.preview-toolbar h2,
.research-note h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.photo-count {
  min-width: 52px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-align: center;
}

.drop-zone {
  min-height: 184px;
  margin-top: 30px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #b8c7cf;
  border-radius: 12px;
  background: var(--paper);
  text-align: center;
  cursor: pointer;
  transition: 180ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--blue-dark);
  background: #f5fbff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(38, 141, 212, 0.09);
}

.drop-zone.is-full {
  display: none;
}

.upload-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.upload-icon svg {
  width: 21px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drop-title {
  font-size: 14px;
  font-weight: 760;
}

.drop-copy {
  margin-top: 7px;
  color: var(--soft-muted);
  font-size: 11px;
  line-height: 1.4;
}

.demo-button,
.add-more {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.demo-button {
  height: 48px;
  margin-top: 10px;
  padding: 0 4px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
  text-align: left;
}

.demo-button:hover {
  color: var(--blue-dark);
}

.demo-swatch {
  width: 30px;
  height: 17px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 3px;
}

.demo-swatch i:nth-child(1) { background: #e09b60; }
.demo-swatch i:nth-child(2) { background: #6aa9c9; }
.demo-swatch i:nth-child(3) { background: #667a8e; }
.demo-swatch i:nth-child(4) { background: #87a97d; }

.photo-list-wrap,
.crop-controls {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.subheading-row {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.photo-row {
  min-width: 0;
  height: 56px;
  padding: 5px 5px 5px 7px;
  display: grid;
  grid-template-columns: 19px 45px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f2f5f6;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.photo-row:hover {
  background: #edf4f8;
}

.photo-row.is-selected {
  border-color: #97ccef;
  background: #edf8ff;
}

.row-number {
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
  text-align: center;
}

.row-thumb {
  width: 45px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  background: #dce4e8;
}

.row-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.row-name strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-name span {
  color: var(--soft-muted);
  font-size: 9px;
}

.row-actions {
  display: flex;
  gap: 2px;
}

.icon-button {
  width: 25px;
  height: 25px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #728692;
  cursor: pointer;
}

.icon-button:hover:not(:disabled) {
  background: white;
  color: var(--blue-dark);
}

.icon-button:disabled {
  opacity: 0.25;
  cursor: default;
}

.icon-button--remove:hover:not(:disabled) {
  color: #cf5661;
}

.add-more {
  height: 42px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed #c2cfd6;
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.add-more:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.reset-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 780;
  cursor: pointer;
  text-transform: uppercase;
}

.zoom-control {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 8px;
}

.zoom-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 13px;
}

.zoom-icon--large {
  font-size: 14px;
}

input[type="range"] {
  width: 100%;
  height: 3px;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) var(--range-progress, 0%), #dce4e8 var(--range-progress, 0%));
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  appearance: none;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--blue-dark);
  box-shadow: 0 0 0 1px #90a6b3, 0 2px 5px rgba(23, 35, 44, 0.18);
  cursor: ew-resize;
}

input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--blue-dark);
  box-shadow: 0 0 0 1px #90a6b3;
  cursor: ew-resize;
}

.crop-hint {
  margin: 13px 0 0;
  color: var(--soft-muted);
  font-size: 10px;
  line-height: 1.45;
}

.crop-hint span {
  margin-right: 4px;
  color: var(--blue-dark);
}

.preview-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.preview-toolbar {
  min-height: 94px;
  padding: 29px clamp(28px, 4vw, 54px) 22px;
  border-bottom: 1px solid var(--line);
}

.preview-legend {
  align-self: center;
  gap: 20px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-legend i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--blue);
}

.tweet-stage {
  min-height: 580px;
  flex: 1;
  padding: clamp(32px, 5vw, 67px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 13% 20%, rgba(85, 172, 238, 0.11), transparent 23%),
    linear-gradient(135deg, #e8eef1 0%, #f4f6f7 56%, #e9f1f5 100%);
  position: relative;
}

.tweet-stage::before,
.tweet-stage::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid #aebdc6;
  border-radius: 50%;
}

.tweet-stage::before { top: 27px; left: 27px; }
.tweet-stage::after { right: 27px; bottom: 27px; }

.tweet-card {
  width: min(100%, 760px);
  padding: clamp(22px, 3vw, 35px);
  border: 1px solid rgba(23, 35, 44, 0.12);
  border-radius: 13px;
  background: white;
  box-shadow: 0 18px 44px rgba(32, 57, 74, 0.12);
}

.tweet-author {
  display: flex;
  align-items: center;
}

.avatar {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(255,255,255,0.28) 49% 53%, transparent 54%),
    linear-gradient(145deg, #e69b64, #dc6174 48%, #516f93);
  color: white;
}

.avatar span {
  font-size: 17px;
  font-weight: 800;
  text-shadow: 0 1px 7px rgba(23, 35, 44, 0.3);
}

.author-copy {
  min-width: 0;
  margin-left: 11px;
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.author-copy strong {
  font-size: 15px;
}

.author-copy span,
.tweet-date {
  color: #8b9da9;
  font-size: 12px;
}

.tweet-more {
  margin-left: auto;
  color: #aab7bf;
  font-size: 13px;
  letter-spacing: 2px;
}

.tweet-copy {
  margin: 13px 0 16px;
  font-size: 15px;
  line-height: 1.45;
}

.classic-grid {
  width: 100%;
  aspect-ratio: 2 / 1;
  display: grid;
  gap: 6px;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  user-select: none;
  touch-action: none;
}

.classic-grid[data-count="1"] {
  grid-template-columns: 1fr;
}

.classic-grid[data-count="2"],
.classic-grid[data-count="4"] {
  grid-template-columns: repeat(2, 1fr);
}

.classic-grid[data-count="4"] {
  grid-template-rows: repeat(2, 1fr);
}

.classic-grid[data-count="3"] {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.classic-grid[data-count="3"] > :first-child {
  grid-row: 1 / 3;
}

.photo-cell,
.empty-cell {
  min-width: 0;
  min-height: 0;
  border: 0;
  position: relative;
  overflow: hidden;
}

.photo-cell {
  padding: 0;
  background: #dfe7eb;
  cursor: grab;
}

.photo-cell:active {
  cursor: grabbing;
}

.photo-cell img {
  max-width: none;
  position: absolute;
  pointer-events: none;
  -webkit-user-drag: none;
}

.photo-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0 solid var(--blue);
  box-shadow: inset 0 0 0 0 rgba(85, 172, 238, 0);
  pointer-events: none;
  transition: box-shadow 140ms ease;
}

.photo-cell.is-selected::before {
  box-shadow: inset 0 0 0 3px var(--blue);
}

.cell-number {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 50%;
  background: rgba(23, 35, 44, 0.65);
  color: white;
  font-size: 9px;
  font-weight: 790;
  opacity: 0;
  transform: translateY(-3px);
  transition: 150ms ease;
  pointer-events: none;
}

.photo-cell:hover .cell-number,
.photo-cell.is-selected .cell-number {
  opacity: 1;
  transform: translateY(0);
}

.empty-cell {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.35), transparent),
    #dce7ed;
  color: #99aeb9;
  cursor: pointer;
}

.empty-cell:nth-child(2) { background-color: #e1e9e5; }
.empty-cell:nth-child(3) { background-color: #e9e1df; }
.empty-cell:nth-child(4) { background-color: #e4e0ea; }

.empty-cell span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px dashed currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 750;
}

.empty-cell:hover {
  color: var(--blue-dark);
}

.tweet-date {
  padding: 15px 0 12px;
  border-bottom: 1px solid #edf1f3;
}

.tweet-actions {
  padding: 13px 3% 0;
  display: flex;
  justify-content: space-between;
  color: #aab9c2;
}

.tweet-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tweet-actions circle {
  fill: currentColor;
  stroke: none;
}

.export-bar {
  min-height: 118px;
  padding: 25px clamp(28px, 4vw, 54px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.export-copy p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.export-copy strong {
  font-size: 14px;
}

.export-copy p span {
  color: var(--muted);
  font-size: 10px;
}

.export-actions {
  display: flex;
  gap: 8px;
}

.format-select {
  position: relative;
}

.format-select::after {
  content: "⌄";
  position: absolute;
  right: 12px;
  top: 12px;
  color: var(--muted);
  pointer-events: none;
}

.format-select select {
  width: 74px;
  height: 44px;
  padding: 0 12px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  cursor: pointer;
}

.export-button {
  height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 740;
  cursor: pointer;
  transition: 160ms ease;
}

.export-button svg {
  width: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.export-button:hover:not(:disabled) {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.export-button:disabled {
  background: #b9c5cc;
  cursor: not-allowed;
}

.research-note {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto 110px;
  padding: 43px 0 0;
  display: grid;
  grid-template-columns: 80px 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 80px);
  border-top: 4px solid var(--ink);
}

.research-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 780;
}

.research-note h2 {
  max-width: 400px;
  font-size: clamp(31px, 3.4vw, 49px);
  line-height: 1.02;
}

.research-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.research-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer {
  min-height: 88px;
  padding: 25px clamp(22px, 4.5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(23, 35, 44, 0.16);
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toast {
  max-width: min(420px, calc(100% - 34px));
  padding: 12px 17px;
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(23, 35, 44, 0.94);
  color: white;
  font-size: 11px;
  font-weight: 670;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1050px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 75px;
  }

  .hero-copy {
    max-width: 850px;
  }

  .layout-spec {
    max-width: 620px;
  }

  .composer-shell {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .control-panel {
    padding: 30px 22px;
  }

  .tweet-stage {
    padding: 32px;
  }

  .export-bar {
    align-items: flex-start;
    gap: 20px;
  }

  .export-copy p span {
    max-width: 210px;
  }

  .research-note {
    grid-template-columns: 55px 1fr;
  }

  .research-body {
    grid-column: 2;
  }
}

@media (max-width: 780px) {
  .site-header {
    height: 64px;
  }

  .header-meta span:last-child {
    display: none;
  }

  .hero {
    padding-top: 70px;
    padding-bottom: 75px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 75px);
  }

  .composer-shell {
    width: calc(100% - 24px);
    display: flex;
    flex-direction: column;
  }

  .control-panel {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .preview-toolbar {
    min-height: 80px;
    padding: 22px;
  }

  .preview-legend span:first-child {
    display: none;
  }

  .tweet-stage {
    min-height: auto;
    padding: 22px 14px;
  }

  .tweet-stage::before,
  .tweet-stage::after {
    display: none;
  }

  .tweet-card {
    padding: 18px;
  }

  .export-bar {
    padding: 22px;
    flex-direction: column;
  }

  .export-actions {
    width: 100%;
  }

  .export-button {
    flex: 1;
    justify-content: space-between;
  }

  .research-note {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .research-body {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .eyebrow span:last-child,
  .preview-legend,
  .tweet-date,
  .tweet-actions {
    display: none;
  }

  .spec {
    grid-template-columns: 95px 1fr;
  }

  .mini-grid {
    width: 95px;
    height: 47.5px;
  }

  .author-copy {
    flex-direction: column;
    gap: 1px;
  }

  .tweet-card {
    border-radius: 9px;
  }

  .classic-grid {
    gap: 3px;
    border-radius: 6px;
  }

  .research-body {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
