/* NODO 디자인 토큰 — 한 파일판(빌드 도구 없이 쓰는 앱용). NODO 저장소 62f5aa0 에서 뽑았다. 손으로 고치지 않는다.
   쓰는 법: <html data-astryx-theme="nodo"> 를 달고 이 파일을 맨 먼저 읽는다. 화면 CSS는 아래 이름(--fs-* · --sp-* · --radius-* · --bg · --text · --line · --ink · --accent …)만 쓴다.
   앱의 강조색은 이 파일 뒤에서 두 줄로 바꾼다:  :root { --color-text-accent: light-dark(#밝은화면색, #어두운화면색); --color-icon-accent: light-dark(#…, #…); }
   순서: ① 빌드된 Astryx 테마(app/src/styles/theme/nodo.css) ② 간격·굵기 11개 ③ 이름 연결(app/src/styles/tokens.css) */

/* ① */
/*
 * @generated by `astryx theme build` — do not edit manually.
 * Source: theme/nodo.mjs
 * Command: astryx theme build theme/nodo.mjs --out src/styles/theme/nodo.css
 * CLI: @astryxdesign/cli@0.7.16
 * Core: @astryxdesign/core@0.7.16
 */

@layer reset, astryx-base, astryx-theme;

@layer reset {
@scope ([data-astryx-theme="nodo"]) to ([data-astryx-theme]) {
  :where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--font-family-heading);
    color: var(--color-text-primary);
  }

  :where(h1) {
    font-size: var(--text-heading-1-size);
    font-weight: var(--text-heading-1-weight);
    line-height: var(--text-heading-1-leading);
  }

  :where(h2) {
    font-size: var(--text-heading-2-size);
    font-weight: var(--text-heading-2-weight);
    line-height: var(--text-heading-2-leading);
  }

  :where(h3) {
    font-size: var(--text-heading-3-size);
    font-weight: var(--text-heading-3-weight);
    line-height: var(--text-heading-3-leading);
  }

  :where(h4) {
    font-size: var(--text-heading-4-size);
    font-weight: var(--text-heading-4-weight);
    line-height: var(--text-heading-4-leading);
  }

  :where(h5) {
    font-size: var(--text-heading-5-size);
    font-weight: var(--text-heading-5-weight);
    line-height: var(--text-heading-5-leading);
  }

  :where(h6) {
    font-size: var(--text-heading-6-size);
    font-weight: var(--text-heading-6-weight);
    line-height: var(--text-heading-6-leading);
  }

  :where(p) {
    font-family: var(--font-family-body);
    font-size: var(--text-body-size);
    font-weight: var(--text-body-weight);
    line-height: var(--text-body-leading);
    color: var(--color-text-primary);
  }

  :where(small) {
    font-size: var(--text-supporting-size);
    font-weight: var(--text-supporting-weight);
    line-height: var(--text-supporting-leading);
    color: var(--color-text-secondary);
  }

  :where(code, pre) {
    font-family: var(--font-family-code);
    font-size: var(--text-code-size);
    line-height: var(--text-code-leading);
  }

  :where(hr) {
    border: none;
    border-top: 1px solid var(--color-border);
  }
}
}

