:root {
  --ink: #22242a;
  --muted: #6f706f;
  --paper: #f4f1ea;
  --white: #fff;
  --line: #d9d5cd;
  --dark: #15171c;
  --dark-2: #20232a;
  --accent: #ff745f;
  --accent-soft: #ffded6;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-synthesis: none;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

:root[data-accent="sky"] {
  --accent: #3e9bc4;
  --accent-soft: #d7edf6;
}

:root[data-accent="lime"] {
  --accent: #6e9d38;
  --accent-soft: #e2efcd;
}

:root[data-accent="violet"] {
  --accent: #7e6ad0;
  --accent-soft: #e6e0fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgb(255 255 255 / 68%), transparent 28rem), var(--paper);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.5rem;
  color: white;
  background: var(--dark);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.site-header,
footer {
  display: flex;
  width: min(1160px, calc(100% - 3rem));
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 5rem;
}

.site-header nav,
footer nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header a,
footer a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.brand-mark {
  position: relative;
  display: block;
  width: 2.1rem;
  height: 1.65rem;
  border: 2px solid var(--ink);
  border-radius: 0.3rem;
  background: white;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 1.65rem;
  content: "";
  background: var(--ink);
  transform-origin: top;
}

.brand-mark::before {
  left: -2px;
  transform: rotate(35deg);
}

.brand-mark::after {
  right: -2px;
  transform: rotate(-35deg);
}

.brand-mark i {
  position: absolute;
  top: 0.5rem;
  left: 0.55rem;
  width: 0.7rem;
  height: 2px;
  background: var(--accent);
}

.brand-mark b {
  position: absolute;
  right: 0.48rem;
  bottom: 0.4rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.nav-button,
.button {
  display: inline-flex;
  min-height: 2.65rem;
  padding: 0.66rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 0.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.button:hover,
.nav-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--ink);
}

.button:active,
.nav-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

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

.button.primary {
  color: white;
  border-color: var(--dark);
  background: var(--dark);
  box-shadow: 0 4px 0 var(--accent);
}

.button.compact {
  min-height: 2.2rem;
  padding: 0.46rem 0.78rem;
  font-size: 0.82rem;
}

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

main {
  width: min(1160px, calc(100% - 3rem));
  margin-inline: auto;
}

.console-demo {
  display: grid;
  min-height: 31rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1.6rem;
  grid-template-columns: minmax(0, 0.9fr) 5rem minmax(0, 1.1fr);
  align-items: center;
  color: white;
  background:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px), var(--dark);
  background-size: 42px 42px;
  box-shadow: 0 1.25rem 3.8rem rgb(18 20 24 / 20%);
}

.demo-inbox,
.demo-stage {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgb(0 0 0 / 24%);
}

.demo-inbox {
  color: var(--ink);
  background: #ede9e1;
  transform: rotate(-1.2deg);
}

.demo-inbox > header,
.demo-stage > header {
  display: flex;
  height: 3.45rem;
  padding: 0 1rem;
  align-items: center;
  gap: 0.75rem;
}

.demo-inbox > header {
  border-bottom: 1px solid #d5d0c8;
  background: #faf8f3;
}

.window-dots {
  display: flex;
  gap: 0.3rem;
}

.window-dots i {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: #ff6e59;
}

.window-dots i:nth-child(2) {
  background: #ecc050;
}

.window-dots i:nth-child(3) {
  background: #61bd7e;
}

.count-badge {
  min-width: 1.55rem;
  margin-left: auto;
  border-radius: 2rem;
  color: white;
  background: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.55rem;
  text-align: center;
}

.letter-stack {
  display: grid;
  padding: 0.85rem;
  gap: 0.55rem;
}

.demo-letter {
  position: relative;
  display: grid;
  padding: 0.8rem;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  grid-template-columns: 2.2rem 1fr;
  align-items: center;
  gap: 0.65rem;
  background: white;
}

.demo-letter.active {
  border-color: var(--accent);
  box-shadow: 0 0.5rem 1.3rem rgb(31 31 35 / 10%);
}

.demo-letter.active i {
  position: absolute;
  right: 0.55rem;
  bottom: 0.45rem;
  width: 2.7rem;
  height: 0.35rem;
  border-radius: 1rem;
  background: var(--accent);
}

.letter-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent-soft);
}

