/* ════════════════════════════════════════════════════════════
   DittoOS v3 — the studio as a desktop.
   Mobile-first. One file. No build step.
   ════════════════════════════════════════════════════════════ */

:root {
  --paper:        #f1eee6;   /* desktop wallpaper */
  --win:          #f7f5f0;   /* window body */
  --chrome:       #ece9e0;   /* window title bars */
  --ink:          #14130f;
  --ink-soft:     #5f5a4e;
  --ink-faint:    #8a857a;
  --line:         rgba(20, 19, 15, 0.16);
  --line-strong:  rgba(20, 19, 15, 0.55);
  --accent:       #5b48e8;
  --accent-soft:  rgba(91, 72, 232, 0.12);
  --on-accent:    #f2efe6;
  --term-bg:      #14130f;
  --term-fg:      #f2efe6;
  --term-dim:     rgba(242, 239, 230, 0.62);
  --ok:           #0f6e56;
  --ok-term:      #5dcaa5;
  --radius:       12px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo,
          'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;
  --display: 'Sora', -apple-system, 'PingFang SC', 'Hiragino Sans GB',
          'Microsoft YaHei', system-ui, sans-serif;
  --serif: 'Songti SC', 'Noto Serif SC', Georgia, serif;
}

[data-theme="dark"] {
  --paper:        #100f0c;
  --win:          #1a1812;
  --chrome:       #211e17;
  --ink:          #f2efe6;
  --ink-soft:     #c0bbac;
  --ink-faint:    #807b6f;
  --line:         rgba(242, 239, 230, 0.14);
  --line-strong:  rgba(242, 239, 230, 0.5);
  --accent:       #8b7eef;
  --accent-soft:  rgba(139, 126, 239, 0.16);
  --on-accent:    #14130f;
  --term-bg:      #0c0b09;
  --ok:           #5dcaa5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background-color: var(--paper);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(108px + env(safe-area-inset-bottom)); /* room for the dock */
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.mono { font-family: var(--mono); }

/* ─── Boot curtain ────────────────────────────────────────── */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.7s ease;
}
.curtain.off { transform: translateY(-100%); opacity: 0.4; pointer-events: none; }
.no-curtain .curtain { display: none; }
html.curtain-lock, .curtain-lock body { overflow: hidden; }
.curtain-inner {
  width: min(420px, 86vw);
  text-align: center;
  color: var(--ink);
}
.curtain-top {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.c-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.curtain-rule { border: 0; border-top: 1px solid var(--line-strong); opacity: 0.6; margin: 26px 0; }
.curtain-logo { width: 64px; height: 64px; margin: 4px auto 18px; display: block; }
.curtain-name {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.curtain-tag {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
}
.curtain-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.boot-track {
  flex: 1;
  height: 1.5px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.boot-track i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--ink);
}
.curtain-boot {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--ink-faint);
  min-height: 14px;
}
.curtain-enter {
  margin-top: 30px;
  position: relative;
  z-index: 0;
  overflow: hidden;
  font-size: 13px;
  letter-spacing: 0.3em;
  padding: 15px 38px;
  border: 1.5px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease, color 0.3s ease;
}
.curtain-enter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--chrome);
  transform: translateX(-101%);
  z-index: -1;
}
.curtain.ready .curtain-enter {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.curtain.ready .curtain-enter::before {
  animation: enter-sweep 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
}
@keyframes enter-sweep { to { transform: translateX(0); } }
.curtain-enter:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ─── Menubar ─────────────────────────────────────────────── */
.menubar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
}
.mb-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.mb-brand svg { width: 21px; height: 21px; display: block; }
.mb-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.lang-switch button.active {
  background: var(--ink);
  color: var(--paper);
}
.theme-toggle {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.theme-toggle svg { width: 14px; height: 14px; }
[data-theme="dark"] .icon-moon { display: none; }
html:not([data-theme="dark"]) .icon-sun { display: none; }
.clock {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  min-width: 64px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 519px) {
  .clock { display: none; }
  .mb-brand span { font-size: 14px; }
}

/* ─── Window chrome ───────────────────────────────────────── */
.window {
  background: var(--win);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line-strong);
  user-select: none;
}
.win-dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.win-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
}
.win-dots i:nth-child(1) { opacity: 0.6; }
.win-dots i:nth-child(2) { opacity: 0.4; }
.win-dots i:nth-child(3) { opacity: 0.22; }
.win-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win-meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  white-space: nowrap;
  display: none;
}
@media (min-width: 720px) { .win-meta { display: block; } }
.win-body { padding: 20px 18px; }
@media (min-width: 720px) { .win-body { padding: 28px 30px; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ─── Hero desktop ────────────────────────────────────────── */
.desktop {
  position: relative;
  padding: 64px 16px 24px;
}
.wallpaper-h1 {
  margin: 10px 2px 18px;
  font-size: clamp(23px, 6.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink);
  overflow-wrap: break-word;
}
.wallpaper-h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-windows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* terminal */
.term .win-body {
  background: var(--term-bg);
  color: var(--term-fg);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.95;
  padding: 16px 18px;
  min-height: 236px;
}
.term .t-cmd { color: var(--term-fg); }
.term .t-prompt { color: #8b7eef; }
.term .t-dim { color: var(--term-dim); }
.term .t-ok { color: var(--ok-term); }
.term .t-comment { color: var(--term-dim); opacity: 0.75; }
.cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--term-fg);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* fig window */
.fig-canvas {
  position: relative;
  height: 132px;
}
.fig-sel {
  position: absolute;
  left: 18px; top: 14px;
  width: 78px; height: 78px;
  border: 1.5px dashed var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fig-sel::after {
  content: "96 × 96";
  position: absolute;
  left: 0; bottom: -22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}
.fig-dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
}
.fig-bars { position: absolute; right: 16px; top: 22px; width: 46%; }
.fig-bars i {
  display: block;
  height: 11px;
  border-radius: 2px;
  background: var(--ink);
  margin-bottom: 9px;
}
.fig-bars i:nth-child(1) { width: 78%; }
.fig-bars i:nth-child(2) { width: 56%; opacity: 0.4; height: 8px; }
.fig-bars i:nth-child(3) { width: 66%; opacity: 0.22; height: 8px; }
.fig-tools { display: inline-flex; gap: 9px; margin-left: auto; color: var(--ink-faint); }
.fig-tools svg { width: 13px; height: 13px; }

/* shipped log */
.log-list {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2.15;
  margin: 0; padding: 0;
  list-style: none;
}
.log-list .ok { color: var(--ok); margin-right: 7px; }
.log-list .pending { color: var(--ink-faint); margin-right: 7px; }
.log-list span.name { color: var(--ink); }
.log-list span.tail { color: var(--ink-faint); }

/* sticky note */
.sticky {
  display: block;
  width: min(230px, 72%);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  padding: 18px 18px 20px;
  transform: rotate(-2.5deg);
  transition: transform 0.35s ease;
  align-self: flex-end;
  margin-right: 6px;
}
.sticky:hover { transform: rotate(-0.5deg) translateY(-3px); }
.sticky strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.sticky small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.82;
  margin-top: 7px;
}

/* stacked layout < 1020px — CTA right after the terminal */
@media (max-width: 1019px) {
  .hero-windows .term   { order: 1; }
  .hero-windows .sticky { order: 2; }
  .hero-windows .log    { order: 3; }
  .hero-windows .fig    { order: 4; }
}
/* phones — drop the decorative fig window, bigger touch targets, no iOS input zoom */
@media (max-width: 719px) {
  .hero-windows .fig { display: none; }
}
@media (max-width: 768px) {
  .theme-toggle { width: 36px; height: 36px; }
  .theme-toggle svg { width: 16px; height: 16px; }
  .lang-switch button { padding: 6px 13px; font-size: 12px; }
  .mail-row input,
  .mail-row select,
  .mail-body textarea { font-size: 16px; }
}

/* desktop ≥ 1020px — float the windows */
@media (min-width: 1020px) {
  .desktop {
    min-height: 100svh;
    padding: 44px 0 0;
    overflow: hidden;
  }
  .wallpaper-h1 {
    position: absolute;
    left: 5vw;
    bottom: 76px;
    margin: 0;
    font-size: clamp(44px, 5.2vw, 78px);
    opacity: 0.1;
    pointer-events: none;
    max-width: 80vw;
  }
  .hero-windows { display: block; }
  .hero-windows > .window, .hero-windows > .sticky { position: absolute; }
  .hero-windows .term {
    left: 5vw; top: 110px;
    width: min(530px, 46vw);
    z-index: 3;
  }
  .hero-windows .fig {
    right: 6vw; top: 96px;
    width: 330px;
    z-index: 2;
  }
  .hero-windows .log {
    right: 12vw; top: 384px;
    width: 318px;
    z-index: 4;
  }
  .sticky {
    left: 46%; top: 58%;
    width: 226px;
    margin: 0;
    z-index: 5;
  }
  .desktop .win-bar { cursor: grab; }
  .desktop .win-bar:active { cursor: grabbing; }
}

/* ─── Dock ────────────────────────────────────────────────── */
.dock {
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  gap: 6px;
  padding: 7px 10px;
  background: var(--win);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
}
.dock a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
}
.dock a svg { width: 19px; height: 19px; display: block; }
.dock a span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.dock a.active { color: var(--accent); background: var(--accent-soft); }
@media (min-width: 1020px) {
  .dock { gap: 10px; padding: 8px 14px; }
  .dock a { padding: 7px 12px; }
  .dock a:hover { color: var(--ink); background: var(--chrome); }
  .dock a.active:hover { color: var(--accent); background: var(--accent-soft); }
}

