:root {
  --ink: #1b1712;
  --muted: #716653;
  --paper: #f5ead8;
  --vellum: rgba(255, 249, 237, 0.76);
  --line: rgba(29, 24, 17, 0.16);
  --lacquer: #8f2d1c;
  --lacquer-dark: #56180f;
  --green: #235d4c;
  --gold: #bf8a35;
  --night: #11100d;
  --shadow: 0 24px 70px rgba(45, 29, 9, 0.24);
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
}

/* Mirror Room product homepage */
body.home-page {
  min-height: 100vh;
  overflow: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(191, 138, 53, 0.32), transparent 30rem),
    radial-gradient(circle at 88% 16%, rgba(35, 93, 76, 0.2), transparent 34rem),
    linear-gradient(135deg, #fbf1df 0%, #e2cfad 54%, #ac8d5c 100%);
}

body.home-page::before {
  display: block;
}

body.home-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 34%, transparent 0 18rem, rgba(255, 249, 237, 0.16) 18.2rem 18.4rem, transparent 18.6rem),
    linear-gradient(120deg, transparent 0 42%, rgba(255, 252, 244, 0.12) 42% 43%, transparent 43%);
}

.home-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 96px 0 46px;
}

.home-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  width: min(1220px, calc(100vw - 32px));
  transform: translateX(-50%);
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 237, 0.72);
  box-shadow: 0 20px 56px rgba(45, 29, 9, 0.18);
  backdrop-filter: blur(20px);
}

.home-brand,
.home-nav-action,
.home-primary,
.home-secondary {
  color: inherit;
  text-decoration: none;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
}

.home-brand span {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: url("/icon.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 2px rgba(27, 23, 18, 0.12);
}

.home-brand strong {
  font-size: 24px;
  letter-spacing: -0.09em;
}

.home-nav-links {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(27, 23, 18, 0.06);
}

.home-nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font: 800 11px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 252, 244, 0.72);
}

.home-nav-links a.active {
  color: #fff8e8;
  background: linear-gradient(135deg, var(--night), var(--lacquer-dark));
  box-shadow: 0 10px 22px rgba(86, 24, 15, 0.18);
}

.home-nav-action {
  justify-self: end;
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff8e8;
  background: var(--night);
  font-weight: 900;
}

.home-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 0.9fr);
  gap: 34px;
  align-items: center;
  padding: 44px 0 26px;
}

.home-kicker {
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 11px;
  border: 1px solid rgba(35, 93, 76, 0.18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 249, 237, 0.54);
  font: 900 11px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-text h1,
.home-section h2,
.home-cta h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.11em;
}

.hero-text h1 {
  max-width: 11em;
  font-size: clamp(42px, 5.8vw, 78px);
}

.hero-description,
.home-cta > p,
.reason-grid p,
.workflow-line p {
  color: #4e4639;
  line-height: 1.75;
}

.hero-subtitle {
  margin: 14px 0 0;
  color: var(--lacquer-dark);
  font-size: clamp(21px, 2.4vw, 32px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-description {
  max-width: 34em;
  margin: 16px 0 0;
  font-size: clamp(15px, 1.35vw, 18px);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-primary,
.home-secondary {
  display: inline-grid;
  min-height: 52px;
  place-items: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-primary {
  color: #fff8e8;
  background: linear-gradient(135deg, var(--night), var(--lacquer-dark));
  box-shadow: 0 18px 42px rgba(86, 24, 15, 0.24);
}

.home-secondary {
  border: 1px solid rgba(27, 23, 18, 0.16);
  background: rgba(255, 249, 237, 0.66);
}

.home-primary:hover,
.home-secondary:hover,
.home-nav-action:hover {
  transform: translateY(-2px);
}

.mirror-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 248, 235, 0.52);
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 250, 240, 0.8), transparent 18rem),
    linear-gradient(135deg, rgba(86, 24, 15, 0.92), rgba(35, 93, 76, 0.82));
  box-shadow: 0 34px 90px rgba(45, 29, 9, 0.32);
}

.terminal-demo {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 250, 240, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(21, 19, 15, 0.96), rgba(48, 30, 21, 0.94) 44%, rgba(20, 55, 46, 0.92));
}

.mirror-card::after {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(255, 248, 235, 0.24);
  border-radius: 999px;
}

.terminal-demo::after {
  inset: 58px 28px 28px;
  border-color: rgba(255, 248, 235, 0.1);
}

.terminal-bar {
  position: relative;
  z-index: 3;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 248, 235, 0.14);
  color: rgba(255, 248, 235, 0.62);
  background: rgba(255, 248, 235, 0.06);
  font: 800 11px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.traffic-lights i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.traffic-lights i:nth-child(1) { background: #ef6a5e; }
.traffic-lights i:nth-child(2) { background: #f5bf4f; }
.traffic-lights i:nth-child(3) { background: #61c554; }

.terminal-body {
  position: relative;
  min-height: 472px;
  overflow: hidden;
  padding: 30px;
}

.terminal-body::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 248, 235, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 248, 235, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle, black, transparent 74%);
}

.terminal-seal {
  position: absolute;
  right: 26px;
  bottom: 22px;
  z-index: 1;
  color: rgba(255, 242, 219, 0.08);
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  font-size: 180px;
  font-weight: 900;
  line-height: 1;
}

.terminal-dialogue {
  position: relative;
  z-index: 2;
  display: grid;
  max-height: 472px;
  gap: 14px;
  overflow-y: auto;
  padding-right: 6px;
  scroll-behavior: smooth;
}

.terminal-dialogue {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.terminal-dialogue::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.terminal-line {
  width: min(94%, 560px);
  padding: 14px 16px;
  border: 1px solid rgba(255, 248, 235, 0.14);
  border-radius: 18px;
  background: rgba(255, 248, 235, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  animation: terminalMessageIn 520ms ease both;
}

.terminal-line:nth-child(2) {
  animation-delay: 120ms;
}

.terminal-line:nth-child(3) {
  animation-delay: 240ms;
}

.terminal-line:nth-child(4) {
  animation-delay: 360ms;
}

.terminal-line small {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 248, 235, 0.54);
  font: 900 10px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.18em;
}

.terminal-line p {
  margin: 0;
  color: #fff6e5;
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.62;
}

.user-line {
  justify-self: end;
  background: rgba(35, 93, 76, 0.28);
}

.mirror-line {
  justify-self: start;
  background: rgba(255, 249, 237, 0.12);
}

.terminal-line:last-child.mirror-line p::after {
  content: "▌";
  margin-left: 3px;
  color: #f4c36e;
  animation: blink 900ms steps(2, start) infinite;
}

@keyframes terminalMessageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mirror-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 248, 235, 0.86);
  font: 800 12px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mirror-card-top i {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #52c080;
  box-shadow: 0 0 0 8px rgba(82, 192, 128, 0.18);
}

.mirror-stage {
  position: relative;
  z-index: 1;
  min-height: 285px;
  display: grid;
  place-items: center;
}

.mirror-ring {
  position: absolute;
  width: min(360px, 68%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 248, 235, 0.46);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 24px rgba(255, 248, 235, 0.08),
    0 0 80px rgba(255, 248, 235, 0.2);
}

.mirror-core {
  position: relative;
  z-index: 2;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 36px;
  color: #fff2db;
  background: linear-gradient(135deg, var(--lacquer), var(--lacquer-dark));
  font-size: 46px;
  font-weight: 900;
  box-shadow: 0 24px 70px rgba(45, 29, 9, 0.38);
}

.floating-note {
  position: absolute;
  z-index: 3;
  padding: 11px 15px;
  border: 1px solid rgba(255, 248, 235, 0.28);
  border-radius: 999px;
  color: #fff8e8;
  background: rgba(255, 248, 235, 0.12);
  backdrop-filter: blur(14px);
  font-weight: 900;
}

.note-one {
  left: 8%;
  top: 30%;
}

.note-two {
  right: 10%;
  top: 20%;
}

.note-three {
  right: 12%;
  bottom: 20%;
}

.mirror-dialogue {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.mirror-dialogue article {
  padding: 15px;
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 22px;
  background: rgba(255, 249, 237, 0.82);
}

.mirror-dialogue article:last-child {
  width: 72%;
  justify-self: end;
  background: rgba(225, 238, 223, 0.88);
}

.mirror-dialogue small {
  color: var(--muted);
  font: 900 10px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.18em;
}

.mirror-dialogue p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.55;
}

.home-strip {
  display: flex;
  gap: 10px;
  margin: 0 0 32px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 249, 237, 0.58);
  backdrop-filter: blur(18px);
}

