:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --panel: rgba(18, 18, 16, 0.86);
  --panel-solid: #11110f;
  --line: rgba(214, 178, 99, 0.28);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #d8b15f;
  --gold-strong: #f0cf82;
  --text: #f4efe4;
  --muted: #aaa39a;
  --dim: #706a62;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(216, 177, 95, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, #090908 0%, #050505 42%, #0a0907 100%);
  color: var(--text);
  min-height: 100vh;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(22px);
}

.brand,
.top-actions,
.view-toggle,
.profile-meta,
.year-jump,
.form-row,
.timeline-tools,
.form-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 680;
  letter-spacing: 0;
}

.version-badge {
  display: block;
  margin-top: 3px;
  color: rgba(238, 230, 216, 0.42);
  font-size: 9px;
  font-weight: 620;
  line-height: 1;
  text-align: right;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(216, 177, 95, 0.35);
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  background: #050505 url("assets/turnpo-logo-full.png") center 35% / 210% auto no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 24px rgba(216, 177, 95, 0.14);
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

.top-actions {
  gap: 10px;
  justify-self: end;
}

body:not(.profile-open) .profile-only,
body.profile-open .home-only,
body:not(.owner-mode) .owner-only {
  display: none;
}

body.owner-mode #homeOwnerLogin {
  display: none;
}

body:not(.owner-mode) #openAdd {
  opacity: 0.55;
}

.view-toggle {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.toggle-btn,
.gold-btn,
.icon-btn,
.year-jump button,
.submit-btn {
  border: 0;
  color: var(--text);
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.toggle-btn.active {
  background: rgba(216, 177, 95, 0.14);
  color: var(--gold-strong);
}

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

.gold-btn,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #e2be72 0%, #a77b33 100%);
  color: #090806;
  font-weight: 720;
  box-shadow: 0 12px 30px rgba(216, 177, 95, 0.16);
}

.ghost-btn {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.ghost-btn:hover {
  border-color: rgba(216, 177, 95, 0.35);
  color: var(--gold-strong);
}

.copy-profile-btn {
  gap: 8px;
  color: var(--gold-strong);
}

.copy-profile-btn.is-copied {
  border-color: rgba(216, 177, 95, 0.52);
  background: rgba(216, 177, 95, 0.14);
}

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

.search-home {
  min-height: calc(100vh - 79px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  align-items: start;
  gap: clamp(36px, 7vw, 112px);
  padding: clamp(34px, 5.5vh, 52px) clamp(22px, 6vw, 96px) 64px;
}

.search-copy h1 {
  max-width: 720px;
  font-size: clamp(48px, 6.2vw, 84px);
  line-height: 0.96;
  font-weight: 760;
}

.search-copy .headline {
  max-width: 680px;
  margin-top: 30px;
  color: #d8d1c5;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.28;
}

.search-box {
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 58px 0 18px;
  padding: 8px;
  border: 1px solid rgba(216, 177, 95, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.search-box svg {
  margin-left: 8px;
  color: var(--gold);
}

.search-box input {
  min-height: 42px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.search-results {
  width: min(720px, 100%);
}

.home-band {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 26px;
  margin: 0 clamp(18px, 5vw, 72px) 42px;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.home-band h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
}

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

.mini-profile-card {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.mini-profile-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 1px solid rgba(216, 177, 95, 0.28);
  background:
    linear-gradient(135deg, rgba(216, 177, 95, 0.9), rgba(143, 103, 34, 0.42)),
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.5), transparent 34%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.mini-profile-card h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.mini-profile-card p,
.legal-copy p,
.trust-summary p,
.site-footer p {
  color: var(--muted);
  line-height: 1.55;
}

.trust-summary {
  align-self: center;
  max-width: 760px;
  padding: 22px;
  border: 1px solid rgba(216, 177, 95, 0.18);
  border-radius: var(--radius);
  background: rgba(216, 177, 95, 0.055);
}

.trust-summary p {
  margin-bottom: 0;
  color: #d9d1c3;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.22;
}

.site-footer {
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  gap: 18px;
  align-items: start;
  margin: 0 clamp(18px, 5vw, 72px) 34px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.site-footer details {
  max-width: min(520px, 100%);
  color: var(--muted);
}

.site-footer summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 13px;
  font-weight: 720;
}

.site-footer details p {
  margin: 12px 0 0;
  font-size: 13px;
}

.site-footer .ghost-btn {
  margin-top: 12px;
}

.founder-tools {
  display: grid;
  justify-items: end;
  justify-self: end;
}

.founder-tools > .ghost-btn {
  margin-top: 0;
}

.owner-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.owner-tool-grid .gold-btn,
.owner-tool-grid .ghost-btn {
  width: 100%;
  min-height: 36px;
  margin-top: 0;
  padding: 0 10px;
  font-size: 13px;
}

.person-result {
  width: 100%;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  text-align: left;
}

.person-result:hover {
  border-color: rgba(216, 177, 95, 0.35);
}

.person-result img {
  width: 58px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
  object-position: center 28%;
}

.person-result strong,
.person-result small {
  display: block;
}

.person-result small,
.empty-result,
.directory-card p {
  color: var(--muted);
}

.directory-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.directory-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.02;
  object-fit: cover;
}

.directory-card div {
  padding: 24px 28px 28px;
}

.directory-brand-copy {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.directory-brand-copy p,
.directory-brand-copy span {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
}

.directory-card h2 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.04;
}

.directory-brand-copy span {
  display: block;
}

.profile-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(26px, 5vw, 72px);
  align-items: end;
  padding: 82px clamp(18px, 5vw, 72px) 44px;
}

.timestamp,
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 9vw, 128px);
  line-height: 0.88;
  font-weight: 760;
  letter-spacing: 0;
}

.headline {
  width: min(720px, 100%);
  margin-bottom: 24px;
  color: #d9d1c3;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.14;
}

.profile-meta {
  flex-wrap: wrap;
  gap: 10px;
}

.profile-meta span,
.timeline-tag,
.profile-links a {
  border: 1px solid rgba(216, 177, 95, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(216, 177, 95, 0.06);
  font-size: 13px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.portrait-card small {
  display: block;
  margin-top: 10px;
  color: var(--gold);
}

.portrait-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(0.76) contrast(1.05);
}

.portrait-card div {
  padding: 18px;
}

.portrait-card strong,
.portrait-card span {
  display: block;
}

.portrait-card span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 22px clamp(18px, 5vw, 72px) 72px;
}

.ai-panel,
.timeline-section,
.archive-band,
.backend-band,
.event-form {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ai-panel {
  position: sticky;
  top: 90px;
  padding: 18px;
}

.panel-head,
.section-head,
.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.ai-panel h2,
.section-head h2,
.archive-band h2,
.form-head h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.1;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.icon-btn:hover {
  color: var(--gold-strong);
  border-color: rgba(216, 177, 95, 0.36);
}

#aiMarkdown {
  width: 100%;
  min-height: 420px;
  margin-top: 18px;
  padding: 18px;
  resize: vertical;
  border: 1px solid rgba(216, 177, 95, 0.14);
  border-radius: var(--radius);
  outline: none;
  background: #070707;
  color: #e8ddc8;
  line-height: 1.55;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.copy-status {
  margin-top: 12px;
  color: var(--dim);
  font-size: 13px;
}

.timeline-section {
  padding: 22px;
  overflow: hidden;
}

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

.year-jump {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.timeline-tools {
  gap: 8px;
  margin-left: auto;
}

.year-jump button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.timeline.vertical {
  position: relative;
  display: grid;
  gap: 26px;
  padding-left: 42px;
}

.timeline.vertical::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 12px;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(216, 177, 95, 0.04));
}

.year-block {
  position: relative;
  scroll-margin-top: 110px;
}

.year-block:focus {
  outline: none;
}

.year-label {
  position: absolute;
  left: -42px;
  top: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: #070707;
  color: var(--gold-strong);
  font-size: 0;
}

.year-label::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.year-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--gold-strong);
  font-size: 18px;
}

