@layer theme, base, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/utilities.css" layer(utilities);

@layer components {
  /* ============================================================
   * FX Shared Widget Chrome (used by exchange-rates + converter)
   * ============================================================ */

  .crtoday-widget {
    --crtoday-glass-bg: rgba(255, 255, 255, 0.68);
    --crtoday-glass-border: rgba(255, 255, 255, 0.55);
    --crtoday-glass-blur: 1.5rem;
    --crtoday-glass-saturate: 180%;

    --crtoday-shadow-rest:
      0 var(--crtoday-space-1) var(--crtoday-space-2) rgba(15, 23, 42, 0.04),
      0 var(--crtoday-space-4) var(--crtoday-space-12) rgba(15, 23, 42, 0.06);
    --crtoday-shadow-elevated:
      0 var(--crtoday-space-8) var(--crtoday-space-30) rgba(15, 23, 42, 0.10),
      0 var(--crtoday-space-2) var(--crtoday-space-8) rgba(15, 23, 42, 0.04);

    --crtoday-accent-1: var(--crtoday-accent-1-light, #6366f1);
    --crtoday-accent-2: var(--crtoday-accent-2-light, #a855f7);
    --crtoday-accent-3: var(--crtoday-accent-3-light, #ec4899);
    --crtoday-accent-gradient: var(--crtoday-accent-gradient-light, linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%));
    --crtoday-accent-color: var(--crtoday-accent-color-light, #6366f1);
    --crtoday-accent-rgb: var(--crtoday-accent-rgb-light, 99 102 241);
    --crtoday-accent-contrast: var(--crtoday-accent-contrast-light, #0f172a);

    --crtoday-text-1: #0f172a;
    --crtoday-text-2: #475569;
    --crtoday-text-3: #94a3b8;

    --crtoday-separator: rgba(148, 163, 184, 0.08);
    --crtoday-row-hover: var(--crtoday-row-hover-light, rgba(99, 102, 241, 0.04));

    --crtoday-up: #059669;
    --crtoday-up-bg: rgba(5, 150, 105, 0.08);
    --crtoday-down: #dc2626;
    --crtoday-down-bg: rgba(220, 38, 38, 0.08);
    --crtoday-neutral: #94a3b8;
    --crtoday-neutral-bg: rgba(148, 163, 184, 0.08);

    --crtoday-dot-live: #10b981;
    --crtoday-dot-stale: #f59e0b;
    --crtoday-dot-error: #ef4444;

    --crtoday-source-shimmer-duration: 5s;
    --crtoday-source-shimmer-spread: 12%;
    --crtoday-source-shimmer-color: rgba(255, 255, 255, 0.98);
    --crtoday-source-label-shimmer-shadow: none;

    --crtoday-source-link-shadow: 0 0.0281rem 0 rgba(15, 23, 42, 0.2);
    --crtoday-source-link-shadow-hover: 0 0 0.5rem rgba(99, 102, 241, 0.22);
    --crtoday-source-link-color: var(--crtoday-link-muted, var(--crtoday-text-3));
    --crtoday-source-link-hover-color: var(--crtoday-accent-1);

    --crtoday-disclaimer-btn-color: var(--crtoday-link-muted, var(--crtoday-text-3));
    --crtoday-disclaimer-btn-hover-color: var(--crtoday-accent-1);
    --crtoday-disclaimer-btn-opacity: 0.7;
    --crtoday-disclaimer-btn-hover-opacity: 1;

    --crtoday-timestamp-color: var(--crtoday-link-muted, var(--crtoday-text-3));
    --crtoday-disclaimer-link-color: var(--crtoday-accent-1);
    --crtoday-disclaimer-link-hover-color: var(--crtoday-accent-1);
    --crtoday-disclaimer-link-hover-opacity: 0.8;

    --crtoday-source-label-color: var(--crtoday-text-3);
    --crtoday-disclaimer-close-color: var(--crtoday-text-3);
    --crtoday-disclaimer-close-hover-color: var(--crtoday-text-1);

    /* Structural theme tokens — overridden by dark variants below */
    --crtoday-card-inset: inset 0 var(--crtoday-space-1) 0 rgba(255, 255, 255, 0.6);
    --crtoday-card-hover-border: rgb(var(--crtoday-accent-rgb) / 0.18);
    --crtoday-glow-1: rgb(var(--crtoday-accent-rgb) / 0.08);
    --crtoday-glow-2: rgb(var(--crtoday-accent-rgb) / 0.05);
    --crtoday-flag-border: var(--crtoday-glass-border);
    --crtoday-flag-shadow: 0 var(--crtoday-space-1) var(--crtoday-space-3) rgba(0, 0, 0, 0.06);
    --crtoday-dialog-bg: var(--crtoday-glass-bg);
    --crtoday-dialog-border: var(--crtoday-glass-border);

    --crtoday-tw-0: 0;
    --crtoday-tw-px: 0.0625rem;
    --crtoday-tw-0_5: 0.125rem;
    --crtoday-tw-1: 0.25rem;
    --crtoday-tw-1_5: 0.375rem;
    --crtoday-tw-2: 0.5rem;
    --crtoday-tw-2_5: 0.625rem;
    --crtoday-tw-3: 0.75rem;
    --crtoday-tw-3_5: 0.875rem;
    --crtoday-tw-4: 1rem;
    --crtoday-tw-5: 1.25rem;
    --crtoday-tw-6: 1.5rem;
    --crtoday-tw-7_5: 1.875rem;
    --crtoday-tw-8: 2rem;
    --crtoday-tw-10: 2.5rem;
    --crtoday-tw-12: 3rem;
    --crtoday-tw-14: 3.5rem;
    --crtoday-tw-15: 3.75rem;
    --crtoday-space-0: var(--crtoday-tw-0);
    --crtoday-space-1: var(--crtoday-tw-px);
    --crtoday-space-2: var(--crtoday-tw-0_5);
    --crtoday-space-3: 0.1875rem;
    --crtoday-space-4: var(--crtoday-tw-1);
    --crtoday-space-6: var(--crtoday-tw-1_5);
    --crtoday-space-8: var(--crtoday-tw-2);
    --crtoday-space-10: var(--crtoday-tw-2_5);
    --crtoday-space-11: 0.6875rem;
    --crtoday-space-12: var(--crtoday-tw-3);
    --crtoday-space-14: var(--crtoday-tw-3_5);
    --crtoday-space-16: var(--crtoday-tw-4);
    --crtoday-space-20: var(--crtoday-tw-5);
    --crtoday-space-22: 1.375rem;
    --crtoday-space-24: var(--crtoday-tw-6);
    --crtoday-space-30: var(--crtoday-tw-7_5);
    --crtoday-space-32: var(--crtoday-tw-8);
    --crtoday-space-40: var(--crtoday-tw-10);
    --crtoday-space-42: 2.625rem;
    --crtoday-space-46: 2.875rem;
    --crtoday-space-48: var(--crtoday-tw-12);
    --crtoday-space-54: 3.375rem;
    --crtoday-space-56: var(--crtoday-tw-14);
    --crtoday-space-60: var(--crtoday-tw-15);
    --crtoday-space-72: 4.5rem;
    --crtoday-space-76: 4.75rem;
    --crtoday-space-90: 5.625rem;

    --crtoday-size-flag-lg: var(--crtoday-space-32);
    --crtoday-size-flag-md: var(--crtoday-space-24);
    --crtoday-size-flag-sm: var(--crtoday-space-22);
    --crtoday-size-badge-md: var(--crtoday-space-14);
    --crtoday-size-badge-sm: var(--crtoday-space-11);
    --crtoday-size-dot-md: var(--crtoday-space-12);
    --crtoday-size-dot-sm: var(--crtoday-space-10);

    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
      Roboto, Helvetica, Arial, sans-serif;
    font-feature-settings: 'cv02', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--crtoday-text-1);
    line-height: 1.5;
  }

  /* ---------- Anti-theme hardening (scoped reset) ---------- */
  .crtoday-widget,
  .crtoday-widget *,
  .crtoday-widget *::before,
  .crtoday-widget *::after {
    box-sizing: border-box;
  }

  .crtoday-widget :where(p, h1, h2, h3, h4, h5, h6, ul, ol, li, figure, blockquote) {
    margin: 0;
    padding: 0;
  }

  .crtoday-widget :where(button, input, select, textarea) {
    font: inherit;
    letter-spacing: normal;
    text-transform: none;
    color: inherit !important;
    margin: 0 !important;
    line-height: 1.2;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background-image: none !important;
  }

  .crtoday-widget :where(button, input[type='button'], input[type='submit'], input[type='reset']) {
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background-image: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  .crtoday-widget :where(button):not(.crtoday-disclaimer-btn)::before,
  .crtoday-widget :where(button):not(.crtoday-disclaimer-btn)::after {
    content: none !important;
  }

  .crtoday-widget :where(img, svg, video, canvas) {
    max-width: none;
  }

  .crtoday-widget :where(a) {
    color: inherit;
  }

  .crtoday-widget :where(table) {
    border-collapse: collapse;
    border-spacing: 0;
  }

  .crtoday-widget :where(*) {
    word-break: normal;
    overflow-wrap: normal;
  }

  .crtoday-widget .crtoday-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--crtoday-radius, var(--crtoday-space-16));
    background: var(--crtoday-glass-bg);
    border: var(--crtoday-space-1) solid var(--crtoday-glass-border);
    backdrop-filter: blur(var(--crtoday-glass-blur)) saturate(var(--crtoday-glass-saturate));
    -webkit-backdrop-filter: blur(var(--crtoday-glass-blur))
      saturate(var(--crtoday-glass-saturate));
    box-shadow: var(--crtoday-shadow-rest), var(--crtoday-card-inset);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
  }

  .crtoday-widget.crtoday-has-shadow .crtoday-card {
    box-shadow: var(--crtoday-shadow-elevated), var(--crtoday-card-inset);
  }

  .crtoday-widget.crtoday-no-shadow .crtoday-card {
    box-shadow: var(--crtoday-card-inset);
  }

  /* Seamless mode — strip chrome so widget blends into parent container */
  .crtoday-widget.crtoday-seamless .crtoday-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .crtoday-widget.crtoday-seamless .crtoday-card::before {
    display: none;
  }
  .crtoday-widget.crtoday-seamless .crtoday-card:hover {
    border-color: transparent;
  }
  .crtoday-widget.crtoday-seamless .crtoday-accent {
    display: none;
  }

  .crtoday-widget .crtoday-card:hover {
    border-color: var(--crtoday-card-hover-border);
  }

  .crtoday-widget .crtoday-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
      radial-gradient(
        ellipse at 15% -10%,
        var(--crtoday-glow-1),
        transparent 55%
      ),
      radial-gradient(
        ellipse at 85% 110%,
        var(--crtoday-glow-2),
        transparent 55%
      );
    pointer-events: none;
    z-index: 0;
  }

  .crtoday-widget .crtoday-accent,
  .crtoday-widget .crtoday-header,
  .crtoday-widget .crtoday-rates,
  .crtoday-widget .crtoday-footer {
    position: relative;
    z-index: 1;
  }

  .crtoday-widget .crtoday-accent {
    height: var(--crtoday-space-3);
    background: var(--crtoday-accent-gradient, linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%));
  }

  .crtoday-widget .crtoday-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--crtoday-space-4);
    padding: var(--crtoday-header-padding-y, var(--crtoday-space-16)) var(--crtoday-header-padding-x, var(--crtoday-space-16));
    border-bottom: var(--crtoday-space-1) solid var(--crtoday-separator);
  }

  .crtoday-widget .crtoday-base {
    display: flex;
    align-items: center;
    gap: var(--crtoday-space-10);
  }

  .crtoday-widget .crtoday-flag-wrap {
    flex-shrink: 0;
    width: var(--crtoday-size-flag-lg);
    height: var(--crtoday-size-flag-lg);
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(
      135deg,
      rgba(99, 102, 241, 0.08),
      rgba(168, 85, 247, 0.06)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.0938rem solid var(--crtoday-flag-border);
    box-shadow: var(--crtoday-flag-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .crtoday-widget .crtoday-flag-wrap.crtoday-flag-wrap-md {
    width: var(--crtoday-size-flag-md);
    height: var(--crtoday-size-flag-md);
  }

  .crtoday-widget .crtoday-flag-wrap.crtoday-flag-wrap-sm {
    width: var(--crtoday-size-flag-sm);
    height: var(--crtoday-size-flag-sm);
  }

  .crtoday-widget .crtoday-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .crtoday-widget .crtoday-base-flag {
    width: var(--crtoday-base-flag-size, var(--crtoday-space-32));
    height: var(--crtoday-base-flag-size, var(--crtoday-space-32));
    border-radius: 50%;
    object-fit: cover;
    border: var(--crtoday-space-2) solid var(--crtoday-flag-border);
    box-shadow: 0 var(--crtoday-space-2) var(--crtoday-space-8) rgba(0, 0, 0, 0.10);
  }

  .crtoday-widget .crtoday-base-label {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--crtoday-text-1);
  }

  .crtoday-widget .crtoday-source-label {
    display: inline-flex;
    align-items: center;
    gap: var(--crtoday-space-3);
    font-size: var(--crtoday-space-11);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--crtoday-source-label-color) !important;
    flex-shrink: 0;
  }

  .crtoday-widget .crtoday-verified-badge {
    width: var(--crtoday-space-14);
    height: var(--crtoday-space-14);
    flex-shrink: 0;
    color: inherit;
  }

  @keyframes crtoday-text-shimmer {
    from {
      background-position: 180% 50%;
    }

    to {
      background-position: -80% 50%;
    }
  }

  .crtoday-widget .crtoday-source-label-text {
    position: relative;
    display: inline-block;
    color: inherit;
    white-space: nowrap;
  }

  .crtoday-widget .crtoday-source-label-text::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    white-space: inherit;
    background: linear-gradient(
      90deg,
      transparent calc(50% - var(--crtoday-source-shimmer-spread)),
      var(--crtoday-source-shimmer-color) 50%,
      transparent calc(50% + var(--crtoday-source-shimmer-spread))
    );
    background-repeat: no-repeat;
    background-size: 220% 100%;
    background-position: 180% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    pointer-events: none;
    will-change: background-position;
    text-shadow: var(--crtoday-source-label-shimmer-shadow);
    animation: crtoday-text-shimmer var(--crtoday-source-shimmer-duration) linear infinite;
  }

  @media (prefers-reduced-motion: reduce) {
    .crtoday-widget .crtoday-source-label-text {
      text-shadow: none;
    }

    .crtoday-widget .crtoday-source-label-text::after {
      animation: none;
      content: none;
    }
  }

  .crtoday-widget:dir(rtl) .crtoday-header > .crtoday-base {
    order: 1 !important;
  }

  .crtoday-widget:dir(rtl) .crtoday-header > .crtoday-source-label {
    order: 2 !important;
  }

  .crtoday-widget:dir(rtl) .crtoday-footer > .crtoday-footer-left {
    order: 2 !important;
  }

  .crtoday-widget:dir(rtl) .crtoday-footer > .crtoday-footer-right {
    order: 1 !important;
  }

  html[dir="rtl"] .crtoday-widget .crtoday-header > .crtoday-base,
  body[dir="rtl"] .crtoday-widget .crtoday-header > .crtoday-base,
  .rtl .crtoday-widget .crtoday-header > .crtoday-base,
  [dir="rtl"] .crtoday-widget .crtoday-header > .crtoday-base,
  .crtoday-widget[dir="rtl"] .crtoday-header > .crtoday-base {
    order: 1;
  }

  html[dir="rtl"] .crtoday-widget .crtoday-header > .crtoday-source-label,
  body[dir="rtl"] .crtoday-widget .crtoday-header > .crtoday-source-label,
  .rtl .crtoday-widget .crtoday-header > .crtoday-source-label,
  [dir="rtl"] .crtoday-widget .crtoday-header > .crtoday-source-label,
  .crtoday-widget[dir="rtl"] .crtoday-header > .crtoday-source-label {
    order: 2;
  }

  html[dir="rtl"] .crtoday-widget .crtoday-footer > .crtoday-footer-left,
  body[dir="rtl"] .crtoday-widget .crtoday-footer > .crtoday-footer-left,
  .rtl .crtoday-widget .crtoday-footer > .crtoday-footer-left,
  [dir="rtl"] .crtoday-widget .crtoday-footer > .crtoday-footer-left,
  .crtoday-widget[dir="rtl"] .crtoday-footer > .crtoday-footer-left {
    order: 2;
  }

  html[dir="rtl"] .crtoday-widget .crtoday-footer > .crtoday-footer-right,
  body[dir="rtl"] .crtoday-widget .crtoday-footer > .crtoday-footer-right,
  .rtl .crtoday-widget .crtoday-footer > .crtoday-footer-right,
  [dir="rtl"] .crtoday-widget .crtoday-footer > .crtoday-footer-right,
  .crtoday-widget[dir="rtl"] .crtoday-footer > .crtoday-footer-right {
    order: 1;
  }

  .crtoday-widget:dir(rtl) .crtoday-adjustment-note-wrap {
    text-align: left;
  }

  .crtoday-widget.crtoday-accent-color-border .crtoday-accent {
    display: none;
  }

  .crtoday-widget.crtoday-accent-color-border .crtoday-card {
    border: var(--crtoday-space-2) solid var(--crtoday-accent-color, #6366f1);
  }

  .crtoday-widget.crtoday-accent-color-border .crtoday-card:hover {
    border-color: var(--crtoday-accent-color, #6366f1);
  }

  .crtoday-widget.crtoday-accent-none .crtoday-accent {
    display: none;
  }

  .crtoday-widget.crtoday-fit-width {
    width: fit-content;
  }

  @media (max-width: 40rem) {
    .crtoday-widget,
    .crtoday-widget.crtoday-fit-width {
      width: 100%;
      max-width: 100%;
    }
  }

  .crtoday-widget.crtoday-compact .crtoday-header {
    padding: var(--crtoday-space-8) var(--crtoday-space-16);
  }

  .crtoday-widget.crtoday-compact .crtoday-base-flag {
    width: var(--crtoday-space-24);
    height: var(--crtoday-space-24);
  }

  .crtoday-widget.crtoday-compact .crtoday-base-label {
    font-size: var(--crtoday-space-14);
  }

  .crtoday-widget.crtoday-compact .crtoday-footer {
    padding: var(--crtoday-space-6) var(--crtoday-space-14) var(--crtoday-space-8);
  }

  .crtoday-widget.crtoday-compact .crtoday-source-label {
    font-size: 0.5625rem;
  }

  .crtoday-widget.crtoday-compact .crtoday-verified-badge {
    width: var(--crtoday-space-11);
    height: var(--crtoday-space-11);
  }

  .crtoday-widget.crtoday-compact .crtoday-accent {
    height: var(--crtoday-space-2);
  }

  .crtoday-widget .crtoday-adjustment-note-wrap {
    padding: 0 var(--crtoday-space-20) var(--crtoday-space-8);
    text-align: right;
  }

  .crtoday-widget .crtoday-adjustment-note {
    display: inline-block;
    font-size: var(--crtoday-space-11);
    font-weight: 500;
    color: var(--crtoday-text-3);
    line-height: 1.4;
  }

  .crtoday-widget.crtoday-compact .crtoday-adjustment-note-wrap {
    padding: 0 var(--crtoday-space-14) var(--crtoday-space-6);
  }

  .crtoday-widget.crtoday-compact .crtoday-adjustment-note {
    font-size: var(--crtoday-space-10);
  }

  .crtoday-widget .crtoday-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--crtoday-space-8) var(--crtoday-space-20) var(--crtoday-space-10);
    border-top: var(--crtoday-space-1) solid var(--crtoday-separator);
  }

  .crtoday-widget .crtoday-footer-left,
  .crtoday-widget .crtoday-footer-right {
    display: flex;
    align-items: center;
    gap: var(--crtoday-space-6);
  }

  .crtoday-widget .crtoday-source-link,
  .crtoday-widget .crtoday-source-link:visited,
  .crtoday-widget .crtoday-source-link:active {
    display: inline-block;
    font-size: 0.5938rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--crtoday-source-link-color) !important;
    text-decoration: none!important;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    outline: none;
    padding: 0;
    margin: 0;
    line-height: 1.5;
    font-family: inherit;
    font-feature-settings: 'cv11', 'ss01';
    text-rendering: geometricPrecision;
    opacity: 0.92;
    text-shadow: var(--crtoday-source-link-shadow);
    cursor: pointer;
  }

  .crtoday-widget .crtoday-source-link:hover,
  .crtoday-widget .crtoday-source-link:focus {
    color: var(--crtoday-source-link-hover-color) !important;
    text-decoration: none;
    letter-spacing: 0.08em;
    opacity: 1;
    text-shadow: var(--crtoday-source-link-shadow-hover);
    box-shadow: none;
    outline: none;
  }

  .crtoday-widget .crtoday-footer .crtoday-timestamp {
    font-size: 0.5938rem;
    color: var(--crtoday-timestamp-color) !important;
    font-variant-numeric: tabular-nums;
  }

  .crtoday-widget .crtoday-footer .crtoday-timestamp::before {
    content: '\00B7';
    margin-inline-end: var(--crtoday-space-6);
    text-decoration: none;
    display: inline-block;
    color: var(--crtoday-text-3);
    opacity: 0.5;
  }

  .crtoday-widget.crtoday-widget .crtoday-footer-right button.crtoday-disclaimer-btn[data-crtoday-disclaimer],
  .crtoday-widget.crtoday-widget .crtoday-footer-right button.crtoday-disclaimer-btn[data-crtoday-disclaimer]:hover,
  .crtoday-widget.crtoday-widget .crtoday-footer-right button.crtoday-disclaimer-btn[data-crtoday-disclaimer]:focus,
  .crtoday-widget.crtoday-widget .crtoday-footer-right button.crtoday-disclaimer-btn[data-crtoday-disclaimer]:focus-visible,
  .crtoday-widget.crtoday-widget .crtoday-footer-right button.crtoday-disclaimer-btn[data-crtoday-disclaimer]:active {
    all: unset !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    text-shadow: none !important;
    background-image: none !important;
    filter: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
    display: inline !important;
    vertical-align: baseline !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    cursor: pointer !important;
    font: inherit !important;
    font-size: var(--crtoday-space-8) !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    white-space: nowrap !important;
    color: var(--crtoday-disclaimer-btn-color) !important;
    text-decoration: none !important;
    border-bottom: var(--crtoday-space-1) dotted currentColor !important;
    opacity: var(--crtoday-disclaimer-btn-opacity);
    transition: opacity 0.15s ease, color 0.15s ease;
    transform: none !important;
  }

  .crtoday-widget.crtoday-widget .crtoday-footer-right button.crtoday-disclaimer-btn[data-crtoday-disclaimer]:hover {
    opacity: var(--crtoday-disclaimer-btn-hover-opacity);
    color: var(--crtoday-disclaimer-btn-hover-color) !important;
  }

  .crtoday-widget .crtoday-disclaimer-dialog {
    border: var(--crtoday-space-1) solid var(--crtoday-dialog-border);
    border-radius: var(--crtoday-space-12);
    padding: 0;
    max-width: 20rem;
    width: 90vw;
    background: var(--crtoday-dialog-bg);
    backdrop-filter: blur(var(--crtoday-glass-blur)) saturate(var(--crtoday-glass-saturate));
    -webkit-backdrop-filter: blur(var(--crtoday-glass-blur)) saturate(var(--crtoday-glass-saturate));
    box-shadow: 0 var(--crtoday-space-8) var(--crtoday-space-30) rgba(0, 0, 0, 0.15);
    color: var(--crtoday-text-1);
    font-family: inherit;
  }

  .crtoday-widget .crtoday-disclaimer-dialog::backdrop {
    background: rgba(0, 0, 0, 0.3);
  }

  .crtoday-widget .crtoday-disclaimer-dialog-inner {
    padding: var(--crtoday-space-20);
  }

  .crtoday-widget .crtoday-disclaimer-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--crtoday-space-12);
  }

  .crtoday-widget .crtoday-disclaimer-dialog-header strong {
    font-size: var(--crtoday-space-14);
    font-weight: 700;
    color: var(--crtoday-text-1);
  }

  .crtoday-widget .crtoday-disclaimer-close {
    background: none;
    border: none;
    box-shadow: none;
    outline: none;
    font-size: var(--crtoday-space-20);
    line-height: 1;
    cursor: pointer;
    color: var(--crtoday-disclaimer-close-color);
    padding: var(--crtoday-space-2) 0;
    width: var(--crtoday-space-24);
    height: var(--crtoday-space-24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
  }

  .crtoday-widget .crtoday-disclaimer-dialog .crtoday-disclaimer-close {
    padding: var(--crtoday-space-2) 0 !important;
    width: var(--crtoday-space-24) !important;
    height: var(--crtoday-space-24) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    line-height: 1 !important;
  }

  .crtoday-widget .crtoday-disclaimer-close:hover,
  .crtoday-widget .crtoday-disclaimer-close:focus {
    color: var(--crtoday-disclaimer-close-hover-color);
    box-shadow: none;
    outline: none;
  }

  .crtoday-widget .crtoday-disclaimer-text {
    font-size: 0.6875rem;
    line-height: 1.6;
    color: var(--crtoday-text-2);
    margin: 0 0 var(--crtoday-space-16);
  }

  .crtoday-widget .crtoday-disclaimer-dialog .crtoday-disclaimer-text {
    font-size: 0.6875rem !important;
    line-height: 1.6 !important;
    margin: 0 0 var(--crtoday-space-16) !important;
  }

  .crtoday-widget .crtoday-disclaimer-links {
    display: flex;
    gap: var(--crtoday-space-12);
  }

  .crtoday-widget .crtoday-disclaimer-links a,
  .crtoday-widget .crtoday-disclaimer-links a:visited {
    font-size: var(--crtoday-space-12);
    font-weight: 600;
    color: var(--crtoday-disclaimer-link-color) !important;
    text-decoration: none!important;
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
    transition: opacity 0.15s ease;
  }

  .crtoday-widget .crtoday-disclaimer-links a:hover,
  .crtoday-widget .crtoday-disclaimer-links a:focus {
    opacity: var(--crtoday-disclaimer-link-hover-opacity);
    color: var(--crtoday-disclaimer-link-hover-color) !important;
    text-decoration: none;
    border: none;
    box-shadow: none;
  }

  .crtoday-widget.crtoday-theme-dark {
    --crtoday-glass-bg: rgba(8, 13, 24, 0.90);
    --crtoday-glass-border: rgba(148, 163, 184, 0.13);

    --crtoday-shadow-rest:
      0 var(--crtoday-space-1) var(--crtoday-space-2) rgba(0, 0, 0, 0.18),
      0 var(--crtoday-space-4) var(--crtoday-space-12) rgba(0, 0, 0, 0.22);
    --crtoday-shadow-elevated:
      0 var(--crtoday-space-8) var(--crtoday-space-30) rgba(0, 0, 0, 0.38),
      0 var(--crtoday-space-2) var(--crtoday-space-8) rgba(0, 0, 0, 0.18);

    --crtoday-text-1: #f8fafc;
    --crtoday-text-2: #e2e8f0;
    --crtoday-text-3: #a8b5c4;
    --crtoday-link-muted: #cbd5e1;

    --crtoday-accent-1: var(--crtoday-accent-1-dark);
    --crtoday-accent-2: var(--crtoday-accent-2-dark);
    --crtoday-accent-3: var(--crtoday-accent-3-dark);
    --crtoday-accent-gradient: var(--crtoday-accent-gradient-dark);
    --crtoday-accent-color: var(--crtoday-accent-color-dark);
    --crtoday-accent-rgb: var(--crtoday-accent-rgb-dark);
    --crtoday-accent-contrast: var(--crtoday-text-1);

    --crtoday-separator: rgba(148, 163, 184, 0.08);
    --crtoday-row-hover: var(--crtoday-row-hover-dark);

    --crtoday-up: #34d399;
    --crtoday-up-bg: rgba(52, 211, 153, 0.14);
    --crtoday-down: #f87171;
    --crtoday-down-bg: rgba(248, 113, 113, 0.14);
    --crtoday-neutral: #a8b5c4;
    --crtoday-neutral-bg: rgba(148, 163, 184, 0.12);

    --crtoday-source-shimmer-color: rgba(255, 255, 255, 1);
    --crtoday-source-shimmer-spread: 10%;
    --crtoday-source-label-shimmer-shadow: 0 0 0.375rem rgba(255, 255, 255, 0.4);

    --crtoday-source-link-shadow: 0 0.0281rem 0 rgba(255, 255, 255, 0.24);
    --crtoday-source-link-shadow-hover: 0 0 0.5625rem rgb(var(--crtoday-accent-rgb) / 0.42);

    --crtoday-source-link-color: #cbd5e1;
    --crtoday-source-link-hover-color: var(--crtoday-accent-1);
    --crtoday-disclaimer-btn-color: #cbd5e1;
    --crtoday-disclaimer-btn-hover-color: var(--crtoday-accent-1);
    --crtoday-disclaimer-btn-opacity: 1;
    --crtoday-disclaimer-btn-hover-opacity: 1;
    --crtoday-timestamp-color: #cbd5e1;
    --crtoday-disclaimer-link-color: var(--crtoday-accent-1);
    --crtoday-disclaimer-link-hover-color: var(--crtoday-accent-2);
    --crtoday-disclaimer-link-hover-opacity: 1;
    --crtoday-source-label-color: #a8b5c4;
    --crtoday-disclaimer-close-color: #a8b5c4;
    --crtoday-disclaimer-close-hover-color: #f8fafc;

    --crtoday-card-inset: inset 0 var(--crtoday-space-1) 0 rgba(255, 255, 255, 0.05);
    --crtoday-card-hover-border: rgb(var(--crtoday-accent-rgb) / 0.25);
    --crtoday-glow-1: rgb(var(--crtoday-accent-rgb) / 0.12);
    --crtoday-glow-2: rgb(var(--crtoday-accent-rgb) / 0.10);
    --crtoday-flag-border: rgba(148, 163, 184, 0.18);
    --crtoday-flag-shadow: 0 var(--crtoday-space-1) var(--crtoday-space-3) rgba(0, 0, 0, 0.2);
    --crtoday-dialog-bg: rgba(15, 23, 42, 0.92);
    --crtoday-dialog-border: rgba(148, 163, 184, 0.15);
  }

  @media (prefers-color-scheme: dark) {
    .crtoday-widget.crtoday-theme-auto {
      --crtoday-glass-bg: rgba(8, 13, 24, 0.90);
      --crtoday-glass-border: rgba(148, 163, 184, 0.13);

      --crtoday-shadow-rest:
        0 var(--crtoday-space-1) var(--crtoday-space-2) rgba(0, 0, 0, 0.18),
        0 var(--crtoday-space-4) var(--crtoday-space-12) rgba(0, 0, 0, 0.22);
      --crtoday-shadow-elevated:
        0 var(--crtoday-space-8) var(--crtoday-space-30) rgba(0, 0, 0, 0.38),
        0 var(--crtoday-space-2) var(--crtoday-space-8) rgba(0, 0, 0, 0.18);

      --crtoday-text-1: #f8fafc;
      --crtoday-text-2: #e2e8f0;
      --crtoday-text-3: #a8b5c4;
      --crtoday-link-muted: #cbd5e1;

      --crtoday-accent-1: var(--crtoday-accent-1-dark);
      --crtoday-accent-2: var(--crtoday-accent-2-dark);
      --crtoday-accent-3: var(--crtoday-accent-3-dark);
      --crtoday-accent-gradient: var(--crtoday-accent-gradient-dark);
      --crtoday-accent-color: var(--crtoday-accent-color-dark);
      --crtoday-accent-rgb: var(--crtoday-accent-rgb-dark);
      --crtoday-accent-contrast: var(--crtoday-text-1);

      --crtoday-separator: rgba(148, 163, 184, 0.08);
      --crtoday-row-hover: var(--crtoday-row-hover-dark);

      --crtoday-up: #34d399;
      --crtoday-up-bg: rgba(52, 211, 153, 0.14);
      --crtoday-down: #f87171;
      --crtoday-down-bg: rgba(248, 113, 113, 0.14);
      --crtoday-neutral: #a8b5c4;
      --crtoday-neutral-bg: rgba(148, 163, 184, 0.12);

      --crtoday-source-shimmer-color: rgba(255, 255, 255, 1);
      --crtoday-source-shimmer-spread: 10%;
      --crtoday-source-label-shimmer-shadow: 0 0 0.375rem rgba(255, 255, 255, 0.4);

      --crtoday-source-link-shadow: 0 0.0281rem 0 rgba(255, 255, 255, 0.24);
      --crtoday-source-link-shadow-hover: 0 0 0.5625rem rgb(var(--crtoday-accent-rgb) / 0.42);

      --crtoday-source-link-color: #cbd5e1;
      --crtoday-source-link-hover-color: var(--crtoday-accent-1);
      --crtoday-disclaimer-btn-color: #cbd5e1;
      --crtoday-disclaimer-btn-hover-color: var(--crtoday-accent-1);
      --crtoday-disclaimer-btn-opacity: 1;
      --crtoday-disclaimer-btn-hover-opacity: 1;
      --crtoday-timestamp-color: #cbd5e1;
      --crtoday-disclaimer-link-color: var(--crtoday-accent-1);
      --crtoday-disclaimer-link-hover-color: var(--crtoday-accent-2);
      --crtoday-disclaimer-link-hover-opacity: 1;
      --crtoday-source-label-color: #a8b5c4;
      --crtoday-disclaimer-close-color: #a8b5c4;
      --crtoday-disclaimer-close-hover-color: #f8fafc;

      --crtoday-card-inset: inset 0 var(--crtoday-space-1) 0 rgba(255, 255, 255, 0.05);
      --crtoday-card-hover-border: rgb(var(--crtoday-accent-rgb) / 0.25);
      --crtoday-glow-1: rgb(var(--crtoday-accent-rgb) / 0.12);
      --crtoday-glow-2: rgb(var(--crtoday-accent-rgb) / 0.10);
      --crtoday-flag-border: rgba(148, 163, 184, 0.18);
      --crtoday-flag-shadow: 0 var(--crtoday-space-1) var(--crtoday-space-3) rgba(0, 0, 0, 0.2);
      --crtoday-dialog-bg: rgba(15, 23, 42, 0.92);
      --crtoday-dialog-border: rgba(148, 163, 184, 0.15);
    }
  }
}
