{
  "name": "ennichi",
  "version": "1.7.0",
  "description": "縁日 Ennichi — cross-platform design-system foundations, semantics, recipes, and behavior.",
  "colors": {
    "chochin": {
      "day": "#F4512B",
      "night": "#E95836"
    },
    "chochinSoft": {
      "day": "#FFE2D6",
      "night": "#452118"
    },
    "ramune": {
      "day": "#1E9BE9",
      "night": "#1687CF"
    },
    "ramuneSoft": {
      "day": "#D9EEFD",
      "night": "#0F3350"
    },
    "ame": {
      "day": "#E6B450",
      "night": "#F2C76A"
    },
    "ameSoft": {
      "day": "#FFF0CE",
      "night": "#3F2F0F"
    },
    "budo": {
      "day": "#9A50E0",
      "night": "#9954DC"
    },
    "budoSoft": {
      "day": "#EEE2FC",
      "night": "#321F52"
    },
    "chochinText": {
      "day": "#B92E15",
      "night": "#FF8A68"
    },
    "ramuneText": {
      "day": "#086CA9",
      "night": "#74C9FF"
    },
    "ameText": {
      "day": "#8A5700",
      "night": "#FFD06B"
    },
    "budoText": {
      "day": "#7430B4",
      "night": "#C99BFF"
    },
    "positive": {
      "day": "#087A4A",
      "night": "#52E3A4"
    },
    "positiveSoft": {
      "day": "#D4F7E7",
      "night": "#0E3A27"
    },
    "attention": {
      "day": "#A94E00",
      "night": "#FFB66E"
    },
    "attentionSoft": {
      "day": "#FFE9D4",
      "night": "#402813"
    },
    "critical": {
      "day": "#B91C3B",
      "night": "#FF7893"
    },
    "criticalSoft": {
      "day": "#FBDBE2",
      "night": "#461523"
    },
    "paper": {
      "day": "#FDFBF8",
      "night": "#1F1612"
    },
    "paperWarm": {
      "day": "#FBF3E9",
      "night": "#241A15"
    },
    "card": {
      "day": "#FFFFFF",
      "night": "#2B1F19"
    },
    "well": {
      "day": "#F7F3EE",
      "night": "#251A15"
    },
    "ink": {
      "day": "#2B211B",
      "night": "#F8EEE3"
    },
    "muted": {
      "day": "#76685C",
      "night": "#C4AD9B"
    },
    "line": {
      "day": "#ECE7E1",
      "night": "#453324"
    },
    "white": {
      "day": "#FFFFFF",
      "night": "#FFFFFF"
    },
    "inkOnBright": {
      "day": "#2B211B",
      "night": "#2B211B"
    },
    "shadowSubtle": {
      "day": "#2B211B",
      "night": "#000000"
    }
  },
  "semantics": {
    "sections": {
      "treatments": {
        "color": "chochin",
        "soft": "chochinSoft",
        "foregroundOnColor": "white",
        "foregroundOnSoft": "chochinText"
      },
      "patients": {
        "color": "ramune",
        "soft": "ramuneSoft",
        "foregroundOnColor": "white",
        "foregroundOnSoft": "ramuneText"
      },
      "cabinet": {
        "color": "ame",
        "soft": "ameSoft",
        "foregroundOnColor": "inkOnBright",
        "foregroundOnSoft": "ameText"
      },
      "care": {
        "color": "budo",
        "soft": "budoSoft",
        "foregroundOnColor": "white",
        "foregroundOnSoft": "budoText"
      }
    },
    "entities": {
      "patient": {
        "color": "ramune",
        "soft": "ramuneSoft",
        "foregroundOnColor": "white",
        "foregroundOnSoft": "ramuneText",
        "icon": "patient"
      },
      "medicine": {
        "color": "ame",
        "soft": "ameSoft",
        "foregroundOnColor": "inkOnBright",
        "foregroundOnSoft": "ameText",
        "icon": "medicine"
      },
      "doctor": {
        "color": "budo",
        "soft": "budoSoft",
        "foregroundOnColor": "white",
        "foregroundOnSoft": "budoText",
        "icon": "doctor"
      },
      "facility": {
        "color": "budo",
        "soft": "budoSoft",
        "foregroundOnColor": "white",
        "foregroundOnSoft": "budoText",
        "icon": "facility"
      },
      "treatment": {
        "color": "chochin",
        "soft": "chochinSoft",
        "foregroundOnColor": "white",
        "foregroundOnSoft": "chochinText",
        "icon": "treatment"
      }
    },
    "identityPolicy": {
      "dominantSectionColorFamiliesPerScreen": 1,
      "maxCompactEntityAccentFamiliesPerScreen": 2,
      "statusesStateOnly": true,
      "compactEntityIdentityAcrossSections": true,
      "foreignEntityColorsInNavigationAllowed": false,
      "foreignEntityColorsOnLargeSurfacesAllowed": false,
      "foreignEntityColorsOnActionsAllowed": false
    },
    "statuses": {
      "positive": {
        "color": "positive",
        "soft": "positiveSoft"
      },
      "attention": {
        "color": "attention",
        "soft": "attentionSoft"
      },
      "critical": {
        "color": "critical",
        "soft": "criticalSoft"
      }
    },
    "stateAliases": {
      "taken": "positive",
      "valid": "positive",
      "onTrack": "positive",
      "dueNow": "attention",
      "expiresSoon": "attention",
      "missed": "critical",
      "expired": "critical",
      "overdue": "critical"
    },
    "states": {
      "neutral": {
        "color": "muted",
        "soft": "well"
      },
      "upcoming": {
        "color": "muted",
        "soft": "well"
      },
      "scheduled": {
        "color": "muted",
        "soft": "well"
      },
      "inactive": {
        "color": "muted",
        "soft": "well"
      },
      "notYetTaken": {
        "color": "muted",
        "soft": "well"
      },
      "disabled": {
        "color": "muted",
        "soft": "well"
      }
    },
    "typeHierarchy": {
      "heroTitle": "$typography.pageTitle",
      "screenTitle": "$typography.pageTitle",
      "sectionTitle": "$typography.title",
      "body": "$typography.body",
      "metadata": "$typography.metadata",
      "eyebrow": "$typography.sectionLabel"
    },
    "spacingRhythm": {
      "inline": "$spacing.xs",
      "tight": "$spacing.sm",
      "related": "$spacing.md",
      "component": "$spacing.lg",
      "group": "$spacing.xl",
      "section": "$spacing.section"
    },
    "density": {
      "compact": {
        "rowMinHeight": 48,
        "controlMinHeight": 44,
        "horizontalPadding": "$spacing.md",
        "verticalPadding": "$spacing.sm",
        "contentGap": "$spacing.sm"
      },
      "comfortable": {
        "rowMinHeight": 56,
        "controlMinHeight": 48,
        "horizontalPadding": "$spacing.lg",
        "verticalPadding": "$spacing.md",
        "contentGap": "$spacing.md"
      },
      "editorial": {
        "rowMinHeight": 64,
        "controlMinHeight": 52,
        "horizontalPadding": "$spacing.xl",
        "verticalPadding": "$spacing.lg",
        "contentGap": "$spacing.lg"
      }
    },
    "verticalRhythm": {
      "heroAfterNavigation": 40,
      "heroAfterTitle": 24,
      "sectionSpacing": 32,
      "cardSpacing": 20,
      "groupedRowSpacing": 0,
      "paragraphSpacing": 16
    },
    "informationHierarchy": {
      "hero": {
        "style": "$typography.pageTitle",
        "foreground": "ink"
      },
      "primary": {
        "style": "$typography.title",
        "foreground": "ink"
      },
      "secondary": {
        "style": "$typography.body",
        "foreground": "ink"
      },
      "tertiary": {
        "style": "$typography.metadata",
        "foreground": "muted"
      },
      "metadata": {
        "style": "$typography.metadata",
        "foreground": "muted"
      },
      "annotation": {
        "style": "$typography.sectionLabel",
        "foreground": "muted"
      }
    },
    "navigation": {
      "inline": {
        "titleStyle": "$typography.title",
        "topSpacing": "$spacing.lg",
        "actionPlacement": "trailing",
        "transition": "inline",
        "divider": true
      },
      "largeTitle": {
        "titleStyle": "$typography.pageTitle",
        "topSpacing": "$spacing.xl",
        "actionPlacement": "toolbar",
        "transition": "largeTitle",
        "divider": false
      },
      "hero": {
        "titleStyle": "$typography.pageTitle",
        "topSpacing": "$verticalRhythm.heroAfterNavigation",
        "actionPlacement": "trailing",
        "transition": "hero",
        "divider": false
      },
      "modal": {
        "titleStyle": "$typography.title",
        "topSpacing": "$spacing.lg",
        "actionPlacement": "leadingAndTrailing",
        "transition": "modal",
        "divider": true
      },
      "editor": {
        "titleStyle": "$typography.title",
        "topSpacing": "$spacing.lg",
        "actionPlacement": "leadingAndTrailing",
        "transition": "editor",
        "divider": true
      }
    },
    "screenPurposes": {
      "reassure": {
        "density": "comfortable",
        "hierarchy": "hero",
        "card": "summary",
        "action": "primary"
      },
      "execute": {
        "density": "comfortable",
        "hierarchy": "primary",
        "card": "dashboard",
        "action": "primary"
      },
      "organize": {
        "density": "compact",
        "hierarchy": "primary",
        "card": "grouped",
        "action": "secondary"
      },
      "discover": {
        "density": "compact",
        "hierarchy": "secondary",
        "card": "list",
        "action": "inline"
      },
      "review": {
        "density": "editorial",
        "hierarchy": "primary",
        "card": "summary",
        "action": "inline"
      },
      "inventory": {
        "density": "compact",
        "hierarchy": "primary",
        "card": "grouped",
        "action": "primary"
      }
    },
    "sectionPurposes": {
      "today": "reassure",
      "treatments": "execute",
      "patients": "organize",
      "cabinet": "inventory",
      "care": "review"
    },
    "screenArchetypes": {
      "dashboard": {
        "intent": "Execute today's work",
        "purpose": "execute",
        "density": "comfortable",
        "navigation": "hero",
        "hero": true,
        "groupedLists": false,
        "primaryAction": "required"
      },
      "collection": {
        "intent": "Browse",
        "purpose": "discover",
        "density": "compact",
        "navigation": "largeTitle",
        "hero": false,
        "groupedLists": true,
        "primaryAction": "optional"
      },
      "detail": {
        "intent": "Read",
        "purpose": "review",
        "density": "editorial",
        "navigation": "hero",
        "hero": true,
        "groupedLists": true,
        "primaryAction": "optional"
      },
      "timeline": {
        "intent": "Chronological history",
        "purpose": "review",
        "density": "editorial",
        "navigation": "inline",
        "hero": false,
        "groupedLists": false,
        "primaryAction": "none"
      },
      "editor": {
        "intent": "Data entry",
        "purpose": "organize",
        "density": "comfortable",
        "navigation": "editor",
        "hero": false,
        "groupedLists": true,
        "primaryAction": "required"
      }
    },
    "pageRecipes": {
      "treatmentHero": {
        "archetype": "detail",
        "purpose": "execute",
        "entity": "treatment",
        "navigation": "hero",
        "card": "hero",
        "hierarchy": "hero",
        "action": "primary",
        "verticalSpacing": "$verticalRhythm.sectionSpacing"
      },
      "patientHero": {
        "archetype": "detail",
        "purpose": "organize",
        "entity": "patient",
        "navigation": "hero",
        "card": "hero",
        "hierarchy": "hero",
        "action": "primary",
        "verticalSpacing": "$verticalRhythm.sectionSpacing"
      },
      "medicineHero": {
        "archetype": "detail",
        "purpose": "inventory",
        "entity": "medicine",
        "navigation": "hero",
        "card": "hero",
        "hierarchy": "hero",
        "action": "primary",
        "verticalSpacing": "$verticalRhythm.sectionSpacing"
      },
      "doctorHero": {
        "archetype": "detail",
        "purpose": "review",
        "entity": "doctor",
        "navigation": "hero",
        "card": "hero",
        "hierarchy": "hero",
        "action": "inline",
        "verticalSpacing": "$verticalRhythm.sectionSpacing"
      },
      "facilityHero": {
        "archetype": "detail",
        "purpose": "review",
        "entity": "facility",
        "navigation": "hero",
        "card": "hero",
        "hierarchy": "hero",
        "action": "inline",
        "verticalSpacing": "$verticalRhythm.sectionSpacing"
      },
      "todayHero": {
        "archetype": "dashboard",
        "purpose": "reassure",
        "entity": "none",
        "navigation": "hero",
        "card": "hero",
        "hierarchy": "hero",
        "action": "primary",
        "verticalSpacing": "$verticalRhythm.heroAfterNavigation"
      },
      "groupedTimeline": {
        "archetype": "timeline",
        "purpose": "review",
        "entity": "none",
        "navigation": "inline",
        "card": "grouped",
        "hierarchy": "secondary",
        "action": "inline",
        "verticalSpacing": "$verticalRhythm.sectionSpacing"
      },
      "dashboardCard": {
        "archetype": "dashboard",
        "purpose": "execute",
        "entity": "none",
        "navigation": "hero",
        "card": "dashboard",
        "hierarchy": "primary",
        "action": "primary",
        "verticalSpacing": "$verticalRhythm.cardSpacing"
      },
      "groupedSettings": {
        "archetype": "collection",
        "purpose": "organize",
        "entity": "none",
        "navigation": "inline",
        "card": "grouped",
        "hierarchy": "primary",
        "action": "secondary",
        "verticalSpacing": "$verticalRhythm.sectionSpacing"
      }
    },
    "emptyStates": {
      "dashboard": {
        "title": "Nothing scheduled today.",
        "message": "Enjoy the rest of your day.",
        "icon": "$icons.emptyStates.dashboard",
        "action": "quiet"
      },
      "collection": {
        "title": "Nothing here yet.",
        "message": "Add your first item when you're ready.",
        "icon": "$icons.emptyStates.collection",
        "action": "primary"
      },
      "search": {
        "title": "No results found.",
        "message": "Try a different name or filter.",
        "icon": "$icons.emptyStates.search",
        "action": "quiet"
      },
      "timeline": {
        "title": "No history yet.",
        "message": "Completed care will appear here.",
        "icon": "$icons.emptyStates.timeline",
        "action": "quiet"
      },
      "cabinet": {
        "title": "Your cabinet is empty.",
        "message": "Add a medicine or supplement.",
        "icon": "$icons.emptyStates.cabinet",
        "action": "primary"
      },
      "treatment": {
        "title": "No treatments yet.",
        "message": "Add a treatment to build today's plan.",
        "icon": "$icons.emptyStates.treatment",
        "action": "primary"
      }
    },
    "greetings": {
      "morning": "Good morning.",
      "afternoon": "Good afternoon.",
      "evening": "Good evening.",
      "completedToday": "You're all caught up.",
      "oneRemaining": "One task remaining.",
      "manyRemaining": "{count} tasks remaining.",
      "nothingScheduled": "Nothing scheduled today.",
      "seeYouTomorrow": "See you tomorrow."
    },
    "motion": {
      "press": {
        "duration": 0.12,
        "easing": "easeOut",
        "distance": 0,
        "scale": 0.98,
        "opacity": 1
      },
      "success": {
        "duration": 0.32,
        "easing": "gentleSpring",
        "distance": 0,
        "scale": 1,
        "opacity": 1
      },
      "navigation": {
        "duration": 0.28,
        "easing": "easeInOut",
        "distance": 12,
        "scale": 1,
        "opacity": 1
      },
      "cardAppear": {
        "duration": 0.24,
        "easing": "easeOut",
        "distance": 8,
        "scale": 1,
        "opacity": 0
      },
      "collapse": {
        "duration": 0.22,
        "easing": "easeInOut",
        "distance": 0,
        "scale": 0.98,
        "opacity": 1
      },
      "timelineInsert": {
        "duration": 0.3,
        "easing": "gentleSpring",
        "distance": 12,
        "scale": 1,
        "opacity": 0
      }
    },
    "personalities": {
      "calm": {
        "density": "comfortable",
        "hierarchy": "secondary",
        "elevation": "none",
        "motion": "navigation",
        "spacingScale": 1.1,
        "colorIntensity": "restrained"
      },
      "editorial": {
        "density": "editorial",
        "hierarchy": "hero",
        "elevation": "none",
        "motion": "navigation",
        "spacingScale": 1.15,
        "colorIntensity": "restrained"
      },
      "energetic": {
        "density": "compact",
        "hierarchy": "primary",
        "elevation": "subtle",
        "motion": "success",
        "spacingScale": 0.9,
        "colorIntensity": "vivid"
      },
      "technical": {
        "density": "compact",
        "hierarchy": "metadata",
        "elevation": "none",
        "motion": "press",
        "spacingScale": 0.9,
        "colorIntensity": "restrained"
      },
      "playful": {
        "density": "comfortable",
        "hierarchy": "primary",
        "elevation": "subtle",
        "motion": "cardAppear",
        "spacingScale": 1,
        "colorIntensity": "balanced"
      }
    },
    "productPersonalities": {
      "sanavva": [
        "calm",
        "editorial"
      ],
      "tohvva": [
        "energetic",
        "technical"
      ],
      "viavva": [
        "playful",
        "editorial"
      ]
    },
    "emotionalDensity": {
      "0": {
        "context": "Utilities, settings, and forms",
        "whitespaceScale": 0.85,
        "typographyScale": 0.95,
        "componentScale": 0.9,
        "greeting": false,
        "heroScale": 0.75,
        "metadata": "full",
        "actionProminence": "quiet"
      },
      "1": {
        "context": "Cabinet",
        "whitespaceScale": 0.9,
        "typographyScale": 0.95,
        "componentScale": 0.95,
        "greeting": false,
        "heroScale": 0.85,
        "metadata": "full",
        "actionProminence": "secondary"
      },
      "2": {
        "context": "Patients and Care",
        "whitespaceScale": 1,
        "typographyScale": 1,
        "componentScale": 1,
        "greeting": false,
        "heroScale": 1,
        "metadata": "balanced",
        "actionProminence": "secondary"
      },
      "3": {
        "context": "Treatments",
        "whitespaceScale": 1.05,
        "typographyScale": 1,
        "componentScale": 1.05,
        "greeting": false,
        "heroScale": 1.05,
        "metadata": "balanced",
        "actionProminence": "primary"
      },
      "4": {
        "context": "Today",
        "whitespaceScale": 1.15,
        "typographyScale": 1.05,
        "componentScale": 1.1,
        "greeting": true,
        "heroScale": 1.15,
        "metadata": "reduced",
        "actionProminence": "primary"
      },
      "5": {
        "context": "Onboarding",
        "whitespaceScale": 1.25,
        "typographyScale": 1.1,
        "componentScale": 1.15,
        "greeting": true,
        "heroScale": 1.25,
        "metadata": "minimal",
        "actionProminence": "primary"
      }
    },
    "emotionalDensityAssignments": {
      "utilities": 0,
      "settings": 0,
      "forms": 0,
      "cabinet": 1,
      "patients": 2,
      "care": 2,
      "treatments": 3,
      "today": 4,
      "onboarding": 5
    },
    "screenIdentity": {
      "today": {
        "operationalPurpose": "reassure",
        "emotionalPurpose": "reassure",
        "feeling": "calm",
        "primaryAction": "Complete today's care",
        "emotionalDensity": 4
      },
      "treatments": {
        "operationalPurpose": "execute",
        "emotionalPurpose": "execute",
        "feeling": "confident",
        "primaryAction": "Take medication",
        "emotionalDensity": 3
      },
      "patients": {
        "operationalPurpose": "organize",
        "emotionalPurpose": "care",
        "feeling": "human",
        "primaryAction": "Open patient",
        "emotionalDensity": 2
      },
      "cabinet": {
        "operationalPurpose": "inventory",
        "emotionalPurpose": "inventory",
        "feeling": "organized",
        "primaryAction": "Manage stock",
        "emotionalDensity": 1
      },
      "care": {
        "operationalPurpose": "review",
        "emotionalPurpose": "remember",
        "feeling": "reflective",
        "primaryAction": "Review history",
        "emotionalDensity": 2
      }
    },
    "surfaces": {
      "screen": {
        "background": "paper"
      },
      "hero": {
        "background": "paperWarm"
      },
      "navigation": {
        "background": "card"
      },
      "group": {
        "background": "card"
      },
      "groupedList": {
        "background": "card",
        "divider": "line"
      },
      "search": {
        "background": "well"
      },
      "recessed": {
        "background": "well"
      },
      "elevated": {
        "background": "card",
        "border": "line",
        "elevation": "subtle"
      }
    },
    "components": {
      "button": {
        "primary": {
          "background": "$section.color",
          "foreground": "$section.foregroundOnColor",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "horizontalPadding": "$spacing.lg",
          "verticalPadding": "$spacing.md",
          "radius": "$radius.pill"
        },
        "secondary": {
          "background": "$section.soft",
          "foreground": "$section.foregroundOnSoft",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "horizontalPadding": "$spacing.lg",
          "verticalPadding": "$spacing.md",
          "radius": "$radius.pill"
        },
        "quiet": {
          "background": "well",
          "foreground": "ink",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "horizontalPadding": "$spacing.lg",
          "verticalPadding": "$spacing.md",
          "radius": "$radius.pill"
        },
        "inline": {
          "background": "transparent",
          "foreground": "$section.foregroundOnSoft",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "horizontalPadding": 0,
          "verticalPadding": "$spacing.xs",
          "radius": 0
        },
        "tertiary": {
          "background": "transparent",
          "foreground": "$section.foregroundOnSoft",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "horizontalPadding": "$spacing.md",
          "verticalPadding": "$spacing.sm",
          "radius": "$radius.pill"
        },
        "destructive": {
          "background": "critical",
          "foreground": "criticalSoft",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "horizontalPadding": "$spacing.lg",
          "verticalPadding": "$spacing.md",
          "radius": "$radius.pill"
        }
      },
      "card": {
        "default": {
          "background": "card",
          "foreground": "ink",
          "border": "line",
          "borderWidth": "$border.width",
          "elevation": "subtle",
          "padding": "$spacing.lg",
          "spacing": "$spacing.md",
          "radius": "$radius.base"
        },
        "group": {
          "background": "card",
          "foreground": "ink",
          "border": "line",
          "borderWidth": "$border.width",
          "elevation": "none",
          "padding": 0,
          "spacing": 0,
          "radius": "$radius.base"
        },
        "hero": {
          "background": "paperWarm",
          "foreground": "ink",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "padding": "$spacing.xl",
          "spacing": "$spacing.lg",
          "radius": "$radius.base"
        },
        "dashboard": {
          "background": "card",
          "foreground": "ink",
          "border": "line",
          "borderWidth": "$border.width",
          "elevation": "subtle",
          "padding": "$spacing.lg",
          "spacing": "$spacing.md",
          "radius": "$radius.base"
        },
        "grouped": {
          "background": "card",
          "foreground": "ink",
          "border": "line",
          "borderWidth": "$border.width",
          "elevation": "none",
          "padding": 0,
          "spacing": 0,
          "radius": "$radius.base"
        },
        "list": {
          "background": "card",
          "foreground": "ink",
          "border": "line",
          "borderWidth": "$border.width",
          "elevation": "none",
          "padding": 0,
          "spacing": 0,
          "radius": "$radius.base"
        },
        "summary": {
          "background": "card",
          "foreground": "ink",
          "border": "line",
          "borderWidth": "$border.width",
          "elevation": "subtle",
          "padding": "$spacing.xl",
          "spacing": "$spacing.md",
          "radius": "$radius.base"
        },
        "stat": {
          "background": "well",
          "foreground": "ink",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "padding": "$spacing.lg",
          "spacing": "$spacing.xs",
          "radius": "$radius.sm"
        },
        "inset": {
          "background": "well",
          "foreground": "ink",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "padding": "$spacing.lg",
          "spacing": "$spacing.sm",
          "radius": "$radius.base"
        }
      },
      "groupedList": {
        "background": "card",
        "foreground": "ink",
        "divider": "line",
        "border": "line",
        "borderWidth": "$border.width",
        "elevation": "none",
        "rowMinHeight": 56,
        "horizontalPadding": "$spacing.lg",
        "verticalPadding": "$spacing.md",
        "dividerInset": "$spacing.lg",
        "radius": "$radius.base",
        "usesSharedSurface": true
      },
      "searchField": {
        "background": "well",
        "foreground": "ink",
        "placeholder": "muted",
        "border": "none",
        "borderWidth": 0,
        "elevation": "none",
        "horizontalPadding": "$spacing.lg",
        "verticalPadding": "$spacing.md",
        "radius": "$radius.sm"
      },
      "tab": {
        "selected": {
          "background": "$section.soft",
          "foreground": "$section.foregroundOnSoft",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "horizontalPadding": "$spacing.md",
          "verticalPadding": "$spacing.sm",
          "radius": "$radius.pill"
        },
        "unselected": {
          "background": "transparent",
          "foreground": "muted",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "horizontalPadding": "$spacing.md",
          "verticalPadding": "$spacing.sm",
          "radius": "$radius.pill"
        }
      },
      "chip": {
        "selected": {
          "background": "$section.soft",
          "foreground": "$section.foregroundOnSoft",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "horizontalPadding": "$spacing.md",
          "verticalPadding": "$spacing.sm",
          "radius": "$radius.pill"
        },
        "inactive": {
          "background": "well",
          "foreground": "muted",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "horizontalPadding": "$spacing.md",
          "verticalPadding": "$spacing.sm",
          "radius": "$radius.pill"
        }
      },
      "badge": {
        "status": {
          "background": "$status.soft",
          "foreground": "$status.color",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "horizontalPadding": "$spacing.sm",
          "verticalPadding": "$spacing.xs",
          "radius": "$radius.pill"
        },
        "neutral": {
          "background": "well",
          "foreground": "muted",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "horizontalPadding": "$spacing.sm",
          "verticalPadding": "$spacing.xs",
          "radius": "$radius.pill"
        }
      },
      "avatar": {
        "entity": {
          "background": "$section.soft",
          "foreground": "ink",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "padding": 0,
          "usesRamp": true,
          "radius": "$radius.pill",
          "containerSize": "$icons.containers.row",
          "glyphSize": "$icons.sizes.avatar"
        },
        "hero": {
          "background": "$section.soft",
          "foreground": "$section.foregroundOnSoft",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "padding": 0,
          "usesRamp": false,
          "radius": "$radius.pill",
          "containerSize": "$icons.containers.hero",
          "glyphSize": "$icons.sizes.emptyState"
        },
        "category": {
          "background": "$section.soft",
          "foreground": "$section.foregroundOnSoft",
          "border": "none",
          "borderWidth": 0,
          "elevation": "none",
          "padding": 0,
          "usesRamp": false,
          "radius": "$radius.pill",
          "containerSize": "$icons.containers.row",
          "glyphSize": "$icons.sizes.row"
        }
      },
      "entityAvatar": {
        "symbol": "$entity.icon",
        "background": "$entity.soft",
        "foreground": "$entity.foregroundOnSoft",
        "border": "none",
        "borderWidth": 0,
        "elevation": "none",
        "padding": 0,
        "containerSize": "$icons.containers.row",
        "glyphSize": "$icons.sizes.avatar",
        "radius": "$radius.pill"
      },
      "sectionHeader": {
        "background": "transparent",
        "foreground": "muted",
        "metadata": "muted",
        "border": "none",
        "borderWidth": 0,
        "elevation": "none",
        "horizontalPadding": 0,
        "verticalPadding": "$spacing.sm",
        "radius": 0
      },
      "navigationHeader": {
        "background": "card",
        "foreground": "ink",
        "metadata": "muted",
        "divider": "line",
        "border": "line",
        "borderWidth": "$border.width",
        "elevation": "none",
        "horizontalPadding": "$spacing.lg",
        "verticalPadding": "$spacing.md",
        "minHeight": 52,
        "titleStyle": "$typography.title",
        "radius": 0
      },
      "emptyState": {
        "background": "paper",
        "foreground": "muted",
        "border": "none",
        "borderWidth": 0,
        "elevation": "none",
        "padding": "$spacing.xl",
        "radius": "$radius.base"
      },
      "screen": {
        "background": "paper",
        "navigationBackground": "card"
      },
      "primaryButton": {
        "background": "$section.color",
        "foreground": "$section.foregroundOnColor"
      },
      "secondaryButton": {
        "background": "$section.soft",
        "foreground": "$section.foregroundOnSoft"
      },
      "selectedChip": {
        "background": "$section.soft",
        "foreground": "$section.foregroundOnSoft"
      },
      "inactiveChip": {
        "background": "well",
        "foreground": "muted"
      },
      "statusBadge": {
        "background": "$status.soft",
        "foreground": "$status.color"
      }
    },
    "neutrals": [
      "paper",
      "paperWarm",
      "card",
      "well",
      "ink",
      "muted",
      "line"
    ]
  },
  "spacing": {
    "xs": 4,
    "sm": 8,
    "md": 12,
    "lg": 16,
    "xl": 24,
    "section": 32
  },
  "typography": {
    "pageTitle": {
      "size": 34,
      "weight": "bold",
      "lineHeight": 41
    },
    "title": {
      "size": 22,
      "weight": "semibold",
      "lineHeight": 28
    },
    "body": {
      "size": 17,
      "weight": "regular",
      "lineHeight": 22
    },
    "metadata": {
      "size": 15,
      "weight": "regular",
      "lineHeight": 20
    },
    "sectionLabel": {
      "size": 13,
      "weight": "semibold",
      "lineHeight": 18,
      "tracking": 0.6
    }
  },
  "border": {
    "width": 1
  },
  "elevation": {
    "none": {
      "day": {
        "opacity": 0,
        "blur": 0,
        "y": 0
      },
      "night": {
        "opacity": 0,
        "blur": 0,
        "y": 0
      }
    },
    "subtle": {
      "day": {
        "opacity": 0.015,
        "blur": 6,
        "y": 1
      },
      "night": {
        "opacity": 0.08,
        "blur": 6,
        "y": 1
      }
    }
  },
  "groupedList": {
    "rowMinHeight": 56,
    "horizontalPadding": 16,
    "verticalPadding": 12,
    "dividerInset": 16,
    "usesSharedSurface": true
  },
  "tabBar": {
    "background": "card",
    "selected": {
      "background": "$section.soft",
      "foreground": "$section.foregroundOnSoft"
    },
    "unselected": {
      "background": "transparent",
      "foreground": "muted"
    }
  },
  "avatars": {
    "entity": {
      "usesRamp": true,
      "foreground": "ink"
    },
    "hero": {
      "background": "$section.soft",
      "foreground": "$section.foregroundOnSoft"
    },
    "category": {
      "background": "$section.soft",
      "foreground": "$section.foregroundOnSoft"
    }
  },
  "icons": {
    "style": {
      "defaultRendering": "monochrome",
      "navigationRendering": "outline",
      "primaryRendering": "filled",
      "stateRendering": "filledInSoftCircle",
      "stroke": "rounded",
      "illustrationsAllowed": false,
      "gradientsAllowed": false,
      "shadowsAllowed": false,
      "multicolorAllowed": false
    },
    "sections": {
      "treatments": "pills.fill",
      "patients": "person.2.fill",
      "cabinet": "cross.case.fill",
      "care": "stethoscope"
    },
    "statuses": {
      "positive": "checkmark.circle.fill",
      "attention": "clock.fill",
      "critical": "exclamationmark.circle.fill",
      "neutral": "circle"
    },
    "entities": {
      "patient": "person.fill",
      "doctor": "stethoscope",
      "facility": "building.2.fill",
      "medicine": "pills.fill",
      "supplement": "leaf.fill",
      "injection": "syringe.fill",
      "appointment": "calendar.badge.clock",
      "treatment": "pills.fill"
    },
    "emptyStates": {
      "dashboard": "checkmark.circle.fill",
      "collection": "tray.fill",
      "search": "magnifyingglass",
      "timeline": "clock.arrow.circlepath",
      "cabinet": "cross.case.fill",
      "treatment": "pills.fill"
    },
    "sizes": {
      "inline": 16,
      "control": 20,
      "row": 24,
      "avatar": 24,
      "emptyState": 48
    },
    "containers": {
      "small": 28,
      "row": 44,
      "hero": 72
    }
  },
  "avatarRamp": [
    1,
    0.8,
    0.58,
    0.4
  ],
  "radius": {
    "base": 20,
    "sm": 12,
    "pill": 999
  },
  "grammar": [
    "Ennichi is adopted from the outside in: foundations, application shell, shared components, screen archetypes, individual screens, then polish.",
    "Each screen has exactly one visual focus; secondary elements may support it but never compete with it.",
    "Use whitespace, typography size, typography weight, and spacing before adding color, borders, shadows, or decoration.",
    "Color only communicates section location, semantic state, or entity identity; color is never decoration.",
    "Emotional Density may scale whitespace, typography, components, greetings, heroes, metadata, and action prominence but never changes identity, state meaning, contrast, or accessibility.",
    "Motion is gentle, natural, critically damped, and functional; it never bounces, spins, celebrates, or competes with the task.",
    "Completion language is warm and quiet; never use confetti, celebratory emoji, or loud congratulations.",
    "Every screen declares one archetype and one purpose before choosing components or layout details.",
    "Screen archetypes control density, navigation, hero use, grouped-list behavior, and primary-action requirement.",
    "Use semantic vertical rhythm and information hierarchy roles instead of composing arbitrary spacing and typography values.",
    "Choose cards by intent from the card taxonomy; a rounded rectangle is not automatically a dashboard card.",
    "Empty-state and greeting language uses canonical design-system roles and remains localizable by consuming products.",
    "Personality may tune density, motion, elevation, spacing, and color intensity but may never override semantic identity or accessibility.",
    "Each screen has one dominant section color family; neutrals and state-only status colors support it.",
    "Status colors only ever communicate state and never identify an entity or decorate a surface.",
    "Compact entity avatars and icons may retain their canonical semantic identity color across sections.",
    "A foreign entity color may not color navigation, a large surface, or an action.",
    "A screen may show at most two compact entity accent families in addition to its dominant section color.",
    "Upcoming, scheduled, not-yet-taken, inactive, and disabled states use the neutral state family; future events are not failures.",
    "Use each section's foregroundOnColor token on saturated fills; never infer white text.",
    "Chrome, backgrounds, dividers, and body text use neutral surface roles.",
    "Paper is the default screen canvas; PaperWarm is reserved for hero identity and intentional warm emphasis.",
    "Hero identity content uses the PaperWarm surface recipe and does not require an elevated Card.",
    "Repeated related rows share one grouped Card surface with Line dividers rather than becoming separate cards.",
    "Elevation is reserved for isolated interactive surfaces; grouped lists and hero regions use none, and more than two vertically stacked elevated cards should be regrouped.",
    "Use typography and spacing before introducing another surface; empty space is intentional and must not be filled with decorative illustrations.",
    "Icons use flat monochrome geometry, rounded strokes, and one rendering strategy per context; gradients, shadows, multicolor symbols, and semi-realistic illustrations are not part of the identity.",
    "Avatar tint uses the section color at a ramp opacity, indexed by the stable UTF-8 entity hash, never by visual row."
  ]
}