.year-title span {
  color: var(--dim);
  font-size: 13px;
}

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

.event-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

body.owner-mode #timelineList {
  cursor: copy;
}

body.owner-mode .event-card {
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

body.owner-mode .event-card:hover {
  border-color: rgba(216, 177, 95, 0.38);
  background: rgba(216, 177, 95, 0.07);
}

.event-card.private-card {
  border-color: rgba(216, 177, 95, 0.28);
  background: rgba(216, 177, 95, 0.055);
}

.why-line {
  color: #d8c8aa !important;
  font-size: 14px;
}

.event-media {
  display: grid;
  gap: 8px;
  align-self: start;
}

.event-media img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
}

.event-main-image {
  height: 150px;
}

.empty-media {
  min-height: 150px;
  border: 1px dashed var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.media-strip img,
.media-strip span {
  height: 38px;
  border-radius: 5px;
}

.media-strip span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 177, 95, 0.24);
  color: var(--gold);
  background: rgba(216, 177, 95, 0.08);
  font-size: 12px;
  font-weight: 760;
}

.event-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

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

.visibility-pill,
.small-action {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(216, 177, 95, 0.22);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(216, 177, 95, 0.07);
  font-size: 12px;
  font-weight: 720;
}

.small-action {
  cursor: pointer;
}

.small-action:hover {
  border-color: rgba(216, 177, 95, 0.5);
}

.event-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.12;
}

.event-date {
  color: var(--gold);
  font-size: 13px;
}

.event-card p {
  color: var(--muted);
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.timeline.horizontal {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 420px);
  gap: 18px;
  overflow-x: auto;
  padding: 16px 0 12px;
  scrollbar-color: var(--gold) #151515;
}

.timeline.horizontal .year-block {
  min-height: 100%;
}

