/* Built from packages/ui-kit/src/styles by `npm run sync:css`. Do not edit by hand. */
/*
 * Fennec design tokens (docs/en/design-system.md).
 *
 * Inspired by Apple's Human Interface Guidelines (clarity, deference, depth), built from our own
 * tokens. No Apple asset or font file is shipped: the type stack only names fonts a device may
 * already have. Brand colors come from the fennec repo, apps/dashboard/src/app/globals.css
 * (#171FE9 blue, #030598 deep blue, #FDCC00 accent), so the three front ends read as one product.
 *
 * Light is the default. Dark switches on `prefers-color-scheme: dark`, by custom properties on
 * :root, so no `light-dark()` support is needed.
 */
@layer fx-tokens, fx-base, fx-components;

@layer fx-tokens {
  :root {
    color-scheme: light dark;

    /* Color, light. Names are roles, not hues. */
    --fx-bg: hsl(210 20% 98%);
    --fx-surface: hsl(0 0% 100%);
    --fx-surface-raised: hsl(0 0% 100%);
    --fx-fill: hsl(214 20% 95%); /* quiet fill: tinted buttons, table header, code */
    --fx-text: hsl(225 25% 12%);
    --fx-text-muted: hsl(220 12% 38%);
    --fx-border: hsl(214 12% 55%); /* 3:1 on the surface, for field edges (WCAG 1.4.11) */
    --fx-separator: hsl(214 20% 90%); /* hairlines that carry no meaning alone */
    --fx-brand: hsl(238 83% 50%); /* #171FE9 */
    --fx-brand-deep: hsl(239 96% 30%); /* #030598 */
    --fx-brand-accent: hsl(48 100% 50%); /* #FDCC00 */
    --fx-on-brand: hsl(0 0% 100%);
    --fx-brand-tint: hsl(238 83% 50% / 0.09);
    --fx-link: hsl(238 83% 46%);
    --fx-danger: hsl(0 65% 44%);
    --fx-on-danger: hsl(0 0% 100%);
    --fx-success: hsl(152 55% 26%);
    --fx-warning: hsl(32 90% 28%);
    --fx-focus: hsl(238 83% 50%);
    --fx-warning-tint: hsl(48 100% 50% / 0.22);
    --fx-success-tint: hsl(152 55% 33% / 0.12);
    --fx-danger-tint: hsl(0 65% 48% / 0.1);
    --fx-bar-bg: hsl(0 0% 100% / 0.72); /* translucent bars and sheets */
    --fx-scrim: hsl(225 30% 7% / 0.4);
    --fx-shadow-color: 225 30% 20%;

    /* Type. System stack: Apple devices get SF Pro, others their own UI font. */
    --fx-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Segoe UI Variable Text",
      "Segoe UI", system-ui, Roboto, "Helvetica Neue", "Noto Sans Arabic", Arial, sans-serif;
    --fx-font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    --fx-text-caption: 0.8125rem; /* 13 */
    --fx-text-footnote: 0.875rem; /* 14 */
    --fx-text-body: 1rem; /* 16 */
    --fx-text-callout: 1.0625rem; /* 17 */
    --fx-text-title-3: 1.25rem; /* 20 */
    --fx-text-title-2: 1.5rem; /* 24 */
    --fx-text-title-1: 1.875rem; /* 30 */
    --fx-text-large-title: 2.375rem; /* 38 */
    --fx-leading-tight: 1.2;
    --fx-leading-body: 1.5;
    --fx-weight-regular: 400;
    --fx-weight-medium: 500;
    --fx-weight-semibold: 600;

    /* Spacing, a 4 pt grid with 8 pt steps for layout. */
    --fx-space-1: 0.25rem; /* 4 */
    --fx-space-2: 0.5rem; /* 8 */
    --fx-space-3: 0.75rem; /* 12 */
    --fx-space-4: 1rem; /* 16 */
    --fx-space-5: 1.5rem; /* 24 */
    --fx-space-6: 2rem; /* 32 */
    --fx-space-7: 3rem; /* 48 */
    --fx-space-8: 4rem; /* 64 */
    --fx-target: 2.75rem; /* 44, the touch target */
    --fx-measure: 64rem; /* page width */

    /* Radius. */
    --fx-radius-sm: 0.375rem; /* 6 */
    --fx-radius-md: 0.625rem; /* 10 */
    --fx-radius-lg: 0.875rem; /* 14 */
    --fx-radius-xl: 1.25rem; /* 20 */
    --fx-radius-pill: 999px;

    /* Depth: soft layered shadows, never one hard drop. */
    --fx-shadow-1: 0 1px 1px hsl(var(--fx-shadow-color) / 0.06), 0 1px 3px hsl(var(--fx-shadow-color) / 0.08);
    --fx-shadow-2: 0 1px 2px hsl(var(--fx-shadow-color) / 0.06), 0 4px 8px hsl(var(--fx-shadow-color) / 0.08),
      0 12px 24px hsl(var(--fx-shadow-color) / 0.08);
    --fx-shadow-3: 0 2px 4px hsl(var(--fx-shadow-color) / 0.08), 0 12px 24px hsl(var(--fx-shadow-color) / 0.14),
      0 32px 64px hsl(var(--fx-shadow-color) / 0.16);
    --fx-blur: saturate(180%) blur(20px);

    /* Motion: short, ease-out, spatial movement only inside `no-preference`. */
    --fx-duration-fast: 120ms;
    --fx-duration: 200ms;
    --fx-duration-slow: 320ms;
    --fx-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    accent-color: var(--fx-brand);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --fx-bg: hsl(225 30% 7%);
      --fx-surface: hsl(225 28% 10%);
      --fx-surface-raised: hsl(225 24% 14%);
      --fx-fill: hsl(225 20% 17%);
      --fx-text: hsl(210 20% 96%);
      --fx-text-muted: hsl(218 12% 68%);
      --fx-border: hsl(225 12% 44%);
      --fx-separator: hsl(225 18% 20%);
      --fx-brand: hsl(234 89% 68%); /* fennec uses 66%; 68% keeps 4.5:1 for the dark label */
      --fx-on-brand: hsl(225 30% 7%);
      --fx-brand-tint: hsl(234 89% 68% / 0.16);
      --fx-link: hsl(234 100% 78%);
      --fx-danger: hsl(0 80% 66%);
      --fx-on-danger: hsl(225 30% 7%);
      --fx-success: hsl(152 50% 58%);
      --fx-warning: hsl(38 92% 62%);
      --fx-focus: hsl(234 100% 78%);
      --fx-warning-tint: hsl(48 100% 50% / 0.16);
      --fx-success-tint: hsl(152 50% 58% / 0.16);
      --fx-danger-tint: hsl(0 80% 66% / 0.16);
      --fx-bar-bg: hsl(225 28% 10% / 0.72);
      --fx-scrim: hsl(0 0% 0% / 0.55);
      --fx-shadow-color: 225 60% 2%;
    }
  }

  /* High contrast preference: harder edges, no translucency. */
  @media (prefers-contrast: more) {
    :root {
      --fx-border: CanvasText;
      --fx-text-muted: var(--fx-text);
      --fx-bar-bg: Canvas;
    }
  }
}

