:root { color-scheme: light; --ink: #24473b; --green: #176649; --line: #cbdcd0; --bar-height: 72px; }
* { box-sizing: border-box; }
body {
  margin: 0; overflow: hidden; background: #edf4eb; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}
.workspace-bar {
  height: var(--bar-height); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 32px; border-bottom: 1px solid var(--line); background: #eef5ec;
}
.wordmark { font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.wordmark span { margin-left: 18px; font-size: 14px; letter-spacing: 0; font-weight: 400; color: #62786c; }
.workspace-bar a { color: var(--ink); text-decoration: none; }
.workspace-bar nav { display: flex; align-items: center; gap: 20px; font-size: 13px; }
#help-toggle {
  border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; background: #f9fcf7;
  color: var(--ink); cursor: pointer; font: inherit;
}
.workspace-bar a:hover, #help-toggle:hover { color: var(--green); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
#nc-root { position: fixed; inset: var(--bar-height) 0 0; overflow: auto; transform: translateZ(0); }
#nc-root section:has(img[alt="Logo"]) {
  background: #edf4eb; min-height: calc(100dvh - var(--bar-height)); height: auto; padding: 40px 20px;
}
#nc-root span:has(> img[alt="Logo"]), #nc-root img[alt="Logo"] { width: 128px; height: 128px; }
#writing-help {
  position: fixed; top: 64px; right: 24px; z-index: 10000; width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 100px); overflow: auto; padding: 22px 28px; background: #f9fcf7;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px #173b2526;
  line-height: 1.7; font-size: 14px;
}
#writing-help h1 { font-size: 21px; margin: 0 0 16px; }
#writing-help p { margin: 12px 0; }
.local-preview { overflow: auto; min-height: 100dvh; }
#local-notice {
  width: min(640px, calc(100% - 40px)); margin: clamp(40px, 10vh, 100px) auto 40px; padding: 40px;
  background: #f9fcf7; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 36px #173b2508;
  font-size: 15px; line-height: 1.8;
}
#local-notice img { display: block; margin-bottom: 24px; }
#local-notice .local-eyebrow { margin: 0 0 10px; color: var(--green); font-size: 12px; letter-spacing: .16em; }
#local-notice h1 { margin: 0 0 20px; font-size: clamp(24px, 4vw, 30px); line-height: 1.4; }
#local-notice p { margin: 16px 0; }
.local-back {
  display: inline-block; margin-top: 12px; padding: 10px 18px; border-radius: 8px; background: var(--green);
  color: #fff; font-weight: 600; text-decoration: none;
}
.local-back:hover { background: #12533c; }
#local-notice .local-footnote { margin: 24px 0 0; color: #62786c; font-size: 13px; }
#load-status { position: fixed; top: 40%; left: 0; right: 0; text-align: center; }
noscript { display: block; padding: 40px; }
@media (max-width: 600px) {
  :root { --bar-height: 60px; }
  .workspace-bar { padding: 0 16px; }
  .wordmark span { display: none; }
  .workspace-bar nav { gap: 12px; }
  #local-notice { margin-top: 32px; padding: 28px 24px; }
}
