:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
  background: #0b0f14;
  color: #edf2f7;
}

* { box-sizing: border-box; }
body { margin: 0; background: #0b0f14; color: #edf2f7; }
button, textarea { font: inherit; }

.shell {
  width: min(760px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

h1 { margin: 4px 0 20px; font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { margin: 10px 0 6px; }
.eyebrow { margin: 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .66; }
.status { padding: 6px 9px; border: 1px solid #3b4654; border-radius: 999px; font-size: .76rem; white-space: nowrap; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.tab { border: 1px solid #313c49; background: #111821; color: inherit; padding: 12px 8px; border-radius: 12px; cursor: pointer; }
.tab.active { background: #1d2936; border-color: #718096; }

.panel { border: 1px solid #283442; background: #10161e; border-radius: 18px; padding: 18px; }
.context-line { display: flex; gap: 8px; font-size: .78rem; opacity: .72; }
.lead { margin-top: 0; line-height: 1.5; color: #cbd5e0; }
.plane-card { margin: 14px 0 20px; padding: 14px; border-radius: 14px; background: #151f2a; line-height: 1.45; }

.entry-form label { display: block; margin-bottom: 8px; font-weight: 650; }
textarea { width: 100%; resize: vertical; min-height: 110px; border: 1px solid #344252; border-radius: 12px; background: #0b1118; color: inherit; padding: 12px; }
textarea:focus, button:focus-visible { outline: 2px solid #9fb3c8; outline-offset: 2px; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.form-actions button { border: 0; border-radius: 12px; padding: 11px 16px; cursor: pointer; font-weight: 700; }
.hint { font-size: .78rem; color: #a0aec0; }
.receipt { margin-top: 18px; padding: 14px; border-left: 3px solid #718096; background: #0c1219; border-radius: 10px; }
.receipt p:last-child { margin-bottom: 0; }
footer { margin-top: 16px; text-align: center; font-size: .76rem; color: #718096; }

@media (max-width: 540px) {
  .shell { padding: 14px 12px 24px; }
  .topbar { display: block; }
  .status { display: inline-block; margin-bottom: 14px; }
  .tabs { grid-template-columns: 1fr; }
  .tab { text-align: left; }
  .panel { padding: 15px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions button { width: 100%; }
}
