:root {
  --bg: #f8f8f7;
  --surface: #fff;
  --text: #252423;
  --muted: #605e5c;
  --border: #e1dfdd;
  --accent: #f2c811;
  --on-accent: #252423;
  --header-bg: #252423;
  --header-text: #fff;
  --font: "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
:root[data-theme="dark"] {
  --bg: #1b1a19;
  --surface: #252423;
  --text: #f3f2f1;
  --muted: #a19f9d;
  --border: #3b3a39;
  --header-bg: #11100f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
}
a {
  color: inherit;
}
main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px;
}

.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 4px solid var(--accent);
}
.site-header .bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand i {
  color: var(--accent);
}
.theme-toggle {
  background: none;
  border: 1px solid #605e5c;
  color: inherit;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1rem;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
}
a.card:hover,
a.card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.card h2 {
  margin: 4px 0 0;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.card.soon {
  opacity: 0.65;
}
.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer .privacy {
  color: var(--text);
  font-weight: 600;
}
.site-footer .privacy i {
  color: var(--accent);
  margin-right: 6px;
}

h1 { margin: 0 0 4px; }
.lead { margin: 0 0 20px; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.btn { font: inherit; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.btn:hover, .btn:focus-visible { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.opt { margin-left: auto; color: var(--muted); font-size: .9rem; }
.opt select { font: inherit; padding: 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.status { min-height: 1.5em; margin: 0 0 8px; color: #d13438; }
.editors { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.editors h2 { font-size: 1rem; margin: 0 0 6px; }
.editor { height: 480px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.explainer { max-width: 760px; margin-top: 40px; color: var(--muted); }
.explainer h2 { color: var(--text); }
@media (max-width: 720px) { .editors { grid-template-columns: 1fr; } .editor { height: 320px; } .opt { margin-left: 0; } }
.pane-head { display: flex; align-items: center; justify-content: space-between; min-height: 34px; margin-bottom: 6px; }
.pane-head h2 { margin: 0; }
.btn.small { padding: 4px 10px; font-size: .85rem; }
main.wide { max-width: 1600px; }