.home-strip span {
  flex: 1;
  padding: 14px 10px;
  border-radius: 17px;
  background: rgba(255, 252, 244, 0.62);
  text-align: center;
  font-weight: 900;
}

.home-section,
.home-cta {
  margin-top: 24px;
  padding: clamp(22px, 3.2vw, 38px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 249, 237, 0.68);
  box-shadow: 0 24px 70px rgba(45, 29, 9, 0.16);
  backdrop-filter: blur(18px);
}

.home-section.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
}

.home-section h2,
.home-cta h2 {
  max-width: 12em;
  font-size: clamp(30px, 4vw, 52px);
}

.home-section,
.home-cta {
  scroll-margin-top: 104px;
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}

.reason-grid,
.home-skill-grid,
.workflow-line {
  display: grid;
  gap: 14px;
}

.reason-grid article,
.home-skill-grid a,
.workflow-line article {
  border: 1px solid rgba(27, 23, 18, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 252, 244, 0.82), rgba(234, 213, 177, 0.3)),
    rgba(255, 249, 237, 0.58);
}

.reason-grid article {
  padding: 20px;
  border-radius: 22px;
}

.reason-grid b,
.workflow-line span {
  color: var(--lacquer);
  font: 900 13px/1 "Gill Sans", "Trebuchet MS", sans-serif;
}

.reason-grid h3,
.workflow-line h3 {
  margin: 18px 0 8px;
  font-size: 25px;
  letter-spacing: -0.06em;
}

.home-skill-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-skill-grid a {
  min-height: 122px;
  display: grid;
  align-content: space-between;
  padding: 22px;
  border-radius: 24px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-skill-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 45, 28, 0.3);
  box-shadow: 0 22px 54px rgba(45, 29, 9, 0.16);
}

.home-skill-grid .submit-skill-card {
  border-color: rgba(35, 93, 76, 0.24);
  background:
    radial-gradient(circle at 85% 18%, rgba(35, 93, 76, 0.24), transparent 9rem),
    linear-gradient(145deg, rgba(255, 252, 244, 0.9), rgba(191, 138, 53, 0.2));
}

.home-skill-grid strong {
  font-size: 22px;
  letter-spacing: -0.06em;
}

.home-skill-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.home-skill-grid em {
  color: var(--lacquer);
  font: 900 12px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-detail-shell {
  width: min(1120px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 0 70px;
}

.skill-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  padding: 10px;
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 999px;
  background: rgba(255, 249, 237, 0.72);
  box-shadow: 0 18px 60px rgba(45, 29, 9, 0.12);
  backdrop-filter: blur(18px);
}

.skill-detail-nav > div {
  display: flex;
  gap: 8px;
}

.skill-detail-nav a:not(.home-brand) {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.skill-detail-nav a:not(.home-brand):hover {
  background: rgba(255, 252, 244, 0.72);
}

.skill-detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: grid;
  align-content: end;
  gap: 18px;
  padding: clamp(30px, 7vw, 76px);
  border: 1px solid rgba(255, 248, 235, 0.46);
  border-radius: 42px;
  background:
    radial-gradient(circle at 82% 18%, rgba(35, 93, 76, 0.28), transparent 18rem),
    radial-gradient(circle at 18% 16%, rgba(143, 45, 28, 0.2), transparent 16rem),
    linear-gradient(135deg, rgba(255, 249, 237, 0.88), rgba(234, 213, 177, 0.5));
  box-shadow: 0 34px 100px rgba(45, 29, 9, 0.18);
}

.skill-detail-hero::after {
  content: "skill";
  position: absolute;
  right: clamp(16px, 5vw, 58px);
  top: clamp(12px, 4vw, 42px);
  color: rgba(86, 24, 15, 0.06);
  font-size: clamp(110px, 20vw, 240px);
  font-weight: 950;
  letter-spacing: -0.14em;
  pointer-events: none;
}

.skill-detail-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(54px, 12vw, 132px);
  line-height: 0.86;
  letter-spacing: -0.12em;
}

.skill-detail-hero p:not(.home-kicker) {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

.skill-detail-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

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

.skill-detail-grid article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 252, 244, 0.82), rgba(234, 213, 177, 0.28)),
    rgba(255, 249, 237, 0.62);
}

.skill-detail-grid span {
  color: var(--green);
  font: 900 12px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skill-detail-grid ul {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.skill-detail-grid li {
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.65;
  background: linear-gradient(var(--lacquer), var(--lacquer)) left 0.72em / 8px 8px no-repeat;
}

.submission-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  align-items: stretch;
}

.submission-copy,
.submission-card,
.admin-head,
.admin-panel {
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 252, 244, 0.82), rgba(234, 213, 177, 0.28)),
    rgba(255, 249, 237, 0.62);
  box-shadow: 0 24px 70px rgba(45, 29, 9, 0.14);
}

.submission-copy {
  min-height: 620px;
  display: grid;
  align-content: end;
  gap: 18px;
  padding: clamp(28px, 5vw, 58px);
  background:
    radial-gradient(circle at 20% 18%, rgba(143, 45, 28, 0.2), transparent 16rem),
    radial-gradient(circle at 88% 10%, rgba(35, 93, 76, 0.22), transparent 17rem),
    rgba(255, 249, 237, 0.64);
}

.submission-copy h1,
.admin-head h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.12em;
}

.submission-copy p,
.admin-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.submission-steps {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.submission-steps span {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 252, 244, 0.58);
  font-weight: 900;
}

.submission-card,
.admin-panel {
  padding: clamp(24px, 4vw, 42px);
}

.submission-auth {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(27, 23, 18, 0.1);
  border-radius: 22px;
  background: rgba(255, 252, 244, 0.56);
}

