/* Generated by scripts/sync-brand.py from the supplied kit. */
:root, [data-misho-theme="light"] {
  --misho-ink: #171717;
  --misho-paper: #FFFFFF;
  --misho-night: #171717;
  --misho-ivory: #FFFFFF;
  --misho-tile: #F7F7F7;
  --misho-surface: #FFFFFF;
  --misho-prayer-fajr: #3298D8;
  --misho-prayer-fajr-text: #2673A4;
  --misho-prayer-dhuhr: #E7B512;
  --misho-prayer-dhuhr-text: #876A0B;
  --misho-prayer-asr: #E67C2C;
  --misho-prayer-asr-text: #B65018;
  --misho-prayer-maghrib: #E34C3C;
  --misho-prayer-maghrib-text: #C24133;
  --misho-prayer-isha: #8C68CC;
  --misho-prayer-isha-text: #7C5CB5;
}
:root.dark, html[theme="dark"], html[data-theme="dark"], [data-misho-theme="dark"] {
  --misho-ink: #FFFFFF;
  --misho-paper: #171717;
  --misho-night: #171717;
  --misho-ivory: #FFFFFF;
  --misho-tile: #242424;
  --misho-surface: #171717;
  --misho-prayer-fajr: #3298D8;
  --misho-prayer-fajr-text: #45ACFA;
  --misho-prayer-dhuhr: #E7B512;
  --misho-prayer-dhuhr-text: #E7B512;
  --misho-prayer-asr: #E67C2C;
  --misho-prayer-asr-text: #E67C2C;
  --misho-prayer-maghrib: #E34C3C;
  --misho-prayer-maghrib-text: #F37C71;
  --misho-prayer-isha: #8C68CC;
  --misho-prayer-isha-text: #B38DF3;
}
:root, [data-misho-theme="light"] {
  --misho-ui-background: #FFFFFF;
  --misho-ui-surface: #FFFFFF;
  --misho-ui-surfaceElevated: #F5F5F5;
  --misho-ui-surfaceSubtle: #F7F7F7;
  --misho-ui-text: #171717;
  --misho-ui-textMuted: #5B5B5B;
  --misho-ui-textHint: #5B5B5B;
  --misho-ui-border: #858585;
  --misho-ui-divider: #D8D8D8;
  --misho-ui-primary: #171717;
  --misho-ui-onPrimary: #FFFFFF;
  --misho-ui-primaryPressed: #454545;
  --misho-ui-primaryHover: #333333;
  --misho-ui-secondaryContainer: #F5F5F5;
  --misho-ui-onSecondaryContainer: #171717;
  --misho-ui-secondaryPressed: #DDDDDD;
  --misho-ui-secondaryHover: #E8E8E8;
  --misho-ui-selectedContainer: #EDEDED;
  --misho-ui-onSelectedContainer: #171717;
  --misho-ui-disabledContainer: #EEEEEE;
  --misho-ui-disabledText: #777777;
  --misho-ui-link: #2673A4;
  --misho-ui-focusRing: #171717;
  --misho-ui-scrim: #000000;
  --misho-ui-shadow: #000000;
  --misho-prayer-fajr-marker: #3298D8;
  --misho-prayer-fajr-container: #F7F7F7;
  --misho-prayer-fajr-text: #2673A4;
  --misho-prayer-dhuhr-marker: #E7B512;
  --misho-prayer-dhuhr-container: #F7F7F7;
  --misho-prayer-dhuhr-text: #876A0B;
  --misho-prayer-asr-marker: #E67C2C;
  --misho-prayer-asr-container: #F7F7F7;
  --misho-prayer-asr-text: #B65018;
  --misho-prayer-maghrib-marker: #E34C3C;
  --misho-prayer-maghrib-container: #F7F7F7;
  --misho-prayer-maghrib-text: #C24133;
  --misho-prayer-isha-marker: #8C68CC;
  --misho-prayer-isha-container: #F7F7F7;
  --misho-prayer-isha-text: #7C5CB5;
  --misho-semantic-error-text: #B3261E;
  --misho-semantic-error-container: #FFF0EE;
  --misho-semantic-error-onContainer: #B3261E;
  --misho-semantic-error-border: #B3261E;
  --misho-semantic-warning-text: #805900;
  --misho-semantic-warning-container: #FFF5D6;
  --misho-semantic-warning-onContainer: #805900;
  --misho-semantic-warning-border: #805900;
  --misho-semantic-success-text: #236344;
  --misho-semantic-success-container: #EDF7F0;
  --misho-semantic-success-onContainer: #236344;
  --misho-semantic-success-border: #236344;
  --misho-semantic-info-text: #245F95;
  --misho-semantic-info-container: #EDF5FC;
  --misho-semantic-info-onContainer: #245F95;
  --misho-semantic-info-border: #245F95;
}
:root.dark, html[theme="dark"], html[data-theme="dark"], [data-misho-theme="dark"] {
  --misho-ui-background: #171717;
  --misho-ui-surface: #171717;
  --misho-ui-surfaceElevated: #252525;
  --misho-ui-surfaceSubtle: #242424;
  --misho-ui-text: #FFFFFF;
  --misho-ui-textMuted: #B7B7B7;
  --misho-ui-textHint: #B7B7B7;
  --misho-ui-border: #858585;
  --misho-ui-divider: #444444;
  --misho-ui-primary: #FFFFFF;
  --misho-ui-onPrimary: #171717;
  --misho-ui-primaryPressed: #D5D5D5;
  --misho-ui-primaryHover: #E8E8E8;
  --misho-ui-secondaryContainer: #303030;
  --misho-ui-onSecondaryContainer: #FFFFFF;
  --misho-ui-secondaryPressed: #414141;
  --misho-ui-secondaryHover: #383838;
  --misho-ui-selectedContainer: #333333;
  --misho-ui-onSelectedContainer: #FFFFFF;
  --misho-ui-disabledContainer: #303030;
  --misho-ui-disabledText: #999999;
  --misho-ui-link: #45ACFA;
  --misho-ui-focusRing: #FFFFFF;
  --misho-ui-scrim: #000000;
  --misho-ui-shadow: #000000;
  --misho-prayer-fajr-marker: #3298D8;
  --misho-prayer-fajr-container: #242424;
  --misho-prayer-fajr-text: #45ACFA;
  --misho-prayer-dhuhr-marker: #E7B512;
  --misho-prayer-dhuhr-container: #242424;
  --misho-prayer-dhuhr-text: #E7B512;
  --misho-prayer-asr-marker: #E67C2C;
  --misho-prayer-asr-container: #242424;
  --misho-prayer-asr-text: #E67C2C;
  --misho-prayer-maghrib-marker: #E34C3C;
  --misho-prayer-maghrib-container: #242424;
  --misho-prayer-maghrib-text: #F37C71;
  --misho-prayer-isha-marker: #8C68CC;
  --misho-prayer-isha-container: #242424;
  --misho-prayer-isha-text: #B38DF3;
  --misho-semantic-error-text: #FFB4AB;
  --misho-semantic-error-container: #38211F;
  --misho-semantic-error-onContainer: #FFB4AB;
  --misho-semantic-error-border: #FFB4AB;
  --misho-semantic-warning-text: #F1CC72;
  --misho-semantic-warning-container: #332B19;
  --misho-semantic-warning-onContainer: #F1CC72;
  --misho-semantic-warning-border: #F1CC72;
  --misho-semantic-success-text: #89CDA7;
  --misho-semantic-success-container: #1B3025;
  --misho-semantic-success-onContainer: #89CDA7;
  --misho-semantic-success-border: #89CDA7;
  --misho-semantic-info-text: #93C7F2;
  --misho-semantic-info-container: #1D2D3B;
  --misho-semantic-info-onContainer: #93C7F2;
  --misho-semantic-info-border: #93C7F2;
}
:root:root, :root.dark, html[theme="dark"], html[data-theme="dark"], .landing-page {
  --bg: var(--misho-ui-background);
  --app-bg: var(--misho-ui-background);
  --app-color: var(--misho-ui-text);
  --app-header-bg: var(--misho-ui-background);
  --surface: var(--misho-ui-surface);
  --surface-variant: var(--misho-ui-surfaceSubtle);
  --surface-container: var(--misho-ui-surface);
  --surface-container-h: var(--misho-ui-surfaceElevated);
  --surface-muted: var(--misho-ui-surfaceSubtle);
  --surface-hover: var(--misho-ui-secondaryHover);
  --surface-sunken: var(--misho-ui-surfaceSubtle);
  --text: var(--misho-ui-text);
  --text-secondary: var(--misho-ui-textMuted);
  --text-muted: var(--misho-ui-textMuted);
  --text-dim: var(--misho-ui-textHint);
  --text-past: var(--misho-ui-textMuted);
  --text-light: var(--misho-ui-textMuted);
  --text-on-primary: var(--misho-ui-onPrimary);
  --on-primary: var(--misho-ui-onPrimary);
  --text-inverse: var(--misho-ui-onPrimary);
  --primary: var(--misho-ui-primary);
  --primary-dark: var(--misho-ui-primaryPressed);
  --primary-container: var(--misho-ui-selectedContainer);
  --on-primary-container: var(--misho-ui-onSelectedContainer);
  --secondary: var(--misho-ui-text);
  --secondary-container: var(--misho-ui-secondaryContainer);
  --on-secondary-container: var(--misho-ui-onSecondaryContainer);
  --tertiary: var(--misho-ui-text);
  --tertiary-container: var(--misho-ui-surfaceSubtle);
  --border: var(--misho-ui-border);
  --outline: var(--misho-ui-border);
  --outline-variant: var(--misho-ui-divider);
  --col-divider: var(--misho-ui-divider);
  --line: var(--misho-ui-divider);
  --line-strong: var(--misho-ui-border);
  --line-soft: var(--misho-ui-divider);
  --link: var(--misho-ui-link);
  --today-text: var(--misho-ui-text);
  --ics-color: var(--misho-ui-text);
  --accent: var(--misho-ui-primary) !important;
  --accent-highlight: var(--misho-ui-primary) !important;
  --focus-outline: var(--misho-ui-focusRing);
  --main-color: var(--misho-ui-primary) !important;
  --settings-accent: var(--misho-ui-primary) !important;
  --custom-color: var(--misho-ui-primary) !important;
  --custom-color-highlight: var(--misho-ui-primary) !important;
  --todo-line: var(--misho-ui-divider);
  --todo-text: var(--misho-ui-text);
  --todo-text-hover: var(--misho-ui-text);
  --todo-text-done: var(--misho-ui-textMuted);
  --todo-text-focus: var(--misho-ui-text);
  --todo-head-bg: var(--misho-ui-surfaceSubtle);
  --todo-head-text: var(--misho-ui-text);
  --todo-check-off: var(--misho-ui-border);
  --todo-check-done: var(--misho-ui-primary);
  --todo-button-bg: var(--misho-ui-surfaceSubtle);
  --todo-button-color: var(--misho-ui-textMuted);
  --todo-indicator: var(--misho-ui-border);
  --todo-hover-bg: var(--misho-ui-surface);
  --btn-bg: var(--misho-ui-secondaryContainer);
  --btn-color: var(--misho-ui-text);
  --btn-hover-bg: var(--misho-ui-secondaryHover);
  --btn-active-bg: var(--misho-ui-primary);
  --btn-active-color: var(--misho-ui-onPrimary);
  --transport-color: var(--misho-ui-textMuted);
  --transport-hover-color: var(--misho-ui-text);
  --arrow-bg: var(--misho-ui-surfaceSubtle);
  --arrow-hover-bg: var(--misho-ui-secondaryHover);
  --arrow-color: var(--misho-ui-textMuted);
  --arrow-hover-color: var(--misho-ui-text);
  --footer-border-color: var(--misho-ui-divider);
  --someday-bg: var(--misho-ui-surfaceSubtle);
  --someday-hover: var(--misho-ui-secondaryHover);
  --toolbar-bg: var(--misho-ui-surface);
  --tab-color: var(--misho-ui-textMuted);
  --tab-hover-bg: var(--misho-ui-secondaryHover);
  --tab-active-bg: var(--misho-ui-surface);
  --tab-active-color: var(--misho-ui-text);
  --tab-number-bg: var(--misho-ui-surfaceSubtle);
  --tab-number-active-bg: var(--misho-ui-primary);
  --tab-number-active-color: var(--misho-ui-onPrimary);
  --someday-collapse: var(--misho-ui-textMuted);
  --someday-collapse-hover: var(--misho-ui-text);
  --day-label-bg: var(--misho-ui-surfaceSubtle);
  --day-label-color: var(--misho-ui-text);
  --panel-bg: var(--misho-ui-surfaceElevated);
  --panel-accent: var(--misho-ui-surfaceSubtle);
  --menu-bg: var(--misho-ui-surfaceElevated);
  --menu-border: var(--misho-ui-border);
  --menu-hover: var(--misho-ui-secondaryHover);
  --menu-title: var(--misho-ui-textMuted);
  --dropdown-menu-background: var(--misho-ui-surfaceElevated);
  --dropdown-menu-border-color: var(--misho-ui-border);
  --dropdown-menu-cta-background: var(--misho-ui-surfaceSubtle);
  --dropdown-menu-cta-color: var(--misho-ui-text);
  --dropdown-menu-hover-background: var(--misho-ui-secondaryHover);
  --dropdown-menu-note-color: var(--misho-ui-textMuted);
  --dropdown-menu-section-border-color: var(--misho-ui-divider);
  --dropdown-menu-text-color: var(--misho-ui-text);
  --dropdown-menu-title-color: var(--misho-ui-textMuted);
  --formatting-background: var(--misho-ui-surface);
  --formatting-border: var(--misho-ui-border);
  --formatting-text-color: var(--misho-ui-text);
  --formatting-hover-background: var(--misho-ui-secondaryHover);
  --formatting-active-background: var(--misho-ui-primary);
  --formatting-active-text-color: var(--misho-ui-onPrimary);
  --color-bg: var(--misho-ui-background);
  --color-text: var(--misho-ui-text);
  --color-text-dim: var(--misho-ui-textMuted);
  --color-text-light: var(--misho-ui-textHint);
  --color-link: var(--misho-ui-link);
  --color-link-hover: var(--misho-ui-link);
  --color-button-bg: var(--misho-ui-primary);
  --color-button-text: var(--misho-ui-onPrimary);
  --color-button-hover-bg: var(--misho-ui-primaryHover);
  --color-button-hover-text: var(--misho-ui-onPrimary);
  --color-button-bg-alt: var(--misho-ui-surfaceSubtle);
  --color-button-text-alt: var(--misho-ui-text);
  --color-button-hover-bg-alt: var(--misho-ui-secondaryHover);
  --color-button-hover-text-alt: var(--misho-ui-text);
  --color-border: var(--misho-ui-border);
  --color-highlight-1: var(--misho-ui-primary);
  --color-highlight-2: var(--misho-ui-primary);
  --color-highlight-3: var(--misho-ui-primary);
  --color-highlight-4: var(--misho-ui-primary);
  --color-highlight-5: var(--misho-ui-primary);
  --color-highlight-dark: var(--misho-ui-primaryPressed);
  --color-highlight-light: var(--misho-ui-surfaceSubtle);
  --color-highlight-lightest: var(--misho-ui-surfaceSubtle);
  --error: var(--misho-semantic-error-text);
  --error-container: var(--misho-semantic-error-container);
  --accent-rgb: 23, 23, 23;
  --font-logo: "Inter", "Public Sans", system-ui, sans-serif;
}
:root.dark, html[theme="dark"], html[data-theme="dark"] { --accent-rgb: 255, 255, 255; }