.demo-letter strong {
  font-size: 0.78rem;
}

.demo-letter p {
  overflow: hidden;
  margin: 0.18rem 0 0;
  color: #6f6d68;
  font-size: 0.71rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-switch {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  color: #a6a7aa;
  font-size: 0.7rem;
  font-weight: 800;
}

.demo-switch i {
  position: relative;
  width: 3rem;
  height: 2px;
  background: var(--accent);
}

.demo-switch i::after {
  position: absolute;
  top: -0.27rem;
  right: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  content: "";
  transform: rotate(45deg);
}

.demo-stage {
  background: #080a0e;
  transform: rotate(0.8deg);
}

.demo-stage > header {
  background: #20232a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.live-dot {
  width: 0.48rem;
  height: 0.48rem;
  margin-left: auto;
  border-radius: 50%;
  background: #ff5e57;
  box-shadow: 0 0 0 0.3rem rgb(255 94 87 / 14%);
}

.demo-stage small {
  color: #ff7a72;
  font-size: 0.68rem;
}

.stage-grid,
.preview-stage {
  display: grid;
  min-height: 15rem;
  padding: 2rem;
  place-items: center;
  background:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px), #090b0f;
  background-size: 26px 26px;
}

.stage-letter,
.overlay-letter {
  width: min(100%, 29rem);
  padding: 1.25rem 1.4rem;
  border-top: 0.5rem solid var(--accent);
  border-radius: 0.85rem;
  color: var(--ink);
  background: #f7f4ed;
  box-shadow: 0 1rem 2.2rem rgb(0 0 0 / 28%);
}

.stage-letter span,
.overlay-letter span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.stage-letter p,
.overlay-letter p {
  margin: 0.75rem 0 0.6rem;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  font-weight: 750;
  line-height: 1.65;
}

.stage-letter strong,
.overlay-letter strong {
  color: #77746e;
  font-size: 0.78rem;
}

.maker-shell {
  display: grid;
  padding: clamp(5rem, 9vw, 8rem) clamp(0rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 0.8fr) minmax(22rem, 1fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 7rem);
}

.eyebrow,
.maker-intro > span {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.71rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.maker-intro h1,
.guide-board h1,
.prose h1,
.not-found h1 {
  max-width: 16em;
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.maker-intro > p {
  max-width: 27rem;
  margin: 1.3rem 0 2.5rem;
  color: var(--muted);
}

.maker-intro ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.75rem;
  list-style: none;
}

.maker-intro li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
}

.maker-intro li span {
  display: grid;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: var(--accent);
  background: white;
  font-size: 0.65rem;
}