.submission-auth span {
  color: var(--green);
  font: 900 12px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.submission-auth strong {
  font-size: 19px;
}

.submission-auth a {
  width: fit-content;
  color: var(--lacquer);
  font-weight: 900;
}

.submission-form {
  display: grid;
  gap: 12px;
}

.submission-form.is-disabled {
  opacity: 0.56;
  pointer-events: none;
}

.submission-form label {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 900;
}

.submission-form input,
.submission-form textarea {
  width: 100%;
  border: 1px solid rgba(27, 23, 18, 0.13);
  border-radius: 20px;
  padding: 16px 18px;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.68);
  font: inherit;
  outline: none;
}

.submission-form textarea {
  resize: vertical;
}

.submission-form input:focus,
.submission-form textarea:focus {
  border-color: rgba(143, 45, 28, 0.42);
  box-shadow: 0 0 0 4px rgba(143, 45, 28, 0.08);
}

.submission-feedback {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--green);
  font-weight: 900;
}

.submission-feedback.is-error {
  color: var(--lacquer);
}

.admin-head {
  margin-bottom: 16px;
  padding: clamp(28px, 5vw, 56px);
}

.submission-list {
  display: grid;
  gap: 14px;
}

.submission-list.hidden {
  display: none;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid rgba(27, 23, 18, 0.1);
  border-radius: 22px;
  background: rgba(255, 252, 244, 0.46);
}

.admin-tabs button,
.review-actions button {
  border: 1px solid rgba(27, 23, 18, 0.1);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.72);
  font-weight: 900;
}

.admin-tabs button {
  padding: 12px 18px;
}

.admin-tabs button.active {
  color: #fff8e8;
  background: var(--night);
}

.admin-tools {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-tools.hidden {
  display: none;
}

.admin-tools select,
.admin-tools input {
  width: min(360px, 100%);
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 999px;
  padding: 13px 16px;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.72);
  font: inherit;
  font-weight: 800;
}

.submission-item,
.submission-empty,
.user-admin-item {
  padding: 22px;
  border: 1px solid rgba(27, 23, 18, 0.1);
  border-radius: 24px;
  background: rgba(255, 252, 244, 0.58);
}

.submission-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

.submission-item span,
.user-admin-item span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff8e8;
  background: var(--green);
  font: 900 11px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.submission-item .status-approved {
  background: #235d4c;
}

.submission-item .status-rejected {
  background: #8f2d1c;
}

.submission-item .status-published {
  background: #0f1110;
}

.submission-item .status-running {
  background: #bf8a35;
}

.submission-item .status-done {
  background: #235d4c;
}

.submission-item .status-failed {
  background: #8f2d1c;
}

.submission-item h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.06em;
}

.submission-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.submission-item details {
  margin-top: 12px;
}

.submission-item summary {
  color: var(--lacquer);
  font-weight: 900;
  cursor: pointer;
}

.submission-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 14px 0 0;
  color: var(--muted);
}

.submission-meta dt {
  color: var(--green);
  font-weight: 900;
}

.submission-meta dd {
  margin: 0;
  word-break: break-all;
}

.review-note {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-weight: 900;
}

.review-note textarea {
  width: 100%;
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.62);
  font: inherit;
  resize: vertical;
}

.submission-item aside {
  min-width: 220px;
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: end;
  color: var(--muted);
  text-align: right;
}

.submission-item a {
  color: var(--lacquer);
  font-weight: 900;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.review-actions button {
  padding: 9px 12px;
  font-size: 13px;
}

.review-actions button:disabled {
  opacity: 0.42;
  cursor: default;
}

.user-admin-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.user-admin-item strong {
  display: block;
  font-size: 20px;
}

.user-admin-item time {
  color: var(--muted);
  white-space: nowrap;
}

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

.workflow-line article {
  min-height: 165px;
  padding: 22px;
  border-radius: 24px;
}

.workflow-line span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff8e8;
  background: var(--night);
}

.home-cta {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.home-cta .home-kicker {
  margin-inline: auto;
}

.home-cta p {
  max-width: 620px;
  margin: 18px 0 26px;
}

.home-footer {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 34px;
  padding: 12px;
  border: 1px solid rgba(27, 23, 18, 0.1);
  border-radius: 999px;
  background: rgba(255, 249, 237, 0.54);
  box-shadow: 0 18px 54px rgba(45, 29, 9, 0.1);
}

.home-footer a,
.home-footer button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.62);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.home-footer a:hover,
.home-footer button:hover {
  background: rgba(255, 252, 244, 0.92);
}

.footer-contact {
  position: relative;
}

.contact-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 8;
  width: 230px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 248, 235, 0.66);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 10%, rgba(191, 138, 53, 0.24), transparent 10rem),
    rgba(250, 240, 220, 0.96);
  box-shadow: 0 26px 80px rgba(25, 20, 14, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.footer-contact:hover .contact-card,
.footer-contact:focus-within .contact-card {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.contact-card span,
.contact-card small {
  color: var(--green);
  font: 900 11px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card a {
  padding: 0;
  color: var(--lacquer);
  background: transparent;
  font-size: 15px;
}

.contact-card img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(27, 23, 18, 0.1);
}

.legal-panel,
.error-panel {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 6vw, 68px);
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 38px;
  background:
    radial-gradient(circle at 84% 12%, rgba(35, 93, 76, 0.2), transparent 18rem),
    rgba(255, 249, 237, 0.68);
  box-shadow: 0 30px 90px rgba(45, 29, 9, 0.16);
}

.legal-panel h1,
.error-panel h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.12em;
}

.legal-panel article {
  padding: 22px;
  border: 1px solid rgba(27, 23, 18, 0.1);
  border-radius: 24px;
  background: rgba(255, 252, 244, 0.56);
}

.legal-panel h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.06em;
}

.legal-panel p,
.error-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 1040px) {
  .home-nav {
    grid-template-columns: 1fr auto;
  }

  .home-nav-links {
    display: none;
  }

  .home-hero,
  .home-section.split,
  .submission-layout {
    grid-template-columns: 1fr;
  }

  .mirror-card {
    min-height: 590px;
  }

  .terminal-body {
    min-height: 520px;
  }

  .home-skill-grid,
  .workflow-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-detail-grid {
    grid-template-columns: 1fr;
  }

  .home-strip {
    flex-wrap: wrap;
  }

  .home-strip span {
    min-width: 30%;
  }
}