.timeline.horizontal .year-label {
  display: none;
}

.timeline.horizontal .event-card {
  grid-template-columns: 1fr;
}

.timeline.horizontal .event-main-image {
  height: 190px;
}

.archive-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  margin: 0 clamp(18px, 5vw, 72px) 70px;
  padding: 28px;
}

.backend-band {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 26px;
  margin: 0 clamp(18px, 5vw, 72px) 22px;
  padding: 28px;
}

.backend-band h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
}

.backend-band p {
  color: var(--muted);
  line-height: 1.55;
}

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

.work-grid {
  display: grid;
  gap: 14px;
}

.work-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

a.work-card:hover {
  border-color: rgba(216, 177, 95, 0.4);
  background: rgba(216, 177, 95, 0.07);
  transform: translateY(-1px);
}

.work-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.work-card h3 {
  margin: 0;
  font-size: 24px;
}

.work-card p {
  color: var(--muted);
  line-height: 1.55;
}

.backend-grid article {
  min-height: 230px;
  padding: 18px;
  border: 1px solid rgba(216, 177, 95, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(216, 177, 95, 0.07), rgba(255, 255, 255, 0.025));
}

.backend-grid span {
  color: var(--gold);
  font-size: 13px;
}

.backend-grid h3 {
  margin: 54px 0 12px;
}

.doc-link {
  align-self: end;
  justify-self: start;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(216, 177, 95, 0.28);
  border-radius: var(--radius);
  color: var(--gold-strong);
  background: rgba(216, 177, 95, 0.07);
  font-size: 13px;
  font-weight: 720;
}

.archive-band h2 {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.02;
}

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

.rule-grid article {
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.rule-grid span {
  color: var(--gold);
  font-size: 13px;
}

.rule-grid h3 {
  margin: 42px 0 12px;
}

.rule-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease;
}

.drawer.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(14px);
}

.event-form {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(440px, calc(100vw - 36px));
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #11110f;
  overflow-y: auto;
  transform: translateX(28px);
  transition: transform 180ms ease;
}

.drawer.open .event-form {
  transform: translateX(0);
}

.auth-note {
  color: var(--muted);
  line-height: 1.45;
}

.auth-form .submit-btn {
  min-height: 46px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
.event-form textarea {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 12px;
}

.event-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  gap: 12px;
}

.source-modes,
.consent-stack,
.trust-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.source-modes label,
.consent-stack label {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.source-modes input,
.consent-stack input {
  width: auto;
  margin-top: 2px;
}

#sourceWorkspace {
  width: 100%;
  min-height: 440px;
  margin-top: 10px;
  padding: 18px;
  resize: vertical;
  border: 1px solid rgba(216, 177, 95, 0.14);
  border-radius: var(--radius);
  outline: none;
  background: #070707;
  color: #e8ddc8;
  line-height: 1.55;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.preview-summary {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.preview-summary p,
.trust-list p {
  color: var(--muted);
  line-height: 1.55;
}

.work-only[hidden],
.story-only[hidden] {
  display: none !important;
}

.form-status {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.45;
}

.form-actions {
  position: sticky;
  bottom: -20px;
  gap: 10px;
  margin-top: auto;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(17, 17, 15, 0), #11110f 34%);
}

.submit-btn {
  flex: 1;
}

.danger-btn {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 110, 110, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 110, 110, 0.08);
  color: #ffb3a7;
  font-weight: 720;
}

.danger-btn[hidden] {
  display: none;
}

.event-form > .submit-btn {
  margin-top: auto;
  width: 100%;
}

@media (max-width: 1060px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-self: start;
  }

  .search-home,
  .profile-shell,
  .workspace-grid,
  .backend-band,
  .home-band,
  .archive-band {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }

  .founder-tools {
    justify-self: start;
  }

  .ai-panel {
    position: static;
  }

  .portrait-card {
    max-width: 520px;
  }

  .directory-card {
    max-width: 520px;
  }
}

@media (max-width: 680px) {
  .search-home {
    padding: 46px 20px 34px;
  }

  .search-copy h1 {
    font-size: clamp(42px, 15vw, 58px);
  }

  .search-copy .headline {
    font-size: 18px;
  }

  .top-actions,
  .section-head,
  .form-actions,
  .archive-band {
    align-items: stretch;
  }

  .top-actions,
  .search-box,
  .section-head,
  .form-row {
    flex-direction: column;
  }

  .section-head {
    display: grid;
  }

  .search-box {
    display: flex;
  }

  .search-box input,
  .search-box .gold-btn {
    width: 100%;
  }

  .nav-links {
    display: none;
  }

  .toggle-btn span {
    display: none;
  }

  .profile-shell {
    padding-top: 48px;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card img {
    height: 210px;
  }

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

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

  .work-card-head,
  .work-card dl div {
    grid-template-columns: 1fr;
  }

  .timeline.vertical {
    padding-left: 28px;
  }

  .year-label {
    left: -34px;
  }
}