.maker,
.submit-card {
  padding: clamp(1.4rem, 4vw, 2.3rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 1.1rem 2.6rem rgb(41 38 33 / 9%);
  backdrop-filter: blur(15px);
}

.maker > header {
  display: flex;
  margin-bottom: 1.8rem;
  align-items: center;
  gap: 0.9rem;
}

.maker h2 {
  margin: 0.1rem 0 0;
  font-size: 1.2rem;
}

.maker header small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.mini-window {
  position: relative;
  width: 2.7rem;
  height: 2.4rem;
  border: 2px solid var(--ink);
  border-radius: 0.4rem;
  background: var(--accent-soft);
}

.mini-window::after {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  width: 0.75rem;
  height: 0.32rem;
  border-radius: 1rem;
  content: "";
  background: var(--accent);
}

.field {
  position: relative;
  display: grid;
  margin-bottom: 1.15rem;
  gap: 0.45rem;
}

.field > span,
.accent-picker legend {
  font-size: 0.78rem;
  font-weight: 800;
}

.field > span small {
  color: var(--muted);
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid #c8c4bc;
  border-radius: 0.65rem;
  outline: none;
  color: var(--ink);
  background: white;
  transition:
    border 120ms ease,
    box-shadow 120ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.24rem var(--accent-soft);
}

.counter {
  position: absolute;
  right: 0.65rem;
  bottom: 0.35rem;
  color: #99958e;
  font-size: 0.65rem;
}

.accent-picker {
  margin: 0 0 1.6rem;
  padding: 0;
  border: 0;
}

.accent-picker legend {
  margin-bottom: 0.55rem;
}

.accent-picker label {
  display: inline-block;
  margin: 0 0.32rem 0.35rem 0;
}

.accent-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.swatch {
  display: inline-flex;
  min-width: 2.5rem;
  height: 2rem;
  padding: 0 0.65rem;
  border: 2px solid transparent;
  border-radius: 2rem;
  align-items: center;
  color: transparent;
  font-size: 0;
}

.swatch::before {
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid white;
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 1px rgb(0 0 0 / 10%);
}

.swatch.coral {
  background: #ff745f;
}

.swatch.sky {
  background: #3e9bc4;
}

.swatch.lime {
  background: #6e9d38;
}

.swatch.violet {
  background: #7e6ad0;
}

.accent-picker input:checked + .swatch {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px white inset;
}

.maker > .button,
.submit-card form > .button {
  width: 100%;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.action-status {
  min-height: 1.5rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.action-status[data-state="error"] {
  color: #b93030;
}

.action-status[data-state="success"] {
  color: #347a45;
}

.form-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

footer {
  min-height: 7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.private-page {
  background:
    linear-gradient(rgb(255 255 255 / 60%), rgb(255 255 255 / 60%)),
    repeating-linear-gradient(45deg, #e7e2d8 0 1px, transparent 1px 20px), var(--paper);
}

.submit-shell {
  display: grid;
  min-height: calc(100vh - 12rem);
  padding: 3rem 0 6rem;
  place-items: center;
}

.submit-card {
  width: min(100%, 35rem);
}

.topic-ticket {
  display: flex;
  margin: -2.3rem -2.3rem 1.8rem;
  padding: 0.8rem 1.2rem;
  border-radius: 1.15rem 1.15rem 0 0;
  align-items: center;
  color: white;
  background: var(--dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.topic-ticket i {
  height: 1px;
  margin: 0 0.8rem;
  flex: 1;
  background: rgb(255 255 255 / 20%);
}

.topic-ticket small {
  color: var(--accent);
  font-weight: 800;
}

.topic-copy {
  padding: 0 0 1.4rem;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 1.5rem;
}

.topic-copy small {
  color: var(--accent);
  font-weight: 800;
}

.topic-copy h1 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.45;
}

.report-link,
.text-button,
.select-button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: none;
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.report-link {
  display: block;
  margin: 1.6rem auto 0;
}

.manage-shell {
  padding: 2rem 0 6rem;
}

.manage-header {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
}

.manage-header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.manage-status {
  display: flex;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  align-items: center;
  gap: 0.55rem;
  background: white;
  font-size: 0.72rem;
  font-weight: 700;
}

.manage-status i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #5fbf78;
}

.link-console {
  display: grid;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: white;
}

.link-console article {
  display: grid;
  min-width: 0;
  padding: 1rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.link-console article + article {
  border-left: 1px solid var(--line);
}

.link-number {
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 900;
}

.link-console small,
.link-console strong {
  display: block;
}

.link-console small {
  color: var(--muted);
  font-size: 0.62rem;
}

.link-console strong {
  font-size: 0.82rem;
}

.manage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.72fr);
  align-items: start;
  gap: 1.5rem;
}

.inbox-panel,
.preview-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: white;
}

.inbox-panel > header,
.preview-panel > header {
  display: flex;
  min-height: 3.3rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
}

.inbox-panel header span,
.preview-panel header span {
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.inbox-panel header strong {
  margin-left: 0.6rem;
  color: var(--accent);
  font-size: 0.74rem;
}

.preview-panel header {
  color: white;
  border-color: #353840;
  background: var(--dark-2);
}

.preview-panel header i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ff6259;
}

.manage-list {
  display: grid;
  max-height: 38rem;
  padding: 0.75rem;
  gap: 0.65rem;
  overflow-y: auto;
}

.manage-letter {
  display: grid;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  background: #fff;
}

.manage-letter[data-selected="true"] {
  border: 2px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), white 42%);
}

.manage-letter[data-used="true"] {
  opacity: 0.62;
}

.manage-letter strong {
  font-size: 0.74rem;
}

.manage-letter p {
  margin: 0.35rem 0;
  font-size: 0.86rem;
  line-height: 1.65;
}

.manage-letter small {
  color: var(--muted);
  font-size: 0.62rem;
}

.letter-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.select-button {
  padding: 0.4rem 0.65rem;
  border-radius: 0.45rem;
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.danger {
  color: #b54444;
}

.empty-state {
  margin: 4rem 1rem;
  color: var(--muted);
  text-align: center;
}

.preview-stage {
  min-height: 20rem;
  padding: 1.3rem;
}

.preview-stage > p {
  color: #7e8188;
  font-size: 0.78rem;
}

.preview-actions {
  display: flex;
  padding: 0.9rem;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  gap: 0.7rem;
}

.danger-zone {
  display: flex;
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px dashed #c5bcb2;
  border-radius: 0.7rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.danger-zone p {
  margin: 0;
  font-size: 0.72rem;
}

.overlay-page {
  overflow: hidden;
  background: transparent;
}

.overlay-page .site-header,
.overlay-page footer,
.overlay-page .skip-link {
  display: none;
}

.overlay-page main {
  width: 100%;
  height: 100vh;
  margin: 0;
}

.overlay-root {
  display: grid;
  width: 100%;
  height: 100%;
  padding: clamp(1.5rem, 5vw, 4rem);
  place-items: end center;
}

.overlay-letter {
  width: min(90vw, 56rem);
  padding: clamp(1.3rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
  animation: letter-in 280ms ease-out both;
}

.overlay-letter p {
  font-size: clamp(1.25rem, 3.5vw, 2.2rem);
}

@keyframes letter-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.98);
  }
}

.guide-board,
.prose {
  padding: clamp(3rem, 7vw, 6rem) 0 7rem;
}

.guide-board > header,
.prose > header {
  max-width: 42rem;
}

.guide-board > header p {
  color: var(--muted);
}

.guide-steps {
  display: grid;
  margin: 3rem 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
}

.guide-steps li {
  position: relative;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: white;
}

.guide-steps > li > span {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 900;
}

.guide-icon {
  display: grid;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 0.8rem;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 1.3rem;
  font-weight: 900;
}

.guide-steps h2 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1rem;
}