/* ─── Sections ────────────────────────────────────────────── */
.sections {
  max-width: 980px;
  margin: 0 auto;
  padding: 26px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
@media (min-width: 1020px) { .sections { gap: 88px; padding-top: 88px; } }
.sections > section { scroll-margin-top: 64px; }

/* services file grid */
.file-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 720px) { .file-grid { grid-template-columns: repeat(3, 1fr); } }
.file {
  padding: 18px 14px 16px;
  border: 1.5px dashed transparent;
  border-radius: 10px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.file:hover { border-color: var(--line-strong); background: var(--chrome); }
.file svg { width: 34px; height: 34px; display: block; margin-bottom: 10px; }
.file .ext {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 4px;
  padding: 2px 6px;
  margin-bottom: 9px;
}
.file h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.file p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* process gantt-terminal */
.proc .win-body {
  background: var(--term-bg);
  color: var(--term-fg);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  padding: 18px;
}
@media (min-width: 720px) { .proc .win-body { padding: 26px 30px; } }
.proc-row {
  display: grid;
  grid-template-columns: 44px 64px 1fr;
  gap: 10px;
  align-items: center;
  margin: 13px 0;
}
.proc-row .wk { color: #8b7eef; }
.proc-row .nm { color: var(--term-fg); }
.track {
  position: relative;
  height: 11px;
  border-radius: 3px;
  background: rgba(242, 239, 230, 0.12);
  overflow: hidden;
}
.track i {
  position: absolute;
  top: 0; bottom: 0;
  background: var(--term-fg);
  border-radius: 3px;
}
.proc-row.r1 .track i { left: 0%;  width: 25%; }
.proc-row.r2 .track i { left: 25%; width: 25%; }
.proc-row.r3 .track i { left: 50%; width: 25%; background: #8b7eef; }
.proc-row.r4 .track i { left: 75%; width: 25%; }
.proc-desc {
  grid-column: 2 / 4;
  color: var(--term-dim);
  font-size: 11.5px;
  margin-top: -7px;
}
@media (min-width: 720px) {
  .proc-row { grid-template-columns: 48px 76px 1fr 230px; }
  .proc-desc { grid-column: auto; margin: 0; font-size: 12px; }
}

/* note interlude */
.note-md {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 8px 16px;
  transform: rotate(-0.6deg);
}
.note-md blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 3.4vw, 24px);
  line-height: 1.8;
  color: var(--ink);
}
.note-md figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
}

