:root {
  color-scheme: dark;
  --bg: #111111;
  --surface: #1b1b1b;
  --text: #f2f2ef;
  --muted: #aaa9a2;
  --line: #34342f;
  --accent: #f2c811;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button { font: inherit; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 10px 16px; background: var(--accent); color: #111; z-index: 1000; }
.skip-link:focus { top: 12px; }
.studio-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1280px; margin: auto; padding: 26px 6%; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 1.1rem; font-weight: 750; letter-spacing: -.04em; white-space: nowrap; }
.wordmark span { color: var(--muted); font-weight: 400; }
.studio-header nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: .83rem; color: var(--muted); }
.studio-main { max-width: 1280px; padding: 90px 6% 44px; margin: auto; display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 10%; align-items: center; }
.eyebrow { margin: 0 0 20px; font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; color: var(--accent); }
h1 { font-size: clamp(3.1rem, 6vw, 5.6rem); letter-spacing: -.065em; line-height: 1.02; margin: 0 0 28px; font-weight: 750; }
h1 span { color: var(--accent); }
.lead { font-size: 1.05rem; max-width: 470px; line-height: 1.8; color: var(--muted); margin: 0 0 30px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-list span { font-size: .7rem; padding: 5px 11px; border: 1px solid var(--line); border-radius: 30px; color: #bcbcb5; }
.entry-card { background: var(--surface); border: 1px solid var(--line); padding: 32px; border-radius: 12px; }
.card-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; }
.card-heading .eyebrow { margin: 0; color: var(--muted); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.entry-card h2 { font-size: 1.65rem; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 16px; }
.entry-card > p { color: var(--muted); margin: 0; font-size: .92rem; }
.access-status { padding: 16px 0; border-top: 1px solid var(--line); margin: 26px 0 8px; }
.access-status strong { font-size: .85rem; font-weight: 650; }
.access-status p { font-size: .8rem; color: var(--muted); margin: 6px 0 0; line-height: 1.65; }
.access-status[data-state="error"] strong { color: #f4aca5; }
.primary-button { width: 100%; background: var(--accent); border: 1px solid var(--accent); padding: 13px 20px; border-radius: 5px; color: #151510; font-size: .88rem; font-weight: 750; cursor: pointer; margin-top: 10px; }
.primary-button:hover:not(:disabled) { background: #ffda2d; }
.primary-button:disabled { cursor: default; background: #323129; border-color: #484637; color: #bebaa4; }
.entry-card .access-caption { text-align: center; font-size: .69rem; color: var(--muted); margin-top: 12px; }
.workflow { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; border-top: 1px solid var(--line); margin-top: 80px; padding-top: 30px; }
.step-number { color: var(--accent); font-size: .7rem; font-variant-numeric: tabular-nums; }
.workflow h2 { font-size: 1.05rem; margin: 7px 0; letter-spacing: -.02em; }
.workflow p { color: var(--muted); font-size: .82rem; margin: 0; max-width: 280px; }
.privacy-note { grid-column: 1 / -1; color: var(--muted); font-size: .72rem; margin: 32px 0 0; max-width: 850px; }
.notice a, .guide a:not(.wordmark) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.editor-is-open { background: #f5f5f5; color-scheme: light; }
.editor-topbar { position: fixed; inset: 0 0 auto; height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #151515; color: #e4e4df; padding: 0 24px; z-index: 10000; font-size: 12px; }
.editor-topbar > span { color: #aaa9a2; }
#nc-root { position: absolute; top: 38px; left: 0; right: 0; bottom: 0; overflow: auto; }
.login-feedback { position: fixed; top: 46px; left: 50%; transform: translateX(-50%); width: min(680px, calc(100% - 24px)); z-index: 10001; display: flex; align-items: flex-start; gap: 16px; background: #fff9dc; color: #29251a; border: 1px solid #d8bd58; border-radius: 6px; padding: 12px 16px; box-shadow: 0 3px 12px #0002; font-size: 14px; }
.login-feedback[data-state="error"] { background: #fff1f0; border-color: #d48b85; }
.login-feedback p { margin: 0; flex: 1; }
.login-feedback button { border: 0; background: transparent; color: inherit; text-decoration: underline; cursor: pointer; }
.guide { max-width: 850px; padding: 70px 6% 80px; margin: auto; }
.guide h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.guide h2 { font-size: 1.5rem; line-height: 1.3; margin: 44px 0 16px; letter-spacing: -.03em; }
.guide p, .guide li { color: #c1c1b9; font-size: .96rem; }
.guide li { margin-bottom: 10px; }
.guide ol, .guide ul { padding-left: 24px; }
.guide strong { color: var(--text); }
.guide .notice { border-left: 3px solid var(--accent); background: var(--surface); padding: 18px 24px; margin: 28px 0; }
.guide .notice p { margin: 0; }
.guide pre { background: var(--surface); padding: 20px; border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; line-height: 1.7; font-size: .83rem; }
.guide code { color: #e9d973; }
.guide details { border-top: 1px solid var(--line); padding: 18px 0; }
.guide summary { cursor: pointer; font-weight: 650; }
@media (max-width: 850px) {
  .studio-main { padding-top: 50px; grid-template-columns: 1fr; gap: 38px; }
  .intro { max-width: 600px; }
  .entry-card { max-width: 600px; }
  .workflow { margin-top: 8px; gap: 24px; }
  .privacy-note { margin-top: 0; }
  .studio-header { align-items: flex-start; }
  .studio-header nav { justify-content: flex-end; gap: 8px 20px; }
}
@media (max-width: 520px) {
  .studio-header { padding-block: 20px; }
  .wordmark span { display: none; }
  .studio-header nav { font-size: .72rem; gap: 12px; }
  .entry-card { padding: 24px; }
  .workflow { grid-template-columns: 1fr; gap: 22px; }
  .workflow > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
  .step-number { margin-top: 9px; }
  .workflow p { grid-column: 2; max-width: none; }
  .editor-topbar { padding: 0 12px; font-size: 11px; }
  .editor-topbar > span { display: none; }
  .guide { padding-top: 45px; }
}