@media (max-width: 620px) {
  .home-shell {
    width: min(100vw - 18px, 1220px);
    padding-top: 84px;
  }

  .home-nav {
    top: 8px;
    width: min(100vw - 18px, 1220px);
  }

  .home-brand strong {
    font-size: 21px;
  }

  .home-nav-action {
    padding: 12px 14px;
    font-size: 14px;
  }

  .home-hero {
    gap: 24px;
    padding-top: 40px;
  }

  .home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-primary,
  .home-secondary {
    width: 100%;
  }

  .mirror-card {
    min-height: 520px;
    border-radius: 28px;
  }

  .terminal-body {
    min-height: 440px;
    padding: 18px;
  }

  .terminal-line {
    width: 100%;
    padding: 14px;
  }

  .terminal-line p {
    font-size: 15px;
  }

  .floating-note {
    display: none;
  }

  .skill-detail-shell {
    width: min(100vw - 18px, 1120px);
    padding-top: 10px;
  }

  .skill-detail-nav {
    align-items: stretch;
    flex-direction: column;
    border-radius: 28px;
  }

  .skill-detail-nav > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .skill-detail-hero {
    min-height: 420px;
    border-radius: 30px;
  }

  .skill-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .submission-copy {
    min-height: 440px;
  }

  .submission-item {
    grid-template-columns: 1fr;
  }

  .submission-item aside {
    justify-items: start;
    text-align: left;
  }

  .user-admin-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-admin-item time {
    white-space: normal;
  }

  .mirror-dialogue article:last-child {
    width: 100%;
  }

  .home-strip span,
  .home-skill-grid,
  .workflow-line,
  .skill-detail-grid {
    min-width: 100%;
    grid-template-columns: 1fr;
  }

  .home-footer {
    align-items: stretch;
    flex-direction: column;
    border-radius: 28px;
  }

  .contact-card {
    left: 0;
    width: min(260px, calc(100vw - 58px));
    transform: translate(0, 10px);
  }

  .footer-contact:hover .contact-card,
  .footer-contact:focus-within .contact-card {
    transform: translate(0, 0);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 24, 15, 0.42) rgba(255, 249, 237, 0.34);
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 249, 237, 0.34);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid rgba(255, 249, 237, 0.68);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(143, 45, 28, 0.42), rgba(35, 93, 76, 0.36)),
    rgba(86, 24, 15, 0.38);
}

*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(143, 45, 28, 0.66), rgba(35, 93, 76, 0.52)),
    rgba(86, 24, 15, 0.56);
}

*::-webkit-scrollbar-button {
  display: none;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(191, 138, 53, 0.34), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(35, 93, 76, 0.24), transparent 34rem),
    linear-gradient(135deg, #f8efdf 0%, #dfc9a7 48%, #a88a5c 100%);
  overflow: hidden;
}

body.landing-page {
  overflow: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(27, 23, 18, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 23, 18, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, black, transparent 78%);
}

body.landing-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 250, 240, 0.18) 42% 43%, transparent 43% 100%),
    radial-gradient(circle at 72% 18%, rgba(143, 45, 28, 0.16), transparent 21rem);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.mirror-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100vw - 28px));
  height: 100vh;
  max-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: minmax(62px, auto) minmax(0, 1fr);
  gap: 9px;
  padding: 9px 0;
}

.top-zone {
  position: sticky;
  top: 6px;
  z-index: 10;
  display: block;
  align-items: stretch;
  animation: rise 600ms ease both;
}

.dock,
.history-panel,
.chat-panel {
  border: 1px solid var(--line);
  background: var(--vellum);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font: 700 11px/1.2 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dock {
  min-height: 62px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  padding: 7px;
  border-radius: 16px 28px 16px 28px;
}

.dock-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  padding: 8px 11px;
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 15px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 246, 0.88), rgba(234, 213, 177, 0.52)),
    rgba(255, 249, 237, 0.62);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dock-item:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 45, 28, 0.28);
  box-shadow: 0 15px 34px rgba(52, 33, 11, 0.16);
}

.dock-item.hidden {
  display: none;
}

.dock-item span {
  color: var(--muted);
  font: 700 9px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dock-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--lacquer-dark);
  font-size: 14px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-item.auth {
  background: linear-gradient(135deg, var(--night), #3d2418);
}

.dock-item.auth span,
.dock-item.auth strong {
  color: #fff3db;
}

.workspace {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 12px;
  animation: rise 600ms 90ms ease both;
}

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

.history-panel,
.chat-panel {
  min-height: 0;
  overflow: hidden;
}

.history-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 18px 18px 18px 34px;
  transition: max-width 200ms ease, opacity 200ms ease;
}

.history-panel.collapsed .panel-head {
  height: 100%;
  align-content: start;
  flex-direction: column;
  justify-content: flex-start;
  padding: 14px 10px;
}

.history-panel.collapsed .panel-head h2,
.history-panel.collapsed .panel-head .eyebrow,
.history-panel.collapsed #new-chat,
.history-panel.collapsed .conversation-list {
  display: none;
}

.history-panel.collapsed .history-actions {
  display: grid;
  width: 100%;
}

.panel-head,
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 18, 15, 0.04);
}

.panel-head h2,
.chat-header h2 {
  margin: 5px 0 0;
  font-size: 26px;
  letter-spacing: -0.05em;
}

.history-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-button,
.ghost-button,
.modal-primary {
  border-radius: 999px;
  color: #fff8e8;
  background: var(--night);
  font: 700 13px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.icon-button,
.ghost-button {
  padding: 11px 15px;
}

.icon-button.subtle {
  color: var(--ink);
  background: rgba(255, 252, 244, 0.72);
  border: 1px solid rgba(27, 23, 18, 0.12);
}

.icon-button:hover,
.ghost-button:hover,
.modal-primary:hover {
  transform: translateY(-2px);
  background: var(--lacquer);
  box-shadow: 0 14px 26px rgba(42, 27, 9, 0.18);
}

.conversation-list {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
}

.conversation-item {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.58);
  text-align: left;
}

.conversation-item.active {
  border-color: rgba(143, 45, 28, 0.44);
  background: rgba(143, 45, 28, 0.08);
}

.conversation-item.pinned {
  border-color: rgba(191, 138, 53, 0.46);
  background:
    linear-gradient(135deg, rgba(191, 138, 53, 0.12), rgba(255, 252, 244, 0.62)),
    rgba(255, 252, 244, 0.58);
}

.conversation-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.conversation-item em {
  color: var(--green);
  font: 700 11px/1.2 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 18px 18px 34px 18px;
}

.status-dot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2fa56c;
  box-shadow: 0 0 0 5px rgba(47, 165, 108, 0.14);
}

.messages {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.empty-state {
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  color: var(--ink);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 12px;
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.12em;
}

.empty-state p {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.7;
}

.message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  animation: messageIn 260ms ease both;
}

.message.user {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.message.user .avatar {
  grid-column: 2;
  background: var(--green);
}

.message.user .bubble {
  grid-row: 1;
  border-radius: 24px 8px 24px 24px;
  background: rgba(35, 93, 76, 0.11);
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--lacquer);
  color: #fff2db;
  font-weight: 800;
}

.avatar::before {
  content: "镜";
}

.message.user .avatar::before {
  content: "你";
}

.bubble {
  padding: 15px 17px;
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 8px 24px 24px 24px;
  background: rgba(255, 252, 244, 0.72);
}