/* pricing */
.plans { display: grid; grid-template-columns: 1fr; }
@media (min-width: 880px) { .plans { grid-template-columns: 1fr 1fr 1fr; } }
.plan {
  padding: 24px 22px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan .btn-term { margin-top: auto; align-self: flex-start; }
.plan:last-child { border-bottom: 0; }
@media (min-width: 880px) {
  .plan { border-bottom: 0; border-right: 1px solid var(--line); }
  .plan:last-child { border-right: 0; }
}
.plan.featured { background: var(--accent-soft); }
.plan-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 4px;
  padding: 3px 8px;
}
.plan-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.plan-price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.plan-price .unit { font-size: 16px; font-weight: 600; color: var(--ink-soft); margin-left: 2px; }
.plan-blurb { font-size: 13px; color: var(--ink-soft); line-height: 1.65; margin: 0 0 16px; }
.plan ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2.1;
  color: var(--ink);
}
.plan ul li::before { content: "· "; color: var(--accent); }
.btn-term {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 9px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-term:hover { background: var(--ink); color: var(--paper); }
.plan.featured .btn-term { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.plan.featured .btn-term:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* faq */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 17px;
  color: var(--ink-faint);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  padding: 0 2px 18px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 64ch;
}

/* studio */
.studio-text { font-size: 15px; line-height: 1.95; max-width: 62ch; margin: 0 0 24px; }
.team { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.member {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px 7px 8px;
}
.member .ava {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.member .ava svg { width: 17px; height: 17px; display: block; }
.member .ava.a1 { background: var(--accent); color: var(--on-accent); }
.member .ava.a2 { background: var(--ink); color: var(--paper); }
.member.net { border-style: dashed; }
.member .ava.a3 {
  background: transparent;
  border: 1.5px dashed var(--line-strong);
  color: var(--ink-soft);
  font-size: 15px;
}
.member b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.member i {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.studio-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

/* contact / mail compose */
.mail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}
.mail-row label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  width: 64px;
  flex-shrink: 0;
}
.mail-row .static { font-family: var(--mono); font-size: 13px; }
.mail-row input, .mail-row select {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  padding: 2px 0;
}
.mail-row select { appearance: none; cursor: pointer; }
.mail-body textarea {
  width: 100%;
  min-height: 120px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  resize: vertical;
}
.mail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.mail-note { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; }
.mail-note.sent { color: var(--ok); }
.btn-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 22px;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.btn-send:hover { background: var(--ink); color: var(--paper); }

/* footer status bar */
.statusbar {
  max-width: 980px;
  margin: 64px auto 0;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
  border-top: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.statusbar a:hover { color: var(--ink); }