/*
 * Fennec base styles and components (docs/en/design-system.md). Uses only the tokens in
 * tokens.css. Logical properties throughout, so Arabic and Darija (right to left) mirror.
 */

@layer fx-base {
  html {
    font-family: var(--fx-font);
    font-size: 100%; /* honor the reader's browser setting */
    line-height: var(--fx-leading-body);
    color: var(--fx-text);
    background: var(--fx-bg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
  }

  body {
    margin: 0;
    min-block-size: 100dvh;
    font-size: var(--fx-text-body);
  }

  :where(h1, h2, h3, h4) {
    margin-block: var(--fx-space-6) var(--fx-space-3);
    line-height: var(--fx-leading-tight);
    font-weight: var(--fx-weight-semibold);
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  :where(h1) {
    font-size: var(--fx-text-title-1);
    margin-block-start: var(--fx-space-5);
  }
  :where(h2) { font-size: var(--fx-text-title-2); }
  :where(h3) { font-size: var(--fx-text-title-3); }
  :where(h4) { font-size: var(--fx-text-callout); }
  :where(h1 small, h2 small) {
    font-weight: var(--fx-weight-regular);
    font-size: var(--fx-text-callout);
    color: var(--fx-text-muted);
  }
  :where(p, ul, ol, dl) { margin-block: 0 var(--fx-space-4); text-wrap: pretty; }
  :where(small) { font-size: var(--fx-text-caption); color: var(--fx-text-muted); }
  :where(code, kbd, samp) {
    font-family: var(--fx-font-mono);
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    border-radius: var(--fx-radius-sm);
    background: var(--fx-fill);
  }
  :where(a) {
    color: var(--fx-link);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
  }
  :where(a:hover) { text-decoration-thickness: 2px; }
  :where(hr) {
    border: 0;
    border-block-start: 1px solid var(--fx-separator);
    margin-block: var(--fx-space-5);
  }
  ::selection { background: var(--fx-brand-tint); }

  /* Focus: one clear ring for every control, drawn with outline so it survives forced colors. */
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--fx-focus);
    outline-offset: 2px;
    border-radius: var(--fx-radius-sm);
  }

  /* Forms. */
  :where(label) {
    display: block;
    margin-block-end: var(--fx-space-4);
    font-size: var(--fx-text-footnote);
    font-weight: var(--fx-weight-medium);
    color: var(--fx-text-muted);
  }
  :where(input, select, textarea) {
    display: block;
    box-sizing: border-box;
    inline-size: 100%;
    min-block-size: var(--fx-target);
    margin-block-start: var(--fx-space-1);
    padding: var(--fx-space-2) var(--fx-space-3);
    font: inherit;
    font-weight: var(--fx-weight-regular);
    color: var(--fx-text);
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-md);
    transition: border-color var(--fx-duration-fast) var(--fx-ease),
      box-shadow var(--fx-duration-fast) var(--fx-ease);
  }
  :where(input)::placeholder { color: var(--fx-text-muted); opacity: 0.8; }
  :where(input, select, textarea):hover:not(:disabled) { border-color: var(--fx-text-muted); }
  :where(input, select, textarea):focus-visible {
    border-color: var(--fx-focus);
    outline-offset: 0;
    border-radius: var(--fx-radius-md);
  }
  :where(input, select, textarea):disabled { opacity: 0.55; cursor: not-allowed; }
  /* Error only after the person left the field or tried to submit. */
  :where(input, select, textarea):user-invalid {
    border-color: var(--fx-danger);
    box-shadow: 0 0 0 1px var(--fx-danger);
  }
  :where(input[type="checkbox"], input[type="radio"]) {
    inline-size: 1.25rem;
    min-block-size: 1.25rem;
    margin: 0;
    padding: 0;
    flex: none;
  }
  :where(fieldset) {
    margin: 0 0 var(--fx-space-4);
    padding: var(--fx-space-4);
    border: 1px solid var(--fx-separator);
    border-radius: var(--fx-radius-lg);
    background: var(--fx-surface);
  }
  :where(legend) {
    padding-inline: var(--fx-space-2);
    font-weight: var(--fx-weight-semibold);
    font-size: var(--fx-text-footnote);
  }

  /* Buttons: filled brand by default; modifiers below. */
  :where(button, [type="submit"], [type="button"], .fx-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--fx-space-2);
    box-sizing: border-box;
    min-block-size: var(--fx-target);
    margin: 0;
    padding: var(--fx-space-2) var(--fx-space-4);
    font: inherit;
    font-weight: var(--fx-weight-semibold);
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    color: var(--fx-on-brand);
    background: var(--fx-brand);
    border: 1px solid transparent;
    border-radius: var(--fx-radius-pill);
    transition: background-color var(--fx-duration-fast) var(--fx-ease),
      border-color var(--fx-duration-fast) var(--fx-ease),
      transform var(--fx-duration-fast) var(--fx-ease);
  }
  :where(button, .fx-button):hover:not(:disabled, [aria-disabled="true"]) {
    background: color-mix(in oklab, var(--fx-brand), var(--fx-text) 12%);
  }
  :where(button, .fx-button):disabled,
  :where(button, .fx-button)[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
  }
  @media (prefers-reduced-motion: no-preference) {
    :where(button, .fx-button):active:not(:disabled) { transform: scale(0.97); }
  }
  .fx-button--tinted {
    color: var(--fx-link);
    background: var(--fx-brand-tint);
  }
  .fx-button--tinted:hover:not(:disabled, [aria-disabled="true"]) {
    background: color-mix(in oklab, var(--fx-brand-tint), var(--fx-brand) 10%);
  }
  .fx-button--outline {
    color: var(--fx-link);
    background: transparent;
    border-color: var(--fx-border);
  }
  .fx-button--outline:hover:not(:disabled, [aria-disabled="true"]) {
    background: var(--fx-brand-tint);
  }
  .fx-button--danger { color: var(--fx-on-danger); background: var(--fx-danger); }
  .fx-button--danger:hover:not(:disabled, [aria-disabled="true"]) {
    background: color-mix(in oklab, var(--fx-danger), var(--fx-text) 12%);
  }

  /* Tables: roomy rows, hairlines, quiet header. */
  :where(table) {
    inline-size: 100%;
    border-collapse: collapse;
    font-size: var(--fx-text-footnote);
  }
  :where(th, td) {
    padding: var(--fx-space-3) var(--fx-space-4);
    text-align: start;
    vertical-align: top;
    border-block-end: 1px solid var(--fx-separator);
  }
  :where(th) {
    font-weight: var(--fx-weight-semibold);
    font-size: var(--fx-text-caption);
    color: var(--fx-text-muted);
    background: var(--fx-fill);
    white-space: nowrap;
  }
  :where(tbody tr:last-child td) { border-block-end: 0; }
  :where(td form) { margin: 0; }
  :where(td button) { min-block-size: 2.25rem; padding-block: var(--fx-space-1); }

  :where(mark) {
    padding: 0.1em 0.5em;
    border-radius: var(--fx-radius-pill);
    color: var(--fx-warning);
    background: var(--fx-warning-tint);
    font-size: var(--fx-text-caption);
    font-weight: var(--fx-weight-semibold);
  }

  /* Native dialog as a sheet: dimmed scrim, rises in, leaves quietly. */
  :where(dialog) {
    inline-size: min(32rem, 92vw);
    padding: var(--fx-space-5);
    color: var(--fx-text);
    background: var(--fx-surface-raised);
    border: 1px solid var(--fx-separator);
    border-radius: var(--fx-radius-xl);
    box-shadow: var(--fx-shadow-3);
    overscroll-behavior: contain;
  }
  :where(dialog)::backdrop {
    background: var(--fx-scrim);
    overscroll-behavior: contain;
  }
  :where(dialog footer) { display: flex; gap: var(--fx-space-2); justify-content: flex-end; }
  @media (prefers-reduced-motion: no-preference) {
    :where(dialog) {
      transition: opacity var(--fx-duration) var(--fx-ease), translate var(--fx-duration) var(--fx-ease),
        overlay var(--fx-duration) allow-discrete, display var(--fx-duration) allow-discrete;
      opacity: 0;
      translate: 0 var(--fx-space-3);
    }
    :where(dialog[open]) { opacity: 1; translate: 0 0; }
    @starting-style {
      :where(dialog[open]) { opacity: 0; translate: 0 var(--fx-space-3); }
    }
  }
}