.role {
  margin-bottom: 7px;
  color: var(--muted);
  font: 700 11px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.content {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 16px;
  line-height: 1.75;
}

.message.assistant .content {
  white-space: normal;
}

.content > :first-child {
  margin-top: 0;
}

.content > :last-child {
  margin-bottom: 0;
}

.content p,
.content ul,
.content ol,
.content blockquote,
.content pre {
  margin: 0 0 0.85em;
}

.content ul,
.content ol {
  padding-left: 1.35em;
}

.content li + li {
  margin-top: 0.25em;
}

.content code {
  padding: 0.12em 0.36em;
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 7px;
  background: rgba(255, 249, 237, 0.8);
  color: var(--lacquer-dark);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.content pre {
  overflow-x: auto;
  padding: 13px 14px;
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 14px;
  background: rgba(25, 22, 17, 0.88);
  color: #fff2db;
}

.content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.content blockquote {
  padding: 0.2em 0 0.2em 0.9em;
  border-left: 3px solid rgba(143, 45, 28, 0.46);
  color: #4e4639;
}

.content a {
  color: var(--green);
  font-weight: 800;
  text-decoration-color: rgba(35, 93, 76, 0.32);
  text-underline-offset: 3px;
}

.content table {
  width: 100%;
  margin: 0 0 0.85em;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
}

.content th,
.content td {
  padding: 8px 10px;
  border: 1px solid rgba(27, 23, 18, 0.13);
}

.content th {
  background: rgba(143, 45, 28, 0.1);
}

.message-tools {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -4px;
  color: var(--muted);
  font-size: 12px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.message.user .message-tools {
  grid-column: 1;
  justify-content: flex-end;
}

.message:hover .message-tools {
  opacity: 1;
}

.message.continued .avatar {
  opacity: 0;
}

.message.continued .role {
  display: none;
}

.message-tools button {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.7);
  border: 1px solid rgba(27, 23, 18, 0.12);
  font-size: 12px;
}

.message-tools button:hover {
  color: #fff8e8;
  background: var(--night);
}

.message-tools .absorbed {
  color: var(--green);
  font-weight: 800;
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(248, 240, 227, 0.82);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(27, 23, 18, 0.18);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.82);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 58px;
  resize: none;
  padding: 14px 16px;
}

input:focus,
textarea:focus {
  border-color: rgba(143, 45, 28, 0.55);
  box-shadow: 0 0 0 4px rgba(143, 45, 28, 0.1);
}

.composer button {
  min-width: 96px;
  border-radius: 18px;
  color: #fff8e8;
  background: var(--night);
  font-weight: 800;
}

button:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.product-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.product-nav {
  position: sticky;
  top: 14px;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(27, 23, 18, 0.14);
  border-radius: 999px;
  background: rgba(255, 249, 237, 0.72);
  box-shadow: 0 18px 54px rgba(45, 29, 9, 0.18);
  backdrop-filter: blur(22px);
}

.brand-mark,
.nav-links,
.hero-actions,
.hero-metrics,
.product-strip {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark span {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 28%, var(--green) 29% 42%, transparent 43%),
    linear-gradient(135deg, #fff7e8, #bf8a35);
  box-shadow: inset 0 0 0 2px rgba(27, 23, 18, 0.14);
}

.brand-mark strong {
  font-size: 20px;
  letter-spacing: -0.08em;
}

.nav-links {
  gap: 8px;
  justify-content: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(27, 23, 18, 0.06);
}

.nav-links a,
.nav-cta,
.primary-action,
.secondary-action {
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font: 700 12px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 249, 237, 0.72);
}

.nav-cta {
  justify-self: end;
  padding: 11px 17px;
  border-radius: 999px;
  color: #fff8e8;
  background: var(--night);
  font-weight: 800;
}

.nav-cta:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.product-hero {
  min-height: calc(100vh - 98px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 38px;
  align-items: center;
  padding: 74px 0 38px;
}

.hero-copy {
  animation: rise 640ms ease both;
}

.launch-label {
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 11px;
  border: 1px solid rgba(35, 93, 76, 0.18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 249, 237, 0.58);
  font: 800 11px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 10.5em;
  margin: 0;
  font-size: clamp(52px, 7.6vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.12em;
}

.hero-lead {
  max-width: 35em;
  margin: 24px 0 0;
  color: #4e4639;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.7;
}

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

.primary-action,
.secondary-action {
  display: inline-grid;
  min-height: 50px;
  place-items: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-action {
  color: #fff8e8;
  background: linear-gradient(135deg, var(--night), var(--lacquer-dark));
  box-shadow: 0 18px 40px rgba(86, 24, 15, 0.24);
}

.secondary-action {
  color: var(--ink);
  border: 1px solid rgba(27, 23, 18, 0.16);
  background: rgba(255, 249, 237, 0.68);
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-metrics span {
  padding: 9px 12px;
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 14px;
  background: rgba(255, 249, 237, 0.42);
  color: var(--muted);
  font-size: 13px;
}

.hero-metrics strong {
  color: var(--lacquer-dark);
  font-size: 18px;
}

.hero-device {
  position: relative;
  min-height: 560px;
  padding: 12px;
  border: 1px solid rgba(255, 248, 235, 0.56);
  border-radius: 38px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 250, 240, 0.88), transparent 22rem),
    linear-gradient(135deg, rgba(86, 24, 15, 0.9), rgba(35, 93, 76, 0.78));
  box-shadow: 0 34px 90px rgba(45, 29, 9, 0.32);
  transform: rotate(1.2deg);
  animation: rise 680ms 90ms ease both;
}

.hero-device::before {
  content: "";
  position: absolute;
  inset: 46px -20px -18px 42px;
  z-index: -1;
  border-radius: 40px;
  background: rgba(191, 138, 53, 0.24);
  filter: blur(10px);
}

.device-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 16px;
  color: rgba(255, 248, 235, 0.82);
  font: 700 12px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.08em;
}

.device-top span {
  margin-right: auto;
}

.device-top i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 248, 235, 0.72);
}

.device-grid {
  height: calc(100% - 42px);
  min-height: 494px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 249, 237, 0.84);
}

.device-grid aside,
.device-grid section {
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 22px;
  background: rgba(255, 252, 244, 0.56);
}

.device-grid aside {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.device-grid aside p {
  margin: 0 0 8px;
  color: var(--green);
  font: 800 10px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.16em;
}

.device-grid aside b {
  display: block;
  padding: 12px;
  border-radius: 14px;
  background: rgba(143, 45, 28, 0.08);
  font-size: 13px;
}

.device-grid section {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.chat-chip {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff8e8;
  background: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.device-grid article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 252, 244, 0.78);
  box-shadow: inset 0 0 0 1px rgba(27, 23, 18, 0.08);
}

.device-grid article small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font: 800 10px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.18em;
}

.device-grid article p {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

.user-preview {
  margin-left: 68px;
  background: rgba(35, 93, 76, 0.12) !important;
}

.product-strip {
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 34px;
  padding: 10px;
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 24px;
  background: rgba(255, 249, 237, 0.54);
}

.product-strip span {
  flex: 1;
  padding: 18px 12px;
  border-radius: 17px;
  background: rgba(255, 252, 244, 0.6);
  text-align: center;
  font-weight: 900;
}

.section-block,
.skill-wall,
.access-panel {
  margin-top: 34px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(27, 23, 18, 0.13);
  border-radius: 34px;
  background: rgba(255, 249, 237, 0.66);
  box-shadow: 0 24px 70px rgba(45, 29, 9, 0.16);
  backdrop-filter: blur(18px);
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
}

.section-heading h2,
.access-panel h2 {
  max-width: 13em;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.1em;
}

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

.feature-grid article,
.skill-cards article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 252, 244, 0.82), rgba(234, 213, 177, 0.28)),
    rgba(255, 249, 237, 0.58);
}

.feature-grid article span {
  color: var(--lacquer);
  font: 900 13px/1 "Gill Sans", "Trebuchet MS", sans-serif;
}