.guide-steps p,
.guide-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.guide-note {
  padding: 1.4rem;
  border-left: 0.4rem solid var(--accent);
  background: white;
}

.guide-note p {
  margin-top: 0.4rem;
}

.prose {
  max-width: 48rem;
  margin-inline: auto;
}

.prose section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.prose h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.prose p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.not-found {
  display: grid;
  min-height: 34rem;
  place-content: center;
  justify-items: start;
}

.not-found > span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.not-found p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .console-demo {
    min-height: auto;
    padding: 2rem;
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .demo-switch {
    transform: rotate(90deg);
  }

  .demo-inbox,
  .demo-stage {
    width: min(100%, 35rem);
    margin-inline: auto;
    transform: none;
  }

  .maker-shell,
  .manage-grid {
    grid-template-columns: 1fr;
  }

  .maker-shell {
    gap: 3rem;
  }

  .link-console {
    grid-template-columns: 1fr;
  }

  .link-console article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(100% - 1.5rem, 1160px);
  }

  .site-header {
    min-height: 4.3rem;
  }

  .site-header nav > a:first-child {
    display: none;
  }

  .console-demo {
    padding: 1rem;
    border-radius: 1rem;
  }

  .demo-stage > header,
  .demo-inbox > header {
    height: 2.8rem;
  }

  .stage-grid {
    min-height: 12rem;
    padding: 1rem;
  }

  .maker-shell {
    padding-block: 4rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .maker,
  .submit-card {
    padding: 1.2rem;
  }

  .topic-ticket {
    margin: -1.2rem -1.2rem 1.5rem;
  }

  .manage-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .manage-letter {
    grid-template-columns: 1fr;
  }

  .letter-actions {
    justify-content: flex-end;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .danger-zone {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  footer {
    padding-block: 1.3rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }
}

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