:root {
  color-scheme: dark;
  --bg: #101d1a;
  --panel: #1a2c27;
  --panel-2: #203832;
  --text: #f2eee4;
  --muted: #b4c1b7;
  --green: #9cbd9b;
  --copper: #d39a6b;
  --line: rgba(224, 232, 219, .13);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% -20%, #315347 0, var(--bg) 58%);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.topbar {
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 24, 21, .68);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { color: var(--copper); font-size: 30px; }
.brand strong { display: block; letter-spacing: .08em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .2em; }
.connection { color: var(--green); font-size: 13px; }
.connection.offline { color: var(--copper); }
.shell { width: min(1100px, calc(100% - 36px)); margin: 0 auto; }
.welcome { padding: clamp(42px, 8vw, 82px) 0 34px; }
.eyebrow { color: var(--copper); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
h1 { margin: 10px 0; font-family: Georgia, serif; font-size: clamp(38px, 7vw, 64px); font-weight: 500; }
.intro { max-width: 610px; color: var(--muted); line-height: 1.7; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile, .workspace {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(32, 56, 50, .94), rgba(22, 39, 34, .96));
}
.tile { min-height: 220px; padding: 22px; }
.tile.featured { border-color: rgba(211, 154, 107, .45); }
.tile-icon { color: var(--green); font-size: 25px; }
.tile h2, .workspace h2 { margin: 8px 0; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.tile p:not(.eyebrow) { min-height: 52px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.status-label { color: var(--muted); font-size: 11px; }
.status-label.live { color: var(--green); }
.workspace { margin-top: 22px; padding: clamp(20px, 4vw, 34px); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.save-state, .hint { color: var(--muted); font-size: 12px; }
textarea {
  display: block; width: 100%; margin-top: 18px; padding: 15px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(8, 18, 15, .55); color: var(--text);
  font: inherit; line-height: 1.6; resize: vertical;
}
textarea:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.button { border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 650; cursor: pointer; }
.button.primary { background: var(--green); color: #14251e; }
.button.secondary { border: 1px solid var(--line); background: transparent; color: var(--text); }
.button:hover { filter: brightness(1.08); }
footer { display: flex; justify-content: space-between; padding: 30px 2px; color: var(--muted); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 850px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 175px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .topbar { align-items: flex-start; flex-direction: column; }
}