:focus-visible { outline-color:var(--misho-ui-focusRing); }
.app-header, .app-footer { background:var(--misho-ui-background); color:var(--misho-ui-text); }
.app-header { border-top-color:var(--misho-ui-divider); }
[data-header-logo] img { width:112px; height:auto; max-height:36px; object-fit:contain; }
.current-on-dark { display:none; }
.dark .current-on-light, html[theme="dark"] .current-on-light, html[data-theme="dark"] .current-on-light { display:none; }
.dark .current-on-dark, html[theme="dark"] .current-on-dark, html[data-theme="dark"] .current-on-dark { display:block; }
[data-brand-slogan], .page-nav-mark { display:none !important; }
.landing-footer-wordmark img { width:180px; height:auto; }
.page-nav-wordmark { width:180px; height:auto; max-height:48px; }
.misho-auth-page { background:var(--misho-ui-background); color:var(--misho-ui-text); }
.misho-auth-card { background:var(--misho-ui-surface); border-color:var(--misho-ui-border); }
.misho-auth-card input { color:var(--misho-ui-text); background:var(--misho-ui-surface); border-color:var(--misho-ui-border); }
.misho-auth-submit { background:var(--misho-ui-primary); color:var(--misho-ui-onPrimary); }
.misho-auth-status.is-error { color:var(--misho-semantic-error-text); }
/* Application adapters. Brand artwork and exact token values come from the kit. */
:root { --text-primary:var(--misho-ui-text); --surface-inverse:var(--misho-ink); --body-background:var(--misho-ui-background); --color-nav-bg:var(--misho-ui-background); --color-nav-text:var(--misho-ui-text); --color-footer-bg:var(--misho-night); --color-footer-text:var(--misho-ivory); --color-success:var(--misho-semantic-success-text); --accent-soft:var(--misho-ui-surfaceSubtle); --custom-color-text:var(--misho-ui-onPrimary); --cal-palette-1:var(--misho-ui-text); }
:root.dark,html[theme="dark"],html[data-theme="dark"] { --surface-inverse:var(--misho-ivory); }
.landing-page { --font-logo:var(--font-ui); }
.dropdown-menu__action--danger { color:var(--misho-semantic-error-text); }
.todo__list-item--done, .today-row.is-done { opacity:1; }
.todo__list-item--done { color:var(--misho-ui-textMuted); }
.misho-auth-brand { width:180px; }
.prayer-section .prayer-header, .prayer-section .prayer-name, .prayer-section .prayer-time, .prayer-section .prayer-icon { color:var(--prayer-text); }
.prayer-section .prayer-header--current .prayer-time,
.prayer-section .prayer-header--current:hover .prayer-time {
  display:inline-flex;
  align-items:center;
  gap:0.28rem;
  padding:0.18rem 0.38rem;
  border-radius:999px;
  color:var(--prayer-text);
  background:color-mix(in srgb, var(--prayer-text) 12%, transparent);
}
.prayer-section .prayer-header--current .prayer-time::before {
  content:"";
  flex:none;
  width:0.22rem;
  height:0.22rem;
  border-radius:50%;
  background:currentColor;
}
.prayer-section[data-prayer-slot="Fajr"] { --prayer-text:var(--misho-prayer-fajr-text); --prayer-surface:var(--misho-prayer-fajr-container); }
.prayer-section[data-prayer-slot="Dhuhr"] { --prayer-text:var(--misho-prayer-dhuhr-text); --prayer-surface:var(--misho-prayer-dhuhr-container); }
.prayer-section[data-prayer-slot="Asr"] { --prayer-text:var(--misho-prayer-asr-text); --prayer-surface:var(--misho-prayer-asr-container); }
.prayer-section[data-prayer-slot="Maghrib"] { --prayer-text:var(--misho-prayer-maghrib-text); --prayer-surface:var(--misho-prayer-maghrib-container); }
.prayer-section[data-prayer-slot="Isha"] { --prayer-text:var(--misho-prayer-isha-text); --prayer-surface:var(--misho-prayer-isha-container); }
.prayer-section .prayer-header:hover .prayer-name, .prayer-section .prayer-header--current:hover .prayer-time { color:var(--prayer-text); }
#today { background:light-dark(#FFFFFF,#171717);color:light-dark(#171717,#FFFFFF);border-color:light-dark(#858585,#858585); }
.today-kicker { color:light-dark(#171717,#FFFFFF); }
.today-status, .today-row.is-current, .today-empty, button.today-row:hover { background:light-dark(#F7F7F7,#252525);color:light-dark(#171717,#FFFFFF); }
.today-section h2,.today-meta,.today-time,.today-footer { color:light-dark(#5B5B5B,#B7B7B7); }
.today-join { background:light-dark(#171717,#FFFFFF);color:light-dark(#FFFFFF,#171717); }
.today-row.is-next .today-dot { background:#3298D8;box-shadow:0 0 0 4px #3298D822; }
/* Marketing uses the kit's Paper/Night fields; functional UI uses neutral roles. */
body:has(.calmer-brand-marker) { background:var(--misho-paper); }
.footer-brand img { width:180px;height:auto; }
.page-nav-logo .page-nav-wordmark { object-fit:contain; }
#app:empty::before { content:'';display:block;width:180px;height:48px;background:url('../brand/current/logos/misho-horizontal-on-light.svg') center/contain no-repeat; }
.dark #app:empty::before,html[theme="dark"] #app:empty::before { background-image:url('../brand/current/logos/misho-horizontal-on-dark.svg'); }
.misho-flower { object-fit:contain; }
@font-face { font-family:'Misho UI';src:url('/app/fonts/inter-var.woff2') format('woff2');font-weight:100 900;font-display:swap; }
:root:root,.landing-page { --font-display:'Misho UI',system-ui,sans-serif;--font-ui:'Misho UI',system-ui,sans-serif;--font-body:'Misho UI',system-ui,sans-serif;--ff-sans:'Misho UI',system-ui,sans-serif; }
.landing-hero-headline { font-family:var(--font-display);font-weight:600; }

/* Past columns are muted except for Isha during its overnight window. */
.day--past .prayer-section { --prayer-text:var(--text-past); --prayer-surface:var(--surface-muted); }
.day--past .prayer-section :is(.prayer-header,.prayer-name,.prayer-time,.prayer-icon) { color:var(--prayer-text); }
.day--past .prayer-section .prayer-header--overnight { --prayer-text:var(--misho-prayer-isha-text); }

@font-face { font-family: 'Misho Arabic'; src: url('/app/fonts/noto-sans-arabic.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
html[lang='ar']:root:root { --font-display: 'Misho Arabic', sans-serif; --font-headline: 'Misho Arabic', sans-serif; --font-ui: 'Misho Arabic', sans-serif; --font-body: 'Misho Arabic', sans-serif; --font-condensed: 'Misho Arabic', sans-serif; --ff-sans: 'Misho Arabic', sans-serif; --ff-condensed: 'Misho Arabic', sans-serif; --ff-logo: 'Misho Arabic', sans-serif; }
html[lang='ar'] :is(h1,h2,h3,h4,p,button,input,select,textarea,small,span,a,li,summary) { letter-spacing: 0; }
