/* The frame: a quiet menu on the left, generous space for the tool. */
:root {
  --bg: #ffffff;
  --sidebar: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: #e5e5ea;
  --accent: #0071e3;
  --accent-text: #ffffff;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --warn: #b25000;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --sidebar: #111113;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #98989d;
    --border: #2c2c2e;
    --accent: #2997ff;
    --accent-text: #ffffff;
    --accent-soft: rgba(41, 151, 255, 0.16);
    --warn: #ff9f0a;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; top: 8px; }
.skip-link:focus { left: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); border-right: 1px solid var(--border); padding: 28px 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: block; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 0 12px 24px; letter-spacing: -0.01em; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; }
.menu a:hover { background: var(--border); }
.menu a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 500; }

.content { padding: 72px 48px; }
.content > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.page-header { margin-bottom: 32px; text-align: center; }
.page-header h1 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 10px; }
.page-header p { color: var(--muted); font-size: 19px; margin: 0; }

@media (max-width: 800px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 14px 12px; display: flex; align-items: center; gap: 8px; overflow-x: auto; }
  .brand { padding: 0 12px 0 4px; white-space: nowrap; }
  .menu ul { display: flex; }
  .menu a { white-space: nowrap; }
  .content { padding: 40px 20px; }
  .page-header h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