@layer astryx-theme {
  :root { color-scheme: light dark; }
  html[data-theme="light"] { color-scheme: light; }
  html[data-theme="dark"] { color-scheme: dark; }

@scope ([data-astryx-theme="nodo"]) to ([data-astryx-theme]) {
  :scope {
    --_scaled-font-size-4xs: min(calc(0.5rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-3xs));
    --font-size-4xs: var(--_scaled-font-size-4xs);
    --_scaled-font-size-3xs: min(calc(0.5625rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-2xs));
    --font-size-3xs: var(--_scaled-font-size-3xs);
    --_scaled-font-size-2xs: min(calc(0.6875rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-xs));
    --font-size-2xs: var(--_scaled-font-size-2xs);
    --_scaled-font-size-xs: min(calc(0.75rem * var(--_dynamic-type-caption1, 1)), var(--_scaled-font-size-sm));
    --font-size-xs: var(--_scaled-font-size-xs);
    --_scaled-font-size-sm: min(calc(0.8125rem * var(--_dynamic-type-footnote, 1)), var(--_scaled-font-size-base));
    --font-size-sm: var(--_scaled-font-size-sm);
    --_scaled-font-size-base: min(calc(0.9375rem * var(--_dynamic-type-body, 1)), var(--_scaled-font-size-lg));
    --font-size-base: var(--_scaled-font-size-base);
    --_scaled-font-size-lg: min(calc(1.0625rem * var(--_dynamic-type-title3, 1)), var(--_scaled-font-size-xl));
    --font-size-lg: var(--_scaled-font-size-lg);
    --_scaled-font-size-xl: min(calc(1.1875rem * var(--_dynamic-type-title2, 1)), var(--_scaled-font-size-2xl));
    --font-size-xl: var(--_scaled-font-size-xl);
    --_scaled-font-size-2xl: min(calc(1.3125rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-3xl));
    --font-size-2xl: var(--_scaled-font-size-2xl);
    --_scaled-font-size-3xl: min(calc(1.5rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-4xl));
    --font-size-3xl: var(--_scaled-font-size-3xl);
    --_scaled-font-size-4xl: min(calc(1.6875rem * var(--_dynamic-type-large-title, 1)), var(--_scaled-font-size-5xl));
    --font-size-4xl: var(--_scaled-font-size-4xl);
    --_scaled-font-size-5xl: calc(1.875rem * var(--_dynamic-type-large-title, 1));
    --font-size-5xl: var(--_scaled-font-size-5xl);
    --text-heading-1-size: var(--font-size-2xl);
    --text-heading-1-weight: var(--font-weight-semibold);
    --text-heading-1-leading: 1.3333;
    --text-heading-2-size: var(--font-size-xl);
    --text-heading-2-weight: var(--font-weight-semibold);
    --text-heading-2-leading: 1.4737;
    --text-heading-3-size: var(--font-size-lg);
    --text-heading-3-weight: var(--font-weight-bold);
    --text-heading-3-leading: 1.4118;
    --text-heading-4-size: var(--font-size-base);
    --text-heading-4-weight: var(--font-weight-bold);
    --text-heading-4-leading: 1.6;
    --text-heading-5-size: var(--font-size-sm);
    --text-heading-5-weight: var(--font-weight-semibold);
    --text-heading-5-leading: 1.5385;
    --text-heading-6-size: var(--font-size-xs);
    --text-heading-6-weight: var(--font-weight-semibold);
    --text-heading-6-leading: 1.6667;
    --text-body-size: var(--font-size-base);
    --text-body-weight: var(--font-weight-normal);
    --text-body-leading: 1.3334;
    --text-large-size: var(--font-size-lg);
    --text-large-weight: var(--font-weight-semibold);
    --text-large-leading: 1.4118;
    --text-label-size: var(--font-size-base);
    --text-label-weight: var(--font-weight-medium);
    --text-label-leading: 1.6;
    --text-code-size: var(--font-size-base);
    --text-code-weight: var(--font-weight-normal);
    --text-code-leading: 1.6;
    --text-supporting-size: var(--font-size-sm);
    --text-supporting-weight: var(--font-weight-normal);
    --text-supporting-leading: 1.3847;
    --text-display-1-size: var(--font-size-5xl);
    --text-display-1-weight: var(--font-weight-normal);
    --text-display-1-leading: 1.4667;
    --text-display-2-size: var(--font-size-4xl);
    --text-display-2-weight: var(--font-weight-normal);
    --text-display-2-leading: 1.3333;
    --text-display-3-size: var(--font-size-3xl);
    --text-display-3-weight: var(--font-weight-normal);
    --text-display-3-leading: 1.3333;
    --duration-fast-min: 95ms;
    --duration-fast: 125ms;
    --duration-fast-max: 165ms;
    --duration-medium-min: 225ms;
    --duration-medium: 300ms;
    --duration-medium-max: 400ms;
    --duration-slow-min: 525ms;
    --duration-slow: 700ms;
    --duration-slow-max: 935ms;
    --_astryx-pre-tempo-duration-fast-min: 95ms;
    --_astryx-pre-tempo-duration-fast: 125ms;
    --_astryx-pre-tempo-duration-fast-max: 165ms;
    --_astryx-pre-tempo-duration-medium-min: 225ms;
    --_astryx-pre-tempo-duration-medium: 300ms;
    --_astryx-pre-tempo-duration-medium-max: 400ms;
    --_astryx-pre-tempo-duration-slow-min: 525ms;
    --_astryx-pre-tempo-duration-slow: 700ms;
    --_astryx-pre-tempo-duration-slow-max: 935ms;
    --_astryx-motion-tempo: 1;
    --font-family-body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
    --font-family-heading: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
    --font-family-code: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --color-syntax-keyword: light-dark(#6b187c, #efa8ff);
    --color-syntax-string: light-dark(#0b5615, #a4d6a3);
    --color-syntax-comment: light-dark(#525252, #b9b9b9);
    --color-syntax-number: light-dark(#733100, #ffb37e);
    --color-syntax-function: light-dark(#00458c, #a1caff);
    --color-syntax-type: light-dark(#6b187c, #efa8ff);
    --color-syntax-variable: light-dark(#111111, #e2e2e2);
    --color-syntax-operator: light-dark(#525252, #b9b9b9);
    --color-syntax-constant: light-dark(#733100, #ffb37e);
    --color-syntax-tag: light-dark(#8a0011, #ffaea7);
    --color-syntax-attribute: light-dark(#584400, #eec448);
    --color-syntax-property: light-dark(#005348, #90d7c8);
    --color-syntax-punctuation: light-dark(#525252, #b9b9b9);
    --color-syntax-background: light-dark(#ffffff, #111111);
    --color-syntax-added: color-mix(in srgb, var(--color-success-muted) 25%, transparent);
    --color-syntax-removed: color-mix(in srgb, var(--color-error-muted) 25%, transparent);
    --color-syntax-diff-header: transparent;
    --color-syntax-added-marker: var(--color-syntax-punctuation);
    --color-syntax-removed-marker: var(--color-syntax-punctuation);
    --color-background-surface: light-dark(#ffffff, #262626);
    --color-background-body: light-dark(#ffffff, #000000);
    --color-background-card: light-dark(#ffffff, #1b1b1b);
    --color-background-popover: light-dark(#ffffff, #1b1b1b);
    --color-background-muted: light-dark(#f1f1f1, #1b1b1b);
    --color-accent: light-dark(#1b1b1b, #f1f1f1);
    --color-accent-muted: light-dark(#d4d4d4, #474747);
    --color-neutral: light-dark(#0000000F, #ffffff1A);
    --color-overlay: light-dark(#00000080, #000000CC);
    --color-overlay-hover: light-dark(#0000000D, #ffffff0D);
    --color-overlay-pressed: light-dark(#0000001A, #ffffff1A);
    --color-text-primary: light-dark(#000000, #ffffff);
    --color-text-secondary: light-dark(#474747, #9e9e9e);
    --color-text-disabled: light-dark(#919191, #525252);
    --color-text-accent: light-dark(#0f766e, #45d0b5);
    --color-on-dark: #ffffff;
    --color-on-light: #111111;
    --color-on-accent: light-dark(#ffffff, #111111);
    --color-on-success: light-dark(#ffffff, #111111);
    --color-on-error: light-dark(#ffffff, #111111);
    --color-on-warning: #111111;
    --color-info: light-dark(#0074e2, #6d9cfe);
    --color-info-muted: light-dark(#b9d7ff, #88bcff3D);
    --color-on-info: light-dark(#ffffff, #111111);
    --color-text-info: light-dark(#0067ce, #a1caff);
    --color-text-success: light-dark(#2f7d33, #90ca90);
    --color-text-warning: light-dark(#836700, #eec448);
    --color-text-error: light-dark(#c0262c, #ffaea7);
    --color-on-info-muted: light-dark(#003978, #a1caff);
    --color-on-success-muted: light-dark(#00490b, #90ca90);
    --color-on-warning-muted: light-dark(#4b3900, #eec448);
    --color-on-error-muted: light-dark(#76000c, #ffaea7);
    --color-icon-accent: light-dark(#0f766e, #45d0b5);
    --color-icon-primary: light-dark(#000000, #ffffff);
    --color-icon-secondary: light-dark(#6a6a6a, #9e9e9e);
    --color-icon-disabled: light-dark(#919191, #525252);
    --color-success: light-dark(#198100, #64af4c);
    --color-warning: #ffce2f;
    --color-error: light-dark(#c9303a, #ff705d);
    --color-success-muted: light-dark(#bce0bb, #90ca903D);
    --color-error-muted: light-dark(#ffc4be, #ff98903D);
    --color-warning-muted: light-dark(#fae19e, #e2b6233D);
    --color-border: light-dark(#00000014, #ffffff1A);
    --color-border-emphasized: light-dark(#d4d4d4, #525252);
    --color-skeleton: light-dark(#f1f1f1, #525252);
    --color-shadow: light-dark(#0000001A, #0000004D);
    --color-tint-hover: light-dark(#000000, #ffffff);
    --color-background-red: light-dark(#ffc4be, #5b2b28);
    --color-border-red: light-dark(#ffaea7, #fa6762);
    --color-icon-red: light-dark(#76000c, #ff9890);
    --color-text-red: light-dark(#76000c, #ffaea7);
    --color-background-orange: light-dark(#ffc7a1, #503424);
    --color-border-orange: light-dark(#ffc7a1, #df843f);
    --color-icon-orange: light-dark(#622700, #ff9e55);
    --color-text-orange: light-dark(#622700, #ffb37e);
    --color-background-yellow: light-dark(#fae19e, #453a1c);
    --color-border-yellow: light-dark(#e3c36c, #c29900);
    --color-icon-yellow: light-dark(#4b3900, #e2b623);
    --color-text-yellow: light-dark(#4b3900, #eec448);
    --color-background-green: light-dark(#bce0bb, #2b422b);
    --color-border-green: light-dark(#aad4a9, #6ab26b);
    --color-icon-green: light-dark(#00490b, #90ca90);
    --color-text-green: light-dark(#00490b, #90ca90);
    --color-background-teal: light-dark(#a9e2d6, #28413c);
    --color-border-teal: light-dark(#90d7c8, #4fb1a0);
    --color-icon-teal: light-dark(#00463d, #81c9bb);
    --color-text-teal: light-dark(#00463d, #90d7c8);
    --color-background-cyan: light-dark(#9ae2f4, #274046);
    --color-border-cyan: light-dark(#85d5e9, #49adc4);
    --color-icon-cyan: light-dark(#004351, #71c7dd);
    --color-text-cyan: light-dark(#004351, #85d5e9);
    --color-background-blue: light-dark(#b9d7ff, #253c5a);
    --color-border-blue: light-dark(#a1caff, #5aa0f8);
    --color-icon-blue: light-dark(#003978, #88bcff);
    --color-text-blue: light-dark(#003978, #a1caff);
    --color-background-purple: light-dark(#f7d5ff, #4a2f51);
    --color-border-purple: light-dark(#f3bfff, #d885eb);
    --color-icon-purple: light-dark(#5c0e6c, #e496f6);
    --color-text-purple: light-dark(#5c0e6c, #eaacf8);
    --color-background-pink: light-dark(#ffc0d7, #572b3d);
    --color-border-pink: light-dark(#ffc0d7, #fc78b1);
    --color-icon-pink: light-dark(#70003f, #fd92bd);
    --color-text-pink: light-dark(#70003f, #ffa9ca);
    --color-background-gray: light-dark(#e2e2e2, #303030);
    --color-border-gray: light-dark(#d4d4d4, #262626);
    --color-icon-gray: light-dark(#474747, #9e9e9e);
    --color-text-gray: light-dark(#1b1b1b, #d4d4d4);
    --radius-none: 0px;
    --radius-inner: 0.375rem;
    --radius-element: 0.625rem;
    --radius-container: 0.75rem;
    --radius-page: 1.75rem;
    --radius-full: 9999px;
    --shadow-low: 0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 25%)), 0 4px 8px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 40%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 8%));
    --shadow-med: 0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 35%)), 0 4px 12px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 12%));
    --shadow-high: 0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 15%));
    --shadow-inset-hover: inset 0px 0px 0px 2px #0074e24D;
    --shadow-inset-selected: inset 0px 0px 0px 2px #0074e280;
    --shadow-inset-success: inset 0px 0px 0px 2px #2f7d334D;
    --shadow-inset-warning: inset 0px 0px 0px 2px #f8d36a4D;
    --shadow-inset-error: inset 0px 0px 0px 2px #de47454D;
    --color-icon-info: var(--color-text-info);
    --color-icon-success: var(--color-text-success);
    --color-icon-warning: var(--color-text-warning);
    --color-icon-error: var(--color-text-error);
    --color-border-info: var(--color-text-info);
    --color-border-success: var(--color-text-success);
    --color-border-warning: var(--color-text-warning);
    --color-border-error: var(--color-text-error);
    --duration-exit: var(--duration-fast);
    --astryx-theme-neutral-color-status-fill-accent: light-dark(#0074e2, #6d9cfe);
  }

  :scope {
    font-family: var(--font-family-body);
  }

  .astryx-heading[data-level="1"] {
    font-family: var(--font-family-heading);
    font-size: var(--text-heading-1-size);
    font-weight: var(--text-heading-1-weight);
    line-height: var(--text-heading-1-leading);
  }

  .astryx-heading[data-level="2"] {
    font-family: var(--font-family-heading);
    font-size: var(--text-heading-2-size);
    font-weight: var(--text-heading-2-weight);
    line-height: var(--text-heading-2-leading);
  }

  .astryx-heading[data-level="3"] {
    font-family: var(--font-family-heading);
    font-size: var(--text-heading-3-size);
    font-weight: var(--text-heading-3-weight);
    line-height: var(--text-heading-3-leading);
  }

  .astryx-heading[data-level="4"] {
    font-family: var(--font-family-heading);
    font-size: var(--text-heading-4-size);
    font-weight: var(--text-heading-4-weight);
    line-height: var(--text-heading-4-leading);
  }

  .astryx-heading[data-level="5"] {
    font-family: var(--font-family-heading);
    font-size: var(--text-heading-5-size);
    font-weight: var(--text-heading-5-weight);
    line-height: var(--text-heading-5-leading);
  }

  .astryx-heading[data-level="6"] {
    font-family: var(--font-family-heading);
    font-size: var(--text-heading-6-size);
    font-weight: var(--text-heading-6-weight);
    line-height: var(--text-heading-6-leading);
  }

  .astryx-heading[data-type="display-1"] {
    font-family: var(--font-family-heading);
    font-size: var(--text-display-1-size);
    line-height: var(--text-display-1-leading);
  }

  .astryx-heading[data-type="display-2"] {
    font-family: var(--font-family-heading);
    font-size: var(--text-display-2-size);
    line-height: var(--text-display-2-leading);
  }

  .astryx-heading[data-type="display-3"] {
    font-family: var(--font-family-heading);
    font-size: var(--text-display-3-size);
    line-height: var(--text-display-3-leading);
  }

  .astryx-text[data-type="body"] {
    font-family: var(--font-family-body);
    font-size: var(--text-body-size);
    line-height: var(--text-body-leading);
  }

  .astryx-text[data-type="large"] {
    font-family: var(--font-family-body);
    font-size: var(--text-large-size);
    line-height: var(--text-large-leading);
  }

  .astryx-text[data-type="label"] {
    font-family: var(--font-family-body);
    font-size: var(--text-label-size);
    line-height: var(--text-label-leading);
  }

  .astryx-text[data-type="code"] {
    font-family: var(--font-family-code);
    font-size: var(--text-code-size);
    line-height: var(--text-code-leading);
  }

  .astryx-text[data-type="supporting"] {
    font-family: var(--font-family-body);
    font-size: var(--text-supporting-size);
    line-height: var(--text-supporting-leading);
  }

  .astryx-text[data-type="display-1"] {
    font-family: var(--font-family-heading);
    font-size: var(--text-display-1-size);
    line-height: var(--text-display-1-leading);
  }

  .astryx-text[data-type="display-2"] {
    font-family: var(--font-family-heading);
    font-size: var(--text-display-2-size);
    line-height: var(--text-display-2-leading);
  }

  .astryx-text[data-type="display-3"] {
    font-family: var(--font-family-heading);
    font-size: var(--text-display-3-size);
    line-height: var(--text-display-3-leading);
  }

  .astryx-item[data-selected="selected"] {
    --color-text-secondary: light-dark(#474747, #c6c6c6);
  }

  .astryx-tree-list-item[data-selected="selected"] {
    --color-text-secondary: light-dark(#474747, #c6c6c6);
  }

  .astryx-file-input[data-mode="dropzone"] {
    --color-text-secondary: light-dark(#474747, #c6c6c6);
  }

  .astryx-citation[data-variant="number"] {
    --color-text-secondary: light-dark(#474747, #c6c6c6);
  }

  .astryx-button[data-variant="destructive"] {
    background-color: var(--color-error-muted);
    color: var(--color-on-error-muted);
  }

  .astryx-badge[data-variant="neutral"] {
    background-color: var(--color-background-gray);
    color: var(--color-text-gray);
  }

  .astryx-badge[data-variant="red"] {
    background-color: var(--color-background-red);
    color: var(--color-text-red);
  }

  .astryx-badge[data-variant="orange"] {
    background-color: var(--color-background-orange);
    color: var(--color-text-orange);
  }

  .astryx-badge[data-variant="yellow"] {
    background-color: var(--color-background-yellow);
    color: var(--color-text-yellow);
  }

  .astryx-badge[data-variant="green"] {
    background-color: var(--color-background-green);
    color: var(--color-text-green);
  }

  .astryx-badge[data-variant="teal"] {
    background-color: var(--color-background-teal);
    color: var(--color-text-teal);
  }

  .astryx-badge[data-variant="cyan"] {
    background-color: var(--color-background-cyan);
    color: var(--color-text-cyan);
  }

  .astryx-badge[data-variant="blue"] {
    background-color: var(--color-background-blue);
    color: var(--color-text-blue);
  }

  .astryx-badge[data-variant="purple"] {
    background-color: var(--color-background-purple);
    color: var(--color-text-purple);
  }

  .astryx-badge[data-variant="pink"] {
    background-color: var(--color-background-pink);
    color: var(--color-text-pink);
  }

  .astryx-badge[data-variant="gray"] {
    background-color: var(--color-background-gray);
    color: var(--color-text-gray);
  }

  .astryx-segmented-control {
    padding: var(--spacing-1);
    --_segmented-control-padding: var(--spacing-1);
  }

  .astryx-segmented-control-item {
    --color-text-secondary: light-dark(#474747, #c6c6c6);
  }

  .astryx-segmented-control-item[data-size="sm"] {
    height: calc(var(--size-element-sm) - 8px);
  }

  .astryx-segmented-control-item[data-size="md"] {
    height: calc(var(--size-element-md) - 8px);
  }

  .astryx-segmented-control-item[data-size="lg"] {
    height: calc(var(--size-element-lg) - 8px);
  }

  .astryx-segmented-control-item[data-selected="selected"] {
    box-shadow: none;
  }

  .astryx-switch {
    --color-background-gray: var(--color-border-emphasized);
  }

  .astryx-progress-bar {
    --color-background-muted: var(--color-border-emphasized);
  }

  .astryx-card {
    --astryx-card-padding: var(--spacing-3);
  }

  .astryx-section {
    --astryx-section-padding: var(--spacing-3);
  }

  .astryx-text[data-color="primary"] { color: var(--color-text-primary); }

  .astryx-heading[data-color="primary"] { color: var(--color-text-primary); }

  .astryx-text[data-color="secondary"] { color: var(--color-text-secondary); }

  .astryx-heading[data-color="secondary"] { color: var(--color-text-secondary); }

  .astryx-text[data-color="disabled"] { color: var(--color-text-disabled); }

  .astryx-heading[data-color="disabled"] { color: var(--color-text-disabled); }

  .astryx-text[data-color="placeholder"] { color: var(--color-text-secondary); }

  .astryx-heading[data-color="placeholder"] { color: var(--color-text-secondary); }

  .astryx-text[data-color="accent"] { color: var(--color-text-accent); }

  .astryx-heading[data-color="accent"] { color: var(--color-text-accent); }

  .astryx-text[data-color="inherit"] { color: inherit; }

  .astryx-heading[data-color="inherit"] { color: inherit; }

  .astryx-text[data-size="4xs"] { font-size: var(--font-size-4xs); }

  .astryx-text[data-size="3xs"] { font-size: var(--font-size-3xs); }

  .astryx-text[data-size="2xs"] { font-size: var(--font-size-2xs); }

  .astryx-text[data-size="xsm"] { font-size: var(--font-size-xs); }

  .astryx-text[data-size="sm"] { font-size: var(--font-size-sm); }

  .astryx-text[data-size="base"] { font-size: var(--font-size-base); }

  .astryx-text[data-size="lg"] { font-size: var(--font-size-lg); }

  .astryx-text[data-size="xl"] { font-size: var(--font-size-xl); }

  .astryx-text[data-size="2xl"] { font-size: var(--font-size-2xl); }

  .astryx-text[data-size="3xl"] { font-size: var(--font-size-3xl); }

  .astryx-text[data-size="4xl"] { font-size: var(--font-size-4xl); }

  .astryx-heading[data-weight="normal"] { font-weight: var(--font-weight-normal); }

  .astryx-heading[data-weight="medium"] { font-weight: var(--font-weight-medium); }

  .astryx-heading[data-weight="semibold"] { font-weight: var(--font-weight-semibold); }

  .astryx-heading[data-weight="bold"] { font-weight: var(--font-weight-bold); }
}
}

@layer astryx-theme {
@media (width < 1024px) and (pointer: coarse) {
  @scope ([data-astryx-theme="nodo"]) to ([data-astryx-theme]) {
    :scope {
    --_scaled-font-size-4xs: min(calc(0.4375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-3xs));
    --font-size-4xs: var(--_scaled-font-size-4xs);
    --_scaled-font-size-3xs: min(calc(0.5rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-2xs));
    --font-size-3xs: var(--_scaled-font-size-3xs);
    --_scaled-font-size-2xs: min(calc(0.625rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-xs));
    --font-size-2xs: var(--_scaled-font-size-2xs);
    --_scaled-font-size-xs: min(calc(0.75rem * var(--_dynamic-type-caption1, 1)), var(--_scaled-font-size-sm));
    --font-size-xs: var(--_scaled-font-size-xs);
    --_scaled-font-size-sm: min(calc(0.875rem * var(--_dynamic-type-footnote, 1)), var(--_scaled-font-size-base));
    --font-size-sm: var(--_scaled-font-size-sm);
    --_scaled-font-size-base: min(calc(1rem * var(--_dynamic-type-body, 1)), var(--_scaled-font-size-lg));
    --font-size-base: var(--_scaled-font-size-base);
    --_scaled-font-size-lg: min(calc(1.1875rem * var(--_dynamic-type-title3, 1)), var(--_scaled-font-size-xl));
    --font-size-lg: var(--_scaled-font-size-lg);
    --_scaled-font-size-xl: min(calc(1.375rem * var(--_dynamic-type-title2, 1)), var(--_scaled-font-size-2xl));
    --font-size-xl: var(--_scaled-font-size-xl);
    --_scaled-font-size-2xl: min(calc(1.625rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-3xl));
    --font-size-2xl: var(--_scaled-font-size-2xl);
    --_scaled-font-size-3xl: min(calc(1.875rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-4xl));
    --font-size-3xl: var(--_scaled-font-size-3xl);
    --_scaled-font-size-4xl: min(calc(2.25rem * var(--_dynamic-type-large-title, 1)), var(--_scaled-font-size-5xl));
    --font-size-4xl: var(--_scaled-font-size-4xl);
    --_scaled-font-size-5xl: calc(2.625rem * var(--_dynamic-type-large-title, 1));
    --font-size-5xl: var(--_scaled-font-size-5xl);
    --text-heading-1-size: var(--font-size-2xl);
    --text-heading-1-weight: var(--font-weight-semibold);
    --text-heading-1-leading: 1.3846;
    --text-heading-2-size: var(--font-size-xl);
    --text-heading-2-weight: var(--font-weight-semibold);
    --text-heading-2-leading: 1.4545;
    --text-heading-3-size: var(--font-size-lg);
    --text-heading-3-weight: var(--font-weight-bold);
    --text-heading-3-leading: 1.4737;
    --text-heading-4-size: var(--font-size-base);
    --text-heading-4-weight: var(--font-weight-bold);
    --text-heading-4-leading: 1.5;
    --text-heading-5-size: var(--font-size-sm);
    --text-heading-5-weight: var(--font-weight-semibold);
    --text-heading-5-leading: 1.4286;
    --text-heading-6-size: var(--font-size-xs);
    --text-heading-6-weight: var(--font-weight-semibold);
    --text-heading-6-leading: 1.6667;
    --text-body-size: var(--font-size-base);
    --text-body-weight: var(--font-weight-normal);
    --text-body-leading: 1.5;
    --text-large-size: var(--font-size-lg);
    --text-large-weight: var(--font-weight-semibold);
    --text-large-leading: 1.4737;
    --text-label-size: var(--font-size-base);
    --text-label-weight: var(--font-weight-medium);
    --text-label-leading: 1.5;
    --text-code-size: var(--font-size-base);
    --text-code-weight: var(--font-weight-normal);
    --text-code-leading: 1.5;
    --text-supporting-size: var(--font-size-sm);
    --text-supporting-weight: var(--font-weight-normal);
    --text-supporting-leading: 1.4286;
    --text-display-1-size: var(--font-size-5xl);
    --text-display-1-weight: var(--font-weight-normal);
    --text-display-1-leading: 1.2381;
    --text-display-2-size: var(--font-size-4xl);
    --text-display-2-weight: var(--font-weight-normal);
    --text-display-2-leading: 1.2222;
    --text-display-3-size: var(--font-size-3xl);
    --text-display-3-weight: var(--font-weight-normal);
    --text-display-3-leading: 1.4667;
    --font-family-body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
    --font-family-heading: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
    --font-family-code: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  }
  }
}

@media (width < 1024px) and (pointer: coarse) {
  @scope ([data-astryx-theme="nodo"]) to ([data-astryx-theme]) {
    :scope {
    --_scaled-font-size-4xs: min(calc(0.5rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-3xs));
    --font-size-4xs: var(--_scaled-font-size-4xs);
    --_scaled-font-size-3xs: min(calc(0.5625rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-2xs));
    --font-size-3xs: var(--_scaled-font-size-3xs);
    --_scaled-font-size-2xs: min(calc(0.6875rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-xs));
    --font-size-2xs: var(--_scaled-font-size-2xs);
    --_scaled-font-size-xs: min(calc(0.75rem * var(--_dynamic-type-caption1, 1)), var(--_scaled-font-size-sm));
    --font-size-xs: var(--_scaled-font-size-xs);
    --_scaled-font-size-sm: min(calc(0.8125rem * var(--_dynamic-type-footnote, 1)), var(--_scaled-font-size-base));
    --font-size-sm: var(--_scaled-font-size-sm);
    --_scaled-font-size-base: min(calc(0.9375rem * var(--_dynamic-type-body, 1)), var(--_scaled-font-size-lg));
    --font-size-base: var(--_scaled-font-size-base);
    --_scaled-font-size-lg: min(calc(1.0625rem * var(--_dynamic-type-title3, 1)), var(--_scaled-font-size-xl));
    --font-size-lg: var(--_scaled-font-size-lg);
    --_scaled-font-size-xl: min(calc(1.1875rem * var(--_dynamic-type-title2, 1)), var(--_scaled-font-size-2xl));
    --font-size-xl: var(--_scaled-font-size-xl);
    --_scaled-font-size-2xl: min(calc(1.3125rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-3xl));
    --font-size-2xl: var(--_scaled-font-size-2xl);
    --_scaled-font-size-3xl: min(calc(1.5rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-4xl));
    --font-size-3xl: var(--_scaled-font-size-3xl);
    --_scaled-font-size-4xl: min(calc(1.6875rem * var(--_dynamic-type-large-title, 1)), var(--_scaled-font-size-5xl));
    --font-size-4xl: var(--_scaled-font-size-4xl);
    --_scaled-font-size-5xl: calc(1.875rem * var(--_dynamic-type-large-title, 1));
    --font-size-5xl: var(--_scaled-font-size-5xl);
    --text-heading-1-size: var(--font-size-2xl);
    --text-heading-1-weight: var(--font-weight-semibold);
    --text-heading-1-leading: 1.3333;
    --text-heading-2-size: var(--font-size-xl);
    --text-heading-2-weight: var(--font-weight-semibold);
    --text-heading-2-leading: 1.4737;
    --text-heading-3-size: var(--font-size-lg);
    --text-heading-3-weight: var(--font-weight-bold);
    --text-heading-3-leading: 1.4118;
    --text-heading-4-size: var(--font-size-base);
    --text-heading-4-weight: var(--font-weight-bold);
    --text-heading-4-leading: 1.6;
    --text-heading-5-size: var(--font-size-sm);
    --text-heading-5-weight: var(--font-weight-semibold);
    --text-heading-5-leading: 1.5385;
    --text-heading-6-size: var(--font-size-xs);
    --text-heading-6-weight: var(--font-weight-semibold);
    --text-heading-6-leading: 1.6667;
    --text-body-size: var(--font-size-base);
    --text-body-weight: var(--font-weight-normal);
    --text-body-leading: 1.3334;
    --text-large-size: var(--font-size-lg);
    --text-large-weight: var(--font-weight-semibold);
    --text-large-leading: 1.4118;
    --text-label-size: var(--font-size-base);
    --text-label-weight: var(--font-weight-medium);
    --text-label-leading: 1.6;
    --text-code-size: var(--font-size-base);
    --text-code-weight: var(--font-weight-normal);
    --text-code-leading: 1.6;
    --text-supporting-size: var(--font-size-sm);
    --text-supporting-weight: var(--font-weight-normal);
    --text-supporting-leading: 1.3847;
    --text-display-1-size: var(--font-size-5xl);
    --text-display-1-weight: var(--font-weight-normal);
    --text-display-1-leading: 1.4667;
    --text-display-2-size: var(--font-size-4xl);
    --text-display-2-weight: var(--font-weight-normal);
    --text-display-2-leading: 1.3333;
    --text-display-3-size: var(--font-size-3xl);
    --text-display-3-weight: var(--font-weight-normal);
    --text-display-3-leading: 1.3333;
    --font-family-body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
    --font-family-heading: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
    --font-family-code: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  }
  }
}
}

@layer astryx-theme {
@scope ([data-astryx-theme="nodo"]) to ([data-astryx-theme]) {
  [data-astryx-media="dark"] {
    color-scheme: dark;
    --color-text-primary: var(--color-on-dark);
    --color-icon-primary: var(--color-on-dark);
    --color-accent: var(--color-on-dark);
  }

  [data-astryx-media="light"] {
    color-scheme: light;
    --color-text-primary: var(--color-on-light);
    --color-icon-primary: var(--color-on-light);
    --color-accent: var(--color-on-light);
  }
}
}

/* ② */
@layer astryx-base {
  /* 빌드된 테마에는 없고 @astryxdesign/core/astryx.css(0.7.16)에 있는 값 15개 — 간격(4pt 눈금), 글자 굵기, 부품 높이.
     보통 굵기와 부품 높이 넷은 2026-11-24 02:2x에 더했다(처음 판에 빠져 있어 그 값을 읽는 선언이 무효가 됐다 — 개인 에이전트 담당이 알려 옴). */
  :root {
    --spacing-1: 0.25rem; --spacing-2: 0.5rem; --spacing-3: 0.75rem; --spacing-4: 1rem; --spacing-5: 1.25rem;
    --spacing-6: 1.5rem; --spacing-8: 2rem; --spacing-10: 2.5rem;
    --font-weight-normal: 400; --font-weight-medium: 500; --font-weight-semibold: 600; --font-weight-bold: 700;
    --size-element-sm: 28px; --size-element-md: 32px; --size-element-lg: 36px;
  }
}

/* ③ */
/* 디자인 토큰. 값은 전부 Meta Astryx 테마의 변수에서 온다(styles/astryx.css → theme/nodo.css, 원본은 app/theme/nodo.mjs).
   화면 CSS 는 아래 이름만 쓴다. 밝음·어두움은 Astryx 의 light-dark() 가 color-scheme(시스템 설정 또는 html[data-theme])을 따라 바꾼다.
   색을 고른 이유와 쓰는 곳은 docs/DESIGN.md. */
:root {
  --font-sans: var(--font-family-body);
  --font-mono: var(--font-family-code);

  /* 글자 크기 단계(Astryx 타입 눈금: 12 · 13 · 15 · 17 · 21 · 24px) */
  --fs-xs: var(--font-size-xs);
  --fs-sm: var(--font-size-sm);
  --fs-md: var(--font-size-base);
  --fs-lg: var(--font-size-lg);
  --fs-xl: var(--font-size-2xl);
  --fs-2xl: var(--font-size-3xl);
  --lh-body: var(--text-body-leading);
  --fw-medium: var(--font-weight-medium);
  --fw-semibold: var(--font-weight-semibold);
  --fw-bold: var(--font-weight-bold);

  --sp-1: var(--spacing-1);
  --sp-2: var(--spacing-2);
  --sp-3: var(--spacing-3);
  --sp-4: var(--spacing-4);
  --sp-5: var(--spacing-5);
  --sp-6: var(--spacing-6);
  --sp-8: var(--spacing-8);
  --sp-10: var(--spacing-10);

  --radius-sm: var(--radius-inner);
  --radius-md: var(--radius-element);
  --radius-lg: var(--radius-container);
  --radius-pill: var(--radius-full);

  /* 배치 치수(이 앱의 뼈대) */
  --control-h: 40px;
  --control-h-sm: 32px;
  --rail-w: 244px;
  --rail-w-compact: 72px;
  --topbar-h: 52px;
  --tabbar-h: 58px;
  --feed-w: 630px;
  --aside-w: 320px;

  /* 틀은 순수 중립: 흰색 / 검정, 회색 눈금 */
  --bg: var(--color-background-body);
  --surface: var(--color-background-card);
  --surface-sunken: var(--color-background-muted);
  --neutral-soft: var(--color-background-muted);
  --line: var(--color-border);
  --line-strong: var(--color-border-emphasized);
  --text: var(--color-text-primary);
  --text-2: var(--color-text-secondary);
  --text-3: var(--color-text-secondary);

  /* 잉크: 주 버튼 채움(밝으면 검정, 어두우면 흰색) */
  --ink: var(--color-accent);
  --on-ink: var(--color-on-accent);

  /* 강조는 청록 하나 — 링크, 선택 상태, 포커스, 에이전트 표식에만 */
  --accent: var(--color-text-accent);
  --accent-strong: var(--color-text-accent);
  --on-accent: var(--color-background-body);
  --focus: var(--color-text-accent);
  /* 예전의 옅은 청록 채움·테두리는 중립으로(틴트 상자를 쓰지 않는다) */
  --accent-soft: var(--color-background-muted);
  --accent-line: var(--color-border-emphasized);

  /* 상태(Astryx 상태 토큰) */
  --ok: var(--color-text-success);
  --ok-soft: var(--color-success-muted);
  --warn: var(--color-text-warning);
  --warn-soft: var(--color-warning-muted);
  --warn-line: var(--color-border-warning);
  --danger: var(--color-text-error);
  --danger-strong: var(--color-text-error);
  --danger-soft: var(--color-error-muted);
  --danger-line: var(--color-border-error);
  --danger-fill: var(--color-error);
  --on-danger: var(--color-on-error);
  --info: var(--color-text-info);
  --info-soft: var(--color-info-muted);
  --info-line: var(--color-border-info);

  /* 빨강은 좋아요와 알림 배지에만(오류와 같은 값) */
  --like: var(--color-error);
  --on-like: var(--color-on-error);

  /* 높낮이: 그림자는 떠 있는 것(시트·창·메뉴)에만 */
  --shadow-1: none;
  --shadow-2: var(--shadow-high);
  --backdrop: var(--color-overlay);

  /* 사진 위에 얹는 것(넘김 버튼·점·하트): 밝은 화면·어두운 화면에서 같다 */
  --photo-ink: var(--color-on-dark);
  --photo-chip: color-mix(in srgb, var(--color-on-dark) 90%, transparent);
  --photo-chip-ink: var(--color-on-light);
  --photo-dim: color-mix(in srgb, var(--color-on-dark) 50%, transparent);
  --photo-shade: color-mix(in srgb, var(--color-on-light) 38%, transparent);
  --photo-bg: var(--color-on-light);
}
