:root {
  --paper: #f3eee2;
  --card: #fffdf7;
  --ink: #171814;
  --ink-soft: #2c2d27;
  --muted: #716d62;
  --line: #d8d0bf;
  --line-strong: #bdb3a0;
  --lime: #d8f34a;
  --lime-soft: #f1f8ce;
  --orange: #ff5b32;
  --soft: #efe9db;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 24, 20, 0.075) 0.7px, transparent 0.7px);
  background-size: 19px 19px;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--ink);
  background: var(--lime);
}

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

button {
  color: inherit;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
}

.page-wrap {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border: 1.6px solid var(--ink);
  border-radius: 13px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink);
}

.brand-mark.small svg {
  width: 18px;
  height: 18px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--muted);
  font-family: "Arial Black", "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.local-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  color: #44453d;
  background: rgba(255, 253, 247, 0.66);
  border: 1.2px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.local-pill i {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.header-tag {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.ticker {
  width: 100%;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.ticker-track {
  width: max-content;
  display: flex;
  animation: ticker 38s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  padding: 9px 0;
  font-family: "Arial Black", "Arial Narrow", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  white-space: nowrap;
}

.ticker-track b {
  padding: 0 20px;
  color: var(--lime);
  font-weight: 400;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

main {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: 0 32px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 278px;
  align-items: end;
  gap: 54px;
  padding: 52px 0 38px;
}

.eyebrow {
  margin: 0 0 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5d5d52;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow span {
  color: var(--ink);
  font-family: "Arial Black", "Arial Narrow", sans-serif;
  letter-spacing: 0.18em;
}

.eyebrow b {
  color: var(--orange);
  font-weight: 900;
}

.intro h1 {
  max-width: 790px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.8vw, 63px);
  font-weight: 900;
  line-height: 1.19;
  letter-spacing: -0.045em;
}

.marker {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.marker::after {
  content: "";
  position: absolute;
  right: -0.06em;
  bottom: 0.07em;
  left: -0.06em;
  z-index: -1;
  height: 0.28em;
  background: var(--lime);
  transform: rotate(-1.2deg);
  transform-origin: left center;
}

.lede {
  max-width: 610px;
  margin: 19px 0 0;
  color: #5f5d53;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.intro-note {
  position: relative;
  margin-bottom: 4px;
  padding: 28px 24px 21px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(1.4deg);
}

.tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 78px;
  height: 20px;
  background: rgba(216, 243, 74, 0.85);
  border: 1px solid rgba(23, 24, 20, 0.15);
  transform: translateX(-50%) rotate(-2deg);
}

.note-quote {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.note-example {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.note-example span {
  padding: 4px 8px;
  color: #3e3f36;
  background: var(--soft);
  border: 1px solid #d2c9b6;
  border-radius: 999px;
  font-size: 10px;
}

.note-caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.note-caption i {
  padding: 0 5px;
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.92fr);
  align-items: start;
  gap: 25px;
  padding-bottom: 62px;
}

.form-card {
  position: relative;
  padding: 25px 26px 21px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--ink);
}

.form-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px dashed var(--line-strong);
}

.form-topline p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5a5b50;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(216, 243, 74, 0.28);
}

.form-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-button {
  padding: 2px 0;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover {
  color: #000;
  border-bottom-color: var(--orange);
}

.text-button.muted {
  color: var(--muted);
  font-weight: 500;
}

.tool-divider {
  width: 1px;
  height: 10px;
  background: var(--line);
}

.form-section {
  padding-top: 25px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.step-number {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-family: "Arial Narrow", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-heading h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.heading-line {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.heading-hint {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 13px;
}

.field {
  display: block;
  min-width: 0;
  margin-bottom: 19px;
}

.info-grid .field:last-child {
  margin-bottom: 0;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.field-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.field-label-row .field-label {
  margin-bottom: 0;
}

.field-label em {
  padding: 1px 5px;
  color: #817c6f;
  background: #f2ecdf;
  border-radius: 4px;
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
}

.selection-count {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

input[type="text"],
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: #f8f4ea;
  border: 1.4px solid #d6cdbb;
  border-radius: 11px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input[type="text"],
select {
  height: 44px;
  padding: 0 13px;
  font-size: 13px;
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: #a49d8d;
}

input[type="text"]:hover,
select:hover,
textarea:hover {
  border-color: #b9af9b;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  outline: none;
  background: #fffdf7;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(216, 243, 74, 0.58);
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap select {
  padding-right: 35px;
  appearance: none;
  cursor: pointer;
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 10px;
  height: 7px;
  color: #656358;
  pointer-events: none;
  transform: translateY(-50%);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: #f0ebdf;
  border: 1px solid #dfd7c7;
  border-radius: 11px;
}

.segmented button {
  min-height: 34px;
  padding: 6px 8px;
  color: #656256;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.segmented button:hover {
  color: var(--ink);
  background: rgba(255, 253, 247, 0.7);
}

.segmented button.is-active {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 1px 1px 0 rgba(23, 24, 20, 0.12);
}

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

.chip {
  min-height: 31px;
  padding: 6px 10px;
  color: #46463d;
  background: #faf7ef;
  border: 1.2px solid #d1c8b7;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.chip:hover {
  border-color: #8d8574;
  transform: translateY(-1px);
}

.chip.is-selected {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--lime);
}

.chip.is-selected::before {
  content: "✓";
  margin-right: 4px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
}

.style-list .chip.is-selected {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.style-list .chip.is-selected::before {
  content: "✦";
  color: var(--ink);
}

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

.length-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.length-button {
  padding: 9px 10px;
  text-align: left;
  background: #faf7ef;
  border: 1.2px solid #d1c8b7;
  border-radius: 10px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.length-button:hover {
  border-color: #8d8574;
  transform: translateY(-1px);
}

.length-button strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.length-button small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.3;
  white-space: nowrap;
}

.length-button.is-selected {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.length-button.is-selected small {
  color: var(--lime);
}

.field-help {
  margin: -1px 0 9px;
  color: #8a8476;
  font-size: 10px;
  line-height: 1.55;
}

textarea {
  min-height: 88px;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.7;
  resize: vertical;
}

.char-count {
  color: var(--muted);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.field-note {
  margin-bottom: 15px;
}

.detect-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--lime-soft);
  border: 1px dashed #a5af68;
  border-radius: 9px;
}

.detect-box[hidden] {
  display: none;
}

.detect-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5b6229;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

.detect-label svg {
  width: 11px;
  height: 11px;
}

.detect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.detect-tag {
  padding: 2px 7px;
  color: #3c421e;
  background: rgba(255, 253, 247, 0.75);
  border: 1px solid #aab36f;
  border-radius: 999px;
  font-size: 9.5px;
  cursor: pointer;
}

.detect-tag::after {
  content: " ×";
  color: #7a8051;
}

.detect-tag.is-excluded {
  opacity: 0.48;
  text-decoration: line-through;
}

.detect-tag.is-excluded::after {
  content: " ↺";
  text-decoration: none;
}

.detect-tip {
  margin-left: auto;
  color: #858b5f;
  font-size: 8.5px;
}

.generate-button {
  width: 100%;
  margin-top: 2px;
  padding: 14px 15px 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  background: var(--lime);
  border: 1.8px solid var(--ink);
  border-radius: 13px;
  box-shadow: 4px 4px 0 var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.generate-button:hover {
  background: #e0fa58;
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.generate-button:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}

.generate-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.generate-copy strong {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.generate-copy small {
  color: #4f522d;
  font-size: 9.5px;
  letter-spacing: 0.01em;
}

.generate-arrow {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
}

.generate-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}

.generate-button:hover .generate-arrow svg {
  transform: translateX(2px);
}

.form-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #8a8476;
  font-size: 9px;
}

.form-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.form-footnote svg {
  width: 10px;
  height: 12px;
}

.result-column {
  position: sticky;
  top: 22px;
  min-width: 0;
}

.empty-state {
  position: relative;
  min-height: 655px;
  padding: 24px 25px 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--orange);
}

.empty-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 31px 31px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  pointer-events: none;
}

.empty-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  color: #aaa69a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-family: "Arial Narrow", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.empty-status {
  padding: 3px 7px;
  color: var(--lime);
  border: 1px solid rgba(216, 243, 74, 0.6);
  border-radius: 999px;
  font-size: 7.5px;
}

.vinyl-wrap {
  position: relative;
  z-index: 1;
  width: 156px;
  height: 136px;
  margin: 31px auto 3px;
  flex: 0 0 auto;
}

.vinyl {
  position: absolute;
  top: 0;
  left: 7px;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  background: repeating-radial-gradient(circle at center, #292a24 0 2px, #1c1d18 2px 5px);
  border: 1.5px solid #45463d;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 7px 10px 24px rgba(0, 0, 0, 0.32);
  animation: spin 24s linear infinite;
}

.vinyl::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.vinyl-label {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  border: 4px solid var(--ink);
  border-radius: 50%;
}

.vinyl-label svg {
  width: 25px;
  height: 25px;
}

.vinyl-sticker {
  position: absolute;
  right: 0;
  bottom: 3px;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--lime);
  border: 1.3px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
  font-family: "Arial Black", "Arial Narrow", sans-serif;
  font-size: 8px;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-align: center;
  transform: rotate(7deg);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-kicker {
  position: relative;
  z-index: 1;
  margin: 15px 0 9px;
  color: var(--lime);
  font-family: "Arial Narrow", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.empty-state h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(25px, 2.35vw, 32px);
  font-weight: 900;
  line-height: 1.38;
  letter-spacing: -0.035em;
}

.empty-state h2 span {
  position: relative;
  color: var(--lime);
  white-space: nowrap;
}

.empty-state h2 span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-1deg);
}

.empty-desc {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin: 13px 0 0;
  color: #bcb7a9;
  font-size: 11.5px;
  line-height: 1.8;
}

.empty-features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 23px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.empty-features span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d6d2c6;
  font-size: 9.5px;
}

.empty-features span::before {
  content: "✓";
  color: var(--lime);
  font-weight: 900;
}

.empty-hint {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  padding-top: 22px;
  color: #8d8a7f;
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.empty-hint span {
  margin-right: 4px;
  color: var(--lime);
  font-size: 16px;
  vertical-align: -1px;
}

.result-card {
  overflow: hidden;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--ink);
  animation: cardIn 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.result-card[hidden] {
  display: none;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px) rotate(-0.35deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 21px 15px;
  color: var(--paper);
  background: var(--ink);
}

.result-kicker {
  margin: 0 0 4px;
  color: #aaa69a;
  font-family: "Arial Narrow", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.result-kicker span {
  padding: 0 3px;
  color: var(--lime);
}

.result-top h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.word-count {
  padding: 4px 8px;
  color: var(--lime);
  border: 1px solid rgba(216, 243, 74, 0.44);
  border-radius: 999px;
  font-size: 8.5px;
  white-space: nowrap;
}

.result-inner {
  padding: 20px 21px 18px;
}

.student-strip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 17px;
  border-bottom: 1px solid #e4ddce;
}

.student-avatar {
  width: 49px;
  height: 49px;
  flex: 0 0 49px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border: 1.4px solid var(--ink);
  border-radius: 13px;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 900;
}

.student-info {
  min-width: 0;
}

.student-info h3 {
  margin: 0 0 3px;
  overflow: hidden;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-info p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-stamp {
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  margin-left: auto;
  display: grid;
  place-items: center;
  color: #5c5b4f;
  border: 1.1px solid #9d9787;
  border-radius: 50%;
  font-family: "Arial Narrow", sans-serif;
  font-size: 7px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-align: center;
  transform: rotate(8deg);
}

.coach-stamp b {
  color: var(--orange);
  font-size: 9px;
}

.review-body {
  margin: 19px 0 0;
  color: #2f302a;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.96;
  letter-spacing: 0.015em;
  white-space: pre-wrap;
  word-break: break-word;
}

.edit-body {
  min-height: 280px;
  margin-top: 18px;
  padding: 12px 13px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
}

.edit-body[hidden] {
  display: none;
}

.result-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}

.result-pill {
  padding: 3px 8px;
  color: #55554b;
  background: #f0ebdf;
  border: 1px solid #ded6c6;
  border-radius: 999px;
  font-size: 9px;
}

.result-pill.ghost {
  color: #777266;
  background: transparent;
}

.result-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 39px 39px;
  gap: 6px;
  margin-top: 17px;
}

.action-button,
.icon-button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.4px solid var(--ink);
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.action-button svg,
.icon-button svg {
  width: 15px;
  height: 15px;
}

.action-button.primary {
  color: var(--paper);
  background: var(--ink);
}

.action-button.primary:hover {
  background: #303129;
}

.action-button.primary.is-copied {
  color: var(--ink);
  background: var(--lime);
}

.action-button.secondary {
  padding: 0 12px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 2px 2px 0 var(--ink);
}

.action-button.secondary:hover {
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.icon-button {
  width: 39px;
  padding: 0;
  color: var(--ink);
  background: transparent;
}

.icon-button:hover {
  background: var(--soft);
}

.icon-button.is-active {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--ink);
}

.action-button:active,
.icon-button:active {
  transform: translateY(1px);
}

.result-disclaimer {
  margin: 11px 0 0;
  color: #969082;
  font-size: 8.5px;
  line-height: 1.65;
}

.site-footer {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: 21px 32px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #d3cab8;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.footer-brand strong {
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.footer-brand span {
  color: var(--muted);
  font-size: 9px;
}

.footer-note {
  margin: 0;
  color: #8f897b;
  font-size: 9px;
  line-height: 1.6;
  text-align: right;
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(23, 24, 20, 0.2);
  font-size: 11px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 21px;
  }

  .intro {
    grid-template-columns: minmax(0, 1fr) 246px;
    gap: 34px;
  }

  .form-card {
    padding: 23px 21px 19px;
  }

  .empty-state {
    min-height: 640px;
  }
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 42px;
  }

  .intro-note {
    display: none;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .result-column {
    position: static;
  }

  .empty-state {
    min-height: 440px;
  }

  .empty-desc {
    max-width: 470px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 18px;
  }

  .header-tag {
    display: none;
  }

  .local-pill {
    padding: 6px 9px;
    font-size: 9.5px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  main {
    padding: 0 18px;
  }

  .intro {
    padding: 33px 0 28px;
  }

  .intro h1 {
    font-size: clamp(34px, 10.3vw, 48px);
    line-height: 1.23;
  }

  .lede {
    margin-top: 15px;
    font-size: 12.5px;
    line-height: 1.75;
  }

  .workspace {
    padding-bottom: 42px;
  }

  .form-card {
    padding: 20px 16px 17px;
    border-radius: 18px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .form-topline p {
    font-size: 9.5px;
  }

  .info-grid {
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 9px;
  }

  .option-grid {
    gap: 9px;
  }

  .heading-hint {
    display: none;
  }

  .field {
    margin-bottom: 17px;
  }

  .length-button {
    padding: 8px;
  }

  .length-button small {
    font-size: 8.5px;
    white-space: normal;
  }

  .generate-button {
    padding-left: 15px;
  }

  .form-footnote {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .empty-state {
    min-height: 430px;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 4px 4px 0 var(--orange);
  }

  .vinyl-wrap {
    margin-top: 24px;
    transform: scale(0.9);
    transform-origin: center top;
  }

  .empty-state h2 {
    font-size: 27px;
  }

  .result-card {
    border-radius: 18px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .result-top {
    padding: 14px 17px;
  }

  .result-inner {
    padding: 17px 17px 15px;
  }

  .review-body {
    font-size: 15px;
    line-height: 1.93;
  }

  .coach-stamp {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 6px;
  }

  .student-info h3 {
    font-size: 19px;
  }

  .result-actions {
    grid-template-columns: minmax(0, 1fr) auto 38px 38px;
  }

  .action-button.secondary {
    padding: 0 9px;
    font-size: 10.5px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .result-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .action-button.primary {
    flex: 1 1 100%;
  }

  .action-button.secondary {
    flex: 1 1 auto;
  }

  .icon-button {
    flex: 0 0 39px;
  }
}

@media (max-width: 400px) {
  .info-grid,
  .option-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-grid .field {
    margin-bottom: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

  .site-header,
  .ticker,
  .intro,
  .form-card,
  .empty-state,
  .site-footer,
  .result-actions,
  .result-disclaimer,
  .toast {
    display: none !important;
  }

  main,
  .workspace,
  .result-column {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .result-card {
    border: 0;
    box-shadow: none;
  }

  .result-top {
    color: var(--ink);
    background: transparent;
    border-bottom: 1.5px solid var(--ink);
  }

  .result-kicker,
  .word-count {
    color: var(--ink);
    border-color: var(--ink);
  }
}