@layer fx-components {
  /* Page: one readable column. */
  .fx-page {
    box-sizing: border-box;
    max-inline-size: var(--fx-measure);
    margin-inline: auto;
    padding: var(--fx-space-4) var(--fx-space-5) var(--fx-space-8);
  }
  .fx-narrow { max-inline-size: 28rem; margin-block: var(--fx-space-7); margin-inline: auto; }
  .fx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
    column-gap: var(--fx-space-4);
  }
  .fx-scroll { overflow-x: auto; margin-block-end: var(--fx-space-4); }
  .fx-inline { display: inline; margin: 0; }
  .fx-inline > button { margin: 0; }

  /* Bar: translucent, sticky, hairline below. Opaque where backdrop blur is missing. */
  .fx-bar {
    position: sticky;
    inset-block-start: 0;
    z-index: 10;
    background: var(--fx-surface);
    border-block-end: 1px solid var(--fx-separator);
  }
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .fx-bar {
      background: var(--fx-bar-bg);
      -webkit-backdrop-filter: var(--fx-blur);
      backdrop-filter: var(--fx-blur);
    }
  }
  .fx-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--fx-space-2) var(--fx-space-5);
    box-sizing: border-box;
    max-inline-size: var(--fx-measure);
    margin-inline: auto;
    padding: var(--fx-space-2) var(--fx-space-5);
  }
  .fx-bar__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--fx-space-2);
    font-weight: var(--fx-weight-semibold);
    letter-spacing: -0.01em;
  }
  .fx-bar__brand::before {
    content: "";
    inline-size: 0.75rem;
    block-size: 0.75rem;
    border-radius: 50%;
    background: var(--fx-brand-accent);
    box-shadow: 0 0 0 3px var(--fx-brand);
  }
  .fx-bar__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--fx-space-1);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .fx-bar__nav a {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--fx-target);
    padding-inline: var(--fx-space-3);
    border-radius: var(--fx-radius-pill);
    color: var(--fx-text);
    text-decoration: none;
    font-size: var(--fx-text-footnote);
    font-weight: var(--fx-weight-medium);
    transition: background-color var(--fx-duration-fast) var(--fx-ease);
  }
  .fx-bar__nav a:hover { background: var(--fx-fill); }
  .fx-bar__nav a[aria-current="page"] { background: var(--fx-brand-tint); color: var(--fx-link); }
  .fx-bar__nav form { margin: 0; }

  /* Card: a surface that sits above the page. */
  .fx-card {
    padding: var(--fx-space-5);
    margin-block-end: var(--fx-space-4);
    background: var(--fx-surface);
    border: 1px solid var(--fx-separator);
    border-radius: var(--fx-radius-xl);
    box-shadow: var(--fx-shadow-1);
  }
  .fx-card > :first-child { margin-block-start: 0; }
  .fx-card > :last-child { margin-block-end: 0; }
  .fx-card--raised { box-shadow: var(--fx-shadow-2); }

  /* Alert: a symbol and a border, so state never rests on color alone. The message carries
     role="status" or role="alert". */
  .fx-alert {
    display: flex;
    gap: var(--fx-space-3);
    margin-block: 0 var(--fx-space-4);
    padding: var(--fx-space-3) var(--fx-space-4);
    border: 1px solid transparent;
    border-radius: var(--fx-radius-lg);
  }
  .fx-alert::before {
    flex: none;
    font-weight: var(--fx-weight-semibold);
    content: "i";
    content: "i" / "";
  }
  .fx-alert--ok { background: var(--fx-success-tint); border-color: var(--fx-success); }
  .fx-alert--ok::before { content: "\2713"; content: "\2713" / ""; color: var(--fx-success); }
  .fx-alert--error { background: var(--fx-danger-tint); border-color: var(--fx-danger); }
  .fx-alert--error::before { content: "!"; content: "!" / ""; color: var(--fx-danger); }

  /* Badge: a status word on a tint. */
  .fx-badge {
    display: inline-block;
    padding: 0.1em 0.6em;
    border-radius: var(--fx-radius-pill);
    font-size: var(--fx-text-caption);
    font-weight: var(--fx-weight-semibold);
    background: var(--fx-fill);
    color: var(--fx-text);
  }
  .fx-badge--ok { background: var(--fx-success-tint); color: var(--fx-success); }
  .fx-badge--warn { background: var(--fx-warning-tint); color: var(--fx-warning); }
  .fx-badge--danger { background: var(--fx-danger-tint); color: var(--fx-danger); }

  /* Choice group: checkboxes as pill chips. The native input stays, for keyboard and screen
     readers. */
  .fx-choices {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fx-space-2);
    margin: 0 0 var(--fx-space-3);
    padding: 0;
    border: 0;
    background: none;
  }
  .fx-choices > legend {
    padding: 0;
    margin-block-end: var(--fx-space-2);
    color: var(--fx-text-muted);
    font-weight: var(--fx-weight-medium);
  }
  .fx-choice {
    display: inline-flex;
    align-items: center;
    gap: var(--fx-space-2);
    min-block-size: var(--fx-target);
    margin: 0;
    padding-inline: var(--fx-space-4);
    color: var(--fx-text);
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-pill);
    font-size: var(--fx-text-footnote);
    font-weight: var(--fx-weight-medium);
    cursor: pointer;
    transition: background-color var(--fx-duration-fast) var(--fx-ease);
  }
  .fx-choice:has(:checked) {
    background: var(--fx-brand-tint);
    border-color: var(--fx-brand);
    color: var(--fx-link);
  }
  .fx-choice:has(:focus-visible) { outline: 3px solid var(--fx-focus); outline-offset: 2px; }
  .fx-choice input { margin: 0; inline-size: 1.25rem; }
  .fx-choice input:focus-visible { outline: 0; }
  /* The React components of this kit. */
  .fennec-plan-card {
    padding: var(--fx-space-5);
    background: var(--fx-surface);
    border: 1px solid var(--fx-separator);
    border-radius: var(--fx-radius-xl);
    box-shadow: var(--fx-shadow-1);
  }
  .fennec-plan-card h3 { margin-block: 0 var(--fx-space-1); }
  .fennec-plan-card__dates { margin-block-end: var(--fx-space-3); color: var(--fx-text-muted); font-size: var(--fx-text-footnote); }
  .fennec-plan-card ul { margin: 0 0 var(--fx-space-3); padding: 0; list-style: none; }
  .fennec-plan-card li { padding-block: var(--fx-space-2); border-block-end: 1px solid var(--fx-separator); }
  .fennec-price-line { display: flex; justify-content: space-between; gap: var(--fx-space-4); }
  .fennec-price-line__price { font-variant-numeric: tabular-nums; font-weight: var(--fx-weight-semibold); }
  .fennec-plan-card > .fennec-price-line { font-size: var(--fx-text-callout); }
  .fennec-confirmation { display: grid; gap: var(--fx-space-3); }
  .fennec-confirmation__expiry { margin: 0; color: var(--fx-text-muted); font-size: var(--fx-text-footnote); }
  .fennec-confirmation__status:empty { display: none; }
  .fennec-confirmation__status { margin: 0; color: var(--fx-danger, currentColor); }
  .fennec-options { display: flex; flex-wrap: wrap; gap: var(--fx-space-2); margin: 0; padding: 0; border: 0; }
  .fennec-options__legend { flex-basis: 100%; padding: 0; color: var(--fx-text-muted); font-size: var(--fx-text-footnote); }
  .fennec-options__choice { display: inline-flex; align-items: center; gap: var(--fx-space-2); }
  .fennec-options__button { padding: var(--fx-space-2) var(--fx-space-3); border: 1px solid var(--fx-border); border-radius: var(--fx-radius-pill); background: transparent; color: inherit; font: inherit; cursor: pointer; }
  .fennec-options__button[data-recommended] { border-width: 2px; font-weight: var(--fx-weight-semibold); }
  .fennec-options__button:disabled { cursor: default; opacity: 0.6; }
  .fennec-options__mark { color: var(--fx-text-muted); }
  /* The day by day plan (day_itinerary). Logical properties only, so Arabic and Darija mirror. */
  .fennec-day-plan { display: grid; gap: var(--fx-space-4); }
  .fennec-day { padding: var(--fx-space-4); background: var(--fx-surface); border: 1px solid var(--fx-separator); border-radius: var(--fx-radius-xl); }
  .fennec-day__heading { margin-block: 0 var(--fx-space-2); }
  .fennec-day__items, .fennec-day__photos { margin: 0; padding: 0; list-style: none; }
  .fennec-day__item { padding-block: var(--fx-space-2); border-block-end: 1px solid var(--fx-separator); }
  .fennec-day__item[data-status="suggested"] { border-inline-start: 3px dashed var(--fx-border); padding-inline-start: var(--fx-space-3); }
  .fennec-day__title { margin: 0; }
  .fennec-day__reason { margin: 0; color: var(--fx-text-muted); font-size: var(--fx-text-footnote); }
  .fennec-day__details { margin: 0; padding-inline-start: 1.1em; color: var(--fx-text-muted); font-size: var(--fx-text-footnote); }
  .fennec-helpful { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fx-space-2); margin: 0; }
  .fennec-helpful__question { margin: 0; color: var(--fx-text-muted); font-size: var(--fx-text-footnote); }
  .fennec-helpful .fennec-options__button { min-block-size: var(--fx-target); }
  .fennec-day__staying, .fennec-day__empty { margin: 0; color: var(--fx-text-muted); font-size: var(--fx-text-footnote); }
  .fennec-day__status { color: var(--fx-text-muted); }
  .fennec-day__photos { display: flex; gap: var(--fx-space-2); margin-block-start: var(--fx-space-2); overflow-x: auto; }
  .fennec-day__photos img { display: block; inline-size: 10rem; block-size: auto; aspect-ratio: 160 / 110; object-fit: cover; border-radius: var(--fx-radius-md, 0.5rem); background: var(--fx-separator); }
  .fennec-day__actions { display: flex; flex-wrap: wrap; gap: var(--fx-space-2); margin-block-start: var(--fx-space-2); }
  .fennec-day__extras { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fx-space-2); }
  .fennec-day__extras-title { flex-basis: 100%; margin: 0; color: var(--fx-text-muted); font-size: var(--fx-text-footnote); }
  .fennec-day__extra { border-style: dashed; color: var(--fx-text-muted); }
  .fennec-day-plan .fennec-options__button { min-block-size: var(--fx-target); }
  .fennec-visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .fennec-task-update { margin: 0; font-size: var(--fx-text-caption); color: var(--fx-text-muted); }
  .fennec-card-unavailable { margin: 0; color: var(--fx-text-muted); font-size: var(--fx-text-footnote); }

  .fx-hint { margin-block: 0 var(--fx-space-4); font-size: var(--fx-text-caption); color: var(--fx-text-muted); }
}

/* Forced colors: shadows and tints vanish, so borders and system colors carry the shapes. */
@media (forced-colors: active) {
  .fx-card, .fx-alert, .fx-choice, dialog { border: 1px solid CanvasText; }
  .fx-choice:has(:checked) { border-width: 3px; }
  button, .fx-button { border: 1px solid ButtonText; }
}

@media print {
  .fx-bar { position: static; }
}
