/* ART WINDOW — loading 시안 shared tokens (mirror of client app.css) */
:root {
  --primary: oklch(0.4381 0.0813 166.52);
  --primary-soft: oklch(0.4381 0.0813 166.52 / 0.12);
  --primary-foreground: oklch(0.9648 0.0158 166.73);
  --background: oklch(1 0 0);
  --foreground: oklch(0.129 0.042 264.695);
  --muted-foreground: oklch(0.554 0.046 257.417);
  --border: oklch(0.929 0.013 255.508);

  --room-bg-soft: #fafbfc;
  --room-border-soft: #eef2f6;
  --room-primary-light: #d8eee4;
  --room-ink-mute: #94a3b8;

  --radius: 0.625rem;
  --header-height: 3.5rem;

  --font-sans: "Noto Sans KR", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", "Noto Serif KR", ui-serif, Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* ── App header (mirrors client: 56px, white, hairline border) ── */
.aw-header {
  height: var(--header-height);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  position: relative;
  z-index: 5;
}
.aw-wordmark {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--foreground);
}
.aw-wordmark .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  margin-left: 0.5em;
  vertical-align: middle;
}

/* ── Stage (centered loading area, like the client content region) ── */
.stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 6rem;
  position: relative;
}

/* ── eyebrow label (mirrors room-note-report eyebrow) ── */
.eyebrow {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--room-ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.eyebrow .em { color: var(--primary); }

/* ── progress hairline (mirrors client Progress: bg primary/20, fill primary) ── */
.hair {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 18%, transparent);
  overflow: hidden;
}
.hair > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.4s linear;
}

/* ── 시안 chrome (clearly meta scaffolding, not part of the design) ── */
.scaffold {
  position: fixed;
  z-index: 50;
  font-family: var(--font-sans);
}
.scaffold a, .scaffold button {
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--muted-foreground);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1;
}
.scaffold a:hover, .scaffold button:hover { color: var(--foreground); border-color: var(--room-ink-mute); }
.scaffold .top-left { position: fixed; top: 0.85rem; left: 0.85rem; }

.switch {
  position: fixed;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem;
  z-index: 50;
}
.switch button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.22s;
  white-space: nowrap;
}
.switch button[aria-selected="true"] {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* completion mark */
.done-mark {
  width: 56px; height: 56px;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  display: grid; place-items: center;
  color: var(--primary);
}
.done-mark svg { width: 26px; height: 26px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
