/* СГЕНЕРИРОВАНО. Правится Art/room-study/theme.py и layout.py,
   потом `cd Art/room-study && python3 emit.py`.
   Запреты и правила — в BiscuitTheme.swift и Spec/ux-palette.md. */

:root {
  --app-bg: #F7EFD2;
  --surface: #FFFEF9;
  --surface-raised: #FFFEF9;
  --surface-sunken: #E4D6B0;
  --surface-pressed: #F4EDDD;
  --surface-disabled: #EDE6D6;
  --scrim: rgba(61,34,33,.42);
  --border-subtle: #E7DCC2;
  --border-strong: #A57F55;
  --focus-ring: #7D4643;
  --line-hairline: rgba(49,45,37,.07);
  --text-primary: #3D2221;
  --text-secondary: #6E5C2E;
  --text-muted: #6E5C2E;
  --label: #6E5C2E;
  --text-disabled: #A28F6A;
  --text-inverse: #FFFEF9;
  --accent-hero: #7D4643;
  --primary: #3D2221;
  --primary-pressed: #241312;
  --on-primary: #FFFEF9;
  --on-primary-soft: #DCD6D2;
  --action-disabled: #E4DAC2;
  --on-action-disabled: #A28F6A;
  --action-soft: #EEE1B3;
  --action-soft-pressed: #DCCB9B;
  --on-action-soft: #3D2221;
  --action-ghost: #7D4643;
  --feed: #27412F;
  --feed-pressed: #1B2E20;
  --on-feed: #FFF7E8;
  --success: #3A6B47;
  --success-bg: #D5E5C8;
  --warning: #6E560C;
  --warning-bg: #F2DFA2;
  --danger: #A8325A;
  --danger-bg: #F7DBE3;
  --info: #275C74;
  --info-bg: #CDE3EC;
  --armed: #F2A03D;
  --armed-ink: #7C5010;
  --armed-bg: #F9DDA6;
  --badge-morning: #FBD3C4;
  --badge-morning-ink: #3D2221;
  --badge-weekend: #BED5AE;
  --badge-weekend-ink: #3D2221;
  --badge-once: #C4E6F2;
  --badge-once-ink: #20414E;
  --badge-paused: #E7DCC2;
  --badge-paused-ink: #6E5C2E;
  --switch-on-track: #3D2221;
  --switch-on-thumb: #FFFEF9;
  --switch-off-track: #DCD7CB;
  --switch-off-thumb: #FFFEF9;
  --slider-track: #DED2B6;
  --slider-thumb: #FFFEF9;
  --segment-track: #E4D6B0;
  --segment-active: #FFFEF9;
  --on-segment-active: #3D2221;
  --nav-idle: #6E5C2E;
  --nav-indicator: #3D2221;
  --toast-bg: #3D2221;
  --toast-ink: #FFFEF9;
  --skeleton: #EDE2C4;
  --pack-coats: #E3A29F;
  --pack-bowls: #A8C58F;
  --pack-sounds: #F4D27A;
  --pack-icons: #94CBE0;
  --fur-outline: #312D25;
  --fur-shadow: #E57525;
  --fur-light: #F6B863;
  --fur-cream: #FFF7E8;
  --wash: linear-gradient(158deg,#F7EFD2 0%,#E3EED8 34%,#FDE7DD 68%,#F3DCDA 100%);
  --hero-shadow: 0 14px 30px -18px rgba(61,34,33,.34);
  --card-shadow: 0 7px 20px -12px rgba(61,34,33,.26);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --app-bg: #151C1A;
    --surface: #2F272B;
    --surface-raised: #413640;
    --surface-sunken: #241E22;
    --surface-pressed: #4A3D46;
    --surface-disabled: #2A2428;
    --scrim: rgba(9,6,10,.66);
    --border-subtle: #51434A;
    --border-strong: #968088;
    --focus-ring: #D9B36C;
    --line-hairline: rgba(23,27,32,.07);
    --text-primary: #F6EBD6;
    --text-secondary: #C8B9A5;
    --text-muted: #A89C8E;
    --label: #B9A46F;
    --text-disabled: #84767F;
    --text-inverse: #2A211B;
    --accent-hero: #D99279;
    --primary: #D9B36C;
    --primary-pressed: #C29B58;
    --on-primary: #2A211B;
    --on-primary-soft: #4A3B2A;
    --action-disabled: #372F33;
    --on-action-disabled: #84767F;
    --action-soft: #4E424A;
    --action-soft-pressed: #5B4E56;
    --on-action-soft: #F6EBD6;
    --action-ghost: #D9B36C;
    --feed: #8FA57E;
    --feed-pressed: #7C9169;
    --on-feed: #17201A;
    --success: #AFC794;
    --success-bg: #3B5044;
    --warning: #D8A94F;
    --warning-bg: #2E2618;
    --danger: #E289A2;
    --danger-bg: #35201F;
    --info: #86A9C5;
    --info-bg: #1C262E;
    --armed: #D9B36C;
    --armed-ink: #E0C083;
    --armed-bg: #2A2214;
    --badge-morning: #5B3E3A;
    --badge-morning-ink: #E8A17E;
    --badge-weekend: #3B5044;
    --badge-weekend-ink: #AFC794;
    --badge-once: #3C505E;
    --badge-once-ink: #86A9C5;
    --badge-paused: #292124;
    --badge-paused-ink: #9D8F80;
    --switch-on-track: #6A825F;
    --switch-on-thumb: #F6EBD6;
    --switch-off-track: #51464B;
    --switch-off-thumb: #C9C0B4;
    --slider-track: #3F363B;
    --slider-thumb: #F6EBD6;
    --segment-track: #241E22;
    --segment-active: #4A3F45;
    --on-segment-active: #F6EBD6;
    --nav-idle: #9D8F80;
    --nav-indicator: #D9B36C;
    --toast-bg: #544550;
    --toast-ink: #F6EBD6;
    --skeleton: #332B2F;
    --pack-coats: #5B3E3A;
    --pack-bowls: #3B5044;
    --pack-sounds: #4F4220;
    --pack-icons: #3C505E;
    --fur-outline: #171B20;
    --fur-shadow: #AD5032;
    --fur-light: #F0AC5C;
    --fur-cream: #E5CAA6;
    --wash: linear-gradient(180deg,#151C1A 0%,#1B161C 48%,#20151F 100%);
    --hero-shadow: 0 14px 28px -16px rgba(9,6,10,.58);
    --card-shadow: 0 7px 18px -12px rgba(9,6,10,.50);
  }
}

:root[data-theme="dark"] {
  --app-bg: #151C1A;
  --surface: #2F272B;
  --surface-raised: #413640;
  --surface-sunken: #241E22;
  --surface-pressed: #4A3D46;
  --surface-disabled: #2A2428;
  --scrim: rgba(9,6,10,.66);
  --border-subtle: #51434A;
  --border-strong: #968088;
  --focus-ring: #D9B36C;
  --line-hairline: rgba(23,27,32,.07);
  --text-primary: #F6EBD6;
  --text-secondary: #C8B9A5;
  --text-muted: #A89C8E;
  --label: #B9A46F;
  --text-disabled: #84767F;
  --text-inverse: #2A211B;
  --accent-hero: #D99279;
  --primary: #D9B36C;
  --primary-pressed: #C29B58;
  --on-primary: #2A211B;
  --on-primary-soft: #4A3B2A;
  --action-disabled: #372F33;
  --on-action-disabled: #84767F;
  --action-soft: #4E424A;
  --action-soft-pressed: #5B4E56;
  --on-action-soft: #F6EBD6;
  --action-ghost: #D9B36C;
  --feed: #8FA57E;
  --feed-pressed: #7C9169;
  --on-feed: #17201A;
  --success: #AFC794;
  --success-bg: #3B5044;
  --warning: #D8A94F;
  --warning-bg: #2E2618;
  --danger: #E289A2;
  --danger-bg: #35201F;
  --info: #86A9C5;
  --info-bg: #1C262E;
  --armed: #D9B36C;
  --armed-ink: #E0C083;
  --armed-bg: #2A2214;
  --badge-morning: #5B3E3A;
  --badge-morning-ink: #E8A17E;
  --badge-weekend: #3B5044;
  --badge-weekend-ink: #AFC794;
  --badge-once: #3C505E;
  --badge-once-ink: #86A9C5;
  --badge-paused: #292124;
  --badge-paused-ink: #9D8F80;
  --switch-on-track: #6A825F;
  --switch-on-thumb: #F6EBD6;
  --switch-off-track: #51464B;
  --switch-off-thumb: #C9C0B4;
  --slider-track: #3F363B;
  --slider-thumb: #F6EBD6;
  --segment-track: #241E22;
  --segment-active: #4A3F45;
  --on-segment-active: #F6EBD6;
  --nav-idle: #9D8F80;
  --nav-indicator: #D9B36C;
  --toast-bg: #544550;
  --toast-ink: #F6EBD6;
  --skeleton: #332B2F;
  --pack-coats: #5B3E3A;
  --pack-bowls: #3B5044;
  --pack-sounds: #4F4220;
  --pack-icons: #3C505E;
  --fur-outline: #171B20;
  --fur-shadow: #AD5032;
  --fur-light: #F0AC5C;
  --fur-cream: #E5CAA6;
  --wash: linear-gradient(180deg,#151C1A 0%,#1B161C 48%,#20151F 100%);
  --hero-shadow: 0 14px 28px -16px rgba(9,6,10,.58);
  --card-shadow: 0 7px 18px -12px rgba(9,6,10,.50);
}

:root {
  --screen-w: 393px;
  --margin: 16px;
  --grid: 8px;
  --content-w: 361px;
  --hero-radius: 32px;
  --row-w: 361px;
  --row-h: 72px;
  --room-top: 48px;
  --next-row-h: 88px;
  --swipe-door-w: 88px;
  --pack-preview-h: 120px;
  --list-row-h: 64px;
  --row-radius: 24px;
  --chip-size: 40px;
  --chip-glyph: 22px;
  --kind-chip-size: 48px;
  --kind-chip-glyph: 24px;
  --coat-dot-size: 40px;
  --action-size: 44px;
  --action-glyph: 20px;
  --pixel-icon-nav: 24px;
  --pixel-icon-chip: 24px;
  --pixel-icon-small: 24px;
  --pixel-icon-dot: 24px;
  --pixel-icon-hero: 48px;
  --button-h: 56px;
  --actions-gap: 24px;
  --before-actions: 32px;
  --switch-w: 48px;
  --switch-h: 28px;
  --switch-knob: 24px;
  --tabbar-w: 216px;
  --tabbar-h: 64px;
  --tabbar-radius: 31px;
  --tabbar-bottom: 16px;
  --home-indicator-w: 140px;
  --home-indicator-h: 5px;
  --type-wordmark-size: 34px;
  --type-wordmark-leading: 41px;
  --type-wordmark-weight: 700;
  --type-wordmark-tracking: 0.0em;
  --type-hero-time-size: 34px;
  --type-hero-time-leading: 41px;
  --type-hero-time-weight: 600;
  --type-hero-time-tracking: 0.0em;
  --type-row-time-size: 22px;
  --type-row-time-leading: 28px;
  --type-row-time-weight: 600;
  --type-row-time-tracking: 0.0em;
  --type-body-size: 15px;
  --type-body-leading: 20px;
  --type-body-weight: 600;
  --type-body-tracking: 0.0em;
  --type-body-plain-size: 13px;
  --type-body-plain-leading: 18px;
  --type-body-plain-weight: 400;
  --type-body-plain-tracking: 0.0em;
  --type-label-size: 11px;
  --type-label-leading: 13px;
  --type-label-weight: 400;
  --type-label-tracking: 0.17em;
  --type-ring-time-size: 64px;
  --type-ring-time-leading: 76px;
  --type-ring-time-weight: 600;
  --type-ring-time-tracking: 0.0em;
}
