/* ==========================================================================
   K697-Saas — Masar Executive Inner Pages Pro (m-hero, m-sec-head, m-kpi, m-empty)
   STRICT RULE: @media screen ONLY (print & PDF output 100% untouched).
   Full Light & Dark (html[data-k697-theme="dark"]) + RTL + Mobile 390px.
   ========================================================================== */

@media screen {

  /* ---------- 1) Executive Hero Banner (.m-hero) ---------- */
  .m-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 18px;
    padding: 18px 22px;
    margin: 0 0 18px;
    background:
      radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--masar-accent, #e85d04) 9%, transparent), transparent 46%),
      linear-gradient(180deg, var(--masar-paper, #ffffff) 0%, var(--masar-inset, #faf7f2) 100%);
    border: 1px solid var(--masar-border, #e2d8cc);
    border-radius: 16px;
    box-shadow: 0 8px 26px -16px rgba(23, 20, 18, 0.16), 0 1px 3px rgba(23, 20, 18, 0.04);
  }

  .m-hero::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--masar-accent, #e85d04) 0%, var(--masar-accent-light, #f59e0b) 55%, color-mix(in srgb, var(--masar-accent, #e85d04) 15%, transparent) 100%);
  }

  html[data-k697-theme="dark"] .m-hero {
    background:
      radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--masar-accent, #f97316) 14%, transparent), transparent 48%),
      linear-gradient(180deg, var(--masar-paper, #1d1916) 0%, var(--masar-inset, #25201c) 100%);
    border-color: var(--masar-border, #352e27);
  }

  .m-hero__main {
    min-width: 0;
    flex: 1 1 280px;
  }

  .m-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    color: var(--masar-accent, #e85d04);
    margin-bottom: 4px;
  }

  .m-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--masar-accent, #e85d04);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.22);
    flex-shrink: 0;
  }

  .m-hero__title {
    margin: 0;
    font-size: clamp(1.22rem, 2.4vw, 1.52rem);
    font-weight: 900;
    color: var(--masar-ink, #171412);
    line-height: 1.28;
    word-break: break-word;
  }

  .m-hero__sub {
    margin: 4px 0 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--masar-muted, #6b635b);
    line-height: 1.48;
  }

  .m-hero__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
  }

  .m-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: var(--masar-paper, #ffffff);
    border: 1px solid var(--masar-border, #e2d8cc);
    color: var(--masar-muted, #6b635b);
    white-space: nowrap;
  }

  .m-hero__chip.is-live,
  .m-hero__chip.is-ok {
    background: rgba(22, 163, 74, 0.11);
    border-color: rgba(22, 163, 74, 0.28);
    color: #15803d;
  }

  .m-hero__chip.is-warn {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.34);
    color: #b45309;
  }

  .m-hero__chip.is-danger {
    background: rgba(220, 38, 38, 0.11);
    border-color: rgba(220, 38, 38, 0.30);
    color: #b91c1c;
  }

  .m-hero__chip.is-info {
    background: rgba(2, 132, 199, 0.11);
    border-color: rgba(2, 132, 199, 0.28);
    color: #0369a1;
  }

  .m-hero__chip.is-accent {
    background: rgba(232, 93, 4, 0.11);
    border-color: rgba(232, 93, 4, 0.32);
    color: #cf5002;
  }

  html[data-k697-theme="dark"] .m-hero__chip.is-live,
  html[data-k697-theme="dark"] .m-hero__chip.is-ok { color: #86efac; }
  html[data-k697-theme="dark"] .m-hero__chip.is-warn { color: #fcd34d; }
  html[data-k697-theme="dark"] .m-hero__chip.is-danger { color: #fca5a5; }
  html[data-k697-theme="dark"] .m-hero__chip.is-info { color: #7dd3fc; }
  html[data-k697-theme="dark"] .m-hero__chip.is-accent { color: #fdba74; }

  .m-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
  }

  .m-hero__actions .btn {
    min-height: 37px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
  }

  /* ---------- 2) Section Card Header (.m-sec-head) ---------- */
  .m-sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--masar-border, #e2d8cc) 80%, transparent);
  }

  .m-sec-head__info {
    min-width: 0;
    flex: 1 1 200px;
  }

  .m-sec-head__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .m-sec-head__title {
    margin: 0 !important;
    font-size: 1.04rem !important;
    font-weight: 800 !important;
    color: var(--masar-ink, #171412) !important;
  }

  .m-sec-head__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: var(--masar-accent-soft, rgba(232, 93, 4, 0.10));
    color: var(--masar-accent-dark, #cf5002);
    border: 1px solid rgba(232, 93, 4, 0.24);
  }

  html[data-k697-theme="dark"] .m-sec-head__count {
    color: #fdba74;
  }

  .m-sec-head__sub {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--masar-muted, #6b635b);
    font-weight: 600;
  }

  .m-sec-head__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  /* ---------- 3) Mobile 390px ---------- */
  @media (max-width: 767px) {
    .m-hero {
      padding: 14px 15px;
      border-radius: 13px;
      gap: 11px;
      margin-bottom: 14px;
    }

    .m-hero__actions {
      width: 100%;
    }

    .m-hero__actions .btn {
      flex: 1 1 auto;
      justify-content: center;
    }
  }

  /* ---------- 4) Alerts — slim, light strips (replaces the heavy boxes) ---------- */
  .alert.alert-info,
  .alert.alert-success,
  .alert.alert-warning,
  .alert.alert-danger {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 10px;
    border-width: 1px;
    border-inline-start-width: 3px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    box-shadow: none;
  }

  .alert.alert-info::before,
  .alert.alert-success::before,
  .alert.alert-warning::before,
  .alert.alert-danger::before {
    display: none;
  }

  .alert.alert-info {
    background: color-mix(in srgb, var(--masar-accent) 7%, var(--masar-paper, #fff));
    border-color: color-mix(in srgb, var(--masar-accent) 26%, transparent);
    color: var(--masar-ink, #171412);
  }

  .alert.alert-success {
    background: color-mix(in srgb, #16a34a 8%, var(--masar-paper, #fff));
    border-color: color-mix(in srgb, #16a34a 26%, transparent);
    color: #14532d;
  }

  .alert.alert-warning {
    background: color-mix(in srgb, #d97706 9%, var(--masar-paper, #fff));
    border-color: color-mix(in srgb, #d97706 30%, transparent);
    color: #78350f;
  }

  .alert.alert-danger {
    background: color-mix(in srgb, #dc2626 8%, var(--masar-paper, #fff));
    border-color: color-mix(in srgb, #dc2626 30%, transparent);
    color: #7f1d1d;
  }

  .alert a {
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  html[data-k697-theme="dark"] .alert.alert-info {
    background: color-mix(in srgb, var(--masar-accent) 12%, var(--masar-paper, #1d1916));
    color: var(--masar-ink, #faf5ef);
  }

  html[data-k697-theme="dark"] .alert.alert-success {
    background: color-mix(in srgb, #16a34a 16%, var(--masar-paper, #1d1916));
    color: #bbf7d0;
  }

  html[data-k697-theme="dark"] .alert.alert-warning {
    background: color-mix(in srgb, #d97706 18%, var(--masar-paper, #1d1916));
    color: #fde68a;
  }

  html[data-k697-theme="dark"] .alert.alert-danger {
    background: color-mix(in srgb, #dc2626 18%, var(--masar-paper, #1d1916));
    color: #fecaca;
  }

  @media (max-width: 767px) {
    .alert.alert-info,
    .alert.alert-success,
    .alert.alert-warning,
    .alert.alert-danger {
      font-size: 12.5px;
      padding: 7px 10px;
    }
  }

  /* ---------- 5) Console + Commander form fields follow Masar (light/dark) ----------
     k697-console.css kept a dark "console skin" on inputs (#0c1218) and light-grey
     labels, which made the filter bars unreadable on the warm Masar paper. */
  html body.theme-console input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="color"]).field,
  html body.theme-console select.field,
  html body.theme-console textarea.field,
  html body.theme-commander input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="color"]).field,
  html body.theme-commander select.field,
  html body.theme-commander textarea.field {
    background-color: var(--masar-paper, #ffffff);
    color: var(--masar-ink, #171412);
    border-color: var(--masar-border-strong, #d3c6b5);
  }

  html body.theme-console input[type="file"].field::file-selector-button,
  html body.theme-commander input[type="file"].field::file-selector-button {
    background: var(--masar-inset, #faf7f2);
    color: var(--masar-ink, #171412);
    border: 1px solid var(--masar-border-strong, #d3c6b5);
    border-radius: 8px;
    padding: 5px 12px;
    margin-inline-end: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  html body.theme-console input[type="file"].field::file-selector-button:hover,
  html body.theme-commander input[type="file"].field::file-selector-button:hover {
    background: var(--masar-accent-soft, rgba(232, 93, 4, 0.10));
    border-color: var(--masar-accent, #e85d04);
  }

  html body.theme-console label.field,
  html body.theme-commander label.field {
    color: var(--masar-muted, #5c5349);
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  html body.theme-console input.field::placeholder,
  html body.theme-console textarea.field::placeholder,
  html body.theme-commander input.field::placeholder,
  html body.theme-commander textarea.field::placeholder {
    color: var(--masar-faint, #948a7e);
    opacity: 1;
  }

  /* Console activity & status badges: dark ink in light mode, soft pastel in dark mode */
  html:not([data-k697-theme="dark"]) body.theme-console .act-member-last {
    color: var(--masar-accent-dark, #cf5002);
  }

  html:not([data-k697-theme="dark"]) body.theme-console .act-owner {
    background: var(--masar-accent-soft, rgba(232, 93, 4, 0.10));
    color: var(--masar-accent-dark, #cf5002);
    border: 1px solid var(--border-accent, rgba(232, 93, 4, 0.32));
  }

  html:not([data-k697-theme="dark"]) body.theme-console .topbar-date.is-open,
  html:not([data-k697-theme="dark"]) body.theme-console .sys-state.is-open {
    color: #15803d;
  }

  html:not([data-k697-theme="dark"]) body.theme-console .topbar-date.is-closed,
  html:not([data-k697-theme="dark"]) body.theme-console .sys-state.is-locked,
  html:not([data-k697-theme="dark"]) body.theme-console .sys-stat b.is-off {
    color: #b91c1c;
  }

  /* ---------- 6) Hub Gateway Page (index.php — body.hub-saas) ----------
     Warm Masar Light (default) & Dark (html[data-k697-theme="dark"]).
     Overrides k697-masar-pro.css's forced dark skin and blanket orange
     button[type="submit"] rule so tenant tiles are clean, legible cards. */
  body.hub-saas {
    --hub-gold: #c2410c;
    --hub-gold-bright: #e85d04;
    --hub-gold-deep: #9a3412;
    --hub-panel: #ffffff;
    --hub-border: #e2d8cc;
    --hub-text: #171412;
    --hub-muted: #574f47;
    background-color: #f5f0e8 !important;
    background-image:
      radial-gradient(circle at 18% 8%, rgba(232, 93, 4, 0.08), transparent 44%),
      radial-gradient(circle at 84% 14%, rgba(217, 119, 6, 0.07), transparent 42%),
      linear-gradient(180deg, #faf7f2 0%, #f3ece1 100%) !important;
    color: #171412;
  }

  html[data-k697-theme="dark"] body.hub-saas {
    --hub-gold: #fb923c;
    --hub-gold-bright: #fdba74;
    --hub-gold-deep: #e85d04;
    --hub-panel: #1d1916;
    --hub-border: #352e27;
    --hub-text: #faf5ef;
    --hub-muted: #b5a89a;
    background-color: #14110e !important;
    background-image:
      radial-gradient(circle at 18% 8%, rgba(232, 93, 4, 0.14), transparent 44%),
      radial-gradient(circle at 84% 14%, rgba(245, 158, 11, 0.09), transparent 42%),
      linear-gradient(180deg, #1b1714 0%, #120f0d 100%) !important;
    color: #faf5ef;
  }

  body.hub-saas .stage__wash,
  body.hub-saas .stage__beam,
  body.hub-saas .stage__grid,
  body.hub-saas .stage__insignia {
    opacity: 0.08 !important;
  }

  html[data-k697-theme="dark"] body.hub-saas .stage__wash,
  html[data-k697-theme="dark"] body.hub-saas .stage__beam {
    opacity: 0.2 !important;
  }

  body.hub-saas .gate {
    gap: clamp(1.5rem, 3.2vw, 2.25rem);
    width: min(100% - 28px, 1040px);
    padding-block: clamp(2rem, 5vh, 3.25rem) 1.5rem;
  }

  body.hub-saas .mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 38rem;
  }

  body.hub-saas .mark__brand {
    margin: 0 !important;
    font-family: "Tajawal", sans-serif !important;
    font-weight: 900 !important;
    font-size: clamp(1.75rem, 4.2vw, 2.45rem) !important;
    line-height: 1.25 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    color: #171412 !important;
    -webkit-text-fill-color: #171412 !important;
    filter: none !important;
  }

  html[data-k697-theme="dark"] body.hub-saas .mark__brand {
    color: #faf5ef !important;
    -webkit-text-fill-color: #faf5ef !important;
  }

  body.hub-saas .mark__line {
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #574f47 !important;
    line-height: 1.5 !important;
  }

  html[data-k697-theme="dark"] body.hub-saas .mark__line {
    color: #cfc3b5 !important;
  }

  body.hub-saas .mark__status {
    margin: 4px 0 0 !important;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(232, 93, 4, 0.10);
    border: 1px solid rgba(232, 93, 4, 0.24);
    font-size: 0.8rem !important;
    letter-spacing: 0.03em !important;
    font-weight: 700 !important;
    color: #b44703 !important;
  }

  html[data-k697-theme="dark"] body.hub-saas .mark__status {
    background: rgba(232, 93, 4, 0.16);
    border-color: rgba(232, 93, 4, 0.34);
    color: #fdba74 !important;
  }

  /* Main gateway card */
  body.hub-saas .hub-enter {
    max-width: 620px;
    padding: 26px 26px 22px;
    border-radius: 20px;
    border: 1px solid #e2d8cc;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 18px 42px -18px rgba(23, 20, 18, 0.14), 0 2px 6px rgba(23, 20, 18, 0.04);
  }

  html[data-k697-theme="dark"] body.hub-saas .hub-enter {
    border-color: #352e27;
    background: #1d1916;
    box-shadow: 0 20px 48px -18px rgba(0, 0, 0, 0.55);
  }

  body.hub-saas .hub-enter__title {
    margin: 0 0 14px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #171412;
  }

  html[data-k697-theme="dark"] body.hub-saas .hub-enter__title {
    color: #faf5ef;
  }

  /* Balanced 2-column responsive grid for tenant cards */
  body.hub-saas .tenant-pick__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.hub-saas .tenant-pick__form {
    display: flex;
    margin: 0;
  }

  body.hub-saas button[type="submit"].tenant-pick__btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-height: 96px;
    padding: 16px 18px;
    border-radius: 14px !important;
    border: 1px solid #e2d8cc !important;
    background: #faf7f2 !important;
    color: #171412 !important;
    font-weight: 700 !important;
    text-align: start;
    box-shadow: 0 2px 6px rgba(23, 20, 18, 0.04) !important;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  }

  html[data-k697-theme="dark"] body.hub-saas button[type="submit"].tenant-pick__btn {
    border-color: #352e27 !important;
    background: #25201c !important;
    color: #faf5ef !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  }

  body.hub-saas button[type="submit"].tenant-pick__btn:hover,
  body.hub-saas button[type="submit"].tenant-pick__btn:focus-visible {
    transform: translateY(-2px);
    border-color: var(--masar-accent, #e85d04) !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px -12px rgba(232, 93, 4, 0.35), 0 0 0 2px rgba(232, 93, 4, 0.14) !important;
    outline: none;
  }

  html[data-k697-theme="dark"] body.hub-saas button[type="submit"].tenant-pick__btn:hover,
  html[data-k697-theme="dark"] body.hub-saas button[type="submit"].tenant-pick__btn:focus-visible {
    background: #2c2621 !important;
    border-color: #fb923c !important;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(251, 146, 60, 0.2) !important;
  }

  body.hub-saas .tenant-pick__btn strong {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    color: #171412;
  }

  html[data-k697-theme="dark"] body.hub-saas .tenant-pick__btn strong {
    color: #faf5ef;
  }

  body.hub-saas .tenant-pick__code {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #574f47;
    background: rgba(23, 20, 18, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
    opacity: 1;
    letter-spacing: 0.03em;
  }

  html[data-k697-theme="dark"] body.hub-saas .tenant-pick__code {
    color: #cfc3b5;
    background: rgba(255, 255, 255, 0.08);
  }

  body.hub-saas .tenant-pick__btn::after {
    content: "دخول الكتيبة ←";
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
    color: #c2410c;
    opacity: 1;
  }

  html[data-k697-theme="dark"] body.hub-saas .tenant-pick__btn::after {
    color: #fb923c;
  }

  /* Divider */
  body.hub-saas .hub-enter__sep {
    margin: 20px 0;
    color: #6b635b;
    font-size: 0.82rem;
    font-weight: 700;
  }

  body.hub-saas .hub-enter__sep::before,
  body.hub-saas .hub-enter__sep::after {
    background: #e2d8cc;
  }

  html[data-k697-theme="dark"] body.hub-saas .hub-enter__sep {
    color: #948a7e;
  }

  html[data-k697-theme="dark"] body.hub-saas .hub-enter__sep::before,
  html[data-k697-theme="dark"] body.hub-saas .hub-enter__sep::after {
    background: #352e27;
  }

  /* Private-code input + button row */
  body.hub-saas .tenant-code__row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: flex-end;
  }

  body.hub-saas .tenant-code__field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a433c;
    margin-bottom: 6px;
  }

  html[data-k697-theme="dark"] body.hub-saas .tenant-code__field label {
    color: #d6cbc0;
  }

  body.hub-saas .tenant-code__field input {
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1.5px solid #d3c6b5;
    background: #faf7f2;
    color: #171412;
    font-size: 0.96rem;
    font-weight: 600;
  }

  body.hub-saas .tenant-code__field input::placeholder {
    color: #84786c;
    opacity: 1;
  }

  body.hub-saas .tenant-code__field input:focus {
    border-color: var(--masar-accent, #e85d04);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.16);
  }

  html[data-k697-theme="dark"] body.hub-saas .tenant-code__field input {
    border-color: #473d34;
    background: #14110e;
    color: #faf5ef;
  }

  html[data-k697-theme="dark"] body.hub-saas .tenant-code__field input::placeholder {
    color: #948a7e;
  }

  html[data-k697-theme="dark"] body.hub-saas .tenant-code__field input:focus {
    border-color: #fb923c;
    background: #191512;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
  }

  body.hub-saas button[type="submit"].tenant-code__go {
    height: 48px;
    min-height: 48px;
    min-width: 112px;
    padding: 0 22px;
    border-radius: 12px !important;
    border: 1px solid var(--masar-accent-dark, #cf5002) !important;
    background: var(--masar-accent, #e85d04) !important;
    color: #ffffff !important;
    font-size: 0.96rem;
    font-weight: 800 !important;
    box-shadow: 0 6px 16px -6px rgba(232, 93, 4, 0.5);
    transition: background-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  }

  body.hub-saas button[type="submit"].tenant-code__go:hover,
  body.hub-saas button[type="submit"].tenant-code__go:focus-visible {
    background: var(--masar-accent-dark, #cf5002) !important;
    filter: none;
    box-shadow: 0 8px 20px -6px rgba(232, 93, 4, 0.6);
  }

  body.hub-saas .tenant-code__hint {
    margin: 14px 0 0;
    font-size: 0.85rem;
    line-height: 1.65;
    font-weight: 500;
    color: #574f47;
  }

  html[data-k697-theme="dark"] body.hub-saas .tenant-code__hint {
    color: #b5a89a;
  }

  body.hub-saas .tenant-code__err {
    color: #b91c1c;
  }

  html[data-k697-theme="dark"] body.hub-saas .tenant-code__err {
    color: #fca5a5;
  }

  html:not([data-k697-theme="dark"]) body.hub-saas .hub-flash__item--warn {
    background: #fef3c7 !important;
    border-color: rgba(217, 119, 6, 0.42) !important;
    color: #92400e !important;
  }

  html:not([data-k697-theme="dark"]) body.hub-saas .hub-flash__item--danger {
    background: #fee2e2 !important;
    border-color: rgba(220, 38, 38, 0.38) !important;
    color: #991b1b !important;
  }

  /* Tenant bar & portal tiles (after selecting a tenant) & footer */
  body.hub-saas .tenant-bar,
  body.hub-saas .hub-enter-card,
  body.hub-saas .portal-card,
  body.hub-saas .tile,
  body.hub-saas .tenant-card {
    background: #ffffff !important;
    border: 1px solid #e2d8cc !important;
    box-shadow: 0 8px 24px -12px rgba(23, 20, 18, 0.10) !important;
    color: #171412 !important;
  }

  body.hub-saas .tile__name,
  body.hub-saas .portal-card__name {
    color: #171412 !important;
  }

  body.hub-saas .tile__desc,
  body.hub-saas .portal-card__desc {
    color: #574f47 !important;
  }

  body.hub-saas .tile__icon {
    background: #faf7f2 !important;
    border-color: #e2d8cc !important;
  }

  html[data-k697-theme="dark"] body.hub-saas .tenant-bar,
  html[data-k697-theme="dark"] body.hub-saas .hub-enter-card,
  html[data-k697-theme="dark"] body.hub-saas .portal-card,
  html[data-k697-theme="dark"] body.hub-saas .tile,
  html[data-k697-theme="dark"] body.hub-saas .tenant-card {
    background: #1d1916 !important;
    border-color: #352e27 !important;
    box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.5) !important;
    color: #faf5ef !important;
  }

  html[data-k697-theme="dark"] body.hub-saas .tile__name,
  html[data-k697-theme="dark"] body.hub-saas .portal-card__name {
    color: #faf5ef !important;
  }

  html[data-k697-theme="dark"] body.hub-saas .tile__desc,
  html[data-k697-theme="dark"] body.hub-saas .portal-card__desc {
    color: #b5a89a !important;
  }

  html[data-k697-theme="dark"] body.hub-saas .tile__icon {
    background: #25201c !important;
    border-color: #352e27 !important;
  }

  body.hub-saas .colophon {
    color: #6b635b;
  }

  html[data-k697-theme="dark"] body.hub-saas .colophon {
    color: #948a7e;
  }

  @media (max-width: 560px) {
    body.hub-saas .gate {
      width: min(100% - 20px, 1040px);
      padding-block: 1.5rem 1rem;
    }

    body.hub-saas .hub-enter {
      padding: 18px 16px 16px;
      border-radius: 16px;
    }

    body.hub-saas .tenant-pick__grid {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    body.hub-saas button[type="submit"].tenant-pick__btn {
      min-height: 78px;
      padding: 14px 16px;
    }

    body.hub-saas .tenant-code__row {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
    }

    body.hub-saas button[type="submit"].tenant-code__go {
      width: 100%;
    }
  }

  /* ---------- 7) Executive Checklist Card (.m-checklist) ---------- */
  .m-checklist {
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--masar-paper, #ffffff);
    border: 1px solid var(--masar-border, #e2d8cc);
    margin: 0 0 16px;
  }

  .m-checklist__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--masar-border, #e2d8cc) 80%, transparent);
  }

  .m-checklist__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--masar-ink, #171412);
  }

  .m-checklist__sub {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--masar-muted, #6b635b);
  }

  .m-checklist__pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }

  .m-checklist__pill.is-ok {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.28);
  }

  .m-checklist__pill.is-warn {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.30);
  }

  html[data-k697-theme="dark"] .m-checklist__pill.is-ok { color: #86efac; }
  html[data-k697-theme="dark"] .m-checklist__pill.is-warn { color: #fcd34d; }

  .m-checklist__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .m-checklist__item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--masar-inset, #faf7f2);
    border: 1px solid var(--masar-border, #e2d8cc);
  }

  .m-checklist__item.is-err {
    border-color: rgba(220, 38, 38, 0.34);
    background: color-mix(in srgb, #dc2626 6%, var(--masar-inset, #faf7f2));
  }

  .m-checklist__item.is-warn {
    border-color: rgba(217, 119, 6, 0.34);
    background: color-mix(in srgb, #d97706 6%, var(--masar-inset, #faf7f2));
  }

  .m-checklist__mark {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    flex-shrink: 0;
  }

  .m-checklist__item.is-ok .m-checklist__mark {
    background: rgba(22, 163, 74, 0.16);
    color: #15803d;
  }

  .m-checklist__item.is-warn .m-checklist__mark {
    background: rgba(217, 119, 6, 0.18);
    color: #b45309;
  }

  .m-checklist__item.is-err .m-checklist__mark {
    background: rgba(220, 38, 38, 0.16);
    color: #b91c1c;
  }

  html[data-k697-theme="dark"] .m-checklist__item.is-ok .m-checklist__mark { color: #86efac; }
  html[data-k697-theme="dark"] .m-checklist__item.is-warn .m-checklist__mark { color: #fcd34d; }
  html[data-k697-theme="dark"] .m-checklist__item.is-err .m-checklist__mark { color: #fca5a5; }

  .m-checklist__body {
    flex: 1 1 auto;
    min-width: 0;
  }

  .m-checklist__label {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--masar-ink, #171412);
  }

  .m-checklist__hint {
    margin-top: 2px;
    font-size: 12px;
    color: var(--masar-muted, #6b635b);
  }

  .m-checklist__cta {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* ---------- 8) Month-over-Month Delta Badge (.m-mom) ---------- */
  .m-mom {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
    white-space: nowrap;
  }

  .m-mom.is-good {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.25);
  }

  .m-mom.is-bad {
    background: rgba(220, 38, 38, 0.11);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.26);
  }

  .m-mom.is-flat {
    background: rgba(107, 99, 91, 0.12);
    color: var(--masar-muted, #6b635b);
    border: 1px solid var(--masar-border, #e2d8cc);
  }

  html[data-k697-theme="dark"] .m-mom.is-good { color: #86efac; }
  html[data-k697-theme="dark"] .m-mom.is-bad { color: #fca5a5; }
  html[data-k697-theme="dark"] .m-mom.is-flat { color: #cfc3b5; }

  .m-mom__lbl {
    font-weight: 600;
    opacity: 0.85;
  }

  /* ---------- 9) Executive Empty State (.m-empty) ---------- */
  .m-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px;
    border-radius: 14px;
    border: 1px dashed var(--masar-border-strong, #d3c6b5);
    background: var(--masar-inset, #faf7f2);
    margin: 10px 0;
  }

  .m-empty__ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: var(--masar-accent-soft, rgba(232, 93, 4, 0.10));
    color: var(--masar-accent, #e85d04);
  }

  .m-empty__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--masar-ink, #171412);
  }

  .m-empty__desc {
    margin: 6px 0 0;
    max-width: 420px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--masar-muted, #6b635b);
  }

  .m-empty__cta {
    margin-top: 14px;
  }

  /* ---------- 10) Accessible RTL Slide-Over Drawer (.m-drawer) ---------- */
  .m-drawer {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    justify-content: flex-end;
  }

  .m-drawer[hidden] {
    display: none;
  }

  .m-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 20, 18, 0.48);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .m-drawer.is-open .m-drawer__backdrop {
    opacity: 1;
  }

  .m-drawer__panel {
    position: relative;
    z-index: 1;
    width: min(var(--drawer-width, 460px), 100vw);
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--masar-paper, #ffffff);
    color: var(--masar-ink, #171412);
    border-inline-start: 1px solid var(--masar-border, #e2d8cc);
    box-shadow: -12px 0 36px rgba(23, 20, 18, 0.22);
    transform: translateX(-100%);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html[dir="ltr"] .m-drawer__panel {
    transform: translateX(100%);
  }

  .m-drawer.is-open .m-drawer__panel {
    transform: translateX(0);
  }

  .m-drawer__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--masar-border, #e2d8cc);
    background: var(--masar-inset, #faf7f2);
  }

  .m-drawer__titles {
    min-width: 0;
    flex: 1 1 auto;
  }

  .m-drawer__title {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--masar-ink, #171412);
    line-height: 1.35;
  }

  .m-drawer__sub {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--masar-muted, #6b635b);
  }

  .m-drawer__close {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--masar-border, #e2d8cc);
    background: var(--masar-paper, #ffffff);
    color: var(--masar-ink, #171412);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .m-drawer__close:hover {
    border-color: var(--masar-accent, #e85d04);
    color: var(--masar-accent, #e85d04);
  }

  .m-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px;
  }

  .m-drawer__foot {
    padding: 12px 18px;
    border-top: 1px solid var(--masar-border, #e2d8cc);
    background: var(--masar-inset, #faf7f2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  /* ---------- 11) Unified Palette Live Search Groups ---------- */
  .k697-palette__group {
    padding: 7px 14px 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--masar-muted, #6b635b);
    border-top: 1px solid color-mix(in srgb, var(--masar-border, #e2d8cc) 65%, transparent);
    margin-top: 4px;
  }

  .k697-palette__group:first-child {
    border-top: 0;
    margin-top: 0;
  }

  .k697-palette__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .k697-palette__sub {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--masar-muted, #6b635b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .k697-palette__item.is-quick .k697-palette__label {
    color: var(--masar-accent, #e85d04);
    font-weight: 800;
  }

  .k697-palette__status {
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--masar-muted, #6b635b);
    text-align: center;
  }

  @media (max-width: 600px) {
    .m-checklist__item {
      flex-wrap: wrap;
    }
    .m-checklist__cta {
      width: 100%;
      justify-content: center;
    }
  }

  /* ---------- 12) Auto-Save Drafts Banner, Pill & Offline Toast (.k697-draft-bar) ---------- */
  .k697-draft-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    padding: 11px 14px;
    margin: 0 0 14px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--masar-accent, #e85d04) 36%, var(--masar-border, #e2d8cc));
    border-inline-start: 4px solid var(--masar-accent, #e85d04);
    background: color-mix(in srgb, var(--masar-accent, #e85d04) 7%, var(--masar-paper, #ffffff));
    color: var(--masar-ink, #171412);
    box-shadow: 0 6px 18px -12px rgba(23, 20, 18, 0.18);
  }

  html[data-k697-theme="dark"] .k697-draft-bar {
    background: color-mix(in srgb, var(--masar-accent, #e85d04) 14%, var(--masar-paper, #1d1916));
    border-color: color-mix(in srgb, var(--masar-accent, #e85d04) 44%, var(--masar-border, #352e27));
    color: var(--masar-ink, #faf5ef);
  }

  .k697-draft-bar__info {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1 1 220px;
  }

  .k697-draft-bar__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--masar-accent, #e85d04);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--masar-accent, #e85d04) 24%, transparent);
    flex-shrink: 0;
  }

  .k697-draft-bar__msg {
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.45;
  }

  .k697-draft-bar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
  }

  .k697-draft-bar__btn {
    appearance: none;
    border-radius: 9px;
    padding: 6px 13px;
    min-height: 34px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  }

  .k697-draft-bar__btn--restore {
    border: 1px solid var(--masar-accent-dark, #cf5002);
    background: var(--masar-accent, #e85d04);
    color: #ffffff;
  }

  .k697-draft-bar__btn--restore:hover,
  .k697-draft-bar__btn--restore:focus-visible {
    background: var(--masar-accent-dark, #cf5002);
    transform: translateY(-1px);
  }

  .k697-draft-bar__btn--dismiss {
    border: 1px solid var(--masar-border-strong, #d3c6b5);
    background: var(--masar-paper, #ffffff);
    color: var(--masar-muted, #6b635b);
  }

  .k697-draft-bar__btn--dismiss:hover,
  .k697-draft-bar__btn--dismiss:focus-visible {
    border-color: var(--masar-ink, #171412);
    color: var(--masar-ink, #171412);
  }

  html[data-k697-theme="dark"] .k697-draft-bar__btn--dismiss {
    background: var(--masar-inset, #25201c);
    border-color: var(--masar-border, #352e27);
    color: #cfc3b5;
  }

  .k697-draft-pill {
    position: fixed;
    inset-block-end: 18px;
    inset-inline-start: 18px;
    z-index: 9500;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: var(--masar-paper, #ffffff);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.34);
    box-shadow: 0 8px 24px -10px rgba(23, 20, 18, 0.25);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .k697-draft-pill.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  html[data-k697-theme="dark"] .k697-draft-pill {
    background: #1d1916;
    color: #86efac;
    border-color: rgba(134, 239, 172, 0.32);
  }

  .k697-draft-offline {
    position: fixed;
    inset-block-start: 14px;
    inset-inline-start: 50%;
    transform: translateX(-50%) translateY(-16px);
    z-index: 9600;
    max-width: calc(100vw - 28px);
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    background: #78350f;
    color: #fef3c7;
    border: 1px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .k697-draft-offline.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .k697-draft-offline.is-online {
    background: #14532d;
    color: #dcfce7;
    border-color: rgba(34, 197, 94, 0.45);
  }

  @media (max-width: 767px) {
    .k697-draft-bar {
      padding: 10px 12px;
      gap: 9px;
    }
    .k697-draft-bar__actions {
      width: 100%;
    }
    .k697-draft-bar__btn {
      flex: 1 1 auto;
      text-align: center;
    }
    .k697-draft-pill {
      inset-block-end: 74px;
      inset-inline-start: 12px;
    }
  }

  /* ========================================================================
     13) Executive Dossier Hero (.m-hero--dossier), Live Pill & Spotlight Card
     ======================================================================== */
  .m-hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 6px;
  }

  .m-hero__eyebrow .m-hero__kicker {
    margin-bottom: 0;
  }

  .m-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    background: color-mix(in srgb, #16a34a 12%, var(--masar-paper, #ffffff));
    border: 1px solid color-mix(in srgb, #16a34a 32%, transparent);
    color: #15803d;
    line-height: 1.4;
    white-space: nowrap;
  }

  html[data-k697-theme="dark"] .m-live-pill {
    background: color-mix(in srgb, #22c55e 16%, var(--masar-paper, #1d1916));
    border-color: color-mix(in srgb, #22c55e 34%, transparent);
    color: #86efac;
  }

  .m-live-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
    animation: k697LivePulse 2.2s ease-out infinite;
    flex-shrink: 0;
  }

  html[data-k697-theme="dark"] .m-live-pill__dot {
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  }

  @keyframes k697LivePulse {
    0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.52); }
    70%  { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
  }

  .m-hero--dossier {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.95fr);
    align-items: stretch;
    gap: 18px 22px;
    padding: 20px 22px;
  }

  .m-hero--dossier .m-hero__main {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .m-hero--dossier .m-hero__actions {
    margin-top: 14px;
  }

  .m-spotlight {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--masar-paper, #ffffff);
    border: 1px solid var(--masar-border, #e2d8cc);
    border-inline-start: 4px solid var(--masar-accent, #e85d04);
    box-shadow: 0 6px 20px -14px rgba(23, 20, 18, 0.16);
    min-width: 0;
  }

  .m-spotlight.is-ok,
  .m-spotlight.is-live {
    border-inline-start-color: #16a34a;
  }

  .m-spotlight.is-warn {
    border-inline-start-color: #d97706;
  }

  .m-spotlight.is-danger {
    border-inline-start-color: #dc2626;
  }

  .m-spotlight.is-info {
    border-inline-start-color: #0284c7;
  }

  html[data-k697-theme="dark"] .m-spotlight {
    background: color-mix(in srgb, var(--masar-inset, #25201c) 82%, var(--masar-paper, #1d1916));
    border-color: var(--masar-border, #352e27);
    box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.55);
  }

  .m-spotlight__label {
    font-size: 12px;
    font-weight: 800;
    color: var(--masar-muted, #6b635b);
  }

  .m-spotlight__val {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    font-variant-numeric: tabular-nums lining-nums;
    line-height: 1.15;
  }

  .m-spotlight__num {
    font-size: clamp(1.55rem, 2.8vw, 2.05rem);
    font-weight: 900;
    color: var(--masar-ink, #171412);
    letter-spacing: -0.02em;
  }

  .m-spotlight.is-ok .m-spotlight__num,
  .m-spotlight.is-live .m-spotlight__num { color: #15803d; }
  .m-spotlight.is-warn .m-spotlight__num { color: #b45309; }
  .m-spotlight.is-danger .m-spotlight__num { color: #b91c1c; }

  html[data-k697-theme="dark"] .m-spotlight.is-ok .m-spotlight__num,
  html[data-k697-theme="dark"] .m-spotlight.is-live .m-spotlight__num { color: #86efac; }
  html[data-k697-theme="dark"] .m-spotlight.is-warn .m-spotlight__num { color: #fcd34d; }
  html[data-k697-theme="dark"] .m-spotlight.is-danger .m-spotlight__num { color: #fca5a5; }

  .m-spotlight__unit {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--masar-muted, #6b635b);
  }

  .m-spotlight__sub {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--masar-muted, #6b635b);
    line-height: 1.45;
  }

  .m-spot-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 6px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, var(--masar-border, #e2d8cc) 80%, transparent);
  }

  .m-spot-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 9px;
    background: var(--masar-inset, #faf7f2);
    border: 1px solid var(--masar-border, #e2d8cc);
    min-width: 0;
  }

  .m-spot-chip.is-ok,
  .m-spot-chip.is-live {
    background: color-mix(in srgb, #16a34a 8%, var(--masar-paper, #ffffff));
    border-color: rgba(22, 163, 74, 0.24);
  }

  .m-spot-chip.is-warn {
    background: color-mix(in srgb, #d97706 9%, var(--masar-paper, #ffffff));
    border-color: rgba(217, 119, 6, 0.28);
  }

  .m-spot-chip.is-danger {
    background: color-mix(in srgb, #dc2626 8%, var(--masar-paper, #ffffff));
    border-color: rgba(220, 38, 38, 0.26);
  }

  html[data-k697-theme="dark"] .m-spot-chip {
    background: var(--masar-paper, #1d1916);
    border-color: var(--masar-border, #352e27);
  }

  .m-spot-chip__lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--masar-muted, #6b635b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .m-spot-chip__val {
    font-size: 13px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: var(--masar-ink, #171412);
  }

  .m-spot-chip.is-ok .m-spot-chip__val,
  .m-spot-chip.is-live .m-spot-chip__val { color: #15803d; }
  .m-spot-chip.is-warn .m-spot-chip__val { color: #b45309; }
  .m-spot-chip.is-danger .m-spot-chip__val { color: #b91c1c; }

  html[data-k697-theme="dark"] .m-spot-chip.is-ok .m-spot-chip__val,
  html[data-k697-theme="dark"] .m-spot-chip.is-live .m-spot-chip__val { color: #86efac; }
  html[data-k697-theme="dark"] .m-spot-chip.is-warn .m-spot-chip__val { color: #fcd34d; }
  html[data-k697-theme="dark"] .m-spot-chip.is-danger .m-spot-chip__val { color: #fca5a5; }

  @media (max-width: 960px) {
    .m-hero--dossier {
      grid-template-columns: 1fr;
      padding: 16px 16px;
      gap: 14px;
    }
  }

  /* ========================================================================
     14) Interactive KPI Strip (.m-kpi-strip & .m-kpi-card)
     ======================================================================== */
  .m-kpi-strip {
    display: grid;
    grid-template-columns: repeat(var(--m-kpi-cols, 4), minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
  }

  .m-kpi-card {
    --kpi-tone: var(--masar-accent, #e85d04);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 14px;
    background: var(--masar-paper, #ffffff);
    border: 1px solid var(--masar-border, #e2d8cc);
    box-shadow: var(--masar-shadow-sm, 0 2px 10px rgba(23, 20, 18, 0.05));
    color: var(--masar-ink, #171412);
    text-decoration: none;
    min-width: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .m-kpi-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--kpi-tone) 42%, var(--masar-border, #e2d8cc));
    box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--kpi-tone) 32%, rgba(23, 20, 18, 0.20));
  }

  .m-kpi-card.is-ok,
  .m-kpi-card.is-live   { --kpi-tone: #16a34a; }
  .m-kpi-card.is-warn   { --kpi-tone: #d97706; }
  .m-kpi-card.is-danger { --kpi-tone: #dc2626; }
  .m-kpi-card.is-info   { --kpi-tone: #0284c7; }
  .m-kpi-card.is-muted  { --kpi-tone: #78716c; }

  .m-kpi-card__ico {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--kpi-tone) 12%, var(--masar-paper, #ffffff));
    color: var(--kpi-tone);
    border: 1px solid color-mix(in srgb, var(--kpi-tone) 24%, transparent);
  }

  html[data-k697-theme="dark"] .m-kpi-card__ico {
    background: color-mix(in srgb, var(--kpi-tone) 18%, var(--masar-paper, #1d1916));
    border-color: color-mix(in srgb, var(--kpi-tone) 34%, transparent);
  }

  .m-kpi-card__ico svg {
    width: 20px;
    height: 20px;
  }

  .m-kpi-card__body {
    min-width: 0;
    flex: 1 1 auto;
  }

  .m-kpi-card__label {
    font-size: 12px;
    font-weight: 800;
    color: var(--masar-muted, #6b635b);
    line-height: 1.35;
  }

  .m-kpi-card__val {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 3px;
    font-variant-numeric: tabular-nums lining-nums;
  }

  .m-kpi-card__num {
    font-size: clamp(1.18rem, 1.8vw, 1.46rem);
    font-weight: 900;
    color: var(--masar-ink, #171412);
    line-height: 1.2;
  }

  .m-kpi-card__unit {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--masar-muted, #6b635b);
  }

  .m-kpi-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
  }

  .m-kpi-card__sub {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--masar-muted, #6b635b);
    line-height: 1.35;
  }

  @media (max-width: 1100px) {
    .m-kpi-strip {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 480px) {
    .m-kpi-strip {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
    }

    .m-kpi-card {
      padding: 11px 11px;
      gap: 9px;
    }

    .m-kpi-card__ico {
      width: 34px;
      height: 34px;
      border-radius: 9px;
    }

    .m-kpi-card__ico svg {
      width: 17px;
      height: 17px;
    }

    .m-kpi-card__num {
      font-size: 1.08rem;
    }
  }

  /* ========================================================================
     15) Compact Financial Summary Strip (.m-fin-strip)
     ======================================================================== */
  .m-fin-strip {
    display: grid;
    grid-template-columns: repeat(var(--m-fin-cols, 4), minmax(0, 1fr));
    margin: 0 0 14px;
    border-radius: 13px;
    background: var(--masar-paper, #ffffff);
    border: 1px solid var(--masar-border, #e2d8cc);
    box-shadow: var(--masar-shadow-xs, 0 1px 2px rgba(23, 20, 18, 0.04));
    overflow: hidden;
  }

  .m-fin-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 15px;
    border-inline-end: 1px solid color-mix(in srgb, var(--masar-border, #e2d8cc) 80%, transparent);
    min-width: 0;
  }

  .m-fin-cell:last-child {
    border-inline-end: 0;
  }

  .m-fin-cell__label {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--masar-muted, #6b635b);
  }

  .m-fin-cell__val {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 1.12rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums lining-nums;
    color: var(--masar-ink, #171412);
    line-height: 1.25;
  }

  .m-fin-cell.is-ok .m-fin-cell__val,
  .m-fin-cell.is-live .m-fin-cell__val   { color: #15803d; }
  .m-fin-cell.is-warn .m-fin-cell__val   { color: #b45309; }
  .m-fin-cell.is-danger .m-fin-cell__val { color: #b91c1c; }
  .m-fin-cell.is-accent .m-fin-cell__val { color: var(--masar-accent-dark, var(--masar-accent, #e85d04)); }

  html[data-k697-theme="dark"] .m-fin-cell.is-ok .m-fin-cell__val,
  html[data-k697-theme="dark"] .m-fin-cell.is-live .m-fin-cell__val   { color: #86efac; }
  html[data-k697-theme="dark"] .m-fin-cell.is-warn .m-fin-cell__val   { color: #fcd34d; }
  html[data-k697-theme="dark"] .m-fin-cell.is-danger .m-fin-cell__val { color: #fca5a5; }
  html[data-k697-theme="dark"] .m-fin-cell.is-accent .m-fin-cell__val { color: var(--masar-accent-light, #fdba74); }

  .m-fin-cell__unit {
    font-size: 11px;
    font-weight: 700;
    color: var(--masar-muted, #6b635b);
  }

  .m-fin-cell__sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--masar-muted, #6b635b);
  }

  @media (max-width: 768px) {
    .m-fin-strip {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .m-fin-cell {
      padding: 10px 12px;
      border-bottom: 1px solid color-mix(in srgb, var(--masar-border, #e2d8cc) 80%, transparent);
    }

    .m-fin-cell:nth-child(2n) {
      border-inline-end: 0;
    }

    .m-fin-cell:nth-last-child(-n+2) {
      border-bottom: 0;
    }
  }

  /* ========================================================================
     16) Sticky Section Rail & Pill Bar (.m-rail-nav, .m-rail-bar, .m-rail-pill)
     ======================================================================== */
  .m-rail-nav {
    position: sticky;
    top: calc(var(--topbar-h, 58px) + 8px);
    z-index: 24;
    margin: 0 0 16px;
  }

  .m-rail-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 13px;
    background: rgba(255, 253, 249, 0.88);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid var(--masar-border, #e2d8cc);
    box-shadow: 0 6px 20px -14px rgba(23, 20, 18, 0.22);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .m-rail-bar::-webkit-scrollbar {
    display: none;
  }

  html[data-k697-theme="dark"] .m-rail-bar {
    background: rgba(29, 25, 22, 0.88);
    border-color: var(--masar-border, #352e27);
    box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.55);
  }

  .m-rail-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--masar-muted, #6b635b);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid transparent;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  }

  .m-rail-pill:hover {
    color: var(--masar-ink, #171412);
    background: var(--masar-accent-soft, rgba(232, 93, 4, 0.09));
  }

  .m-rail-pill.is-active {
    background: var(--masar-accent, #e85d04);
    color: #ffffff;
    border-color: var(--masar-accent-dark, #cf5002);
    box-shadow: 0 4px 12px -5px color-mix(in srgb, var(--masar-accent, #e85d04) 55%, transparent);
  }

  .m-rail-pill__ico {
    display: inline-flex;
    align-items: center;
    width: 15px;
    height: 15px;
  }

  .m-rail-pill__ico svg {
    width: 15px;
    height: 15px;
  }

  .m-rail-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 19px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: var(--masar-inset, #faf7f2);
    color: var(--masar-ink, #171412);
    border: 1px solid var(--masar-border, #e2d8cc);
  }

  .m-rail-pill.is-active .m-rail-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.30);
  }

  @media (min-width: 1040px) {
    .m-rail-nav--rail .m-rail-bar {
      flex-direction: column;
      align-items: stretch;
      padding: 8px;
      gap: 4px;
    }

    .m-rail-nav--rail .m-rail-pill {
      justify-content: space-between;
      width: 100%;
    }
  }

  /* ========================================================================
     17) Horizontal Stage Stepper (.m-stepper)
     ======================================================================== */
  .m-stepper {
    list-style: none;
    margin: 0 0 18px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    border-radius: 14px;
    background: var(--masar-paper, #ffffff);
    border: 1px solid var(--masar-border, #e2d8cc);
    box-shadow: var(--masar-shadow-xs, 0 1px 2px rgba(23, 20, 18, 0.04));
  }

  .m-step {
    min-width: 0;
  }

  .m-step__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 10px;
    background: var(--masar-inset, #faf7f2);
    border: 1px solid var(--masar-border, #e2d8cc);
    text-decoration: none;
    color: var(--masar-ink, #171412);
    height: 100%;
    transition: border-color 0.16s ease, background-color 0.16s ease;
  }

  .m-step.is-current .m-step__inner {
    background: color-mix(in srgb, var(--masar-accent, #e85d04) 9%, var(--masar-paper, #ffffff));
    border-color: color-mix(in srgb, var(--masar-accent, #e85d04) 44%, transparent);
  }

  .m-step.is-done .m-step__inner {
    background: color-mix(in srgb, #16a34a 7%, var(--masar-paper, #ffffff));
    border-color: rgba(22, 163, 74, 0.28);
  }

  html[data-k697-theme="dark"] .m-step.is-current .m-step__inner {
    background: color-mix(in srgb, var(--masar-accent, #f97316) 15%, var(--masar-paper, #1d1916));
  }

  html[data-k697-theme="dark"] .m-step.is-done .m-step__inner {
    background: color-mix(in srgb, #16a34a 14%, var(--masar-paper, #1d1916));
  }

  .m-step__dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    background: var(--masar-paper, #ffffff);
    color: var(--masar-muted, #6b635b);
    border: 1.5px solid var(--masar-border-strong, #d3c6b5);
  }

  .m-step.is-current .m-step__dot {
    background: var(--masar-accent, #e85d04);
    border-color: var(--masar-accent-dark, #cf5002);
    color: #ffffff;
  }

  .m-step.is-done .m-step__dot {
    background: #16a34a;
    border-color: #15803d;
    color: #ffffff;
  }

  .m-step__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .m-step__title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--masar-ink, #171412);
    line-height: 1.3;
  }

  .m-step__sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--masar-muted, #6b635b);
    margin-top: 2px;
  }

  /* ========================================================================
     18) Executive Vertical Timeline (.m-timeline)
     ======================================================================== */
  .m-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
  }

  .m-timeline::before {
    content: "";
    position: absolute;
    inset-block: 10px;
    inset-inline-start: 9px;
    width: 2px;
    background: var(--masar-border, #e2d8cc);
    border-radius: 99px;
  }

  .m-timeline__item {
    --tl-tone: var(--masar-accent, #e85d04);
    position: relative;
    padding-inline-start: 28px;
    padding-bottom: 12px;
  }

  .m-timeline__item:last-child {
    padding-bottom: 0;
  }

  .m-timeline__item.is-ok,
  .m-timeline__item.is-live   { --tl-tone: #16a34a; }
  .m-timeline__item.is-warn   { --tl-tone: #d97706; }
  .m-timeline__item.is-danger { --tl-tone: #dc2626; }
  .m-timeline__item.is-info   { --tl-tone: #0284c7; }
  .m-timeline__item.is-muted  { --tl-tone: #78716c; }

  .m-timeline__dot {
    position: absolute;
    inset-inline-start: 4px;
    top: 14px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--tl-tone);
    border: 2px solid var(--masar-paper, #ffffff);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--tl-tone) 26%, transparent);
  }

  .m-timeline__card {
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--masar-inset, #faf7f2);
    border: 1px solid var(--masar-border, #e2d8cc);
  }

  .m-timeline__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
  }

  .m-timeline__titles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }

  .m-timeline__title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--masar-ink, #171412);
  }

  .m-timeline__badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: color-mix(in srgb, var(--tl-tone) 12%, var(--masar-paper, #ffffff));
    color: var(--tl-tone);
    border: 1px solid color-mix(in srgb, var(--tl-tone) 26%, transparent);
  }

  html[data-k697-theme="dark"] .m-timeline__badge.is-ok,
  html[data-k697-theme="dark"] .m-timeline__badge.is-live   { color: #86efac; }
  html[data-k697-theme="dark"] .m-timeline__badge.is-warn   { color: #fcd34d; }
  html[data-k697-theme="dark"] .m-timeline__badge.is-danger { color: #fca5a5; }
  html[data-k697-theme="dark"] .m-timeline__badge.is-info   { color: #7dd3fc; }

  .m-timeline__time {
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--masar-muted, #6b635b);
  }

  .m-timeline__meta {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--masar-muted, #6b635b);
  }

  .m-timeline__body {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--masar-ink, #171412);
  }

  .m-timeline__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }

  /* ========================================================================
     19) Mobile 3-Metric Structured Card Utility (.m-mob-cards)
     ======================================================================== */
  .m-mob-cards {
    display: none;
  }

  @media (max-width: 768px) {
    .m-mob-cards {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .m-mob-card {
      padding: 12px 13px;
      border-radius: 13px;
      background: var(--masar-paper, #ffffff);
      border: 1px solid var(--masar-border, #e2d8cc);
      box-shadow: var(--masar-shadow-xs, 0 1px 2px rgba(23, 20, 18, 0.04));
    }

    .m-mob-card__head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 10px;
    }

    .m-mob-card__title {
      font-size: 14px;
      font-weight: 800;
      color: var(--masar-ink, #171412);
      min-width: 0;
    }

    .m-mob-grid-3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      padding: 8px;
      border-radius: 10px;
      background: var(--masar-inset, #faf7f2);
      border: 1px solid color-mix(in srgb, var(--masar-border, #e2d8cc) 75%, transparent);
    }

    .m-mob-metric {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .m-mob-metric__lbl {
      font-size: 10.5px;
      font-weight: 700;
      color: var(--masar-muted, #6b635b);
    }

    .m-mob-metric__val {
      font-size: 13px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      color: var(--masar-ink, #171412);
    }

    .m-mob-card__foot {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      margin-top: 10px;
      padding-top: 9px;
      border-top: 1px solid color-mix(in srgb, var(--masar-border, #e2d8cc) 75%, transparent);
    }
  }

  /* ========================================================================
     20) Floating Mobile Quick-Action Dock (.m-mobile-dock)
     ======================================================================== */
  .m-mobile-dock {
    display: none;
  }

  @media (max-width: 768px) {
    .m-mobile-dock {
      position: fixed;
      inset-inline: 10px;
      inset-block-end: calc(64px + env(safe-area-inset-bottom, 0px));
      z-index: 48;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      padding: 7px 8px;
      border-radius: 15px;
      background: rgba(255, 253, 249, 0.90);
      backdrop-filter: blur(18px) saturate(160%);
      -webkit-backdrop-filter: blur(18px) saturate(160%);
      border: 1px solid var(--masar-border-strong, #d3c6b5);
      box-shadow: 0 14px 32px -12px rgba(23, 20, 18, 0.30);
    }

    html[data-k697-theme="dark"] .m-mobile-dock {
      background: rgba(24, 20, 17, 0.92);
      border-color: var(--masar-border-strong, #473d34);
      box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.72);
    }

    .m-mobile-dock__btn {
      flex: 1 1 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      min-height: 40px;
      padding: 6px 8px;
      border-radius: 10px;
      border: 1px solid var(--masar-border, #e2d8cc);
      background: var(--masar-inset, #faf7f2);
      color: var(--masar-ink, #171412);
      font-family: inherit;
      font-size: 12px;
      font-weight: 800;
      text-decoration: none;
      cursor: pointer;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .m-mobile-dock__btn.is-primary {
      background: linear-gradient(135deg, var(--masar-accent-light, #f97316) 0%, var(--masar-accent, #e85d04) 100%);
      border-color: var(--masar-accent-dark, #cf5002);
      color: #ffffff;
    }

    .m-mobile-dock__ico {
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
    }

    .m-mobile-dock__ico svg {
      width: 15px;
      height: 15px;
    }

    body.has-mobile-dock {
      padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)) !important;
    }
  }

  /* ========================================================================
     21) Instant Copy Button (.m-copy-btn & .is-copied)
     ======================================================================== */
  .m-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    min-height: 30px;
    border-radius: 8px;
    border: 1px solid var(--masar-border-strong, #d3c6b5);
    background: var(--masar-inset, #faf7f2);
    color: var(--masar-ink, #171412);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  }

  .m-copy-btn:hover {
    background: var(--masar-accent-soft, rgba(232, 93, 4, 0.10));
    border-color: color-mix(in srgb, var(--masar-accent, #e85d04) 42%, transparent);
    color: var(--masar-accent-dark, var(--masar-accent, #e85d04));
  }

  .m-copy-btn.is-copied {
    background: rgba(22, 163, 74, 0.14) !important;
    border-color: rgba(22, 163, 74, 0.42) !important;
    color: #15803d !important;
  }

  html[data-k697-theme="dark"] .m-copy-btn.is-copied {
    background: rgba(34, 197, 94, 0.18) !important;
    border-color: rgba(74, 222, 128, 0.44) !important;
    color: #86efac !important;
  }

  @media (prefers-reduced-motion: reduce) {
    .m-live-pill__dot {
      animation: none !important;
    }

    .m-kpi-card:hover {
      transform: none !important;
    }
  }
}