.feature-grid h3 {
  margin: 44px 0 10px;
  font-size: 26px;
  letter-spacing: -0.06em;
}

.feature-grid p,
.access-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.skill-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-cards article {
  min-height: 150px;
  display: grid;
  align-content: space-between;
}

.skill-cards strong {
  font-size: 24px;
  letter-spacing: -0.06em;
}

.skill-cards span {
  color: var(--muted);
  line-height: 1.55;
}

.access-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 24px;
  background:
    radial-gradient(circle at 88% 22%, rgba(35, 93, 76, 0.18), transparent 18rem),
    rgba(255, 249, 237, 0.72);
}

.thinking .content::after {
  content: "▌";
  margin-left: 2px;
  animation: blink 900ms steps(2, start) infinite;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(25, 20, 14, 0.28);
  backdrop-filter: blur(16px);
  animation: fadeIn 160ms ease both;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: min(540px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 42px));
  overflow-y: auto;
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255, 248, 235, 0.42);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(191, 138, 53, 0.22), transparent 16rem),
    rgba(250, 240, 220, 0.92);
  box-shadow: 0 34px 120px rgba(16, 12, 8, 0.38);
  animation: modalIn 220ms ease both;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.72);
  font-size: 24px;
}

.modal-card h2 {
  margin: 8px 0 20px;
  font-size: 34px;
  letter-spacing: -0.06em;
}

.modal-body {
  display: grid;
  gap: 14px;
}

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

.model-test-hint {
  padding: 12px 14px;
  border: 1px solid rgba(27, 23, 18, 0.12);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 252, 244, 0.62);
  font-size: 13px;
  line-height: 1.55;
}

.model-list {
  display: grid;
  gap: 16px;
}

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

.model-group h3 {
  margin: 0;
  color: var(--green);
  font: 700 12px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.model-row {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
  align-items: stretch;
}

.model-row.selected .model-pick {
  border-color: rgba(143, 45, 28, 0.52);
  background: rgba(143, 45, 28, 0.09);
}

.model-pick,
.model-test {
  border: 1px solid rgba(27, 23, 18, 0.14);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.7);
}

.model-pick {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  text-align: left;
}

.model-pick span {
  color: var(--muted);
  font-size: 12px;
}

.model-test {
  color: #fff8e8;
  background: var(--night);
  font-size: 13px;
  font-weight: 800;
}

.model-test.ok {
  background: #1f8f5f;
}

.model-test.failed {
  background: var(--lacquer);
}

.option-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(27, 23, 18, 0.14);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.7);
  text-align: left;
}

.option-card.selected {
  border-color: rgba(143, 45, 28, 0.52);
  background: rgba(143, 45, 28, 0.09);
}

.option-card span,
.field-help,
.account-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

label {
  color: var(--green);
  font: 700 12px/1 "Gill Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-primary {
  min-height: 48px;
  padding: 0 18px;
}

.modal-primary.danger {
  background: var(--lacquer);
}

.temperature-readout {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.temperature-readout span {
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

input[type="range"] {
  accent-color: var(--lacquer);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tab {
  min-height: 44px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.7);
}

.tab.active {
  color: #fff8e8;
  background: var(--night);
}

.auth-fields {
  display: grid;
  gap: 10px;
}

.account-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 244, 0.68);
}

.context-menu {
  position: fixed;
  z-index: 30;
  width: 168px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 248, 235, 0.42);
  border-radius: 18px;
  background: rgba(250, 240, 220, 0.96);
  box-shadow: 0 22px 70px rgba(16, 12, 8, 0.28);
  backdrop-filter: blur(18px);
}

.context-menu.hidden {
  display: none;
}

.context-menu button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.72);
  text-align: left;
}

.context-menu button:hover {
  color: #fff8e8;
  background: var(--night);
}

.context-menu button.danger:hover {
  background: var(--lacquer);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 1040px) {
  body {
    overflow: auto;
  }

  .mirror-shell {
    height: auto;
    min-height: 100vh;
    max-height: none;
  }

  .top-zone {
    top: 6px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

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

  .chat-panel {
    min-height: 72vh;
  }

  .product-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .product-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .hero-device {
    min-height: 500px;
    transform: none;
  }

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

  .product-strip {
    flex-wrap: wrap;
  }

  .product-strip span {
    min-width: 30%;
  }

  .access-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  html,
  body.chat-page {
    min-height: 100%;
    overflow: hidden;
  }

  body.chat-page {
    background:
      radial-gradient(circle at 12% 0%, rgba(255, 246, 224, 0.96), transparent 34%),
      radial-gradient(circle at 100% 12%, rgba(194, 168, 112, 0.24), transparent 30%),
      linear-gradient(180deg, #f3ead8 0%, #e8d8ba 100%);
  }

  body.chat-page::before,
  body.chat-page::after {
    opacity: 0.34;
  }

  .mirror-shell {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 7px;
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .top-zone {
    position: relative;
    top: auto;
    z-index: 15;
  }

  .dock {
    min-height: 52px;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 6px;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(45, 29, 9, 0.16);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .dock::-webkit-scrollbar {
    display: none;
  }

  .dock-item {
    min-width: 112px;
    flex: 0 0 112px;
    gap: 3px;
    padding: 8px 9px;
    border-radius: 15px;
    scroll-snap-align: start;
  }

  .dock-item.wide {
    min-width: 148px;
    flex-basis: 148px;
  }

  .dock-item.compact {
    min-width: 82px;
    flex-basis: 82px;
  }

  .dock-item.auth {
    min-width: 118px;
    flex-basis: 118px;
  }

  .dock-item span {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .dock-item strong {
    font-size: 13px;
  }

  .workspace {
    min-height: 0;
    height: 100%;
    gap: 10px;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .history-panel {
    max-height: 58px;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    transition: max-height 220ms ease;
  }

  .history-panel:not(.collapsed) {
    max-height: min(42dvh, 340px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .history-panel.collapsed .panel-head {
    height: auto;
    min-height: 56px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px 9px 14px;
  }

  .history-panel.collapsed .panel-head h2,
  .history-panel.collapsed .panel-head .eyebrow {
    display: block;
  }

  .history-panel.collapsed #new-chat,
  .history-panel.collapsed .conversation-list {
    display: none;
  }

  .history-panel.collapsed .history-actions {
    width: auto;
    display: flex;
  }

  .history-panel .panel-head {
    padding: 10px 12px;
  }

  .history-panel .panel-head h2 {
    margin-top: 2px;
    font-size: 20px;
    letter-spacing: -0.04em;
  }

  .history-panel .eyebrow {
    font-size: 9px;
  }

  .history-actions {
    gap: 6px;
  }

  .icon-button,
  .ghost-button {
    min-height: 34px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .conversation-list {
    gap: 8px;
    padding: 10px;
  }

  .conversation-item {
    padding: 11px 12px;
    border-radius: 16px;
  }

  .conversation-item span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 12px;
  }

  .chat-panel {
    min-height: 0;
    height: 100%;
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(45, 29, 9, 0.2);
  }

  .chat-header {
    min-height: 66px;
    gap: 10px;
    padding: 11px 12px;
  }

  .chat-header h2 {
    max-width: 62vw;
    overflow: hidden;
    margin-top: 3px;
    font-size: 20px;
    letter-spacing: -0.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .status-dot {
    gap: 7px;
    font-size: 12px;
  }

  .status-dot span {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 4px rgba(47, 165, 108, 0.13);
  }

  #clear {
    flex: 0 0 auto;
    padding-inline: 12px;
  }

  .messages {
    gap: 12px;
    padding: 14px 10px 12px;
  }

  .empty-state {
    padding: 22px 18px;
  }

  .empty-state h2 {
    margin-bottom: 10px;
    font-size: clamp(52px, 18vw, 78px);
    letter-spacing: -0.1em;
  }

  .empty-state p {
    max-width: 18em;
    font-size: 14px;
    line-height: 1.65;
  }

  .message {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
  }

  .message.user {
    grid-template-columns: minmax(0, 1fr) 32px;
  }

  .avatar {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    font-size: 14px;
  }

  .bubble {
    max-width: 100%;
    padding: 12px 13px;
    border-radius: 7px 18px 18px 18px;
  }

  .message.user .bubble {
    border-radius: 18px 7px 18px 18px;
  }

  .role {
    margin-bottom: 6px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .content {
    font-size: 15px;
    line-height: 1.68;
  }

  .content pre {
    max-width: calc(100vw - 92px);
    padding: 11px 12px;
  }

  .content table {
    display: block;
    overflow-x: auto;
  }

  .message-tools {
    gap: 6px;
    margin-top: -2px;
    overflow-x: auto;
    opacity: 1;
    scrollbar-width: none;
  }

  .message-tools::-webkit-scrollbar {
    display: none;
  }

  .composer {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    background: rgba(248, 240, 227, 0.94);
  }

  .composer textarea {
    min-height: 48px;
    max-height: 132px;
    padding: 12px 13px;
    border-radius: 17px;
    font-size: 15px;
  }

  .composer button {
    min-height: 44px;
    border-radius: 16px;
    font-size: 16px;
  }

  .modal-backdrop {
    padding: 12px;
    align-items: end;
  }

  .modal-card {
    width: 100%;
    max-height: min(82dvh, 680px);
    overflow-y: auto;
    border-radius: 24px 24px 18px 18px;
    padding: 20px 16px 16px;
  }

  .modal-card h2 {
    font-size: 26px;
  }

  .product-shell {
    width: min(100vw - 18px, 1180px);
    padding-top: 10px;
  }

  .product-nav {
    top: 8px;
    padding: 8px;
  }

  .brand-mark strong {
    font-size: 18px;
  }

  .nav-cta {
    padding: 10px 13px;
    font-size: 14px;
  }

  .product-hero {
    gap: 24px;
    padding-top: 36px;
  }

  .hero-copy h1 {
    max-width: 8.6em;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-device {
    min-height: auto;
    border-radius: 26px;
  }

  .device-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .device-grid aside {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .device-grid aside p {
    grid-column: 1 / -1;
  }

  .device-grid aside b {
    padding: 10px;
    font-size: 12px;
  }

  .user-preview {
    margin-left: 0;
  }

  .feature-grid,
  .skill-cards {
    grid-template-columns: 1fr;
  }

  .product-strip span {
    min-width: 100%;
  }
}

/* Figma Modern Product Launch inspired homepage */
body.launch-template {
  --launch-bg: #f7f7f2;
  --launch-ink: #11120f;
  --launch-muted: #6f7068;
  --launch-line: #d8d8cf;
  --launch-green: #7f9b63;
  --launch-panel: #ffffff;
  color: var(--launch-ink);
  background: var(--launch-bg);
  font-family: "Aptos", "Gill Sans", "Trebuchet MS", "Noto Sans SC", sans-serif;
}

body.launch-template::before,
body.launch-template::after {
  display: none;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: #11120f;
}

.skip-link:focus {
  transform: translateY(0);
}

.launch-nav,
.launch-hero,
.launch-main,
.launch-footer {
  width: min(1440px, calc(100vw - 40px));
  margin: 0 auto;
}

.launch-nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--launch-line);
}

.launch-brand {
  color: var(--launch-ink);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.launch-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  padding: 4px 4px 4px 18px;
  border: 1px solid #20211e;
  border-radius: 999px;
  color: var(--launch-ink);
  background: transparent;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.launch-cta:hover {
  transform: translateY(-1px);
  color: #fff;
  background: var(--launch-ink);
}

.phone-glyph {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, transparent 42%, currentColor 43% 58%, transparent 59%),
    radial-gradient(circle at 54% 44%, currentColor 0 8%, transparent 9%),
    var(--launch-green);
}

.launch-hero {
  padding: 70px 0 0;
}

.launch-hero h1 {
  max-width: 1060px;
  margin: 0 auto 46px;
  color: var(--launch-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  font-size: clamp(72px, 13vw, 184px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-align: center;
}

.launch-visual {
  position: relative;
  height: min(58vw, 720px);
  min-height: 420px;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(17, 18, 15, 0.05), rgba(17, 18, 15, 0.18)),
    radial-gradient(circle at 24% 34%, #e4ead9 0 9%, transparent 10%),
    radial-gradient(circle at 62% 26%, #9eb580 0 10%, transparent 11%),
    radial-gradient(circle at 78% 72%, #c2d2ad 0 13%, transparent 14%),
    linear-gradient(135deg, #eff1ea 0%, #ccd6bb 45%, #7f9b63 100%);
}

.launch-visual::before {
  content: "";
  position: absolute;
  inset: 11% 7% 0;
  background:
    linear-gradient(135deg, transparent 0 49.6%, rgba(17, 18, 15, 0.16) 50%, transparent 50.4%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.22) 0 1px, transparent 1px 84px);
  clip-path: polygon(0 76%, 13% 48%, 28% 58%, 43% 28%, 58% 46%, 73% 14%, 100% 72%, 100% 100%, 0 100%);
}

.launch-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 58%, rgba(255,255,255,.82) 0 4px, transparent 5px),
    radial-gradient(circle at 52% 34%, rgba(255,255,255,.9) 0 4px, transparent 5px),
    radial-gradient(circle at 72% 49%, rgba(255,255,255,.82) 0 4px, transparent 5px),
    linear-gradient(180deg, transparent 68%, rgba(17,18,15,.18));
}

.visual-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
}

.visual-orbit-one {
  width: 340px;
  height: 340px;
  top: 11%;
  left: 12%;
}

.visual-orbit-two {
  width: 460px;
  height: 460px;
  right: 7%;
  bottom: 4%;
}

.visual-panel {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 48%;
  width: min(440px, 78vw);
  transform: translate(-50%, -50%);
  padding: 26px;
  border: 1px solid rgba(17, 18, 15, 0.16);
  background: rgba(247, 247, 242, 0.78);
  backdrop-filter: blur(18px);
}

.visual-panel p,
.visual-panel span {
  margin: 0;
  color: var(--launch-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-panel strong {
  display: block;
  margin: 34px 0 12px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  font-size: 82px;
  font-weight: 500;
  letter-spacing: -0.13em;
}

.visual-card {
  position: absolute;
  z-index: 3;
  padding: 12px 16px;
  border: 1px solid rgba(17, 18, 15, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.card-a {
  left: 9%;
  bottom: 20%;
}

.card-b {
  right: 18%;
  top: 22%;
}

.card-c {
  right: 8%;
  bottom: 23%;
}

.launch-main {
  padding: 74px 0 0;
}

.trusted-row {
  display: grid;
  grid-template-columns: 120px repeat(6, 1fr);
  gap: 20px;
  align-items: center;
  padding: 0 0 74px;
  border-bottom: 1px solid var(--launch-line);
}

.trusted-row p,
.trusted-row span {
  margin: 0;
  color: var(--launch-muted);
  font-size: 14px;
}

.trusted-row span {
  justify-self: center;
  color: #343631;
  font-weight: 750;
}

.launch-section,
.big-picture,
.specs-section,
.quote-section,
.how-section,
.connect-section {
  padding: 86px 0;
  border-bottom: 1px solid var(--launch-line);
}

.section-title-row,
.specs-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}

.section-title-row h2,
.specs-section h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.section-title-row p,
.specs-section > div > p {
  max-width: 780px;
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 70px;
}

.benefit-grid article {
  padding-top: 26px;
  border-top: 1px solid var(--launch-line);
}

.benefit-icon {
  width: 34px;
  height: 34px;
  display: block;
  margin-bottom: 52px;
  border: 1px solid var(--launch-ink);
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--launch-green) 0 28%, transparent 29%),
    transparent;
}

.benefit-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.benefit-grid p,
.picture-copy p,
.how-grid p,
.connect-section p,
.specs-section span {
  margin: 0;
  color: var(--launch-muted);
  line-height: 1.65;
}

.big-picture {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 58px;
  align-items: center;
}

.picture-frame,
.quote-image,
.connect-image {
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 18%, #ecf0e4 0 12%, transparent 13%),
    radial-gradient(circle at 72% 72%, #9fb782 0 18%, transparent 19%),
    linear-gradient(135deg, #dfe6d4, #768f5e);
}

.picture-frame div {
  width: 100%;
  height: 100%;
  min-height: 520px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.32) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.26) 0 1px, transparent 1px 72px);
  clip-path: polygon(0 78%, 18% 45%, 36% 58%, 52% 20%, 70% 50%, 86% 30%, 100% 68%, 100% 100%, 0 100%);
}

.picture-copy h2,
.how-section h2,
.connect-section h2 {
  margin: 0 0 24px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.value-list {
  display: grid;
  gap: 0;
  margin: 46px 0 28px;
  border-top: 1px solid var(--launch-line);
}

.value-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--launch-line);
}

.value-list b,
.how-grid b {
  color: var(--launch-muted);
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--launch-ink);
  font-weight: 750;
  text-decoration: none;
}

.text-link::after {
  content: "→";
}

.specs-section > div:first-child {
  display: grid;
  align-content: start;
  gap: 22px;
}

.spec-table {
  border-top: 1px solid var(--launch-line);
}

.spec-table > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 62px;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--launch-line);
}

.spec-table span,
.spec-table b {
  font-size: 15px;
}

.spec-table b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spec-table b::before {
  content: "✓";
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--launch-green);
  font-size: 12px;
}

.spec-head span {
  color: var(--launch-ink);
  font-weight: 800;
}

.quote-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 62px;
  align-items: center;
}

.quote-image {
  min-height: 440px;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(circle at 50% 32%, #f1f1ea 0 14%, transparent 15%),
    radial-gradient(circle at 28% 68%, #ccd7bf 0 22%, transparent 23%),
    radial-gradient(circle at 70% 70%, #879f6d 0 28%, transparent 29%),
    #dfe6d4;
}

blockquote {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  font-size: clamp(34px, 4.4vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

blockquote cite {
  display: block;
  margin-top: 28px;
  color: var(--launch-muted);
  font-family: "Aptos", "Gill Sans", "Trebuchet MS", "Noto Sans SC", sans-serif;
  font-size: 15px;
  font-style: normal;
  letter-spacing: 0;
}

.how-section h2 {
  max-width: 760px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 58px;
  border-top: 1px solid var(--launch-line);
}

.how-grid article {
  min-height: 220px;
  padding: 24px 26px 0 0;
  border-right: 1px solid var(--launch-line);
}

.how-grid article:last-child {
  border-right: 0;
}

.how-grid h3 {
  margin: 62px 0 12px;
  font-size: 24px;
}

.connect-section {
  display: grid;
  justify-items: center;
  text-align: center;
  border-bottom: 0;
}

.connect-image {
  width: 100%;
  min-height: 420px;
  margin-bottom: 54px;
  background:
    radial-gradient(circle at 45% 40%, rgba(255,255,255,.74) 0 4px, transparent 5px),
    radial-gradient(circle at 18% 70%, #e8eddf 0 16%, transparent 17%),
    radial-gradient(circle at 76% 24%, #9eb580 0 18%, transparent 19%),
    linear-gradient(135deg, #e2e9d8, #7f9b63);
}

.connect-section p {
  max-width: 520px;
  margin-bottom: 26px;
}

.launch-cta.large {
  min-height: 52px;
}

.launch-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--launch-line);
}

.launch-footer a,
.launch-footer span {
  color: var(--launch-muted);
  font-size: 14px;
  text-decoration: none;
}

.launch-footer span {
  margin-left: auto;
}

@media (max-width: 980px) {
  .launch-nav,
  .launch-hero,
  .launch-main,
  .launch-footer {
    width: min(100vw - 28px, 1440px);
  }

  .trusted-row,
  .benefit-grid,
  .big-picture,
  .specs-section,
  .quote-section,
  .how-grid,
  .section-title-row {
    grid-template-columns: 1fr;
  }

  .trusted-row {
    gap: 14px;
  }

  .trusted-row span {
    justify-self: start;
  }

  .benefit-grid,
  .how-grid {
    gap: 26px;
  }

  .how-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--launch-line);
  }

  .spec-table {
    overflow-x: auto;
  }

  .spec-table > div {
    min-width: 680px;
  }
}

@media (max-width: 620px) {
  .launch-nav {
    height: 66px;
  }

  .launch-brand {
    font-size: 24px;
  }

  .launch-cta {
    min-height: 40px;
    padding-left: 14px;
    font-size: 14px;
  }

  .phone-glyph {
    width: 30px;
    height: 30px;
  }

  .launch-hero {
    padding-top: 48px;
  }

  .launch-hero h1 {
    margin-bottom: 32px;
    text-align: left;
  }

  .launch-visual {
    height: 520px;
  }

  .visual-panel {
    width: calc(100% - 34px);
  }

  .visual-panel strong {
    font-size: 64px;
  }

  .visual-card {
    display: none;
  }

  .trusted-row {
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: 50px;
  }

  .trusted-row p {
    grid-column: 1 / -1;
  }

  .launch-section,
  .big-picture,
  .specs-section,
  .quote-section,
  .how-section,
  .connect-section {
    padding: 58px 0;
  }

  .picture-frame,
  .picture-frame div,
  .quote-image,
  .connect-image {
    min-height: 320px;
  }

  .launch-footer {
    flex-wrap: wrap;
    gap: 14px;
    padding: 24px 0;
  }

  .launch-footer span {
    width: 100%;
    margin-left: 0;
  }
}
