/* === original style block 1 === */
* { margin: 0; padding: 0; }

    html,
    body,
    button,
    input,
    textarea,
    select,
    table,
    th,
    td,
    label,
    div,
    span,
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      font-family: "Tajawal", Tahoma, Arial, sans-serif !important;
    }

    :root {
      --main-font: "Tajawal", Tahoma, Arial, sans-serif;
      --bg-1: #06111f;
      --bg-2: #0b1f39;
      --bg-3: #102b4d;
      --bg-4: #06101b;
      --card: rgba(8, 22, 42, 0.90);
      --card-2: rgba(14, 34, 66, 0.96);
      --border: rgba(255,255,255,0.10);
      --text: #ffffff;
      --text-soft: #e5eefc;
      --text-muted: #9eb6da;
      --primary: #1d5fb8;
      --primary-2: #123f7d;
      --danger: #9f2e3d;
      --danger-2: #7e1f2c;
      --success: #1f7a52;
      --success-2: #176142;
      --gold: #d8b25d;
      --shadow: 0 14px 35px rgba(0,0,0,0.30);
      --shadow-soft: 0 18px 40px rgba(0,0,0,0.22);
      --radius-xl: 28px;
      --radius-lg: 22px;
      --radius-md: 14px;
      --radius-sm: 10px;
    }

    body {
      min-height: 100vh;
      overflow-x: hidden;
    }

    .page { }
    img { max-width: 100%; height: auto; }
    .container { }

    
    .page { min-height: 100vh; padding: 0; }
    .container { width: 100%; max-width: 100%; margin: 0 auto; }

    .home-shell {
      display: flex;
      flex-direction: column;
      gap: 16px;
      width: 100%;
    }

    .home-hero {
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
        linear-gradient(180deg, rgba(8,25,48,0.96), rgba(10,29,57,0.96));
      border-top: 0;
      border-right: 0;
      border-left: 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      border-radius: 0;
      padding: 16px 24px 14px;
      box-shadow: none;
      width: 100%;
    }

    .home-hero::before {
      content: "";
      position: absolute;
      inset: auto -90px -90px auto;
      width: 240px;
      height: 240px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(216,178,93,0.16), transparent 70%);
      pointer-events: none;
    }

    .home-hero::after {
      content: "";
      position: absolute;
      inset: -80px auto auto -90px;
      width: 260px;
      height: 260px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(41,112,213,0.16), transparent 72%);
      pointer-events: none;
    }

    .home-hero-top {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 74px 1fr auto;
      gap: 14px;
      align-items: center;
    }

    .hero-logo-frame {
      width: 62px;
      height: 62px;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
      border: 1px solid rgba(255,255,255,0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: inset 0 0 24px rgba(255,255,255,0.04);
    }

    .hero-logo-frame img {
      width: 50px;
      height: 50px;
      object-fit: contain;
      display: block;
      filter: drop-shadow(0 4px 10px rgba(0,0,0,0.20));
    }

    .hero-title-wrap {
      text-align: center;
    }

    .hero-kicker {
      color: var(--gold);
      font-size: 20px;
      font-weight: 800;
      margin-bottom: 8px;
      letter-spacing: 0.3px;
    }

    .hero-title {
      font-size: clamp(22px, 3.2vw, 30px);
      font-weight: 800;
      line-height: 1.25;
      color: #f7fbff;
      margin-bottom: 8px;
    }

    .hero-subtitle {
      color: var(--text-muted);
      font-size: 13px;
      line-height: 1.9;
      max-width: 760px;
      margin: 0 auto;
    }

    .hero-side {
      display: flex;
      flex-direction: column;
      gap: 10px;
      align-items: stretch;
      min-width: 128px;
    }

    .header-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 14px 18px;
      box-shadow: var(--shadow-soft);
    }

    .main-header {
      display: grid;
      grid-template-columns: 84px 1fr auto;
      align-items: center;
      width: 100%;
      gap: 14px;
    }

    .header-logo-box {
      width: 50px;
      height: 50px;
      border-radius: 18px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      box-shadow: inset 0 0 18px rgba(255,255,255,0.04);
    }

    .header-logo-box img {
      width: 60px;
      height: 60px;
      object-fit: contain;
      display: block;
    }

    .header-title-wrap {
      text-align: center;
      min-width: 0;
    }

    .header-title {
      font-size: clamp(26px, 4.2vw, 36px);
      font-weight: 800;
      color: #ffffff;
      line-height: 1.3;
    }

    .header-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 999px;
      padding: 10px 14px;
      color: var(--text-soft);
      font-size: 13px;
      font-weight: 700;
      backdrop-filter: blur(8px);
    }

    .dot { width: 10px; height: 10px; border-radius: 50%; background: #a33; box-shadow: 0 0 0 4px rgba(163,51,51,0.15); }
    .dot.active { background: #26b56e; box-shadow: 0 0 0 4px rgba(38,181,110,0.16); }

    .btn {
      border: 1px solid rgba(255,255,255,0.08);
      color: #fff;
      border-radius: var(--radius-md);
      padding: 12px 16px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      min-height: 44px;
      transition: 0.2s ease;
      box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    }

    .btn:hover { transform: translateY(-1px); }
    .btn-primary { background: linear-gradient(145deg, var(--primary), var(--primary-2)); }
    .btn-danger { background: linear-gradient(145deg, var(--danger), var(--danger-2)); }
    .btn-success { background: linear-gradient(145deg, var(--success), var(--success-2)); }
    .btn-secondary { background: linear-gradient(145deg, rgba(58,81,117,0.9), rgba(26,41,68,0.9)); }

    .hero-side-compact {
      min-width: auto;
      align-items: flex-end;
      justify-content: center;
    }

    .btn-compact {
      min-height: 38px;
      padding: 9px 12px;
      font-size: 13px;
      border-radius: 12px;
      box-shadow: 0 6px 16px rgba(0,0,0,0.16);
    }

    .home-centers-card {
      --card-height: auto;
      --card-width: 100%;
      flex: 0 0 var(--card-width);
      max-width: var(--card-width);
      min-height: 220px;
      height: var(--card-height);
      position: relative;
      background: transparent;
      border: none;
      border-radius: 0;
      padding: 6px 18px 28px;
      box-shadow: none;
      margin: 0 18px 18px;
      width: 100%;
    }

    .home-centers-card.size-quarter { --card-width: calc(25% - 10.5px); }
    .home-centers-card.size-half { --card-width: calc(50% - 7px); }
    .home-centers-card.size-three-quarter { --card-width: calc(75% - 3.5px); }
    .home-centers-card.size-full { --card-width: 100%; }

    .home-card-resize-handle {
      position: absolute;
      left: 10px;
      bottom: 8px;
      width: 22px;
      height: 22px;
      border-radius: 8px;
      cursor: nwse-resize;
      border: 1px solid rgba(255,255,255,0.12);
      background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
      display: none;
      align-items: center;
      justify-content: center;
      user-select: none;
      touch-action: none;
    }

    .home-card-resize-handle::before {
      content: "";
      width: 20px;
      height: 12px;
      background: repeating-linear-gradient(135deg, rgba(255,255,255,0.75) 0 2px, transparent 2px 4px);
      opacity: 0.85;
      border-radius: 3px;
    }

    body.admin-mode .home-card-resize-handle { display: flex; }
    .home-centers-card.is-resizing { box-shadow: none; }

    .home-footer-note {
      width: 100%;
      text-align: left;
      color: var(--text-soft);
      margin-top: auto;
      padding: 18px 12px 28px;
      line-height: 2;
    }

    .home-footer-note .footer-line {
      display: block;
      font-size: 18px;
      font-weight: 700;
    }

    .home-footer-note .footer-line:first-child {
      margin-bottom: 20px;
    }

    .section-heading {
      text-align: center;
      margin-bottom: 18px;
    }

    .section-heading h2 {
      font-size: clamp(16px, 2vw, 21px);
      font-weight: 800;
      color: var(--gold);
      margin-bottom: 6px;
    }

    .section-heading p {
      color: var(--text-muted);
      font-size: 13px;
      line-height: 1.8;
    }

    .centers-grid {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
      max-width: 420px;
      margin: 44px auto 0;
    }

    .center-btn {
      width: 100%;
      border: 1px solid rgba(255,255,255,0.10);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
        linear-gradient(145deg, rgba(24,58,112,0.95), rgba(8,24,48,0.98));
      color: #fff;
      border-radius: 16px;
      padding: 14px 12px;
      font-size: clamp(15px, 1.7vw, 18px);
      font-weight: 800;
      cursor: pointer;
      box-shadow: var(--shadow);
      transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
      min-height: 54px;
      position: relative;
    }

    .center-btn::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, transparent, rgba(255,255,255,0.08), transparent);
      transform: translateX(-100%);
      transition: transform 0.45s ease;
    }

    .center-btn:hover::before {
      transform: translateX(100%);
    }

    .center-btn:hover {
      transform: translateY(-1px);
      border-color: rgba(216, 178, 93, 0.32);
      box-shadow: 0 18px 34px rgba(0,0,0,0.30);
    }

    .hidden { display: none !important; }

    .unified-header {
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
        linear-gradient(180deg, rgba(8,25,48,0.96), rgba(10,29,57,0.96));
      border-top: 0;
      border-right: 0;
      border-left: 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      border-radius: 0;
      padding: 16px 24px 14px;
      box-shadow: none;
      width: 100%;
      margin-bottom: 16px;
    }

    .unified-header::before {
      content: "";
      position: absolute;
      inset: auto -90px -90px auto;
      width: 220px;
      height: 220px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(216,178,93,0.14), transparent 70%);
      pointer-events: none;
    }

    .unified-header::after {
      content: "";
      position: absolute;
      inset: -80px auto auto -90px;
      width: 240px;
      height: 240px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(41,112,213,0.14), transparent 72%);
      pointer-events: none;
    }

    .unified-header-inner {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 14px;
      align-items: center;
      width: 100%;
    }

    .hero-logo-frame {
      grid-column: 3;
      grid-row: 1;
      justify-self: end;
    }

    .unified-header-title {
      grid-column: 2;
      grid-row: 1;
      text-align: center;
      justify-self: center;
      min-width: 0;
    }

    .unified-header-actions {
      grid-column: 1;
      grid-row: 1;
      justify-self: start;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
      align-items: center;
    }


    .banner-left-group {
      grid-column: 1;
      grid-row: 1;
      justify-self: start;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      min-width: 0;
    }

    .banner-left-logos {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: nowrap;
    }

    .banner-left-logo {
      width: 56px;
      height: 56px;
      object-fit: contain;
      display: block;
      filter: drop-shadow(0 4px 10px rgba(0,0,0,0.22));
    }

    .banner-left-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-start;
      align-items: center;
    }


    .unified-header-main {
      font-size: clamp(18px, 2.5vw, 24px);
      font-weight: 800;
      line-height: 1.3;
      color: #ffffff;
    }

    .unified-header-sub {
      color: #ffffff;
      font-size: clamp(22px, 2.6vw, 26px);
      font-weight: 800;
      margin-bottom: 8px;
      letter-spacing: 0.3px;
    }


    .btn-back {
      background: linear-gradient(145deg, rgba(58,81,117,0.9), rgba(26,41,68,0.9));
    }

    .unified-header-actions .btn-back.btn-compact {
      width: 42px;
      min-width: 42px;
      height: 42px;
      min-height: 42px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      line-height: 1;
      border-radius: 12px;
      flex: 0 0 42px;
    }

.center-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }

    .center-name { font-size: clamp(24px, 4vw, 30px); font-weight: 700; }
    .tables-grid { display: flex; flex-wrap: wrap; gap: 14px; width: 100%; align-items: flex-start; justify-content: center; }

    .card {
      --card-height: auto;
      --card-width: 100%;
      flex: 0 0 var(--card-width);
      max-width: var(--card-width);
      min-height: 220px;
      height: var(--card-height);
      position: relative;
    }

    .card.size-quarter { --card-width: calc(25% - 10.5px); }
    .card.size-half { --card-width: calc(50% - 7px); }
    .card.size-three-quarter { --card-width: calc(75% - 3.5px); }
    .card.size-full { --card-width: 100%; }

    .card {
      background: linear-gradient(180deg, var(--card-2), var(--card));
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 16px 16px 26px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .card-resize-handle {
      position: absolute;
      left: 10px;
      bottom: 8px;
      width: 22px;
      height: 22px;
      border-radius: 8px;
      cursor: nwse-resize;
      border: 1px solid rgba(255,255,255,0.12);
      background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
      display: flex;
      align-items: center;
      justify-content: center;
      user-select: none;
      touch-action: none;
    }

    .card-resize-handle::before {
      content: "";
      width: 20px;
      height: 12px;
      background: repeating-linear-gradient(135deg, rgba(255,255,255,0.75) 0 2px, transparent 2px 4px);
      opacity: 0.85;
      border-radius: 3px;
    }

    .card-size-badge {
      display: none;
      visibility: hidden;
      line-height: 0;

      align-items: center;
      justify-content: center;
      min-width: 58px;
      padding: 7px 10px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 700;
      color: var(--text-soft);
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.08);
    }

    .card.is-resizing {
      box-shadow: 0 0 0 2px rgba(216, 178, 93, 0.28), var(--shadow);
    }

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }

    .card-title { font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; color: #dce9ff; }
    .card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .small-btn { padding: 9px 12px; min-height: 38px; font-size: 13px; border-radius: 10px; }

    .table-wrap {
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      border-radius: 14px;
      scrollbar-width: thin;
    }

    table {
      min-width: 760px;
    }

    th, td {
      padding: 12px 10px;
      text-align: center;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      font-size: 13px;
      white-space: nowrap;
    }

    th { background: rgba(74,124,201,0.18); color: #eef5ff; font-weight: 700; }
    td { }
    tr:last-child td { border-bottom: none; }

    .editable-input {
      width: 100%;
      min-width: 110px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(255,255,255,0.06);
      color: #fff;
      border-radius: 10px;
      padding: 10px 8px;
      font-size: 13px;
      text-align: center;
      outline: none;
    }

    .editable-input:disabled {
      opacity: 0.9;
      cursor: default;
      background: transparent;
      border-color: transparent;
      color: var(--text-soft);
      padding: 0;
    }

    .delete-row-btn {
      background: linear-gradient(145deg, var(--danger), var(--danger-2));
      border: none;
      color: white;
      border-radius: 8px;
      padding: 8px 10px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 700;
    }

    .muted-note { color: var(--text-muted); font-size: 12px; line-height: 1.8; margin-top: 10px; }

    .top-notice {
      margin-bottom: 14px;
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(255,255,255,0.05);
      border: 1px solid var(--border);
      color: var(--text-soft);
      font-size: 13px;
      line-height: 1.8;
    }

    .modal {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.55);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      z-index: 999;
    }

    .modal-box {
      width: 100%;
      max-width: 420px;
      background: linear-gradient(180deg, #0f203f, #0a1730);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 20px;
      box-shadow: 0 20px 45px rgba(0,0,0,0.35);
    }

    .modal-title { font-size: 24px; font-weight: 700; margin-bottom: 10px; text-align: center; }
    .modal-subtitle { color: var(--text-muted); text-align: center; margin-bottom: 16px; line-height: 1.8; font-size: 13px; }
    .form-group { margin-bottom: 12px; }
    .form-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-soft); font-weight: 700; }

    .form-input {
      width: 100%;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(255,255,255,0.06);
      color: #fff;
      border-radius: 12px;
      padding: 12px;
      font-size: 13px;
      outline: none;
    }

    .error-text { color: #ff9aa7; font-size: 13px; text-align: center; min-height: 18px; margin-top: 8px; }


    .table-wrap table,
    .table-wrap th,
    .table-wrap td,
    .table-wrap .editable-input {
      text-align: center !important;
      vertical-align: middle;
    }


    .injuries-trigger {
      width: 100%;
      min-width: 110px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(255,255,255,0.06);
      color: #fff;
      border-radius: 10px;
      padding: 10px 8px;
      font-size: 13px;
      text-align: center;
      outline: none;
      cursor: pointer;
    }

    .injuries-clickable {
      cursor: pointer;
    }

    .injuries-clickable.view-only {
      cursor: pointer;
    }

    .injuries-trigger.view-only {
      cursor: pointer;
      opacity: 0.95;
    }

    .injuries-modal-box {
      width: 100%;
      max-width: 760px;
    }

    .injuries-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 14px;
      flex-wrap: wrap;
    }

    .injuries-modal-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .report-btn {
      background: rgba(74,124,201,0.18);
      border: 1px solid rgba(198,214,239,0.35);
      color: #eef5ff;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 8px 20px rgba(0,0,0,0.18);
    }

    .report-btn:hover {
      background: rgba(74,124,201,0.28);
      border-color: rgba(216,178,93,0.4);
    }

    @media (max-width: 1100px) {
      .container { max-width: 100%; }
      .tables-grid { gap: 12px; }
      .card.size-quarter,
      .card.size-half,
      .card.size-three-quarter,
      .home-centers-card.size-quarter,
      .home-centers-card.size-half,
      .home-centers-card.size-three-quarter {
        --card-width: 100%;
      }
    }

    @media (max-width: 900px) {
      .page { padding: 0; }
      .unified-header,
      .home-hero {
        padding: 14px 16px 12px;
      }
      .unified-header-inner,
      .home-hero-top,
      .main-header {
        grid-template-columns: 1fr;
        justify-items: center;
      }
      .hero-logo-frame,
      .unified-header-title,
      .unified-header-actions {
        grid-column: auto;
        grid-row: auto;
        justify-self: center;
      }
      .hero-title-wrap,
      .unified-header-title,
      .header-title-wrap {
        width: 100%;
        text-align: center;
      }
      .hero-side,
      .hero-side-compact,
      .header-actions,
      .unified-header-actions,
      .center-top {
        width: 100%;
        justify-content: center;
      }
      .center-top {
        flex-direction: column;
        align-items: stretch;
      }
      .center-name { text-align: center; }
      .home-centers-card,
      .card {
        margin-left: 0;
        margin-right: 0;
      }
      .card,
      .home-centers-card {
        --card-width: 100% !important;
      }
      .card-header {
        align-items: stretch;
      }
      .card-actions {
        width: 100%;
        justify-content: stretch;
      }
      .card-actions .btn,
      .card-actions .small-btn,
      .hero-side .btn,
      .hero-side-compact .btn,
      .header-actions .btn,
      .unified-header-actions .btn,
      .center-top .btn,
      .btn-compact {
        width: 100%;
      }
      .table-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        border: 1px solid rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.02);
      }
      table { min-width: 640px; }
      th, td {
        padding: 10px 8px;
        font-size: 12px;
      }
      .editable-input {
        min-width: 86px;
        padding: 9px 6px;
        font-size: 12px;
      }
      .injuries-cell-wrap {
        min-width: 120px;
      }
      .injury-info-btn {
        width: 30px;
        min-width: 30px;
        height: 30px;
        font-size: 16px;
      }
      .modal {
        padding: 12px;
      }
      .modal-box,
      .injuries-modal-box {
        max-width: 100%;
        border-radius: 18px;
      }
    }

    @media (max-width: 768px) {
      body {
        font-size: 14px;
      }
      .home-centers-card {
        padding: 6px 12px 20px;
      }
      .section-heading h2,
      .card-title,
      .center-name {
        line-height: 1.4;
      }
      .hero-title,
      .unified-header-main,
      .unified-header-sub,
      .header-title {
        word-break: break-word;
      }
      .unified-header-main {
        font-size: clamp(17px, 4.8vw, 21px);
      }
      .unified-header-actions .btn-back.btn-compact {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
        font-size: 20px;
        border-radius: 10px;
      }
      .status-badge {
        width: 100%;
        justify-content: center;
      }
      .centers-grid {
        max-width: 100%;
        margin-top: 24px;
      }
      .center-btn {
        min-height: 50px;
        padding: 12px 10px;
        font-size: 16px;
      }
      table { min-width: 560px; }
    }

    @media (max-width: 480px) {
      .unified-header,
      .home-hero {
        padding: 12px 10px;
      }
      .card {
        padding: 12px 10px 18px;
        border-radius: 16px;
      }
      .card-header {
        flex-direction: column;
        align-items: stretch;
      }
      .card-title,
      .section-heading h2,
      .center-name {
        font-size: 18px;
      }
      .home-footer-note .footer-line {
        font-size: 15px;
      }
      .btn,
      .small-btn,
      .btn-compact,
      .delete-row-btn {
        min-height: 42px;
        padding: 10px 12px;
        font-size: 12px;
      }
      table { min-width: 520px; }
      th, td {
        padding: 8px 6px;
        font-size: 11px;
      }
      .editable-input {
        min-width: 74px;
        font-size: 11px;
        border-radius: 8px;
      }
      .injuries-cell-wrap {
        gap: 8px;
        min-width: 104px;
      }
      .injury-info-btn {
        width: 28px;
        min-width: 28px;
        height: 28px;
        border-radius: 8px;
      }
      .modal-box {
        padding: 14px;
      }
      .modal-title {
        font-size: 20px;
      }
      .unified-header-main {
        font-size: 16px;
      }
      .unified-header-actions .btn-back.btn-compact {
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        font-size: 18px;
        border-radius: 9px;
      }
      .modal-subtitle,
      .form-label,
      .error-text {
        font-size: 12px;
      }
    }


    /* توسيع حقول جداول المراكز حتى يظهر النص كامل بدون قص داخل الحقول */
    .table-wrap {
      overflow-x: auto !important;
    }

    .table-wrap table {
      min-width: 1580px !important;
      table-layout: auto !important;
    }

    .table-wrap th,
    .table-wrap td {
      white-space: nowrap !important;
    }

    .table-wrap .editable-input,
    .table-wrap .injuries-trigger {
      width: 100% !important;
      min-width: 150px !important;
    }

    .table-wrap th:nth-child(1),
    .table-wrap td:nth-child(1) { min-width: 58px; }

    .table-wrap th:nth-child(2),
    .table-wrap td:nth-child(2) { min-width: 120px; }

    .table-wrap th:nth-child(3),
    .table-wrap td:nth-child(3) { min-width: 130px; }

    .table-wrap th:nth-child(4),
    .table-wrap td:nth-child(4),
    .table-wrap td:nth-child(4) .editable-input { min-width: 250px !important; }

    .table-wrap th:nth-child(5),
    .table-wrap td:nth-child(5),
    .table-wrap td:nth-child(5) .editable-input { min-width: 130px !important; }

    .table-wrap th:nth-child(6),
    .table-wrap td:nth-child(6),
    .table-wrap td:nth-child(6) .editable-input { min-width: 120px !important; }

    .table-wrap th:nth-child(7),
    .table-wrap td:nth-child(7),
    .table-wrap td:nth-child(7) .editable-input { min-width: 160px !important; }

    .table-wrap th:nth-child(8),
    .table-wrap td:nth-child(8),
    .table-wrap td:nth-child(8) .editable-input { min-width: 270px !important; }

    .table-wrap th:nth-child(9),
    .table-wrap td:nth-child(9),
    .table-wrap td:nth-child(9) .editable-input { min-width: 420px !important; }

    @media (max-width: 900px) {
      .table-wrap table { min-width: 1580px !important; }
      .table-wrap .editable-input { font-size: 12px; }
    }

    @media (max-width: 480px) {
      .table-wrap table { min-width: 1580px !important; }
      .table-wrap .editable-input { font-size: 11px; }
    }


    /* تكبير عنوان المراكز وعنوان الحصر */
    .home-centers-card .section-heading h2,
    .event-scope-title {
      font-size: clamp(28px, 3vw, 32px);
      font-weight: 800;
      line-height: 1.6;
      color: var(--gold);
      margin-top: 8px;
    }

    /* تحكم بعرض أعمدة جميع الجداول */
    .resizable-table {
      table-layout: fixed !important;
      width: auto !important;
      max-width: none !important;
      border-collapse: collapse;
    }

    .resizable-table th,
    .resizable-table td {
      position: relative;
      overflow: visible !important;
      white-space: nowrap !important;
    }

    .resizable-table .editable-input,
    .resizable-table .injuries-trigger {
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      overflow: visible !important;
      text-overflow: clip !important;
    }

    .resizable-table th .col-resizer {
      position: absolute;
      top: 0;
      left: -4px;
      width: 9px;
      height: 100%;
      cursor: col-resize;
      z-index: 8;
      touch-action: none;
      user-select: none;
    }

    .resizable-table th .col-resizer::after {
      content: "";
      position: absolute;
      top: 18%;
      bottom: 18%;
      left: 4px;
      width: 2px;
      border-radius: 999px;
      background: rgba(216, 178, 93, 0.45);
      opacity: 0;
      transition: opacity 0.15s ease;
    }

    .resizable-table th:hover .col-resizer::after,
    body.is-column-resizing .resizable-table th .col-resizer::after {
      opacity: 1;
    }

    body.is-column-resizing {
      cursor: col-resize !important;
      user-select: none !important;
    }

    body.is-column-resizing * {
      cursor: col-resize !important;
    }

  

    /* لوحة تعديل النصوص للمشرف: تحديد أي نص، تكبير/تصغير، تحريك، وإضافة نص جديد */
    .page { position: relative; }

    .text-editor-panel {
      position: fixed;
      right: 18px;
      bottom: 18px;
      width: min(420px, calc(100vw - 36px));
      z-index: 1200;
      background:
        linear-gradient(145deg, rgba(14,34,66,0.98), rgba(6,16,31,0.98));
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: 22px;
      box-shadow: 0 22px 55px rgba(0,0,0,0.42);
      padding: 14px;
      backdrop-filter: blur(14px);
    }

    .text-editor-panel-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: #fff;
      font-size: 15px;
      font-weight: 800;
      margin-bottom: 10px;
    }

    .text-editor-selected-label {
      color: var(--gold);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.7;
      margin-bottom: 8px;
      min-height: 20px;
    }

    .text-editor-textarea {
      width: 100%;
      min-height: 86px;
      resize: vertical;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.07);
      color: #fff;
      border-radius: 14px;
      padding: 10px;
      font-size: 14px;
      line-height: 1.8;
      outline: none;
      margin-bottom: 10px;
      font-family: "Tajawal", Tahoma, Arial, sans-serif;
    }

    .text-editor-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 8px;
    }

    .text-editor-row .btn,
    .text-editor-mini-btn {
      flex: 1 1 auto;
      min-width: 72px;
      min-height: 38px;
      padding: 8px 10px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 800;
    }

    .text-editor-font-input {
      width: 88px;
      min-height: 38px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.07);
      color: #fff;
      border-radius: 12px;
      padding: 8px 10px;
      font-size: 13px;
      outline: none;
      text-align: center;
      font-weight: 800;
    }

    .text-editor-hint {
      color: var(--text-muted);
      font-size: 12px;
      line-height: 1.8;
      margin-top: 6px;
    }

    .text-editable-applied {
      white-space: pre-wrap !important;
      position: relative;
      will-change: transform, font-size;
    }

    body.admin-mode.text-edit-mode [data-text-editor-id] {
      cursor: move !important;
      outline: 1px dashed rgba(216,178,93,0.45);
      outline-offset: 4px;
    }

    body.admin-mode.text-edit-mode [data-text-editor-id]:hover {
      outline-color: rgba(216,178,93,0.95);
      background-color: rgba(216,178,93,0.08);
    }

    .text-editor-selected {
      outline: 2px solid rgba(216,178,93,0.98) !important;
      outline-offset: 5px !important;
      box-shadow: 0 0 0 4px rgba(216,178,93,0.13) !important;
    }

    .custom-text-item {
      position: absolute;
      z-index: 30;
      color: #fff;
      font-weight: 800;
      line-height: 1.7;
      white-space: pre-wrap;
      min-width: 80px;
      min-height: 26px;
      padding: 4px 8px;
      border-radius: 10px;
      text-shadow: 0 3px 10px rgba(0,0,0,0.34);
      pointer-events: none;
    }

    body.admin-mode .custom-text-item {
      pointer-events: auto;
    }

    body.admin-mode.text-edit-mode .custom-text-item {
      background: rgba(255,255,255,0.05);
      border: 1px dashed rgba(216,178,93,0.48);
      cursor: move;
    }

    @media (max-width: 640px) {
      .text-editor-panel {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        padding: 12px;
      }
      .text-editor-row .btn,
      .text-editor-mini-btn {
        min-width: calc(50% - 6px);
      }
      .text-editor-font-input {
        width: 100%;
      }
    }



    /* HOME_NEWS_MODULE_START: شريط الأخبار كامل بالتعديلات الأخيرة */
    :root {
      --official-news-font: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
      --home-news-logo-url: none;
      --home-news-detail-bottom: 124px;
    }

    #homePage {
    }

    .home-news-ticker,
    .home-news-ticker *,
    .home-news-editor,
    .home-news-editor *,
    .home-news-detail-modal,
    .home-news-detail-modal *,
    .home-news-image-viewer,
    .home-news-image-viewer * {
      font-family: var(--official-news-font) !important;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    .home-news-ticker {
      position: fixed !important;
      left: 22px !important;
      right: 22px !important;
      bottom: 24px !important;
      z-index: 999999 !important;
      display: grid !important;
      grid-template-columns: 132px minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      min-height: 76px;
      padding: 9px 10px;
      direction: rtl;
      overflow: hidden;
      border-radius: 22px;
      background:
        linear-gradient(90deg, rgba(216,178,93,0.12) 0 1px, transparent 1px 14px),
        linear-gradient(135deg, rgba(3,17,38,0.98), rgba(10,34,65,0.96) 58%, rgba(3,14,31,0.98));
      border: 1px solid rgba(247,231,176,0.34);
      border-inline-start: 5px solid rgba(247,231,176,0.82);
      box-shadow: 0 18px 50px rgba(0,0,0,0.44), inset 0 1px 0 rgba(255,255,255,0.12);
      backdrop-filter: blur(14px) saturate(135%);
    }

    .home-news-ticker::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      pointer-events: none;
      background: radial-gradient(circle at 13% 20%, rgba(127,220,255,0.18), transparent 24%), linear-gradient(180deg, rgba(255,255,255,0.10), transparent 34%);
    }

    .home-news-ticker::after {
      content: "";
      position: absolute;
      inset: 7px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.06);
      pointer-events: none;
    }

    .home-news-label,
    .home-news-track,
    .home-news-edit {
      position: relative;
      z-index: 1;
    }

    .home-news-label {
      height: 58px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      color: #f7e7b0;
      font-size: 10px;
      font-weight: 800;
      line-height: 1.2;
      text-align: center;
      letter-spacing: 0;
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
    }

    .home-news-label-logo {
      width: 54px;
      height: 54px;
      object-fit: contain;
      display: block;
      background: transparent !important;
      border: 0 !important;
      outline: 0 !important;
      box-shadow: none !important;
      filter: drop-shadow(0 6px 12px rgba(0,0,0,0.28));
    }

    .home-news-label span {
      display: block;
      font-size: 9.6px;
      font-weight: 800;
      white-space: nowrap;
    }

    .home-news-track {
      height: 58px;
      overflow: hidden;
      border-radius: 16px;
      cursor: default;
      background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
      border: 1px solid rgba(255,255,255,0.10);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .home-news-track::before,
    .home-news-track::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      width: 72px;
      z-index: 2;
      pointer-events: none;
    }

    .home-news-track::before {
      right: 0;
      background: linear-gradient(90deg, transparent, rgba(6,18,38,0.92));
    }

    .home-news-track::after {
      left: 0;
      background: linear-gradient(90deg, rgba(6,18,38,0.92), transparent);
    }

    .home-news-text {
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateX(-115%) translateY(-50%);
      display: inline-flex;
      align-items: center;
      gap: 12px;
      white-space: nowrap;
      color: #fff;
      font-size: 17px;
      font-weight: 700;
      line-height: 1.8;
      padding-inline: 44px;
      text-shadow: 0 2px 8px rgba(0,0,0,0.34);
      animation: homeNewsTickerMove 28s linear infinite;
      will-change: transform;
    }

    .home-news-text::before {
      content: "حادث";
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 10px;
      border-radius: 999px;
      color: #08172f;
      background: linear-gradient(180deg, #f7e7b0, #d8b25d);
      font-size: 10px;
      font-weight: 800;
      margin-inline-end: 4px;
      box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    }

    .home-news-stamp {
      color: #d8b25d;
      font-weight: 400 !important;
      font-size: 0.92em;
      margin-inline-start: 8px;
    }

    .home-news-ticker.is-paused .home-news-text {
      animation-play-state: paused !important;
    }

    .home-news-track.is-clicking {
      animation: homeNewsTrackPress 0.42s ease-out both;
    }

    @keyframes homeNewsTickerMove {
      from { transform: translateX(-115%) translateY(-50%); }
      to { transform: translateX(calc(100vw + 120%)) translateY(-50%); }
    }

    @keyframes homeNewsTrackPress {
      0% { transform: scale(1); }
      45% { transform: scale(0.992); }
      100% { transform: scale(1); }
    }

    .home-news-edit {
      min-width: 58px;
      height: 38px;
      border: 1px solid rgba(247,231,176,0.45);
      border-radius: 13px;
      padding: 7px 12px;
      cursor: pointer;
      color: #08172f;
      background: linear-gradient(180deg, #f7e7b0, #d8b25d);
      font-size: 12px;
      font-weight: 800;
      box-shadow: 0 8px 18px rgba(0,0,0,0.20);
      transition: transform 0.18s ease, filter 0.18s ease;
    }

    .home-news-edit:hover {
      transform: translateY(-1px);
      filter: brightness(1.04);
    }

    body:not(.admin-mode) .home-news-edit,
    body:not(.admin-mode) .home-news-editor,
    body:not(.admin-mode) .home-news-editor-backdrop {
      display: none !important;
    }

    .home-news-editor-backdrop {
      position: fixed;
      inset: 0;
      z-index: 1000001;
      background: rgba(0,0,0,0.55);
      backdrop-filter: blur(5px);
    }

    .home-news-editor-backdrop.hidden,
    .home-news-editor.hidden,
    .home-news-detail-modal.hidden,
    .home-news-image-viewer.hidden {
      display: none !important;
    }

    body.news-editor-open {
      overflow: hidden;
    }

    .home-news-editor {
      position: fixed !important;
      top: 50% !important;
      left: 50% !important;
      right: auto !important;
      bottom: auto !important;
      transform: translate(-50%, -50%) !important;
      z-index: 1000002 !important;
      width: min(680px, calc(100vw - 28px));
      max-height: min(82vh, 760px);
      overflow-y: auto;
      direction: rtl;
      padding: 20px;
      border-radius: 24px;
      background: linear-gradient(180deg, rgba(12,31,59,0.98), rgba(5,16,32,0.98));
      border: 1px solid rgba(247,231,176,0.28);
      box-shadow: 0 28px 70px rgba(0,0,0,0.52);
    }

    .home-news-editor-title {
      color: #f7e7b0;
      font-size: 20px;
      font-weight: 800;
      margin-bottom: 14px;
      text-align: center;
    }

    #homeNewsInput,
    #homeNewsDetailInput {
      width: 100%;
      min-height: 74px;
      resize: vertical;
      display: block;
      margin-bottom: 12px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.07);
      color: #fff;
      outline: none;
      font-size: 14px;
      line-height: 1.9;
      font-weight: 500;
    }

    #homeNewsDetailInput {
      min-height: 136px;
    }

    .home-news-media-tools {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
      margin: 12px 0;
    }

    .home-news-file-label,
    .home-news-clear-media {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      padding: 9px 12px;
      border-radius: 13px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 800;
      border: 1px solid rgba(255,255,255,0.12);
      color: #fff;
      background: rgba(255,255,255,0.10);
    }

    .home-news-file-label input {
      display: none;
    }

    .home-news-clear-media {
      border-color: rgba(255,120,136,0.28);
      background: rgba(159,46,61,0.34);
    }

    .home-news-media-hint {
      color: #9eb6da;
      font-size: 12px;
      line-height: 1.8;
    }

    .home-news-media-preview,
    .home-news-detail-media {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 10px;
      margin-top: 12px;
    }

    .home-news-media-item {
      position: relative;
      overflow: hidden;
      border-radius: 16px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.10);
      min-height: 120px;
    }

    .home-news-media-item img,
    .home-news-media-item video {
      width: 100%;
      height: 150px;
      object-fit: cover;
      display: block;
      cursor: zoom-in;
    }

    .home-news-media-remove {
      position: absolute;
      top: 8px;
      left: 8px;
      width: 30px;
      height: 30px;
      border-radius: 999px;
      border: 0;
      cursor: pointer;
      color: #fff;
      background: rgba(159,46,61,0.92);
      font-size: 18px;
      font-weight: 800;
      line-height: 1;
    }

    .home-news-editor-actions {
      position: sticky;
      bottom: -20px;
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      padding-top: 14px;
      margin-top: 12px;
      background: linear-gradient(180deg, rgba(12,31,59,0), rgba(5,16,32,0.98) 35%);
    }

    .home-news-save,
    .home-news-close {
      min-height: 42px;
      border: 0;
      border-radius: 14px;
      padding: 10px 16px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 800;
    }

    .home-news-save {
      background: linear-gradient(180deg, #f7e7b0, #d8b25d);
      color: #08172f;
    }

    .home-news-close {
      background: rgba(255,255,255,0.12);
      color: #fff;
    }

    .home-news-detail-modal {
      align-items: flex-end !important;
      justify-content: center !important;
      direction: rtl !important;
      pointer-events: auto !important;
      animation: homeNewsNearTickerBackdropFade 0.34s ease-out both;
    }

    .home-news-detail-card {
      position: relative;
      isolation: isolate;
      width: min(760px, calc(100vw - 32px));
      max-height: min(64vh, 620px);
      overflow-y: auto;
      border-radius: 26px;
      padding: 22px;
      color: #fff;
      background: linear-gradient(180deg, rgba(11,30,58,0.98), rgba(6,17,34,0.98));
      border: 1px solid rgba(247,231,176,0.30);
      box-shadow: 0 26px 70px rgba(0,0,0,0.52), inset 0 1px 0 rgba(255,255,255,0.08);
      animation: homeNewsNearTickerFade 0.54s cubic-bezier(.20,.70,.20,1) both;
    }

    .home-news-detail-watermark {
      position: absolute;
      inset: 0;
      border-radius: inherit;
      pointer-events: none;
      background-image: var(--home-news-logo-url);
      background-repeat: no-repeat;
      background-position: center center;
      background-size: 78% auto;
      opacity: 0.07;
      z-index: 0;
      filter: saturate(0.95) contrast(1.02);
    }

    .home-news-detail-card > :not(.home-news-detail-watermark) {
      position: relative;
      z-index: 1;
    }

    .home-news-detail-card::before {
      content: "";
      position: absolute;
      top: -60px;
      right: -120px;
      width: 260px;
      height: 260px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(216,178,93,0.13), transparent 70%);
      pointer-events: none;
      z-index: 0;
    }

    .home-news-detail-close {
      position: absolute;
      top: 12px;
      left: 12px;
      width: 38px;
      height: 38px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.15);
      color: #fff;
      background: rgba(255,255,255,0.10);
      cursor: pointer;
      font-size: 24px;
      font-weight: 800;
      line-height: 1;
    }

    .home-news-detail-head {
      display: flex;
      align-items: center;
      gap: 14px;
      padding-inline-start: 50px;
      margin-bottom: 14px;
    }

    .home-news-detail-logo {
      width: 58px;
      height: 58px;
      object-fit: contain;
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
      filter: drop-shadow(0 6px 14px rgba(0,0,0,0.30));
      flex: 0 0 auto;
    }

    .home-news-detail-title {
      font-size: clamp(20px, 2.4vw, 27px);
      font-weight: 800;
      line-height: 1.45;
      color: #f7fbff;
      padding-inline-end: 28px;
    }

    .home-news-detail-stamp {
      margin-top: 6px;
      color: #d8b25d;
      font-weight: 400 !important;
      font-size: 13px;
    }

    .home-news-detail-text {
      white-space: pre-wrap;
      color: #edf5ff;
      font-size: 16px;
      font-weight: 500;
      line-height: 2;
      margin-top: 12px;
      padding: 14px;
      border-radius: 18px;
      background: rgba(255,255,255,0.055);
      border: 1px solid rgba(255,255,255,0.08);
    }

    .home-news-image-viewer {
      position: fixed;
      inset: 0;
      z-index: 1000005;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 12px;
      padding: 18px;
      background: rgba(0,0,0,0.72);
      backdrop-filter: blur(6px);
      animation: homeNewsImageViewerFade 0.22s ease-out both;
    }

    .home-news-image-frame {
      position: relative;
      overflow: hidden;
      width: min(98vw, 1280px);
      height: min(90vh, 860px);
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 22px;
      background: rgba(0,0,0,0.34);
      border: 1px solid rgba(255,255,255,0.14);
      box-shadow: 0 24px 70px rgba(0,0,0,0.56);
      touch-action: none;
      animation: homeNewsAutoMediaFrameZoom 0.28s cubic-bezier(.18,.9,.2,1) both;
    }

    .home-news-image-frame img,
    .home-news-image-frame video {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      user-select: none;
      -webkit-user-drag: none;
      transition: transform 0.08s linear;
    }

    .home-news-image-frame img.hidden,
    .home-news-image-frame video.hidden {
      display: none !important;
    }

    .home-news-image-frame img.is-auto-zoomed {
      cursor: grab;
    }

    .home-news-image-frame img.is-dragging {
      cursor: grabbing;
    }

    .home-news-image-close {
      position: fixed;
      top: 18px;
      left: 18px;
      z-index: 1000010;
      width: 42px;
      height: 42px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.18);
      color: #fff;
      background: rgba(0,0,0,0.46);
      cursor: pointer;
      font-size: 26px;
      font-weight: 800;
      line-height: 1;
    }

    .home-news-image-hint {
      color: rgba(255,255,255,0.78);
      font-size: 13px;
      text-align: center;
      line-height: 1.8;
    }

    @keyframes homeNewsNearTickerBackdropFade {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes homeNewsNearTickerFade {
      0% { opacity: 0; transform: translateY(18px) scale(0.985); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    @keyframes homeNewsImageViewerFade {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes homeNewsAutoMediaFrameZoom {
      0% { transform: scale(0.92); opacity: 0.75; }
      100% { transform: scale(1); opacity: 1; }
    }

    @media (max-width: 700px) {
      #homePage { }
      .home-news-ticker {
        left: 10px !important;
        right: 10px !important;
        bottom: 14px !important;
        min-height: 62px;
        grid-template-columns: 86px minmax(0, 1fr) auto;
        gap: 6px;
        padding: 7px;
        border-radius: 18px;
      }
      .home-news-label { height: 50px; }
      .home-news-label-logo { width: 40px; height: 40px; }
      .home-news-label span { font-size: 8.8px; }
      .home-news-track { height: 52px; border-radius: 14px; }
      .home-news-track::before,
      .home-news-track::after { width: 50px; }
      .home-news-text { font-size: 14px; padding-inline: 30px; animation-duration: 24s; }
      .home-news-text::before { font-size: 9px; padding: 3px 7px; }
      .home-news-edit { min-width: 44px; height: 32px; padding: 5px 8px; font-size: 11px; }
      .home-news-editor { width: calc(100vw - 20px); max-height: 84vh; padding: 16px; }
      .home-news-editor-actions { flex-direction: column; }
      .home-news-save,
      .home-news-close { width: 100%; }
      .home-news-detail-modal { }
      .home-news-detail-card { width: calc(100vw - 20px); max-height: 72vh; padding: 18px; border-radius: 22px; }
      .home-news-detail-head { gap: 10px; padding-inline-start: 42px; }
      .home-news-detail-logo { width: 46px; height: 46px; }
      .home-news-detail-title { font-size: 19px; padding-inline-end: 20px; }
      .home-news-detail-text { font-size: 14px; padding: 12px; }
      .home-news-media-preview,
      .home-news-detail-media { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
      .home-news-media-item img,
      .home-news-media-item video { height: 120px; }
      .home-news-image-hint { font-size: 12px; }
    }
    /* HOME_NEWS_MODULE_END */


    /* HOME_NEWS_MULTI_START: دعم أكثر من خبر في الشريط */
    .home-news-text.has-news-items::before {
      display: none !important;
      content: none !important;
    }

    .home-news-item {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 4px 10px;
      border-radius: 999px;
      cursor: pointer;
      transition: background 0.18s ease, transform 0.18s ease;
    }

    .home-news-item:hover {
      background: rgba(255,255,255,0.07);
      transform: translateY(-1px);
    }

    .home-news-item + .home-news-item::before {
      content: "|";
      color: rgba(247,231,176,0.72);
      font-weight: 400;
      margin-inline: 10px 2px;
    }

    .home-news-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 10px;
      border-radius: 999px;
      color: #08172f;
      background: linear-gradient(180deg, #f7e7b0, #d8b25d);
      font-size: 10px;
      font-weight: 800;
      box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    }

    .home-news-item-title {
      display: inline-block;
      max-width: 720px;
      overflow: hidden;
      text-overflow: ellipsis;
      vertical-align: middle;
    }

    .home-news-editor-note,
    .home-news-editor-subtitle {
      color: rgba(229,238,252,0.88);
      font-size: 12px;
      line-height: 1.8;
      margin: -4px 0 10px;
      text-align: center;
    }

    .home-news-editor-subtitle {
      margin: 10px 0 8px;
      color: #d8b25d;
      font-weight: 800;
    }

    .home-news-list {
      display: grid;
      grid-template-columns: 1fr;
      gap: 7px;
      max-height: 150px;
      overflow: auto;
      padding: 8px;
      margin-bottom: 10px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(255,255,255,0.045);
    }

    .home-news-list:empty {
      display: none;
    }

    .home-news-list-item {
      width: 100%;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(255,255,255,0.05);
      color: #ffffff;
      border-radius: 12px;
      padding: 8px 10px;
      cursor: pointer;
      text-align: right;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      transition: 0.18s ease;
    }

    .home-news-list-item:hover,
    .home-news-list-item.is-active {
      border-color: rgba(216,178,93,0.55);
      background: rgba(216,178,93,0.12);
    }

    .home-news-list-title {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 13px;
      font-weight: 800;
    }

    .home-news-list-stamp {
      color: #d8b25d;
      font-size: 11px;
      font-weight: 400;
      white-space: nowrap;
    }

    .home-news-new,
    .home-news-delete {
      border: 0;
      color: #fff;
      border-radius: 13px;
      padding: 10px 12px;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      min-height: 40px;
    }

    .home-news-new {
      background: linear-gradient(145deg, #1f7a52, #176142);
    }

    .home-news-delete {
      background: linear-gradient(145deg, #9f2e3d, #7e1f2c);
    }

    @media (max-width: 700px) {
      .home-news-item-title { max-width: 360px; }
      .home-news-list { max-height: 130px; }
      .home-news-list-item { grid-template-columns: 1fr; }
      .home-news-list-stamp { font-size: 10px; }
    }
    /* HOME_NEWS_MULTI_END */
/* ===== FIREFORCE_LEFT_BG_CSS_START ===== */
    .fireforce-left-bg {
      position: fixed;
      top: 50%;
      left: 18px;
      width: 560px;
      height: 560px;
      transform: translateY(-50%);
      opacity: 0.07;
      pointer-events: none;
      user-select: none;
      z-index: 0;
    }

    .fireforce-left-bg img {
    }

    body > *:not(.fireforce-left-bg) {
      position: relative;
      z-index: 1;
    }


    @media (max-width: 900px) {
      .fireforce-left-bg {
        width: 460px;
        height: 460px;
        left: 12px;
      }
    }

    @media (max-width: 520px) {
      .fireforce-left-bg {
        width: 280px;
        height: 280px;
        left: 8px;
        opacity: 0.065;
      }
    }
    /* ===== FIREFORCE_LEFT_BG_CSS_END ===== */


    /* ===== FIREFORCE_BACKGROUND_LABEL_START ===== */
    .fireforce-left-bg {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .fireforce-left-bg img {
      width: 100%;
      height: auto;
      max-height: calc(100% - 42px);
      object-fit: contain;
      display: block;
    }

    .fireforce-bg-label {
      width: 100%;
      text-align: center;
      font-size: 28px;
      font-weight: 700;
      line-height: 1.15;
      color: rgba(18, 34, 92, 0.95);
      text-shadow: 0 1px 2px rgba(255,255,255,0.35);
      letter-spacing: 0;
      margin-top: -8px;
      white-space: nowrap;
    }

    @media (max-width: 900px) {
      .fireforce-bg-label {
        font-size: 24px;
      }
    }

    @media (max-width: 520px) {
      .fireforce-bg-label {
        font-size: 16px;
      }
    }
    /* ===== FIREFORCE_BACKGROUND_LABEL_END ===== */


    /* ===== LOGOS_SAME_LEVEL_PATCH_START ===== */
    .fireforce-left-bg {
    }

    .fireforce-bg-label {
      margin-top: 0 !important;
    }

    @media (max-width: 900px) {
      .fireforce-left-bg {
      }
      .fireforce-left-bg { left: 12px !important; }
      .fireforce-bg-label {
      }
    }

    @media (max-width: 520px) {
      .fireforce-left-bg {
      }
      .fireforce-left-bg { left: 6px !important; }
      .fireforce-bg-label {
      }
    }
    /* ===== LOGOS_SAME_LEVEL_PATCH_END ===== */


    /* تم حذف شعار محافظة مبارك الكبير من الخلفية */
    .mubarak-right-bg { display: none !important; }


    /* ===== FIREFORCE_CENTER_BACKGROUND_PATCH_START ===== */
    /* تكبير شعار قوة الإطفاء العام وتثبيته في منتصف الصفحة كخلفية */
    .fireforce-left-bg {
      position: fixed !important;
      top: 50% !important;
      left: 50% !important;
      right: auto !important;
      bottom: auto !important;
      width: min(78vw, 760px) !important;
      height: min(78vw, 760px) !important;
      transform: translate(-50%, -50%) !important;
      opacity: 0.095 !important;
      pointer-events: none !important;
      user-select: none !important;
      z-index: 0 !important;
      display: block !important;
    }

    .fireforce-left-bg img {
      width: 100% !important;
      height: 100% !important;
      max-height: none !important;
      object-fit: contain !important;
      display: block !important;
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
    }

    .fireforce-bg-label {
      position: absolute !important;
      left: 50% !important;
      bottom: -46px !important;
      transform: translateX(-50%) !important;
      width: max-content !important;
      max-width: 90vw !important;
      text-align: center !important;
      font-size: clamp(18px, 2.2vw, 30px) !important;
      font-weight: 800 !important;
      line-height: 1.15 !important;
      color: rgba(255,255,255,0.78) !important;
      text-shadow: 0 3px 10px rgba(0,0,0,0.28) !important;
      white-space: nowrap !important;
    }

    @media (max-width: 900px) {
      .fireforce-left-bg {
        width: min(86vw, 620px) !important;
        height: min(86vw, 620px) !important;
        top: 52% !important;
      }
      .fireforce-bg-label {
        bottom: -38px !important;
        font-size: clamp(15px, 4vw, 24px) !important;
      }
    }

    @media (max-width: 520px) {
      .fireforce-left-bg {
        width: min(90vw, 360px) !important;
        height: min(90vw, 360px) !important;
        top: 48% !important;
        opacity: 0.085 !important;
      }
      .fireforce-bg-label {
        bottom: -28px !important;
        font-size: 14px !important;
        max-width: 92vw !important;
      }
    }
    /* ===== FIREFORCE_CENTER_BACKGROUND_PATCH_END ===== */


/* assistant override: remove fireforce background logo */
.fireforce-left-bg, .fireforce-bg-label { display: none !important; }


/* SIDE_LOGOS_START */
.side-logo {
  position: fixed;
  top: 50%;
  width: 250px;
  height: 250px;
  transform: translateY(-50%);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.side-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: grayscale(10%) contrast(0.95);
}
.side-logo-right { right: 24px; }
.side-logo-left { left: 24px; }
body > *:not(.side-logo-left):not(.side-logo-right):not(#introAnimation) {
  position: relative;
  z-index: 1;
}
@media (max-width: 1100px) {
  .side-logo { width: 200px; height: 200px; opacity: 0.07; }
  .side-logo-right { right: 12px; }
  .side-logo-left { left: 12px; }
}
@media (max-width: 700px) {
  .side-logo { width: 130px; height: 130px; opacity: 0.06; top: 42%; }
  .side-logo-right { right: 8px; }
  .side-logo-left { left: 8px; }
}
/* SIDE_LOGOS_END */



/* CENTER_BOXES_REMOVED_START */
.centers-grid:empty {
  display: none !important;
}
/* CENTER_BOXES_REMOVED_END */


/* ASSISTANT_NO_FIREFORCE_LOGO_START */
.fireforce-left-bg,
.fireforce-bg-label,
.side-logo,
.hero-logo-frame,
.header-logo-box,
.home-news-label-logo,
.home-news-detail-logo {
  display: none !important;
}

/* ASSISTANT_NO_FIREFORCE_LOGO_END */



/* ASSISTANT_GOV_BOXES_START */
.centers-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  width: min(980px, calc(100vw - 48px)) !important;
  max-width: 980px !important;
  margin: 38px auto 0 !important;
}

.center-btn {
  min-height: 96px !important;
  padding: 18px 20px !important;
  white-space: normal !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 900px) {
  .centers-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    width: min(720px, calc(100vw - 28px)) !important;
  }
}

@media (max-width: 560px) {
  .centers-grid {
    grid-template-columns: 1fr !important;
    width: calc(100vw - 24px) !important;
    gap: 12px !important;
  }

  .center-btn {
    min-height: 76px !important;
  }
}
/* ASSISTANT_GOV_BOXES_END */






/* NAVY_BROWN_THEME_START */
:root {
  --bg-1: #020814;
  --bg-2: #06172a;
  --bg-3: #0a2744;
  --bg-4: #03101f;
  --card: rgba(5, 18, 34, 0.93);
  --card-2: rgba(8, 27, 50, 0.96);
  --border: rgba(204, 172, 125, 0.22);
  --text: #fffaf2;
  --text-soft: #f2e7d4;
  --text-muted: #c9b796;
  --primary: #b8905f;
  --primary-2: #8c673d;
  --gold: #d2ad78;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.26);
}

body {
  color: var(--text) !important;
}

.home-hero,
.unified-header,
.home-centers-card,
.card,
.modal-box,
.home-news-detail-card,
.admin-panel,
.report-card,
.text-editor-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
    linear-gradient(180deg, rgba(5, 18, 34, 0.96), rgba(8, 27, 50, 0.96)) !important;
  border-color: rgba(204, 172, 125, 0.24) !important;
}

.section-heading h2,
.card-title,
.modal-title,
.unified-header-sub,
.home-news-detail-title,
.hero-text h1 {
  color: #f3d6aa !important;
}

.event-scope-title,
.modal-subtitle,
.muted-note,
.home-footer-note,
.card-size-badge {
  color: #d9c3a0 !important;
}

table th {
  background: linear-gradient(180deg, rgba(184, 144, 95, 0.30), rgba(111, 79, 45, 0.28)) !important;
  color: #fff7e8 !important;
  border-color: rgba(204, 172, 125, 0.24) !important;
}

table td,
.editable-input,
.editable-select,
textarea,
input,
select {
  border-color: rgba(204, 172, 125, 0.18) !important;
}

.center-btn {
  color: #fff7e8 !important;
  border-color: rgba(210, 173, 120, 0.42) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    linear-gradient(145deg, rgba(9, 33, 60, 0.98), rgba(73, 52, 31, 0.88)) !important;
  box-shadow: 0 14px 28px rgba(0,0,0,0.30), inset 0 0 0 1px rgba(255,255,255,0.04) !important;
}

.center-btn:hover {
  border-color: rgba(226, 190, 135, 0.80) !important;
  box-shadow:
    0 0 0 1px rgba(226, 190, 135, 0.22),
    0 18px 34px rgba(0,0,0,0.34),
    0 0 22px rgba(184, 144, 95, 0.26) !important;
}

.btn-primary,
.btn-success {
  background: linear-gradient(180deg, #c59b67, #8b633a) !important;
  border-color: rgba(243, 214, 170, 0.30) !important;
  color: #fffaf2 !important;
}

.btn-secondary,
.report-btn {
  background: linear-gradient(180deg, #0d3157, #071b32) !important;
  border-color: rgba(204, 172, 125, 0.22) !important;
  color: #f3d6aa !important;
}

.btn-danger,
.delete-row-btn {
  background: linear-gradient(180deg, #8e2b34, #651a25) !important;
  border-color: rgba(255,255,255,0.12) !important;
}

.home-card-resize-handle,
.card-resize-handle {
  background: rgba(210, 173, 120, 0.62) !important;
  border-color: rgba(255,255,255,0.18) !important;
}
/* NAVY_BROWN_THEME_END */

/* HAWALLI_CYAN_FLASH_START */
button.center-btn.hawalli-cyan-flash {
  position: relative !important;
  overflow: hidden !important;
  border-color: rgba(80, 235, 255, 1) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
    linear-gradient(145deg, rgba(8, 82, 102, 0.98), rgba(4, 25, 43, 0.98)) !important;
  animation: hawalliCyanFlashFixed 0.72s linear infinite !important;
}

button.center-btn.hawalli-cyan-flash::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  background: rgba(0, 220, 255, 0) !important;
  transform: none !important;
  animation: hawalliCyanFlashLayerFixed 0.72s linear infinite !important;
}

button.center-btn.hawalli-cyan-flash::after {
  content: "" !important;
  position: absolute !important;
  inset: -2px !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0);
  animation: hawalliCyanFlashRingFixed 0.72s linear infinite !important;
}

@keyframes hawalliCyanFlashFixed {
  0%, 100% {
    filter: brightness(1);
    box-shadow: var(--shadow);
  }
  10% {
    filter: brightness(1.65);
    box-shadow:
      0 0 0 2px rgba(255,255,255,0.85),
      0 0 18px rgba(0, 225, 255, 0.95),
      0 0 42px rgba(0, 225, 255, 0.80),
      var(--shadow);
  }
  22% {
    filter: brightness(1);
    box-shadow: var(--shadow);
  }
  36% {
    filter: brightness(1.55);
    box-shadow:
      0 0 0 2px rgba(255,255,255,0.72),
      0 0 16px rgba(0, 225, 255, 0.88),
      0 0 34px rgba(0, 225, 255, 0.70),
      var(--shadow);
  }
  52%, 100% {
    filter: brightness(1);
    box-shadow: var(--shadow);
  }
}

@keyframes hawalliCyanFlashLayerFixed {
  0%, 100% { background: rgba(0, 225, 255, 0) !important; }
  9% { background: rgba(0, 225, 255, 0.34) !important; }
  20% { background: rgba(0, 225, 255, 0) !important; }
  35% { background: rgba(0, 225, 255, 0.28) !important; }
  50%, 100% { background: rgba(0, 225, 255, 0) !important; }
}

@keyframes hawalliCyanFlashRingFixed {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(255,255,255,0); }
  10% { box-shadow: inset 0 0 0 2px rgba(255,255,255,0.95); }
  36% { box-shadow: inset 0 0 0 2px rgba(255,255,255,0.80); }
}
/* HAWALLI_CYAN_FLASH_END */


/* ASSISTANT_NEWS_STATUS_START */
.home-news-item.news-status-ongoing .home-news-badge,
.home-news-badge.news-status-ongoing {
}

.home-news-item.news-status-done .home-news-badge,
.home-news-badge.news-status-done {
}

.home-news-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 800;
}

.home-news-status-controls {
  margin: 2px 0 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(216,178,93,0.28);
  background: rgba(216,178,93,0.08);
}

.home-news-status-title {
  color: #f7e7b0;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.home-news-toggle-row,
.home-news-status-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.home-news-toggle-row {
  margin-bottom: 9px;
}

.home-news-toggle-row label,
.home-news-status-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.home-news-status-option.status-ongoing {
  border-color: rgba(87,243,155,0.35);
  background: rgba(12,169,87,0.16);
}

.home-news-status-option.status-done {
  border-color: rgba(255,102,102,0.35);
  background: rgba(184,31,47,0.18);
}

.home-news-status-option input,
.home-news-toggle-row input {
  accent-color: #d8b25d;
}

.home-news-list-item.status-ongoing {
  border-color: rgba(87,243,155,0.30);
}

.home-news-list-item.status-done {
  border-color: rgba(255,102,102,0.30);
}

.home-news-list-item.status-off {
  opacity: 0.58;
  border-style: dashed;
}

.home-news-list-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  color: #08172f;
  background: #d8b25d;
}

.home-news-list-item.status-ongoing .home-news-list-status {
  color: #062315;
  background: #57f39b;
}

.home-news-list-item.status-done .home-news-list-status {
  color: #fff;
  background: #c82538;
}

.home-news-list-item.status-off .home-news-list-status {
  color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.18);
}
/* ASSISTANT_NEWS_STATUS_END */


/* ASSISTANT_IMAGE_WATERMARK_START */
body {
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(560px, 62vw) auto;
  opacity: 0.16;
}

#homePage,
#centerPage,
.container,
.home-shell,
.unified-header,
.home-centers-card,
.home-footer-note,
.tables-grid,
.home-news-ticker,
.home-news-editor,
.home-news-detail-modal,
.home-news-image-viewer {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  body::before {
    background-size: min(360px, 72vw) auto;
    opacity: 0.13;
  }
}
/* ASSISTANT_IMAGE_WATERMARK_END */


/* ASSISTANT_TOP_BRAND_TITLE_START */
.page-brand-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}
.page-brand-ar {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #eef3f8 28%, #d6deea 60%, #b2bccb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.20));
}
.page-brand-ar::before,
.page-brand-ar::after {
  content: none;
}
.page-brand-en {
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #eef3f8 28%, #d6deea 60%, #b2bccb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.18));
}
@media (max-width: 700px) {
  .page-brand-ar { }
  .page-brand-en { letter-spacing: 1.2px; }
}
/* ASSISTANT_TOP_BRAND_TITLE_END */


/* ASSISTANT_DISABLED_CENTER_BOXES_START */
.center-btn[aria-disabled="true"],
.center-btn.is-disabled-box {
  cursor: not-allowed !important;
  user-select: none !important;
}

.center-btn[aria-disabled="true"]:hover,
.center-btn.is-disabled-box:hover {
  transform: none !important;
}
/* ASSISTANT_DISABLED_CENTER_BOXES_END */





/* ASSISTANT_MOBILE_SIDE_BY_SIDE_BOXES_START */
@media (max-width: 700px) {
  .centers-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin: 18px auto 0 !important;
  }

  .center-btn {
    min-height: 54px !important;
    padding: 10px 10px !important;
    font-size: clamp(11px, 3.05vw, 14px) !important;
    line-height: 1.35 !important;
    border-radius: 16px !important;
    white-space: normal !important;
  }
}

@media (max-width: 380px) {
  .centers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }

  .center-btn {
    min-height: 50px !important;
    padding: 9px 8px !important;
    font-size: 10.8px !important;
    border-radius: 14px !important;
  }
}
/* ASSISTANT_MOBILE_SIDE_BY_SIDE_BOXES_END */


/* ASSISTANT_NAVY_LEATHER_BG_START */
body {
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.055) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 28%, rgba(255,255,255,0.045) 0 1.8px, transparent 3px),
    radial-gradient(circle at 28% 76%, rgba(0,0,0,0.16) 0 6px, transparent 11px),
    radial-gradient(circle at 84% 70%, rgba(255,255,255,0.03) 0 4px, transparent 8px),
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.014) 0px,
      rgba(255,255,255,0.014) 3px,
      rgba(0,0,0,0.018) 3px,
      rgba(0,0,0,0.018) 6px
    ),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.035), transparent 58%),
    linear-gradient(145deg, #132f4d 0%, #0b1d30 34%, #081626 58%, #11304c 100%) !important;
  background-size: 180px 180px, 220px 220px, 260px 260px, 240px 240px, 14px 14px, cover, cover !important;
  background-attachment: fixed !important;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.014) 0px,
      rgba(255,255,255,0.014) 1px,
      transparent 1px,
      transparent 90px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.022) 0px,
      rgba(0,0,0,0.022) 1px,
      transparent 1px,
      transparent 120px
    ),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.08) 100%);
  opacity: 0.42;
}

body::before {
  opacity: 0.08 !important;
  mix-blend-mode: screen;
}


/* ASSISTANT_NAVY_LEATHER_BG_END */





/* ASSISTANT_REMOVE_BG_BEHIND_BOXES_START */
body::before,
body::after {
  content: none !important;
  background: none !important;
}

.home-centers-card,
.centers-grid {
  background: transparent !important;
  box-shadow: none !important;
}
/* ASSISTANT_REMOVE_BG_BEHIND_BOXES_END */





/* ASSISTANT_TEXT_BRAND_TITLE_START */
.text-brand-title {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
}

.page-brand-ar {
  font-family: "Amiri", "Noto Naskh Arabic", "Scheherazade New", "Traditional Arabic", serif;
  font-size: clamp(28px, 3.7vw, 50px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  color: #f3f6fb;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.12),
    0 3px 0 rgba(56, 69, 89, 0.68),
    0 8px 14px rgba(0,0,0,0.22);
}

.page-brand-en {
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(15px, 2vw, 25px);
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #eef3f8;
  line-height: 1.1;
  text-shadow:
    0 2px 0 rgba(56, 69, 89, 0.68),
    0 5px 10px rgba(0,0,0,0.18);
}

@media (max-width: 700px) {
  .page-brand-ar {
    font-size: clamp(22px, 7vw, 34px);
  }
  .page-brand-en {
    font-size: clamp(13px, 4vw, 18px);
  }
}
/* ASSISTANT_TEXT_BRAND_TITLE_END */


/* FORCE_DECORATED_FIRE_TITLE_SIZE_START */
.decorated-fire-title {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
  width: 200px !important;
  max-width: 200px !important;
  min-width: 0 !important;
  height: auto !important;
  display: block !important;
  flex: 0 0 200px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}
@media (max-width: 900px) {
  img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
    width: 200px !important;
    max-width: 200px !important;
    flex-basis: 200px !important;
  }
}
@media (max-width: 480px) {
  img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
    width: 200px !important;
    max-width: 200px !important;
    flex-basis: 200px !important;
  }
}
/* FORCE_DECORATED_FIRE_TITLE_SIZE_END */




/* ASSISTANT_BG_2B547E_START */
body {
  background: #2B547E !important;
  background-color: #2B547E !important;
}
/* ASSISTANT_BG_2B547E_END */





/* ASSISTANT_TOP_BANNER_GOLD_START */
.page {
  padding: 0 !important;
}

.container,
.home-shell {
  width: 100% !important;
  max-width: 100% !important;
}

.unified-header {
  margin: 0 0 18px 0 !important;
  padding: 18px 24px 16px !important;
  border-top: 2px solid rgba(216, 178, 93, 0.78) !important;
  border-bottom: 2px solid rgba(216, 178, 93, 0.78) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 184, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.18) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
    linear-gradient(180deg, rgba(9,30,56,0.98), rgba(10,29,57,0.98)) !important;
}

.unified-header::before {
  inset: auto -60px -70px auto !important;
  width: 180px !important;
  height: 180px !important;
  background: radial-gradient(circle, rgba(216,178,93,0.16), transparent 72%) !important;
}

.unified-header::after {
  inset: -70px auto auto -70px !important;
  width: 190px !important;
  height: 190px !important;
  background: radial-gradient(circle, rgba(216,178,93,0.10), transparent 72%) !important;
}

.unified-header-inner {
  min-height: 86px;
}

@media (max-width: 700px) {
  .unified-header {
    padding: 14px 14px 12px !important;
    margin-bottom: 14px !important;
  }
}
/* ASSISTANT_TOP_BANNER_GOLD_END */


/* ASSISTANT_FULLWIDTH_TOP_BANNER_START */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

.page,
.container,
.home-shell {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.unified-header {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}
/* ASSISTANT_FULLWIDTH_TOP_BANNER_END */


/* ASSISTANT_CORNER_ALERT_CLEAN_ONLY_START */
/* مثلثات تنبيه بزوايا صحيحة مع توهج أقوى قليلاً */
button.center-btn.alert-corner,
button.center-btn.alert-red,
button.center-btn.alert-cyan,
button.center-btn.alert-dual {
  position: relative !important;
  overflow: hidden !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    linear-gradient(145deg, rgba(9, 33, 60, 0.98), rgba(73, 52, 31, 0.88)) !important;
  box-shadow:
    0 14px 28px rgba(0,0,0,0.30),
    inset 0 0 0 1px rgba(255,255,255,0.04) !important;
}

/* تنظيف أي تأثيرات قديمة */
button.center-btn.alert-corner::before,
button.center-btn.alert-corner::after,
button.center-btn.alert-red::before,
button.center-btn.alert-red::after,
button.center-btn.alert-cyan::before,
button.center-btn.alert-cyan::after,
button.center-btn.alert-dual::before,
button.center-btn.alert-dual::after {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  pointer-events: none !important;
  z-index: 8 !important;
}

/* تنبيه أحمر: أعلى اليمين */
button.center-btn.alert-red::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 34px solid #f23447 !important;
  border-left: 34px solid transparent !important;
  opacity: 0.82 !important;
  filter: drop-shadow(-1px 1px 6px rgba(242, 52, 71, 0.65));
  transform-origin: top right !important;
}

/* تنبيه سماوي: أعلى اليمين */
button.center-btn.alert-cyan::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 34px solid #6fbde6 !important;
  border-left: 34px solid transparent !important;
  opacity: 0.82 !important;
  filter: drop-shadow(-1px 1px 6px rgba(111, 189, 230, 0.65));
  transform-origin: top right !important;
}

/* محافظة مبارك الكبير: أحمر بالأعلى يمين */
button.center-btn.alert-dual::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 34px solid #f23447 !important;
  border-left: 34px solid transparent !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  opacity: 0.82 !important;
  filter: drop-shadow(-1px 1px 6px rgba(242, 52, 71, 0.65));
  transform-origin: top right !important;
}

/* محافظة مبارك الكبير: أزرق/سماوي بالأسفل يمين */
button.center-btn.alert-dual::before {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  top: auto !important;
  left: auto !important;
  width: 0 !important;
  height: 0 !important;
  border-bottom: 34px solid #6fbde6 !important;
  border-left: 34px solid transparent !important;
  border-top: 0 !important;
  border-right: 0 !important;
  opacity: 0.82 !important;
  filter: drop-shadow(-1px -1px 6px rgba(111, 189, 230, 0.65));
  transform-origin: bottom right !important;
}

@keyframes cornerGlowRed {
  0%, 100% {
    opacity: 0.65;
    transform: scale(1);
    filter: drop-shadow(-1px 1px 4px rgba(242, 52, 71, 0.46));
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
    filter: drop-shadow(-1px 1px 9px rgba(242, 52, 71, 0.88));
  }
}

@keyframes cornerGlowCyan {
  0%, 100% {
    opacity: 0.65;
    transform: scale(1);
    filter: drop-shadow(-1px 1px 4px rgba(111, 189, 230, 0.46));
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
    filter: drop-shadow(-1px 1px 9px rgba(111, 189, 230, 0.88));
  }
}

@keyframes cornerGlowCyanBottom {
  0%, 100% {
    opacity: 0.65;
    transform: scale(1);
    filter: drop-shadow(-1px -1px 4px rgba(111, 189, 230, 0.46));
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
    filter: drop-shadow(-1px -1px 9px rgba(111, 189, 230, 0.88));
  }
}

@media (max-width: 700px) {
  button.center-btn.alert-red::after,
  button.center-btn.alert-cyan::after,
  button.center-btn.alert-dual::after {
  }

  button.center-btn.alert-dual::before {
  }
}
/* ASSISTANT_CORNER_ALERT_CLEAN_ONLY_END */








/* ASSISTANT_NEWS_VIDEO_DETAIL_START */
/* عرض فيديو الخبر بحجم واضح ومناسب داخل نافذة التفاصيل */
.home-news-detail-media {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  width: 100% !important;
}

.home-news-detail-media .home-news-media-item {
  min-height: 0 !important;
  width: 100% !important;
}

.home-news-detail-media .home-news-media-item.home-news-media-video {
  background: #000 !important;
  border-color: rgba(255,255,255,0.16) !important;
}

.home-news-detail-media .home-news-media-item video {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  max-height: min(52vh, 500px) !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #000 !important;
  cursor: default !important;
  border-radius: 14px !important;
}

.home-news-detail-media .home-news-media-item img {
  width: 100% !important;
  height: auto !important;
  max-height: min(52vh, 500px) !important;
  object-fit: contain !important;
  background: rgba(0,0,0,0.24) !important;
}

@media (max-width: 700px) {
  .home-news-detail-media .home-news-media-item video {
    aspect-ratio: 16 / 9 !important;
    max-height: 38vh !important;
    border-radius: 12px !important;
  }

  .home-news-detail-media .home-news-media-item img {
    max-height: 38vh !important;
  }
}
/* ASSISTANT_NEWS_VIDEO_DETAIL_END */









/* ASSISTANT_HOME_LOGO_BG_10_START */
#homePage {
  overflow: hidden !important;
}

#homePage::before {
}

#homePage > * {
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 700px) {
  #homePage::before {
  }
}
/* ASSISTANT_HOME_LOGO_BG_10_END */

/* ASSISTANT_NEWS_STABLE_LTR_START */
/* حركة ثابتة من اليسار إلى اليمين بدون وميض أو اختفاء أثناء المسار */
.home-news-track {
  position: relative !important;
  overflow: hidden !important;
}

.home-news-track::before,
.home-news-track::after,
.home-news-text::before,
.home-news-text::after,
.home-news-text.has-news-items::before,
.home-news-text.has-news-items::after {
  content: none !important;
  display: none !important;
}

.home-news-text,
.home-news-ticker.is-paused .home-news-text {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  width: max-content !important;
  max-width: none !important;
  padding: 0 8px !important;
  white-space: nowrap !important;
  direction: ltr !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  transition: none !important;
  filter: none !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.home-news-item {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  direction: rtl !important;
  padding-inline: 6px !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  transition: none !important;
  transform: none !important;
  filter: none !important;
}

.home-news-item + .home-news-item::before {
  margin-inline: 0 4px !important;
}

@media (max-width: 700px) {
  .home-news-text,
  .home-news-ticker.is-paused .home-news-text {
    gap: 12px !important;
    padding: 0 6px !important;
  }

  .home-news-item {
    padding-inline: 4px !important;
  }
}
/* ASSISTANT_NEWS_STABLE_LTR_END */

/* ASSISTANT_KUWAIT_CLOCK_START */
.kuwait-clock-panel {
  margin-top: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 18px;
  border: 1px solid rgba(216,178,93,0.38);
  background: linear-gradient(180deg, rgba(8,22,42,0.34), rgba(8,22,42,0.16));
  box-shadow: inset 0 0 18px rgba(255,255,255,0.05), 0 10px 22px rgba(0,0,0,0.18);
}
.kuwait-clock-label {
  color: var(--gold);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 800;
}
.kuwait-clock-time {
  direction: ltr;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 2px 0 rgba(56,69,89,0.72), 0 8px 18px rgba(0,0,0,0.30);
}
.kuwait-clock-date {
  color: #e5eefc;
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 700;
}
@media (max-width: 700px) {
  .kuwait-clock-panel { width: min(100%, 320px); padding: 10px 14px; }
  .kuwait-clock-time { font-size: clamp(28px, 8vw, 44px); letter-spacing: 1px; }
}
/* ASSISTANT_KUWAIT_CLOCK_END */


/* ASSISTANT_BOTTOM_TICKER_BG_CLOCK_START */
/* تثبيت شريط الأخبار في أسفل الصفحة بالكامل */
#homePage {
  padding-bottom: 98px !important;
}

#homePage .home-news-ticker {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  border-radius: 20px 20px 0 0 !important;
  z-index: 999999 !important;
}

/* الشعار والساعة كخلفية للصفحة الرئيسية فقط بشفافية 10% */
#homePage::before {
  inset: 0 !important;
}

.home-background-clock {
  position: fixed !important;
  left: 50% !important;
  top: calc(40% + min(330px, 29vw)) !important;
  transform: translateX(-50%) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  user-select: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: min(90vw, 760px) !important;
  text-align: center !important;
  opacity: 0.10 !important;
  color: #ffffff !important;
  filter: none !important;
}

.home-background-clock-label {
  font-size: clamp(18px, 2.2vw, 30px) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.home-background-clock-time {
  direction: ltr !important;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(54px, 8vw, 110px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 3px !important;
  white-space: nowrap !important;
}

.home-background-clock-date {
  font-size: clamp(16px, 1.8vw, 25px) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

#homePage > .container,
#homePage > .home-news-editor,
#homePage > .home-news-detail-modal,
#homePage > .home-news-image-viewer,
#homePage > .home-news-editor-backdrop {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  #homePage {
    padding-bottom: 88px !important;
  }

  #homePage .home-news-ticker {
    border-radius: 16px 16px 0 0 !important;
  }

  #homePage::before {
  }

  .home-background-clock {
    top: calc(34% + min(235px, 47vw)) !important;
    width: 94vw !important;
  }

  .home-background-clock-label {
    font-size: clamp(14px, 4vw, 20px) !important;
  }

  .home-background-clock-time {
    font-size: clamp(38px, 13vw, 62px) !important;
    letter-spacing: 1px !important;
  }

  .home-background-clock-date {
    font-size: clamp(12px, 3.4vw, 17px) !important;
  }
}

#homePage .home-background-clock {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  text-align: center !important;
}

#homePage .home-background-clock-time {
}

@media (max-width: 700px) {
  #homePage::before {
  }

  #homePage .home-background-clock {
  }
}

#homePage .home-background-clock {
  opacity: 0.10 !important;
}

#homePage .home-background-clock-time {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif !important;
  font-variant-numeric: tabular-nums !important;
}

@media (max-width: 700px) {

  #homePage .home-background-clock {
  }
}

@media (max-width: 700px) {
  #homePage::before {
  }
}
/* ASSISTANT_TRANSPARENT_LOGO_OVERRIDE_END */



/* ASSISTANT_CLOCK_12_SMALL_START */
/* تصغير ساعة الخلفية قليلاً */
#homePage .home-background-clock {
  width: min(88vw, 660px) !important;
  gap: 4px !important;
}

#homePage .home-background-clock-label {
  font-size: clamp(16px, 1.9vw, 25px) !important;
}

#homePage .home-background-clock-time {
  font-size: clamp(46px, 6.7vw, 88px) !important;
  letter-spacing: 2px !important;
}

#homePage .home-background-clock-date {
  font-size: clamp(14px, 1.55vw, 21px) !important;
}

@media (max-width: 700px) {
  #homePage .home-background-clock {
    width: 90vw !important;
  }

  #homePage .home-background-clock-label {
    font-size: clamp(13px, 3.6vw, 18px) !important;
  }

  #homePage .home-background-clock-time {
    font-size: clamp(32px, 10vw, 50px) !important;
    letter-spacing: 1px !important;
  }

  #homePage .home-background-clock-date {
    font-size: clamp(11px, 3vw, 15px) !important;
  }
}
/* ASSISTANT_CLOCK_12_SMALL_END */


/* ASSISTANT_LARGE_FIRE_TITLE_UNDERLINE_START */
/* تكبير عنوان قوة الإطفاء العام وإضافة خط زخرفي أسفله */
#homePage .decorated-fire-title {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

#homePage .decorated-fire-title img,
#homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
  flex: 0 0 auto !important;
}

#homePage .decorated-fire-title::after {
  content: "" !important;
  display: block !important;
  border-radius: 999px !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(216, 178, 93, 0.42) 12%,
    #d8b25d 50%,
    rgba(216, 178, 93, 0.42) 88%,
    transparent 100%
  ) !important;
}

@media (max-width: 700px) {
  #homePage .decorated-fire-title {
  }

  #homePage .decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
  }

  #homePage .decorated-fire-title::after {
  }
}
/* ASSISTANT_LARGE_FIRE_TITLE_UNDERLINE_END */



/* ASSISTANT_FIRE_TITLE_BIGGER_OVERRIDE_START */
/* تكبير إضافي لعنوان قوة الإطفاء العام */
#homePage .decorated-fire-title {
}

#homePage .decorated-fire-title img,
#homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
}

#homePage .decorated-fire-title::after {
}

@media (max-width: 700px) {
  #homePage .decorated-fire-title {
  }

  #homePage .decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
  }

  #homePage .decorated-fire-title::after {
  }
}
/* ASSISTANT_FIRE_TITLE_BIGGER_OVERRIDE_END */



/* ASSISTANT_FIRE_TITLE_HUGE_OVERRIDE_START */
/* تكبير كبير جداً لعنوان قوة الإطفاء العام */
#homePage .decorated-fire-title {
  width: min(100%, 620px) !important;
  max-width: 620px !important;
  gap: 16px !important;
}

#homePage .decorated-fire-title img,
#homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
  width: 560px !important;
  max-width: min(560px, 92vw) !important;
  height: auto !important;
}

#homePage .decorated-fire-title::after {
  width: min(380px, 76vw) !important;
  height: 6px !important;
  box-shadow: 0 3px 12px rgba(216, 178, 93, 0.34) !important;
}

@media (max-width: 700px) {
  #homePage .decorated-fire-title {
    width: min(100%, 450px) !important;
    max-width: 450px !important;
    gap: 12px !important;
  }

  #homePage .decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
    width: 390px !important;
    max-width: min(390px, 90vw) !important;
  }

  #homePage .decorated-fire-title::after {
    width: min(270px, 64vw) !important;
    height: 5px !important;
  }
}
/* ASSISTANT_FIRE_TITLE_HUGE_OVERRIDE_END */



/* ASSISTANT_NEWS_LABEL_BIGGER_START */
/* تكبير نص للعلم / سيدي داخل شريط الأخبار */
#homePage .home-news-ticker {
  min-height: 88px !important;
}

#homePage .home-news-label {
  height: 70px !important;
  gap: 3px !important;
}

#homePage .home-news-label-logo {
  width: 40px !important;
  height: 40px !important;
}

#homePage .news-label-two-lines,
#homePage .home-news-label span {
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  color: #f7e7b0 !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.38) !important;
}

#homePage .home-news-track {
  height: 64px !important;
}

@media (max-width: 700px) {
  #homePage .home-news-ticker {
    min-height: 76px !important;
    grid-template-columns: 72px minmax(0, 1fr) auto !important;
  }

  #homePage .home-news-label {
    height: 60px !important;
  }

  #homePage .home-news-label-logo {
    width: 32px !important;
    height: 32px !important;
  }

  #homePage .news-label-two-lines,
  #homePage .home-news-label span {
    font-size: 13px !important;
  }

  #homePage .home-news-track {
    height: 56px !important;
  }
}
/* ASSISTANT_NEWS_LABEL_BIGGER_END */



/* ASSISTANT_CREDITS_CLOCK_SPACING_START */
/* زيادة المسافة بين الشعار والساعة */
#homePage .home-background-clock {
}

@media (max-width: 900px) {
}

@media (max-width: 700px) {
}
/* ASSISTANT_CREDITS_CLOCK_SPACING_END */



    @media (max-width: 768px) {
      .banner-left-group {
        width: 100%;
        align-items: center;
        justify-self: center;
      }
      .banner-left-logos {
        justify-content: center;
      }
      .banner-left-logo {
        width: 48px;
        height: 48px;
      }
      .banner-left-actions {
        justify-content: center;
      }
    }



/* ADMIN_QUICK_NEWS_VISIBILITY_FIX_START */
.quick-add-news-trigger {
  display: none !important;
  align-items: center;
  justify-content: center;
}
body.admin-mode .quick-add-news-trigger {
  display: inline-flex !important;
}
.governorate-activity-record-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.governorate-activity-record-status.status-ongoing {
  color: #ecfff6;
  background: linear-gradient(145deg, rgba(31,122,82,.96), rgba(23,97,66,.96));
}
.governorate-activity-record-status.status-done {
  color: #fff1f3;
  background: linear-gradient(145deg, rgba(159,46,61,.96), rgba(126,31,44,.96));
}
.quick-news-radio:has(input:checked) {
  outline: 2px solid rgba(255,255,255,.92);
  outline-offset: 2px;
  transform: translateY(-1px);
}
@media (max-width: 700px) {
  body.admin-mode .quick-add-news-trigger { width: 100%; }
  .governorate-activity-record-status { min-width: 0; width: 100%; }
}
/* ADMIN_QUICK_NEWS_VISIBILITY_FIX_END */


.home-card-resize-handle, #homeCardResizeHandle { display: none !important; }

@media (max-width: 700px) {
  #homePage .home-background-clock {
  }
}

@media (max-width: 700px) {
  #homePage::before {
  }

  #homePage .home-background-clock {
  }
}
/* ASSISTANT_LARGER_BG_LOGO_END */

/* === original style block 5 === */
/* ASSISTANT_NEWS_SPEED_TWO_STEPS_START */
/* تسريع شريط الأخبار بخطوتين */
#homePage .home-news-text {
}

@media (max-width: 700px) {
  #homePage .home-news-text {
  }
}

@media (max-width: 900px) {
  #homePage::before {
  }

  #homePage .home-background-clock {
  }
}

@media (max-width: 700px) {
  #homePage::before {
  }

  #homePage .home-background-clock {
  }
}

@media (max-width: 900px) {
  #homePage::before {
    background-position: center 29% !important;
    background-size: min(760px, 116vw) auto !important;
  }

  #homePage .home-background-clock {
  }
}

@media (max-width: 700px) {
  #homePage::before {
    background-position: center 25% !important;
    background-size: min(560px, 130vw) auto !important;
  }

  #homePage .home-background-clock {
  }
}
/* ASSISTANT_BG_LOGO_HALF_FROM_3X_END */

/* === original style block 8 === */
/* ASSISTANT_CREDITS_CLOCK_SPACING_LATE_START */
/* ضبط نهائي لموضع الساعة */


@media (max-width: 900px) {
  #homePage .home-background-clock {
  }
}

@media (max-width: 700px) {
  #homePage .home-background-clock {
  }
}
/* ASSISTANT_CREDITS_CLOCK_SPACING_LATE_END */

/* === original style block 9 === */
/* ASSISTANT_FINAL_SPEED_CLOCK_TWEAK_START */
/* تسريع شريط الأخبار قليلاً وإنزال الساعة في الخلفية بخطوتين */
#homePage .home-news-text {
  animation-duration: 18s !important;
}

#homePage .home-background-clock {
  top: calc(33% + min(660px, 48vw) + 112px) !important;
}

@media (max-width: 900px) {
  #homePage .home-news-text {
    animation-duration: 17s !important;
  }

  #homePage .home-background-clock {
    top: calc(29% + min(455px, 70vw) + 92px) !important;
  }
}

@media (max-width: 700px) {
  #homePage .home-news-text {
    animation-duration: 16s !important;
  }

  #homePage .home-background-clock {
    top: calc(25% + min(330px, 76vw) + 78px) !important;
  }
}
/* ASSISTANT_FINAL_SPEED_CLOCK_TWEAK_END */

/* === original style block 10 === */
/* ASSISTANT_ALERTS_CLEAR_BLINK_START */
/* جعل وميض التنبيهات أوضح وأقوى */
button.center-btn.alert-red::after,
button.center-btn.alert-cyan::after,
button.center-btn.alert-dual::after,
button.center-btn.alert-dual::before {
  opacity: 1 !important;
}

button.center-btn.alert-red::after {
  border-top-width: 38px !important;
  border-left-width: 38px !important;
}

button.center-btn.alert-cyan::after {
  border-top-width: 38px !important;
  border-left-width: 38px !important;
}

button.center-btn.alert-dual::after {
  border-top-width: 38px !important;
  border-left-width: 38px !important;
}

button.center-btn.alert-dual::before {
  border-bottom-width: 38px !important;
  border-left-width: 38px !important;
}

@keyframes assistantAlertBlinkRed {
  0%, 49% {
    opacity: 0.30;
    transform: scale(0.96);
    filter: drop-shadow(-1px 1px 4px rgba(242, 52, 71, 0.25));
  }
  50%, 100% {
    opacity: 1;
    transform: scale(1.10);
    filter: drop-shadow(-1px 1px 14px rgba(242, 52, 71, 1)) drop-shadow(0 0 9px rgba(242, 52, 71, 0.95));
  }
}

@keyframes assistantAlertBlinkCyan {
  0%, 49% {
    opacity: 0.30;
    transform: scale(0.96);
    filter: drop-shadow(-1px 1px 4px rgba(111, 189, 230, 0.25));
  }
  50%, 100% {
    opacity: 1;
    transform: scale(1.10);
    filter: drop-shadow(-1px 1px 14px rgba(111, 189, 230, 1)) drop-shadow(0 0 9px rgba(111, 189, 230, 0.95));
  }
}

@keyframes assistantAlertBlinkCyanBottom {
  0%, 49% {
    opacity: 0.30;
    transform: scale(0.96);
    filter: drop-shadow(-1px -1px 4px rgba(111, 189, 230, 0.25));
  }
  50%, 100% {
    opacity: 1;
    transform: scale(1.10);
    filter: drop-shadow(-1px -1px 14px rgba(111, 189, 230, 1)) drop-shadow(0 0 9px rgba(111, 189, 230, 0.95));
  }
}

@media (max-width: 700px) {
  button.center-btn.alert-red::after,
  button.center-btn.alert-cyan::after,
  button.center-btn.alert-dual::after {
    border-top-width: 32px !important;
    border-left-width: 32px !important;
  }

  button.center-btn.alert-dual::before {
    border-bottom-width: 32px !important;
    border-left-width: 32px !important;
  }
}
/* ASSISTANT_ALERTS_CLEAR_BLINK_END */

/* === original style block 11 === */
/* ASSISTANT_ALERTS_SOFTER_FASTER_START */
/* جعل الوميض أخف قوة وأسرع */
button.center-btn.alert-red::after {
}

button.center-btn.alert-cyan::after {
}

button.center-btn.alert-dual::after {
}

button.center-btn.alert-dual::before {
}

@keyframes assistantAlertSoftFastRed {
  0%, 49% {
    opacity: 0.42;
    transform: scale(0.98);
    filter: drop-shadow(-1px 1px 3px rgba(242, 52, 71, 0.28));
  }
  50%, 100% {
    opacity: 0.90;
    transform: scale(1.05);
    filter: drop-shadow(-1px 1px 9px rgba(242, 52, 71, 0.78));
  }
}

@keyframes assistantAlertSoftFastCyan {
  0%, 49% {
    opacity: 0.42;
    transform: scale(0.98);
    filter: drop-shadow(-1px 1px 3px rgba(111, 189, 230, 0.28));
  }
  50%, 100% {
    opacity: 0.90;
    transform: scale(1.05);
    filter: drop-shadow(-1px 1px 9px rgba(111, 189, 230, 0.78));
  }
}

@keyframes assistantAlertSoftFastCyanBottom {
  0%, 49% {
    opacity: 0.42;
    transform: scale(0.98);
    filter: drop-shadow(-1px -1px 3px rgba(111, 189, 230, 0.28));
  }
  50%, 100% {
    opacity: 0.90;
    transform: scale(1.05);
    filter: drop-shadow(-1px -1px 9px rgba(111, 189, 230, 0.78));
  }
}
/* ASSISTANT_ALERTS_SOFTER_FASTER_END */

/* === original style block 12 === */
/* ASSISTANT_ALERTS_SMOOTH_START */
/* جعل الوميض سلسًا بدل النبض المتقطع */
button.center-btn.alert-red::after {
  animation: assistantAlertSmoothRed 0.70s ease-in-out infinite !important;
}

button.center-btn.alert-cyan::after {
  animation: assistantAlertSmoothCyan 0.70s ease-in-out infinite !important;
}

button.center-btn.alert-dual::after {
  animation: assistantAlertSmoothRed 0.70s ease-in-out infinite !important;
}

button.center-btn.alert-dual::before {
  animation: assistantAlertSmoothCyanBottom 0.70s ease-in-out infinite !important;
}

@keyframes assistantAlertSmoothRed {
  0% {
    opacity: 0.38;
    transform: scale(0.97);
    filter: drop-shadow(-1px 1px 2px rgba(242, 52, 71, 0.22));
  }
  50% {
    opacity: 0.88;
    transform: scale(1.05);
    filter: drop-shadow(-1px 1px 8px rgba(242, 52, 71, 0.72));
  }
  100% {
    opacity: 0.38;
    transform: scale(0.97);
    filter: drop-shadow(-1px 1px 2px rgba(242, 52, 71, 0.22));
  }
}

@keyframes assistantAlertSmoothCyan {
  0% {
    opacity: 0.38;
    transform: scale(0.97);
    filter: drop-shadow(-1px 1px 2px rgba(111, 189, 230, 0.22));
  }
  50% {
    opacity: 0.88;
    transform: scale(1.05);
    filter: drop-shadow(-1px 1px 8px rgba(111, 189, 230, 0.72));
  }
  100% {
    opacity: 0.38;
    transform: scale(0.97);
    filter: drop-shadow(-1px 1px 2px rgba(111, 189, 230, 0.22));
  }
}

@keyframes assistantAlertSmoothCyanBottom {
  0% {
    opacity: 0.38;
    transform: scale(0.97);
    filter: drop-shadow(-1px -1px 2px rgba(111, 189, 230, 0.22));
  }
  50% {
    opacity: 0.88;
    transform: scale(1.05);
    filter: drop-shadow(-1px -1px 8px rgba(111, 189, 230, 0.72));
  }
  100% {
    opacity: 0.38;
    transform: scale(0.97);
    filter: drop-shadow(-1px -1px 2px rgba(111, 189, 230, 0.22));
  }
}
/* ASSISTANT_ALERTS_SMOOTH_END */

/* === original style block 13 === */
/* ASSISTANT_ALERT_BOX_COLORS_START */
/* تمييز الخانات التي عليها تنبيهات بلون مختلف عن الخانات العادية */
button.center-btn.alert-red {
  border-color: rgba(242, 82, 100, 0.48) !important;
}

button.center-btn.alert-cyan {
  border-color: rgba(111, 189, 230, 0.48) !important;
}

button.center-btn.alert-dual {
  border-color: rgba(180, 162, 170, 0.42) !important;
}
/* ASSISTANT_ALERT_BOX_COLORS_END */

/* === original style block 14 === */
/* ASSISTANT_ALERT_BOX_ALT_STYLE_START */
/* طريقة بديلة: خلفية موحدة مع إطار وتوهج يحدد نوع التنبيه */
button.center-btn.alert-red,
button.center-btn.alert-cyan,
button.center-btn.alert-dual {
}

button.center-btn.alert-red {
  border: 2px solid rgba(242, 52, 71, 0.72) !important;
  box-shadow:
    0 14px 28px rgba(0,0,0,0.30),
    inset -10px 0 22px rgba(242, 52, 71, 0.12),
    0 0 12px rgba(242, 52, 71, 0.20) !important;
}

button.center-btn.alert-cyan {
  border: 2px solid rgba(111, 189, 230, 0.72) !important;
  box-shadow:
    0 14px 28px rgba(0,0,0,0.30),
    inset -10px 0 22px rgba(111, 189, 230, 0.12),
    0 0 12px rgba(111, 189, 230, 0.20) !important;
}

button.center-btn.alert-dual {
  border-top: 2px solid rgba(242, 52, 71, 0.76) !important;
  border-right: 2px solid rgba(242, 52, 71, 0.76) !important;
  border-bottom: 2px solid rgba(111, 189, 230, 0.76) !important;
  border-left: 2px solid rgba(111, 189, 230, 0.76) !important;
  box-shadow:
    0 14px 28px rgba(0,0,0,0.30),
    inset -12px -8px 24px rgba(242, 52, 71, 0.10),
    inset 12px 8px 24px rgba(111, 189, 230, 0.10),
    0 0 13px rgba(180, 142, 170, 0.18) !important;
}

@media (hover: hover) {
  button.center-btn.alert-red:hover {
    box-shadow:
      0 16px 32px rgba(0,0,0,0.34),
      inset -12px 0 26px rgba(242, 52, 71, 0.17),
      0 0 16px rgba(242, 52, 71, 0.28) !important;
  }

  button.center-btn.alert-cyan:hover {
    box-shadow:
      0 16px 32px rgba(0,0,0,0.34),
      inset -12px 0 26px rgba(111, 189, 230, 0.17),
      0 0 16px rgba(111, 189, 230, 0.28) !important;
  }
}
/* ASSISTANT_ALERT_BOX_ALT_STYLE_END */

/* === original style block 15 === */
/* ASSISTANT_ALERT_SIDE_STRIP_AND_NEWS_FRAME_START */
/* طريقة ثالثة لتمييز خانات التنبيه: شريط جانبي ملون مع بقاء الخانة رسمية وهادئة */
button.center-btn.alert-red,
button.center-btn.alert-cyan,
button.center-btn.alert-dual {
  color: #fffaf2 !important;
  background-color: rgba(7, 28, 52, 0.98) !important;
}

button.center-btn.alert-red {
  background-image:
    linear-gradient(to bottom, rgba(242,52,71,0.92), rgba(177,33,49,0.82)),
    linear-gradient(145deg, rgba(7,28,52,0.98), rgba(45,39,31,0.92)) !important;
  background-size: 7px 100%, 100% 100% !important;
  background-position: left center, center !important;
}

button.center-btn.alert-cyan {
  background-image:
    linear-gradient(to bottom, rgba(111,189,230,0.95), rgba(43,125,165,0.84)),
    linear-gradient(145deg, rgba(7,28,52,0.98), rgba(45,39,31,0.92)) !important;
  background-size: 7px 100%, 100% 100% !important;
  background-position: left center, center !important;
}

button.center-btn.alert-dual {
  background-image:
    linear-gradient(to bottom,
      rgba(242,52,71,0.94) 0%,
      rgba(242,52,71,0.94) 49%,
      rgba(111,189,230,0.95) 51%,
      rgba(111,189,230,0.95) 100%),
    linear-gradient(145deg, rgba(7,28,52,0.98), rgba(45,39,31,0.92)) !important;
  background-size: 7px 100%, 100% 100% !important;
  background-position: left center, center !important;
}

@media (hover: hover) {
  button.center-btn.alert-red:hover,
  button.center-btn.alert-cyan:hover,
  button.center-btn.alert-dual:hover {
  }
}

/* إطار ذهبي خفيف لمربع تفاصيل الحادث/الخبر */
#homePage .home-news-detail-card {
  border: 1px solid rgba(216,178,93,0.34) !important;
  box-shadow:
    0 26px 70px rgba(0,0,0,0.50),
    inset 0 0 0 1px rgba(247,231,176,0.055),
    inset 0 1px 0 rgba(255,255,255,0.07) !important;
}

/* برواز رسمي للعنوان مدمج معه شعار صغير */
#homePage .home-news-detail-head {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  margin: 0 0 15px !important;
  padding: 9px 54px 9px 11px !important;
  min-height: 58px !important;
  border: 1px solid rgba(216,178,93,0.30) !important;
  border-radius: 15px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    rgba(5,18,34,0.64) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.055),
    0 7px 18px rgba(0,0,0,0.16) !important;
}

#homePage .home-news-detail-head > div {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

#homePage .home-news-detail-logo {
  width: 38px !important;
  height: 38px !important;
  padding: 4px !important;
  flex: 0 0 38px !important;
  object-fit: contain !important;
  border: 1px solid rgba(216,178,93,0.25) !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,0.035) !important;
  box-shadow: none !important;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,0.25)) !important;
}

#homePage .home-news-detail-title {
  padding: 0 !important;
  color: #fffaf2 !important;
  font-size: clamp(19px, 2.15vw, 25px) !important;
  font-weight: 850 !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere !important;
}

#homePage .home-news-detail-stamp {
  margin-top: 3px !important;
  color: rgba(232,204,142,0.88) !important;
  font-size: 12px !important;
}

@media (max-width: 700px) {
  button.center-btn.alert-red,
  button.center-btn.alert-cyan,
  button.center-btn.alert-dual {
    background-size: 6px 100%, 100% 100% !important;
  }

  #homePage .home-news-detail-card {
    border-radius: 20px !important;
  }

  #homePage .home-news-detail-head {
    gap: 8px !important;
    min-height: 52px !important;
    padding: 8px 48px 8px 9px !important;
    border-radius: 13px !important;
  }

  #homePage .home-news-detail-logo {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
    padding: 3px !important;
    border-radius: 9px !important;
  }

  #homePage .home-news-detail-title {
    font-size: clamp(16px, 4.7vw, 20px) !important;
    line-height: 1.4 !important;
  }

  #homePage .home-news-detail-stamp {
    font-size: 11px !important;
  }
}
/* ASSISTANT_ALERT_SIDE_STRIP_AND_NEWS_FRAME_END */

/* === original style block 16 === */
/* ASSISTANT_CENTERED_NEWS_DIALOG_START */
/* فتح الخبر في نافذة مركزية هادئة ومنع انتقال الصفحة إلى الأعلى */
body.home-news-detail-open {
  overscroll-behavior: none !important;
}

.home-news-detail-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000001 !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(14px, 3vw, 32px) !important;
  background: rgba(2, 8, 20, 0.58) !important;
  backdrop-filter: blur(7px) saturate(0.92) !important;
  -webkit-backdrop-filter: blur(7px) saturate(0.92) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  animation: assistantNewsBackdropIn 0.22s ease-out both !important;
}

.home-news-detail-card {
  position: relative !important;
  width: min(760px, calc(100vw - 28px)) !important;
  max-height: min(82vh, 720px) !important;
  margin: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-gutter: stable !important;
  border-radius: 24px !important;
  padding: clamp(16px, 2.5vw, 24px) !important;
  background:
    linear-gradient(180deg, rgba(12, 31, 58, 0.985), rgba(5, 16, 32, 0.99)) !important;
  border: 1px solid rgba(216,178,93,0.34) !important;
  box-shadow:
    0 28px 80px rgba(0,0,0,0.56),
    inset 0 1px 0 rgba(255,255,255,0.07) !important;
  transform-origin: center center !important;
  animation: assistantNewsCardIn 0.30s cubic-bezier(.20,.80,.20,1) both !important;
}

.home-news-detail-close {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  float: left !important;
  z-index: 20 !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 0 8px 0 !important;
  border-radius: 13px !important;
  border: 1px solid rgba(216,178,93,0.26) !important;
  background: rgba(255,255,255,0.09) !important;
  color: #fffaf2 !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22) !important;
  touch-action: manipulation !important;
}

.home-news-detail-close:hover,
.home-news-detail-close:focus-visible {
  background: rgba(216,178,93,0.18) !important;
  outline: 2px solid rgba(216,178,93,0.38) !important;
  outline-offset: 2px !important;
}

.home-news-detail-head {
  clear: both !important;
}

.home-news-detail-text {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.home-news-detail-media,
.home-news-detail-media img,
.home-news-detail-media video {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.home-news-detail-media video {
  width: 100% !important;
  height: auto !important;
  max-height: min(52vh, 500px) !important;
  object-fit: contain !important;
}

@keyframes assistantNewsBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes assistantNewsCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 700px) {
  .home-news-detail-modal {
    padding: 10px !important;
    place-items: center !important;
  }

  .home-news-detail-card {
    width: calc(100vw - 20px) !important;
    max-height: 86dvh !important;
    border-radius: 20px !important;
    padding: 14px !important;
  }

  .home-news-detail-close {
    width: 44px !important;
    height: 44px !important;
    font-size: 25px !important;
  }

  .home-news-detail-text {
    font-size: 15px !important;
    line-height: 1.85 !important;
    padding: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-news-detail-modal,
  .home-news-detail-card {
    animation: none !important;
  }
}
/* ASSISTANT_CENTERED_NEWS_DIALOG_END */

/* === original style block 17 === */
/* ASSISTANT_NEWS_MODAL_VIEWPORT_FIX_START */
/* ربط نافذة الخبر مباشرة بحدود الشاشة بدل حاوية الصفحة */
html.home-news-viewport-locked,
body.home-news-viewport-locked {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body > #homeNewsDetailModal.home-news-detail-modal {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transform: none !important;
}

body > #homeNewsDetailModal.home-news-detail-modal.hidden {
  display: none !important;
}

body > #homeNewsDetailModal .home-news-detail-card {
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  transform: none !important;
}

/* الحفاظ على البرواز الرسمي بعد نقل النافذة خارج #homePage */
body > #homeNewsDetailModal .home-news-detail-head {
  align-items: center !important;
  gap: 11px !important;
  clear: both !important;
  min-height: 58px !important;
  border: 1px solid rgba(216,178,93,0.30) !important;
  border-radius: 15px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)), rgba(5,18,34,0.64) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 7px 18px rgba(0,0,0,0.16) !important;
}

body > #homeNewsDetailModal .home-news-detail-head > div {
  flex: 1 1 auto !important;
}

body > #homeNewsDetailModal .home-news-detail-logo {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  padding: 4px !important;
  object-fit: contain !important;
  border: 1px solid rgba(216,178,93,0.25) !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,0.035) !important;
}

body > #homeNewsDetailModal .home-news-detail-title {
}

body > #homeNewsDetailModal .home-news-detail-close {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  float: left !important;
  z-index: 30 !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 0 8px 0 !important;
  touch-action: manipulation !important;
}

body > #homeNewsDetailModal .home-news-detail-media,
body > #homeNewsDetailModal .home-news-detail-media img,
body > #homeNewsDetailModal .home-news-detail-media video {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body > #homeNewsDetailModal .home-news-detail-media video {
  height: auto !important;
  max-height: min(50dvh, 500px) !important;
  object-fit: contain !important;
}

body > #homeNewsDetailModal.theme-incident-red .home-news-detail-card {
  background:
    linear-gradient(180deg, rgba(110, 10, 18, 0.25), rgba(78, 8, 14, 0.25)),
    linear-gradient(180deg, rgba(28, 10, 14, 0.96), rgba(16, 6, 9, 0.98)) !important;
  border-color: rgba(196, 76, 88, 0.44) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,0.60), inset 0 1px 0 rgba(255,255,255,0.05), 0 0 0 1px rgba(133, 22, 33, 0.22) !important;
}

body > #homeNewsDetailModal.theme-incident-red .home-news-detail-head {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)), rgba(95, 16, 23, 0.25) !important;
  border-color: rgba(198, 88, 100, 0.36) !important;
}

body > #homeNewsDetailModal.theme-incident-red .home-news-detail-logo {
  border-color: rgba(198, 88, 100, 0.34) !important;
  background: rgba(110, 18, 27, 0.25) !important;
}

body > #homeNewsDetailModal.theme-incident-red .home-news-detail-text {
  background: rgba(92, 14, 21, 0.25) !important;
  border-color: rgba(198, 88, 100, 0.28) !important;
}

body > #homeNewsDetailModal.theme-incident-red .home-news-detail-stamp {
  background: rgba(110, 18, 27, 0.25) !important;
  border-color: rgba(198, 88, 100, 0.34) !important;
  color: #ffe6e6 !important;
}

body > #homeNewsDetailModal.theme-incident-red .home-news-detail-close {
  border-color: rgba(198, 88, 100, 0.36) !important;
  background: rgba(98, 16, 24, 0.25) !important;
}


@media (max-width: 700px) {

  body > #homeNewsDetailModal .home-news-detail-card {
  }

  body > #homeNewsDetailModal .home-news-detail-head {
    gap: 8px !important;
    min-height: 52px !important;
    border-radius: 13px !important;
  }

  body > #homeNewsDetailModal .home-news-detail-logo {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
    padding: 3px !important;
    border-radius: 9px !important;
  }

  body > #homeNewsDetailModal .home-news-detail-title {
  }
}
/* ASSISTANT_NEWS_MODAL_VIEWPORT_FIX_END */

/* === original style block 18 === */
/* ASSISTANT_HIDE_DEFAULT_NEWS_TEXT_START */
/* إخفاء النص الافتراضي ومنع ظهوره أثناء تحميل الأخبار */
#homeNewsTickerText:empty,
#homeNewsTickerText.is-empty,
#homeNewsTickerText[aria-hidden="true"] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#homeNewsTickerText:empty::before,
#homeNewsTickerText:empty::after,
#homeNewsTickerText.is-empty::before,
#homeNewsTickerText.is-empty::after {
  content: none !important;
  display: none !important;
}
/* ASSISTANT_HIDE_DEFAULT_NEWS_TEXT_END */

/* === original style block 19 === */
/* ASSISTANT_NEWS_EDITOR_CENTER_START */
/* تثبيت لوحة إدارة الأخبار في منتصف الشاشة بشكل متجاوب */
#homeNewsEditorBackdrop.home-news-editor-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
}

#homeNewsEditor.home-news-editor {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2147483001 !important;
  overflow-x: hidden !important;
  margin: 0 !important;
}

#homeNewsEditor .home-news-editor-title {
}

#homeNewsEditor .home-news-editor-actions {
}

body.news-editor-open {
  overflow: hidden !important;
  touch-action: none !important;
}

@media (max-width: 700px) {
  #homeNewsEditor.home-news-editor {
  }

  #homeNewsEditor .home-news-editor-title {
    top: -16px !important;
  }

  #homeNewsEditor .home-news-editor-actions {
  }

  #homeNewsEditor input,
  #homeNewsEditor textarea,
  #homeNewsEditor button,
  #homeNewsEditor label {
    font-size: 16px !important;
  }

  #homeNewsEditor button {
    min-height: 44px !important;
  }
}
/* ASSISTANT_NEWS_EDITOR_CENTER_END */

/* === original style block 20 === */
/* ASSISTANT_BACKGROUND_CREDITS_ABOVE_TICKER_START */
/* بيانات الإعداد والإشراف كعنصر خلفي أعلى شريط الأخبار */
#homePage > .home-page-background-credits {
  position: fixed !important;
  bottom: 108px !important;
  z-index: 1 !important;
  direction: rtl !important;
  color: #ffffff !important;
  opacity: 0.15 !important;
  pointer-events: none !important;
  user-select: none !important;
  font-family: "Tajawal", sans-serif !important;
  font-size: clamp(13px, 1.15vw, 16px) !important;
  font-weight: 700 !important;
  line-height: 1.8 !important;
  white-space: normal !important;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.35) !important;
}

@media (max-width: 700px) {
  #homePage > .home-page-background-credits {
    bottom: 90px !important;
    font-size: 11px !important;
    line-height: 1.65 !important;
  }
}
/* ASSISTANT_BACKGROUND_CREDITS_ABOVE_TICKER_END */

/* === original style block 21 === */
/* ASSISTANT_CREDITS_FAR_LEFT_START */
/* تثبيت بيانات الإعداد في أقصى يسار الصفحة */
#homePage > .home-page-background-credits {
  left: 0 !important;
  right: auto !important;
  width: max-content !important;
  max-width: min(440px, 100vw) !important;
  padding-left: 4px !important;
  padding-right: 0 !important;
  text-align: right !important;
}

@media (max-width: 700px) {
  #homePage > .home-page-background-credits {
    left: 0 !important;
    right: auto !important;
    width: max-content !important;
    max-width: 100vw !important;
    padding-left: 3px !important;
    padding-right: 0 !important;
  }
}
/* ASSISTANT_CREDITS_FAR_LEFT_END */

/* === original style block 22 === */
/* ASSISTANT_REMOVE_ALERT_EDGE_GLOW_START */
/* إزالة الشريط/اللون الجانبي والتوهج الملون من خانات التنبيه مع إبقاء مؤشرات الزوايا */
button.center-btn.alert-red,
button.center-btn.alert-cyan,
button.center-btn.alert-dual {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    linear-gradient(145deg, rgba(9, 33, 60, 0.98), rgba(73, 52, 31, 0.88)) !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(210, 173, 120, 0.42) !important;
  box-shadow:
    0 14px 28px rgba(0,0,0,0.30),
    inset 0 0 0 1px rgba(255,255,255,0.04) !important;
}

@media (hover: hover) {
  button.center-btn.alert-red:hover,
  button.center-btn.alert-cyan:hover,
  button.center-btn.alert-dual:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(226, 190, 135, 0.80) !important;
    box-shadow:
      0 0 0 1px rgba(226, 190, 135, 0.22),
      0 18px 34px rgba(0,0,0,0.34),
      0 0 22px rgba(184, 144, 95, 0.18) !important;
  }
}
/* ASSISTANT_REMOVE_ALERT_EDGE_GLOW_END */

/* === original style block 23 === */
/* ASSISTANT_CENTER_BOX_FONT_START */
/* خط رسمي جديد لخانات الإدارات فقط */
.center-btn {
  font-family: "Noto Kufi Arabic", "Tajawal", Tahoma, Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.9 !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 560px) {
  .center-btn {
    font-size: 15px !important;
    line-height: 1.8 !important;
  }
}
/* ASSISTANT_CENTER_BOX_FONT_END */

/* === original style block 24 === */
/* ASSISTANT_ELEGANT_CENTER_BOXES_START */
/* لوحة ألوان متناسقة مع الكحلي والذهبي في الصفحة */
#homePage .centers-grid .center-btn {
  --box-start: rgba(13, 48, 82, 0.98);
  --box-mid: rgba(7, 29, 54, 0.98);
  --box-end: rgba(36, 31, 27, 0.96);
  min-height: 96px !important;
  padding: 18px 22px !important;
  border: 1px solid rgba(218, 181, 117, 0.38) !important;
  border-radius: 18px !important;
  color: #fffaf2 !important;
  background-image:
    radial-gradient(circle at 88% 10%, rgba(238, 207, 148, 0.11), transparent 34%),
    linear-gradient(150deg, var(--box-start) 0%, var(--box-mid) 58%, var(--box-end) 100%) !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  box-shadow:
    0 13px 27px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.085),
    inset 0 -1px 0 rgba(218, 181, 117, 0.08) !important;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.42) !important;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease !important;
}

/* فروقات لونية هادئة بين الخانات من دون كسر هوية الصفحة */
#homePage .centers-grid .center-btn:nth-child(3n + 1) {
  --box-start: rgba(13, 51, 87, 0.99);
  --box-mid: rgba(7, 29, 54, 0.99);
  --box-end: rgba(45, 35, 27, 0.95);
}

#homePage .centers-grid .center-btn:nth-child(3n + 2) {
  --box-start: rgba(12, 43, 75, 0.99);
  --box-mid: rgba(6, 27, 50, 0.99);
  --box-end: rgba(25, 35, 43, 0.97);
}

#homePage .centers-grid .center-btn:nth-child(3n) {
  --box-start: rgba(17, 47, 75, 0.99);
  --box-mid: rgba(8, 29, 51, 0.99);
  --box-end: rgba(53, 39, 27, 0.94);
}

/* خانات التنبيه تحتفظ بنفس لون الخانات؛ نوع التنبيه يظهر فقط في مؤشر الزاوية */
#homePage .centers-grid .center-btn.alert-red,
#homePage .centers-grid .center-btn.alert-cyan,
#homePage .centers-grid .center-btn.alert-dual {
  border-color: rgba(218, 181, 117, 0.42) !important;
  background-image:
    radial-gradient(circle at 88% 10%, rgba(238, 207, 148, 0.11), transparent 34%),
    linear-gradient(150deg, var(--box-start) 0%, var(--box-mid) 58%, var(--box-end) 100%) !important;
  box-shadow:
    0 13px 27px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.085),
    inset 0 -1px 0 rgba(218, 181, 117, 0.08) !important;
}

@media (hover: hover) and (pointer: fine) {
  #homePage .centers-grid .center-btn:hover,
  #homePage .centers-grid .center-btn.alert-red:hover,
  #homePage .centers-grid .center-btn.alert-cyan:hover,
  #homePage .centers-grid .center-btn.alert-dual:hover {
    transform: translateY(-3px) scale(1.01) !important;
    border-color: rgba(236, 204, 145, 0.78) !important;
    filter: brightness(1.055) saturate(1.03) !important;
    box-shadow:
      0 17px 34px rgba(0, 0, 0, 0.37),
      0 0 0 1px rgba(236, 204, 145, 0.13),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(218, 181, 117, 0.12) !important;
  }
}

#homePage .centers-grid .center-btn:active {
  transform: translateY(-1px) scale(0.995) !important;
}

@media (max-width: 560px) {
  #homePage .centers-grid .center-btn {
    box-shadow:
      0 10px 22px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.075),
      inset 0 -1px 0 rgba(218, 181, 117, 0.07) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #homePage .centers-grid .center-btn {
    transition: none !important;
  }
}
/* ASSISTANT_ELEGANT_CENTER_BOXES_END */

/* === original style block 25 === */
/* NEWS_TITLE_ONLY_PATCH_START */
body > #homeNewsDetailModal .home-news-detail-head {
  display: block !important;
  direction: rtl !important;
}

body > #homeNewsDetailModal .home-news-detail-head > div {
  min-width: 0 !important;
}

body > #homeNewsDetailModal .home-news-detail-title {
  font-family: "Noto Kufi Arabic", "Tajawal", "Arial", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-align: right !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow-wrap: anywhere !important;
}

body > #homeNewsDetailModal .home-news-detail-stamp {
  text-align: right !important;
}

@media (max-width: 600px) {
  body > #homeNewsDetailModal .home-news-detail-head {
    padding-inline-start: 38px !important;
  }

  body > #homeNewsDetailModal .home-news-detail-title {
    font-size: 18px !important;
    line-height: 1.6 !important;
  }
}
/* NEWS_TITLE_ONLY_PATCH_END */

/* === original style block 26 === */
/* EQUAL_SECTOR_LOGOS_START */
.banner-left-logos {
  align-items: center !important;
}
.banner-left-logo {
  width: 58px !important;
  height: 58px !important;
  flex: 0 0 58px !important;
  object-fit: contain !important;
  object-position: center !important;
  box-sizing: border-box !important;
}
@media (max-width: 768px) {
  .banner-left-logo {
    width: 50px !important;
    height: 50px !important;
    flex-basis: 50px !important;
  }
}
/* EQUAL_SECTOR_LOGOS_END */

/* === original style block 27 === */
/* GOVERNORATE_ACTIVITY_PAGE_START */
#governorateActivityPage { padding-bottom: 40px; }
.governorate-activity-shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.governorate-activity-top {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px 22px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(8,25,48,.98), rgba(10,29,57,.97));
}
.governorate-activity-heading { text-align: center; min-width: 0; }
.governorate-activity-kicker { color: var(--gold); font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.governorate-activity-title { color: #fff; font-size: clamp(23px, 4vw, 34px); font-weight: 900; line-height: 1.4; }
.governorate-activity-back { min-width: 112px; }
.governorate-activity-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.governorate-activity-actions .status-badge { min-height: 40px; padding: 8px 12px; }
.governorate-activity-actions .btn { min-height: 40px; padding: 9px 12px; }
body.governorate-activity-open #homeNewsTicker { display: none !important; }
.governorate-activity-grid { display: grid; gap: 18px; }
.governorate-activity-card {
  position: relative; overflow: hidden; border-radius: 24px;
  border: 1px solid rgba(255,255,255,.11); box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(14,34,66,.97), rgba(7,19,38,.98));
}
.governorate-activity-card.type-incident { border-inline-start: 6px solid #e24755; }
.governorate-activity-card.type-campaign { border-inline-start: 6px solid #35bde8; }
.governorate-activity-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 10% 0, rgba(255,255,255,.08), transparent 30%);
}
.governorate-activity-card-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.governorate-activity-type { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; margin-bottom: 10px; }
.type-incident .governorate-activity-type { color: #ffdce0; background: rgba(194,48,64,.22); border: 1px solid rgba(255,119,132,.34); }
.type-campaign .governorate-activity-type { color: #dcf7ff; background: rgba(23,151,194,.22); border: 1px solid rgba(99,213,247,.34); }
.governorate-activity-card-title { font-size: clamp(20px, 3vw, 28px); font-weight: 900; line-height: 1.55; color: #fff; }
.governorate-activity-edit { display: none; flex: 0 0 auto; }
body.admin-mode .governorate-activity-edit { display: inline-flex; }
.governorate-activity-meta { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.governorate-activity-meta-item { min-width: 0; padding: 11px 12px; border-radius: 14px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); }
.governorate-activity-meta-label { display: block; color: var(--text-muted); font-size: 11px; font-weight: 800; margin-bottom: 5px; }
.governorate-activity-meta-value { display: block; color: #fff; font-size: 14px; font-weight: 800; line-height: 1.55; overflow-wrap: anywhere; }
.governorate-activity-description { position: relative; color: #e8f1ff; font-size: 16px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.governorate-activity-media { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 12px; margin-top: 16px; }
.governorate-activity-media-item { min-height: 180px; overflow: hidden; border-radius: 18px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.1); }
.governorate-activity-media img, .governorate-activity-media video { display: block; width: 100%; height: 100%; min-height: 180px; max-height: 460px; object-fit: cover; background: #020916; }
.governorate-activity-media img { cursor: zoom-in; }
.governorate-activity-empty { padding: 34px 18px; text-align: center; border-radius: 22px; color: var(--text-muted); font-size: 17px; font-weight: 800; background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.15); }

/* الخبر يظهر مختصراً، وتنسدل تفاصيله عند الضغط عليه */
.governorate-activity-card { padding: 0; }
.governorate-activity-summary {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: right;
  cursor: pointer;
  font: inherit;
}
.governorate-activity-summary:focus-visible {
  outline: 2px solid rgba(216,178,93,.95);
  outline-offset: -5px;
  border-radius: 22px;
}
.governorate-activity-summary-main { min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.governorate-activity-summary-side {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 128px;
  justify-content: center;
  padding: 10px 13px;
  border-radius: 14px;
  color: #eaf3ff;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
  font-weight: 900;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}
.governorate-activity-summary:hover .governorate-activity-summary-side {
  transform: translateY(-1px);
  background: rgba(255,255,255,.11);
  border-color: rgba(216,178,93,.34);
}
.governorate-activity-toggle-icon {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  font-size: 18px;
  line-height: 1;
  transition: transform .32s ease;
}
.governorate-activity-card.is-open .governorate-activity-toggle-icon { transform: rotate(180deg); }
.governorate-activity-details {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows .42s cubic-bezier(.2,.8,.2,1), opacity .25s ease, visibility 0s linear .42s;
}
.governorate-activity-card.is-open .governorate-activity-details {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows .42s cubic-bezier(.2,.8,.2,1), opacity .28s ease .06s, visibility 0s;
}
.governorate-activity-details-inner {
  min-height: 0;
  overflow: hidden;
}
.governorate-activity-details-content {
  padding: 0 20px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.governorate-activity-details-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
  margin-bottom: 12px;
}
.governorate-activity-card:not(.is-open) video { visibility: hidden; }

.activity-editor-modal { position: fixed; inset: 0; z-index: 1000008; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.68); backdrop-filter: blur(7px); }
.activity-editor-box { width: min(820px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 20px; border-radius: 24px; background: linear-gradient(180deg,#102548,#07162d); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 25px 70px rgba(0,0,0,.5); }
.activity-editor-title { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 16px; }
.activity-editor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.activity-editor-grid .full { grid-column: 1 / -1; }
.activity-editor-label { display: block; color: #dce9ff; font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.activity-editor-input { width: 100%; min-height: 45px; padding: 11px 12px; border-radius: 12px; color: #fff; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.12); outline: none; font: inherit; }
select.activity-editor-input { color-scheme: dark; }
select.activity-editor-input option, select.activity-editor-input optgroup { background: #0b203a; color: #ffffff; }
select.activity-editor-input optgroup { color: #f3d6aa; font-weight: 800; }
textarea.activity-editor-input { min-height: 128px; resize: vertical; line-height: 1.8; }
.activity-editor-media-preview { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 10px; margin-top: 10px; }
.activity-editor-media-preview-item { position: relative; overflow: hidden; min-height: 120px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.3); }
.activity-editor-media-preview-item img, .activity-editor-media-preview-item video { width: 100%; height: 150px; object-fit: cover; display: block; }
.activity-editor-media-remove { position: absolute; top: 7px; left: 7px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #fff; background: rgba(152,28,43,.94); font-size: 20px; cursor: pointer; }
.activity-editor-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.activity-editor-note { color: var(--text-muted); font-size: 12px; line-height: 1.7; margin-top: 7px; }
@media (max-width: 820px) {
  .governorate-activity-top { grid-template-columns: 1fr; text-align: center; }
  .governorate-activity-heading { order: 1; }
  .governorate-activity-actions { order: 2; width: 100%; justify-content: center; }
  .governorate-activity-back { width: 100%; order: 3; }
  .governorate-activity-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .governorate-activity-shell { width: min(100% - 18px, 1180px); }
  .governorate-activity-card { padding: 0; border-radius: 18px; }
  .governorate-activity-summary { padding: 15px; flex-direction: column; align-items: stretch; }
  .governorate-activity-summary-side { width: 100%; }
  .governorate-activity-details-content { padding: 0 15px 15px; }
  .governorate-activity-card-head { flex-direction: column; }
  .governorate-activity-edit { width: 100%; justify-content: center; }
  .governorate-activity-meta, .activity-editor-grid { grid-template-columns: 1fr; }
  .governorate-activity-media { grid-template-columns: 1fr; }
  .governorate-activity-actions .status-badge,
  .governorate-activity-actions .btn { width: 100%; justify-content: center; }
}

/* حركة أخبار متصلة بلا فراغ أو قفزة بين آخر خبر وأول خبر */
.home-news-cycle {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  gap: 18px !important;
  direction: ltr !important;
  white-space: nowrap !important;
}
@media (max-width: 700px) {
  .home-news-cycle { gap: 12px !important; }
}


/* QUICK_ADD_NEWS_START */
.quick-add-news-btn {
  background: linear-gradient(145deg, #1f7a52, #176142) !important;
  border-color: rgba(115, 236, 177, .28) !important;
}
.quick-news-modal {
  position: fixed;
  inset: 0;
  z-index: 1000015;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}
.quick-news-box {
  width: min(900px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px;
  border-radius: 25px;
  background: linear-gradient(180deg,#102548,#07162d);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}
.quick-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.quick-news-title { color: #fff; font-size: 23px; font-weight: 900; }
.quick-news-close-x {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.09);
  cursor: pointer;
  font-size: 25px;
}
.quick-news-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.quick-news-full { grid-column: 1 / -1; }
.quick-news-label {
  display: block;
  margin-bottom: 6px;
  color: #dce9ff;
  font-size: 12px;
  font-weight: 800;
}
.quick-news-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.13);
  outline: none;
  font: inherit;
}
.quick-news-input option,
.quick-news-input optgroup {
  color: #eef5ff;
  background: #07162d;
  font-weight: 700;
}

.quick-news-input optgroup {
  color: #d8b25d;
  background: #0d2342;
  font-weight: 900;
}

select.quick-news-input {
  color-scheme: dark;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-inline-start: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #d8b25d 50%),
    linear-gradient(135deg, #d8b25d 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  background-position:
    left 18px center,
    left 12px center,
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  border-color: rgba(216,178,93,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

select.quick-news-input:hover,
select.quick-news-input:focus {
  border-color: rgba(216,178,93,.68);
  box-shadow: 0 0 0 3px rgba(216,178,93,.10), inset 0 1px 0 rgba(255,255,255,.06);
}

select.quick-news-input:disabled {
  cursor: not-allowed;
  opacity: .66;
  color: #9eb6da;
}

.quick-news-field-hint {
  margin-top: 7px;
  color: #9eb6da;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
}
textarea.quick-news-input { min-height: 130px; resize: vertical; line-height: 1.8; }
.quick-news-choice-box {
  padding: 13px;
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
}
.quick-news-choice-title { color: #fff; font-size: 13px; font-weight: 900; margin-bottom: 9px; }
.quick-news-radio-row { display: flex; gap: 9px; flex-wrap: wrap; }
.quick-news-radio {
  flex: 1 1 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.11);
}
.quick-news-radio.type-fire { background: linear-gradient(145deg,rgba(159,46,61,.92),rgba(126,31,44,.92)); }
.quick-news-radio.type-prevention { background: linear-gradient(145deg,rgba(29,95,184,.94),rgba(18,63,125,.94)); }
.quick-news-radio.status-ongoing { background: linear-gradient(145deg,rgba(31,122,82,.96),rgba(23,97,66,.96)); }
.quick-news-radio.status-done { background: linear-gradient(145deg,rgba(159,46,61,.96),rgba(126,31,44,.96)); }
.quick-news-radio input { accent-color: #fff; }
.quick-news-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  color: #eef5ff;
  font-size: 13px;
  font-weight: 800;
}
.quick-news-toggle input { width: 21px; height: 21px; accent-color: #26b56e; }
.quick-news-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg,rgba(58,81,117,.95),rgba(26,41,68,.95));
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
.quick-news-file-label input { display: none; }
.quick-news-media-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(145px,1fr));
  gap: 10px;
  margin-top: 10px;
}
.quick-news-media-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 120px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.1);
}
.quick-news-media-item img,
.quick-news-media-item video { width: 100%; height: 145px; display: block; object-fit: cover; }
.quick-news-media-remove {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(152,28,43,.95);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.quick-news-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.quick-news-status { min-height: 24px; margin-top: 10px; color: #c8d8f1; font-size: 13px; font-weight: 800; line-height: 1.7; }
.quick-news-status.is-error { color: #ff9aa7; }
.quick-news-status.is-success { color: #78e4ad; }
.quick-news-status.is-saving { color: #f7e7b0; }
@media (max-width: 680px) {
  .quick-news-box { padding: 15px; border-radius: 19px; }
  .quick-news-grid { grid-template-columns: 1fr; }
  .quick-news-full { grid-column: auto; }
  .quick-news-radio { flex-basis: 100%; }
  .quick-news-actions .btn { width: 100%; }
}
/* QUICK_ADD_NEWS_END */

/* GOVERNORATE_ACTIVITY_PAGE_END */

/* === original style block 28 === */
/* ADMIN_LOGIN_RIGHT_SIDE_START */
/* وضع دخول المشرف في أقصى الجانب الأيمن من البنر الرئيسي */
#homePage .banner-right-group {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 132px !important;
  position: relative !important;
  z-index: 3 !important;
}

#homePage .banner-right-group .hero-logo-frame {
  grid-column: auto !important;
  grid-row: auto !important;
  justify-self: auto !important;
  margin: 0 !important;
}

#homePage .banner-right-login {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

#homePage #openLoginBtn {
  width: auto !important;
  min-width: 126px !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  #homePage .banner-right-group {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    align-items: flex-end !important;
  }

  #homePage .banner-right-login {
    justify-content: flex-end !important;
  }

  #homePage #openLoginBtn {
    width: auto !important;
    min-width: 122px !important;
    max-width: 180px !important;
  }
}
/* ADMIN_LOGIN_RIGHT_SIDE_END */

/* === original style block 29 === */
/* ASSISTANT_SECTOR_LOGOS_PHYSICAL_LEFT_START */
/* تثبيت شعاري قطاع المكافحة والإنقاذ وقطاع الوقاية في الجانب الأيسر فعلياً */
#homePage .unified-header-inner {
  direction: ltr !important;
}

#homePage .banner-right-group,
#homePage .unified-header-title,
#homePage .banner-left-group {
  direction: rtl !important;
}

#homePage .banner-left-group {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  text-align: left !important;
}

#homePage .banner-left-logos {
  direction: ltr !important;
  align-self: flex-start !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

#homePage .banner-left-actions {
  direction: rtl !important;
  align-self: flex-start !important;
}

@media (max-width: 900px) {
  #homePage .banner-left-group {
    width: 100% !important;
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: stretch !important;
    align-items: flex-start !important;
  }

  #homePage .banner-left-logos {
    width: auto !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
  }
}
/* ASSISTANT_SECTOR_LOGOS_PHYSICAL_LEFT_END */
/* ASSISTANT_SWAP_LOGIN_LOGOS_START */
/* شعارات القطاعين في اليسار، ودخول المشرف في اليمين */
#homePage .banner-right-group .banner-right-login {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  align-self: center !important;
}

#homePage .banner-left-group .banner-left-logos {
  direction: ltr !important;
  align-self: flex-start !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

@media (max-width: 900px) {
  #homePage .banner-right-group .banner-right-login {
    justify-content: flex-end !important;
    align-self: flex-end !important;
  }

  #homePage .banner-left-group .banner-left-logos {
    justify-content: flex-start !important;
    align-self: flex-start !important;
  }
}

@media (max-width: 640px) {
  #homePage .banner-right-group .banner-right-login,
  #homePage .banner-left-group .banner-left-logos {
    justify-content: center !important;
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* ASSISTANT_SWAP_LOGIN_LOGOS_END */

/* === original style block 30 === */
/* GOVERNORATE_SHARED_NEWS_MODAL_PATCH_START */
/* توحيد نافذة أخبار المحافظات مع نافذة شريط الأخبار */
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-detail-card {
}
body > #homeNewsDetailModal.theme-sector-prevention .home-news-detail-card {
  background:
    linear-gradient(rgba(72, 103, 131, 0.15), rgba(72, 103, 131, 0.15)),
    linear-gradient(180deg, rgba(18, 24, 36, 0.985), rgba(8, 14, 24, 0.995)) !important;
  border-color: rgba(113, 143, 164, 0.44) !important;
}
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-detail-head,
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-detail-text,
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-detail-stamp,
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-detail-close {
  background-color: rgba(112, 0, 18, 0.15) !important;
  border-color: rgba(205, 55, 72, 0.34) !important;
}
body > #homeNewsDetailModal.theme-sector-prevention .home-news-detail-head,
body > #homeNewsDetailModal.theme-sector-prevention .home-news-detail-text,
body > #homeNewsDetailModal.theme-sector-prevention .home-news-detail-stamp,
body > #homeNewsDetailModal.theme-sector-prevention .home-news-detail-close {
  background-color: rgba(72, 103, 131, 0.15) !important;
  border-color: rgba(113, 143, 164, 0.34) !important;
}
.governorate-activity-heading { display: flex; align-items: center; justify-content: center; }
.governorate-activity-card-admin {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  padding: 0 20px 16px;
}
.governorate-activity-card-admin .governorate-activity-edit { margin: 0; }
body:not(.admin-mode) .governorate-activity-card-admin { display: none; }
.governorate-activity-toggle-icon { transform: none !important; }
@media (max-width: 600px) {
  .governorate-activity-card-admin { padding: 0 15px 14px; }
}
/* GOVERNORATE_SHARED_NEWS_MODAL_PATCH_END */

/* === original style block 31 === */
/* ASSISTANT_BRAND_DOUBLE_GOLD_START */
#homePage .hero-logo-frame .page-brand-ar.decorated-fire-title {
  width: min(100%, 400px) !important;
}
#homePage .hero-logo-frame .page-brand-ar.decorated-fire-title img {
}
#homePage .hero-logo-frame .page-brand-en {
  color: #f2dd97 !important;
  background: linear-gradient(180deg,
    #fffbe3 0%,
    #fff3bf 24%,
    #f6df8e 48%,
    #fff0b2 68%,
    #e8c96a 84%,
    #fff7d0 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow:
    0 1px 0 rgba(255,244,201,.28),
    0 2px 3px rgba(122,88,22,.38),
    0 8px 16px rgba(0,0,0,.28) !important;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  #homePage .hero-logo-frame .page-brand-en {
    background: none !important;
    color: #f2dd97 !important;
    -webkit-text-fill-color: currentColor !important;
  }
}
/* optional: keep governorate card title styling from latest request */
.governorate-activity-card.type-incident {
  border-inline-start: 6px solid #cf4050 !important;
  border-color: rgba(207,64,80,.38) !important;
  background:
    linear-gradient(180deg, rgba(176, 28, 47, .16), rgba(94, 14, 28, .13)),
    linear-gradient(180deg, rgba(14,34,66,.97), rgba(7,19,38,.98)) !important;
}
.governorate-activity-card.type-campaign {
  border-inline-start: 6px solid #486783 !important;
  border-color: rgba(72,103,131,.40) !important;
  background:
    linear-gradient(180deg, rgba(72,103,131,.18), rgba(39,57,73,.15)),
    linear-gradient(180deg, rgba(14,34,66,.97), rgba(7,19,38,.98)) !important;
}
.governorate-activity-card-title {
  background: linear-gradient(180deg, #f6f8fb 0%, #dfe4eb 38%, #b8c0cb 62%, #eef2f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d9dee7 !important;
  font-family: "Arabic Typesetting", "Traditional Arabic", "Noto Naskh Arabic", "Geeza Pro", serif;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .governorate-activity-card-title {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
  }
}
@media (max-width: 700px) {
}
/* ASSISTANT_BRAND_DOUBLE_GOLD_END */

/* === original style block 32 === */
/* ASSISTANT_LIGHT_GOLD_ENGLISH_BRAND_START */
#homePage .hero-logo-frame .page-brand-en,
.page-brand-en {
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  #homePage .hero-logo-frame .page-brand-en,
  .page-brand-en {
  }
}
/* ASSISTANT_LIGHT_GOLD_ENGLISH_BRAND_END */

/* === original style block 33 === */
/* ASSISTANT_FOUR_COLUMN_FADE_IN_START */

#homePage .centers-grid .center-btn.fire-card-intro-ready {
  opacity: 0 !important;
  transform: translateY(18px) scale(.985) !important;
  filter: blur(2px) !important;
}

#homePage .centers-grid .center-btn.fire-card-intro-running {
  box-shadow: none !important;
}

#homePage .centers-grid .center-btn.fire-card-intro-complete {
  animation: none !important;
}

@media (max-width: 1050px) {
  #homePage .centers-grid {
  }
}

@media (max-width: 560px) {
  #homePage .centers-grid {
  }
}

@media (prefers-reduced-motion: reduce) {
  #homePage .centers-grid .center-btn.fire-card-intro-ready,
  #homePage .centers-grid .center-btn.fire-card-intro-running {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
/* ASSISTANT_FOUR_COLUMN_FADE_IN_END */

/* === original style block 34 === */
/* ASSISTANT_ADMIN_PUBLIC_SPLIT_GOLD_NEWS_DOTS_START */
:root {
  --admin-shell-gold: #d8b25d;
  --admin-shell-gold-light: #f7e7b0;
  --admin-shell-navy: #08172f;
}

/* إخفاء أدوات المشرف القديمة الموزعة داخل واجهة الجمهور */
#homePage .banner-left-actions,
#governorateActivityPage .governorate-activity-actions,
#centerPage #openLoginBtnCenter,
#centerPage #quickAddNewsBtnCenter,
#centerPage #textEditorBtnCenter,
#centerPage #logoutBtnCenter,
#homeNewsEditBtn {
  display: none !important;
}

/* مساحة عمل المشرف تظهر فقط بعد الدخول */
.admin-workspace-bar {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 1000000;
  display: none;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 20px);
  padding: 8px 10px;
  border: 1px solid rgba(216,178,93,.48);
  border-radius: 16px;
  direction: rtl;
  color: #fff;
  background: linear-gradient(145deg, rgba(6,20,43,.97), rgba(12,39,72,.97));
  box-shadow: 0 14px 38px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.admin-mode .admin-workspace-bar {
  display: flex;
}
.admin-workspace-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-inline: 4px 7px;
  color: var(--admin-shell-gold-light);
  font: 900 12px/1.2 "Tajawal", "Noto Kufi Arabic", Arial, sans-serif;
  white-space: nowrap;
}
.admin-workspace-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #49d889;
  box-shadow: 0 0 0 3px rgba(73,216,137,.16), 0 0 12px rgba(73,216,137,.55);
}
.admin-workspace-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.admin-workspace-button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.075);
  font: 800 11px/1.2 "Tajawal", "Noto Kufi Arabic", Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.admin-workspace-button:hover,
.admin-workspace-button:focus-visible {
  background: rgba(255,255,255,.14);
  border-color: rgba(247,231,176,.55);
  outline: none;
}
.admin-workspace-button.is-primary {
  color: #07152b;
  border-color: rgba(247,231,176,.72);
  background: linear-gradient(180deg, var(--admin-shell-gold-light), var(--admin-shell-gold));
}
.admin-workspace-button.is-danger {
  border-color: rgba(255,133,148,.35);
  background: rgba(156,39,55,.82);
}

/* كل خبر وحدة مستقلة، والفاصل نقطة ذهبية غير قابلة للنقر */
.home-news-text.has-news-items {
  gap: 0 !important;
}
.home-news-item + .home-news-item::before {
  content: none !important;
  display: none !important;
}
.home-news-separator {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-inline: 5px;
  color: var(--admin-shell-gold-light);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 10px rgba(216,178,93,.58);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 760px) {
  .admin-workspace-bar {
    top: max(7px, env(safe-area-inset-top));
    right: 7px;
    left: 7px;
    max-width: none;
    justify-content: space-between;
    gap: 6px;
    padding: 7px;
    border-radius: 13px;
  }
  .admin-workspace-status {
    font-size: 10px;
    padding-inline: 2px;
  }
  .admin-workspace-actions {
    justify-content: flex-end;
    gap: 5px;
  }
  .admin-workspace-button {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 10px;
  }
  .home-news-separator {
    width: 14px;
    min-width: 14px;
    margin-inline: 2px;
    font-size: 21px;
  }
}

@media (max-width: 430px) {
  .admin-workspace-status span:last-child {
    display: none;
  }
  .admin-workspace-button {
    padding-inline: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-workspace-button {
    transition: none !important;
  }
}
/* ASSISTANT_ADMIN_PUBLIC_SPLIT_GOLD_NEWS_DOTS_END */

/* === original style block 35 === */
/* ASSISTANT_NEWS_PHASE2_TECH_CLEANUP_PHASE3_START */
:root {
  --official-news-navy: #07172d;
  --official-news-navy-2: #0d2748;
  --official-news-gold: #d8b45f;
  --official-news-gold-light: #f5e3aa;
  --official-news-silver: #dce4ee;
  --official-news-border: rgba(216, 180, 95, .38);
}

/* الحفاظ على حجم الهوية الإنجليزية والتوزيع المتجاوب لخانات المحافظات */
#homePage .hero-logo-frame .page-brand-en,
.page-brand-en {
  font-size: clamp(30px, 4vw, 50px) !important;
  line-height: 1.08 !important;
  white-space: nowrap !important;
}
#homePage .centers-grid {
  display: grid !important;
  align-items: stretch !important;
}
#homePage .centers-grid .center-btn {
  width: 100% !important;
  min-width: 0 !important;
}

/* غلاف نافذة الخبر الرسمي */
body > #homeNewsDetailModal.home-news-detail-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(14px, 3vw, 34px) !important;
  overflow: hidden !important;
  background: rgba(2, 8, 18, .82) !important;
  -webkit-backdrop-filter: blur(8px) saturate(.92) !important;
  backdrop-filter: blur(8px) saturate(.92) !important;
}
body > #homeNewsDetailModal.hidden {
  display: none !important;
}
body.home-news-detail-open {
  overflow: hidden !important;
}

body > #homeNewsDetailModal .home-news-detail-card {
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  color: #f7f9fc !important;
  border: 1px solid var(--official-news-border) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 18%),
    linear-gradient(145deg, var(--official-news-navy-2), var(--official-news-navy) 64%, #050d1a) !important;
  box-shadow: 0 26px 70px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.05) !important;
  animation: officialNewsDialogIn .22s cubic-bezier(.2,.76,.3,1) both !important;
}
body > #homeNewsDetailModal .home-news-detail-card::before {
  content: "" !important;
  position: absolute !important;
  inset-inline: 0 !important;
  top: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, transparent, var(--official-news-gold), transparent) !important;
  opacity: .88 !important;
  pointer-events: none !important;
}
body > #homeNewsDetailModal .home-news-detail-watermark {
  border-radius: inherit !important;
  pointer-events: none !important;
}

@keyframes officialNewsDialogIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* رأس الخبر */
body > #homeNewsDetailModal .home-news-detail-head {
  flex: 0 0 auto !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
}
body > #homeNewsDetailModal .home-news-detail-head > div {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
body > #homeNewsDetailModal .home-news-detail-official-emblem {
  width: clamp(32px, 3.6vw, 42px) !important;
  height: auto !important;
  max-height: 46px !important;
  margin: 0 auto 7px !important;
  object-fit: contain !important;
  pointer-events: none !important;
  user-select: none !important;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,.28)) !important;
}
body > #homeNewsDetailModal .home-news-detail-title,
.governorate-activity-card-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  direction: rtl !important;
  gap: .28em !important;
  width: 100% !important;
  color: var(--official-news-gold-light) !important;
  font-family: "Noto Kufi Arabic", "Tajawal", "Geeza Pro", sans-serif !important;
  font-weight: 800 !important;
  text-align: center !important;
}
body > #homeNewsDetailModal .home-news-detail-title .news-title-text,
.governorate-activity-card-title .news-title-text {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: calc(100% - 2em) !important;
  min-width: 0 !important;
  color: var(--official-news-gold-light) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.24) !important;
}
.news-sector-icon,
.news-sector-icon.icon-fire,
.news-sector-icon.icon-prevention {
  order: -1 !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
  font-size: 1.12em !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: none !important;
}

/* بيانات الخبر */
body > #homeNewsDetailModal .home-news-detail-stamp {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 9px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--official-news-silver) !important;
}
body > #homeNewsDetailModal .home-news-meta-chip {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 4px 10px !important;
  border: 1px solid rgba(216,180,95,.25) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.045) !important;
  color: #e8edf5 !important;
  font: 700 12px/1.5 "Tajawal", "Noto Kufi Arabic", sans-serif !important;
  white-space: nowrap !important;
}
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-meta-sector {
}
body > #homeNewsDetailModal.theme-sector-prevention .home-news-meta-sector {
  border-color: rgba(105,158,202,.48) !important;
  background: rgba(72,103,131,.24) !important;
}

/* محتوى الخبر */
body > #homeNewsDetailModal .home-news-detail-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: grid !important;
  align-items: start !important;
  align-content: start !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
  margin-top: 18px !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-gutter: stable !important;
}
body > #homeNewsDetailModal .home-news-detail-card.has-media .home-news-detail-content {
  grid-template-columns: minmax(0, 1.14fr) minmax(300px, .86fr) !important;
  align-items: start !important;
}
body > #homeNewsDetailModal .home-news-detail-text {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.035) !important;
  color: #edf2f8 !important;
  font-family: "Tajawal", "Noto Kufi Arabic", sans-serif !important;
  font-size: clamp(15px, 1.45vw, 18px) !important;
  text-align: right !important;
  overflow-wrap: anywhere !important;
}
body > #homeNewsDetailModal .home-news-detail-media {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 12px !important;
  align-content: start !important;
}
body > #homeNewsDetailModal .home-news-detail-media:empty {
  display: none !important;
}
body > #homeNewsDetailModal .home-news-media-item {
  width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  border: 1px solid rgba(216,180,95,.18) !important;
  border-radius: 15px !important;
  background: #02070f !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.20) !important;
}
body > #homeNewsDetailModal .home-news-media-item img,
body > #homeNewsDetailModal .home-news-media-item video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  border-radius: 0 !important;
  object-position: center !important;
}
body > #homeNewsDetailModal .home-news-media-item img {
  object-fit: cover !important;
  cursor: zoom-in !important;
}
body > #homeNewsDetailModal .home-news-media-item video {
  object-fit: contain !important;
  background: #000 !important;
}

/* معرض الأخبار الموحد */
body > #homeNewsDetailModal.unified-news-window .home-news-detail-media {
  display: block !important;
}
body > #homeNewsDetailModal .governorate-news-carousel {
  margin: 0 auto !important;
}
body > #homeNewsDetailModal .governorate-news-carousel-track {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  border: 1px solid rgba(216,180,95,.22) !important;
  background: #02070f !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.24) !important;
}
body > #homeNewsDetailModal .governorate-news-slide {
  position: absolute !important;
  inset: 0 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
}
body > #homeNewsDetailModal .governorate-news-slide.is-active {
  display: flex !important;
}
body > #homeNewsDetailModal .governorate-news-slide img,
body > #homeNewsDetailModal .governorate-news-slide video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}
body > #homeNewsDetailModal .governorate-news-slide img {
  object-fit: cover !important;
  cursor: zoom-in !important;
}
body > #homeNewsDetailModal .governorate-news-slide video {
  object-fit: contain !important;
  background: #000 !important;
}
body > #homeNewsDetailModal .governorate-news-carousel-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 10px !important;
  direction: rtl !important;
}
body > #homeNewsDetailModal .governorate-news-carousel-control {
  position: static !important;
  inset: auto !important;
  z-index: 5 !important;
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: 50% !important;
  background: rgba(5,18,35,.78) !important;
  color: #fff !important;
  font-size: 23px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
body > #homeNewsDetailModal .governorate-news-carousel-control.prev,
body > #homeNewsDetailModal .governorate-news-carousel-control.next {
  right: auto !important;
  left: auto !important;
}
body > #homeNewsDetailModal .governorate-news-carousel-control:hover,
body > #homeNewsDetailModal .governorate-news-carousel-control:focus-visible {
  background: rgba(216,180,95,.92) !important;
  color: #07172d !important;
}
body > #homeNewsDetailModal .governorate-news-carousel-counter {
  width: max-content !important;
  min-width: 56px !important;
  margin: 0 !important;
  padding: 4px 10px !important;
  text-align: center !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.06) !important;
  color: #e8edf5 !important;
  font: 700 12px/1.4 "Tajawal", sans-serif !important;
}


/* إلغاء بقايا تلوين الرأس القديمة مع الإبقاء على لون القطاع في البطاقة وشرائح البيانات */
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-detail-head,
body > #homeNewsDetailModal.theme-sector-prevention .home-news-detail-head,
body > #homeNewsDetailModal.theme-incident-red .home-news-detail-head {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(216,180,95,.18) !important;
}
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-detail-text,
body > #homeNewsDetailModal.theme-sector-prevention .home-news-detail-text,
body > #homeNewsDetailModal.theme-incident-red .home-news-detail-text {
  background: rgba(255,255,255,.035) !important;
  background-color: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.07) !important;
}
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-detail-stamp,
body > #homeNewsDetailModal.theme-sector-prevention .home-news-detail-stamp,
body > #homeNewsDetailModal.theme-incident-red .home-news-detail-stamp,
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-detail-close,
body > #homeNewsDetailModal.theme-sector-prevention .home-news-detail-close,
body > #homeNewsDetailModal.theme-incident-red .home-news-detail-close {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* زر الإغلاق بلا مربع */
body > #homeNewsDetailModal .home-news-detail-close,
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-detail-close,
body > #homeNewsDetailModal.theme-sector-prevention .home-news-detail-close,
body > #homeNewsDetailModal.theme-incident-red .home-news-detail-close {
  position: absolute !important;
  z-index: 12 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff7e0 !important;
  line-height: 1 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.38) !important;
  cursor: pointer !important;
}
body > #homeNewsDetailModal .home-news-detail-close:hover,
body > #homeNewsDetailModal .home-news-detail-close:focus-visible {
  color: var(--official-news-gold-light) !important;
  transform: scale(1.08) !important;
  text-shadow: 0 0 12px rgba(216,180,95,.45) !important;
}

@media (max-width: 1050px) {
  #homePage .centers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(760px, calc(100vw - 28px)) !important;
    gap: 12px !important;
  }
  body > #homeNewsDetailModal .home-news-detail-card.has-media .home-news-detail-content {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr) !important;
  }
}

@media (max-width: 700px) {
  #homePage .hero-logo-frame .page-brand-en,
  .page-brand-en {
    font-size: clamp(26px, 8vw, 36px) !important;
    letter-spacing: .5px !important;
  }
  body > #homeNewsDetailModal.home-news-detail-modal {
  }
  body > #homeNewsDetailModal .home-news-detail-card {
    max-width: none !important;
    animation-duration: .18s !important;
  }
  body > #homeNewsDetailModal .home-news-detail-head {
  }
  body > #homeNewsDetailModal .home-news-detail-official-emblem {
    width: 32px !important;
    max-height: 36px !important;
    margin-bottom: 4px !important;
  }
  body > #homeNewsDetailModal .home-news-detail-title {
    line-height: 1.7 !important;
  }
  body > #homeNewsDetailModal .home-news-detail-title .news-sector-icon {
    align-self: flex-start !important;
    margin-top: .38em !important;
  }
  body > #homeNewsDetailModal .home-news-detail-content,
  body > #homeNewsDetailModal .home-news-detail-card.has-media .home-news-detail-content {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    margin-top: 12px !important;
  }
  body > #homeNewsDetailModal .home-news-detail-text {
    font-size: 15px !important;
    line-height: 1.9 !important;
  }
  body > #homeNewsDetailModal .home-news-detail-media {
    grid-template-columns: 1fr !important;
  }
  body > #homeNewsDetailModal .home-news-detail-close {
    top: 7px !important;
    inset-inline-end: 8px !important;
  }
  body > #homeNewsDetailModal .home-news-meta-chip {
    min-height: 26px !important;
    padding: 3px 8px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 560px) {
  #homePage .centers-grid .center-btn {
    min-height: 82px !important;
    padding: 10px 7px !important;
    font-size: clamp(11px, 3.35vw, 14px) !important;
    line-height: 1.55 !important;
    border-radius: 15px !important;
    overflow-wrap: anywhere !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > #homeNewsDetailModal .home-news-detail-card {
    animation: none !important;
  }
  body > #homeNewsDetailModal .home-news-detail-close,
  body > #homeNewsDetailModal .governorate-news-carousel-control {
    transition: none !important;
  }
}
/* ASSISTANT_NEWS_PHASE2_TECH_CLEANUP_PHASE3_END */

/* === original style block 36 === */
/* ASSISTANT_THREE_HOME_CARDS_START */
#homePage .centers-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: min(960px, calc(100vw - 48px)) !important;
  max-width: 960px !important;
  gap: 16px !important;
}
@media (max-width: 900px) {
  #homePage .centers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(760px, calc(100vw - 28px)) !important;
    max-width: 760px !important;
    gap: 12px !important;
  }
}
@media (max-width: 560px) {
  #homePage .centers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    gap: 9px !important;
  }
}
/* ASSISTANT_THREE_HOME_CARDS_END */

/* === original style block 37 === */
/* ASSISTANT_ADMIN_CLOSE_ALL_MEDIA_ZOOM_START */
#loginModal .admin-login-box {
  padding-top: 56px !important;
}
#loginModal .admin-login-close {
  inset-block-start: 12px !important;
  inset-inline-end: 14px !important;
  font-weight: 400 !important;
  transition: background .18s ease, color .18s ease, transform .18s ease !important;
  z-index: 3 !important;
}
#loginModal .admin-login-close:hover,
#loginModal .admin-login-close:focus-visible {
  background: rgba(215,180,90,.18) !important;
  color: #f2d98d !important;
  transform: scale(1.06) !important;
  outline: 2px solid rgba(242,217,141,.72) !important;
  outline-offset: 2px !important;
}

@media (max-width: 600px) {
  #loginModal .admin-login-box {
    padding-top: 52px !important;
  }
  #loginModal .admin-login-close {
    width: 36px !important;
    height: 36px !important;
    font-size: 28px !important;
  }
}
/* ASSISTANT_ADMIN_CLOSE_ALL_MEDIA_ZOOM_END */

/* === original style block 38 === */
/* ASSISTANT_CLICK_IMAGE_TO_VIEWER_START */
body > #homeNewsDetailModal #homeNewsDetailMedia img[data-home-news-media="1"] {
  cursor: zoom-in !important;
}
/* ASSISTANT_CLICK_IMAGE_TO_VIEWER_END */

/* === original style block 39 === */
/* ASSISTANT_REMOVE_GOVERNORATE_PAGE_BACKGROUNDS_START */
#governorateActivityPage,
#governorateActivityPage.mubarak-bg {
  background: none !important;
  background-image: none !important;
}
#governorateActivityPage::before,
#governorateActivityPage.mubarak-bg::before {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
}
/* ASSISTANT_REMOVE_GOVERNORATE_PAGE_BACKGROUNDS_END */

/* === original style block 40 === */
/* ASSISTANT_HOME_SECTIONS_SPLIT_START */
#homePage .home-centers-sections {
  width: min(1040px, calc(100vw - 40px));
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}
#homePage .home-centers-section {
  min-width: 0;
}
#homePage .home-centers-section-head {
  position: relative;
  margin: 0 auto 18px;
  padding: 0 0 12px;
  text-align: center;
}
#homePage .home-centers-section-head::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  width: min(190px, 46%);
  height: 2px;
  margin-inline: auto;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #d8b45f, transparent);
}
#homePage .home-centers-section-title {
  margin: 0;
  color: #f5e3aa;
  font-size: clamp(21px, 2.8vw, 30px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .1px;
}
#homePage .home-centers-section-description {
  max-width: 620px;
  margin: 6px auto 0;
  color: rgba(226, 233, 242, .76);
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 600;
  line-height: 1.8;
}
#homePage .home-centers-section .centers-grid {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}
#homePage .home-centers-section .center-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 94px !important;
}
#homePage .specialized-centers-grid .center-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}
#homePage .specialized-section {
  padding-top: clamp(6px, 1vw, 12px);
  border-top: 1px solid rgba(255,255,255,.07);
}
@media (max-width: 900px) {
  #homePage .home-centers-sections {
    width: min(760px, calc(100vw - 28px));
  }
  #homePage .home-centers-section .centers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}
@media (max-width: 600px) {
  #homePage .home-centers-sections {
    width: calc(100vw - 20px);
    gap: 30px;
  }
  #homePage .home-centers-section-head {
    margin-bottom: 13px;
    padding-bottom: 10px;
  }
  #homePage .home-centers-section-description {
    padding-inline: 8px;
  }
  #homePage .home-centers-section .centers-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  #homePage .home-centers-section .center-btn {
    min-height: 76px !important;
    padding: 12px 14px !important;
    font-size: clamp(14px, 4vw, 17px) !important;
    line-height: 1.55 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #homePage .home-centers-section .center-btn {
    transition: none !important;
  }
}
/* ASSISTANT_HOME_SECTIONS_SPLIT_END */

/* === original style block 41 === */
/* ASSISTANT_FIRE_THEME_AND_TICKER_META_START */
/* نافذة المكافحة والإنقاذ: طبقة حمراء خفيفة وحدود وشريحة قطاع حمراء */
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-detail-card {
  background:
    linear-gradient(180deg, rgba(148, 24, 42, .13), rgba(92, 10, 25, .08)),
    linear-gradient(180deg, rgba(17, 25, 39, .992), rgba(7, 13, 23, .997)) !important;
  border-color: rgba(218, 72, 88, .58) !important;
  box-shadow:
    0 28px 78px rgba(0,0,0,.58),
    inset 0 0 0 1px rgba(255, 112, 127, .08) !important;
}
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-detail-text,
body > #homeNewsDetailModal.theme-sector-firefighting .governorate-news-carousel-track,
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-media-item {
  border-color: rgba(218, 72, 88, .32) !important;
  background-color: rgba(132, 22, 38, .09) !important;
}
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-meta-chip {
  border-color: rgba(218, 72, 88, .24) !important;
}
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-meta-sector {
  border-color: rgba(239, 91, 108, .64) !important;
  background: rgba(176, 35, 54, .34) !important;
  color: #ffe7ea !important;
}

/* حقول بيانات خبر شريط الأخبار */
#homeNewsEditor .home-news-meta-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0 14px;
}
#homeNewsEditor .home-news-meta-editor-field {
  min-width: 0;
}
#homeNewsEditor .home-news-meta-editor-field label {
  display: block;
  margin: 0 0 6px;
  color: #e9d8a7;
  font-size: 12px;
  font-weight: 800;
}
#homeNewsEditor .home-news-meta-editor-field input,
#homeNewsEditor .home-news-meta-editor-field select {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  outline: none;
  background: rgba(255,255,255,.07);
  color: #fff;
  color-scheme: dark;
  font-family: "Tajawal", "Noto Kufi Arabic", sans-serif;
}
#homeNewsEditor .home-news-meta-editor-field input:focus,
#homeNewsEditor .home-news-meta-editor-field select:focus {
  border-color: rgba(216,180,95,.62);
  box-shadow: 0 0 0 3px rgba(216,180,95,.10);
}
@media (max-width: 700px) {
  #homeNewsEditor .home-news-meta-editor-grid {
    grid-template-columns: 1fr;
  }
}
/* ASSISTANT_FIRE_THEME_AND_TICKER_META_END */

/* === original style block 42 === */
/* ASSISTANT_CENTER_DROPDOWN_COMPACT_DARK_START */
#quickNewsTeam {
  font-size: 12px !important;
  color: #f1f5fb !important;
  background-color: #071426 !important;
  color-scheme: dark !important;
}

#quickNewsTeam:hover,
#quickNewsTeam:focus,
#quickNewsTeam:focus-visible {
  background-color: #040d1a !important;
  border-color: rgba(216, 178, 93, .72) !important;
}

#quickNewsTeam option {
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  color: #eef4ff !important;
  background: #061225 !important;
}

#quickNewsTeam optgroup {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #e1bd7a !important;
  background: #0a1b32 !important;
}

#quickNewsTeam option:checked {
  color: #fff7e6 !important;
  background: #183552 !important;
}

@media (max-width: 700px) {
  #quickNewsTeam {
    font-size: 11.5px !important;
  }

  #quickNewsTeam option,
  #quickNewsTeam optgroup {
    font-size: 10.5px !important;
  }
}
/* ASSISTANT_CENTER_DROPDOWN_COMPACT_DARK_END */

/* KFF_GOVERNORATE_CONSOLIDATED_START */
#governorateActivityPage {
  --gov-bg: #051326;
  --gov-panel: rgba(7, 28, 53, .94);
  --gov-panel-strong: #041326;
  --gov-line: rgba(231, 189, 101, .34);
  --gov-gold: #e7bd65;
  --gov-text: #f7f9fc;
  --gov-muted: #9eb1c8;
  min-height: 100vh;
  padding: 18px 0 52px;
  color: var(--gov-text);
  background:
    radial-gradient(circle at 84% -10%, rgba(35, 94, 151, .2), transparent 34%),
    radial-gradient(circle at 6% 45%, rgba(216, 176, 86, .055), transparent 31%),
    linear-gradient(180deg, #071a31 0%, var(--gov-bg) 48%, #040e1d 100%);
}

.gov-dashboard-shell { width: min(1360px, calc(100% - 32px)); margin: 0 auto; }

/* Compact official header */
.gov-dashboard-header {
  min-height: 108px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "identity actions";
  align-items: center;
  gap: 24px;
  padding: 17px 22px;
  border: 1px solid var(--gov-line);
  border-bottom: 3px solid rgba(231, 189, 101, .72);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025), transparent 48%),
    linear-gradient(135deg, rgba(8,34,63,.98), rgba(4,19,38,.98));
  box-shadow: 0 16px 38px rgba(0,0,0,.25);
}
.gov-dashboard-identity {
  grid-area: identity;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 17px;
  direction: rtl;
}
.gov-dashboard-logo {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,.28));
}
.gov-dashboard-heading { min-width: 0; text-align: right; }
.gov-dashboard-kicker { margin-bottom: 3px; color: #c5d2e2; font-size: 12px; font-weight: 800; }
.gov-dashboard-title {
  margin: 0;
  color: var(--gov-gold);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.25;
  text-wrap: balance;
}
.gov-dashboard-subtitle { margin-top: 4px; color: var(--gov-muted); font-size: 12px; font-weight: 700; }
.gov-dashboard-header-action {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.gov-dashboard-update {
  min-width: 152px;
  display: grid;
  gap: 3px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  text-align: right;
  color: #9fb2c9;
  background: rgba(255,255,255,.035);
  font-size: 10px;
  line-height: 1.4;
}
.gov-dashboard-update strong { color: #fff; font-size: 12px; }
.gov-dashboard-back {
  min-width: 145px;
  min-height: 44px;
  border-color: rgba(231,189,101,.55) !important;
  border-radius: 12px !important;
  background: rgba(231,189,101,.055) !important;
}

/* Modern sector selector */
.gov-sector-tabs {
  position: sticky;
  top: 8px;
  z-index: 20;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(4, 18, 35, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 25px rgba(0,0,0,.16);
}
.gov-sector-tab {
  min-height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #cbd8e7;
  background: rgba(255,255,255,.025);
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.gov-sector-tab::after {
  content: "";
  position: absolute;
  inset: auto 12% 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  opacity: 0;
}
.gov-sector-tab:hover { transform: translateY(-1px); background: rgba(255,255,255,.045); }
.gov-sector-tab:focus-visible { outline: 2px solid var(--gov-gold); outline-offset: 2px; }
.gov-sector-tab b {
  min-width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.09);
  font-size: 11px;
}
.gov-sector-tab[data-sector="incident"].is-active {
  border-color: rgba(239,75,85,.38);
  color: #fff;
  background: linear-gradient(90deg, rgba(220,38,38,.20), rgba(220,38,38,.09));
}
.gov-sector-tab[data-sector="incident"].is-active::after { opacity: 1; background: #ef4b55; }
.gov-sector-tab[data-sector="campaign"].is-active {
  border-color: rgba(56,189,248,.4);
  color: #fff;
  background: linear-gradient(90deg, rgba(56,189,248,.20), rgba(56,189,248,.08));
}
.gov-sector-tab[data-sector="campaign"].is-active::after { opacity: 1; background: #38bdf8; }

/* News workspace */
.gov-news-frame {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 18px;
  background: rgba(4, 18, 35, .54);
  box-shadow: 0 16px 38px rgba(0,0,0,.18);
}
.gov-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
  padding: 0 2px;
}
.gov-section-heading h2 { margin: 2px 0 0; color: var(--gov-gold); font-size: 20px; }
.gov-section-eyebrow { color: #7f96af; font-size: 10px; font-weight: 900; letter-spacing: .4px; }
.gov-section-count {
  padding: 6px 10px;
  border: 1px solid rgba(231,189,101,.23);
  border-radius: 999px;
  color: #dce6f2;
  background: rgba(255,255,255,.035);
  font-size: 11px;
  font-weight: 800;
}
.gov-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "featured" "list";
  gap: 18px;
  align-items: stretch;
}

/* Featured story */
.gov-featured-news {
  --gov-sector-tint: rgba(255,255,255,0);
  grid-area: featured;
  min-width: 0;
  height: 390px;
  min-height: 390px;
  max-height: 390px;
  display: grid;
  grid-template-columns: minmax(390px, 1.18fr) minmax(360px, .82fr);
  grid-template-areas: "media content";
  gap: 0;
  direction: ltr;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(231,189,101,.5);
  border-radius: 18px;
  background: var(--gov-panel-strong);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 18px 40px rgba(0,0,0,.24);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.gov-featured-news:hover { transform: translateY(-2px); border-color: rgba(231,189,101,.78); box-shadow: 0 23px 48px rgba(0,0,0,.31); }
.gov-featured-news.gov-featured-incident { --gov-sector-tint: rgba(220,38,38,.20); }
.gov-featured-news.gov-featured-campaign { --gov-sector-tint: rgba(56,189,248,.20); }
.gov-featured-news:focus-visible { outline: 3px solid var(--gov-gold); outline-offset: 3px; }
.gov-featured-media {
  grid-area: media;
  width: calc(100% + 112px);
  min-width: 0;
  height: 100%;
  min-height: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 0;
  background: #07172b;
}
.gov-featured-media::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 168px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4,19,38,0) 0%, rgba(4,19,38,.13) 24%, rgba(4,19,38,.53) 55%, rgba(4,19,38,.9) 82%, #041326 100%);
}
.gov-featured-media img,
.gov-featured-media video,
.gov-featured-placeholder { width: 100%; height: 100%; min-height: 0; display: block; object-fit: cover; }
.gov-featured-media video { pointer-events: none; }
.gov-featured-placeholder { display: grid; place-items: center; color: rgba(255,255,255,.42); font-size: 62px; }
.gov-featured-media-info { position: absolute; left: 14px; bottom: 14px; z-index: 4; display: flex; gap: 7px; direction: rtl; }
.gov-featured-media-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(2,10,21,.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 900;
}
.gov-featured-media-chip.is-video { background: rgba(170,20,36,.82); }
.gov-featured-content {
  grid-area: content;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  margin-left: -112px;
  padding: 26px 34px 28px 148px;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  direction: rtl;
  text-align: right;
  border: 0;
  background:
    linear-gradient(var(--gov-sector-tint), var(--gov-sector-tint)),
    linear-gradient(90deg, rgba(4,19,38,0) 0%, rgba(4,19,38,.18) 18%, rgba(4,19,38,.73) 42%, rgba(4,19,38,.96) 67%, #041326 100%);
}
.gov-featured-topline { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.gov-featured-badge { position: static; flex: 0 0 auto; margin: 0; padding: 7px 14px; border-radius: 999px; color: #fff; background: #bf1e2e; font-size: 11px; font-weight: 900; line-height: 1; }
.gov-featured-sector { display: inline-flex; align-items: center; width: auto; gap: 7px; margin: 0; color: #f2c86f; font-size: 13px; font-weight: 900; }
.gov-featured-title { margin: 0; max-width: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: #fff; font-size: clamp(25px, 2.65vw, 39px); line-height: 1.43; font-weight: 900; text-wrap: balance; }
.gov-featured-meta { display: flex; flex-wrap: wrap; width: 100%; max-height: 72px; gap: 7px; margin-top: 18px; overflow: hidden; color: #d6e0eb; font-size: 12px; font-weight: 800; }
.gov-featured-meta span { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(2,12,24,.31); }
.gov-featured-open { align-self: flex-end; min-width: 204px; margin-top: auto; padding: 13px 22px; border: 1px solid rgba(231,189,101,.68) !important; border-radius: 12px !important; color: #fff !important; background: rgba(231,189,101,.065) !important; font-size: 14px; font-weight: 900; }
.gov-featured-open:hover { background: rgba(231,189,101,.11) !important; }

/* Other stories below the featured story */
.gov-news-list-panel {
  grid-area: list;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 0;
}
.gov-news-list-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 1px 0 2px;
  color: var(--gov-gold);
  font-size: 16px;
  font-weight: 900;
}
.gov-news-list-title small { color: #849ab3; font-size: 9px; font-weight: 800; }
.gov-news-list-item {
  --gov-list-tint: rgba(255,255,255,0);
  width: 100%;
  height: 104px;
  min-height: 104px;
  max-height: 104px;
  display: grid;
  grid-template-columns: 128px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 13px;
  color: #fff;
  background:
    linear-gradient(var(--gov-list-tint), var(--gov-list-tint)),
    linear-gradient(135deg, rgba(13,38,66,.94), rgba(7,25,47,.96));
  text-align: right;
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.gov-news-list-item.gov-news-list-incident { --gov-list-tint: rgba(220,38,38,.20); --gov-list-accent: #ef4b55; }
.gov-news-list-item.gov-news-list-campaign { --gov-list-tint: rgba(56,189,248,.20); --gov-list-accent: #38bdf8; }
.gov-news-list-item::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 3px; background: var(--gov-list-accent, var(--gov-gold)); opacity: .9; }
.gov-news-list-item:hover { transform: translateY(-1px); border-color: rgba(231,189,101,.4); }
.gov-news-list-item:focus-visible { outline: 2px solid var(--gov-gold); outline-offset: 2px; }
.gov-news-list-item.is-active { border-color: rgba(231,189,101,.82); box-shadow: 0 0 0 1px rgba(231,189,101,.1), 0 11px 25px rgba(0,0,0,.2); }
.gov-news-list-thumb { width: 128px; height: 86px; position: relative; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: rgba(0,0,0,.26); color: #7f95af; font-size: 27px; }
.gov-news-list-thumb img,
.gov-news-list-thumb video { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.gov-news-list-copy { min-width: 0; max-height: 86px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; }
.gov-news-list-sector { display: flex; align-items: center; gap: 5px; width: 100%; margin-bottom: 4px; color: #f0c468; font-size: 9px; font-weight: 900; }
.gov-news-list-current { margin-inline-start: auto; padding: 3px 7px; border: 1px solid rgba(231,189,101,.3); border-radius: 999px; color: #ffe5a8; background: rgba(231,189,101,.08); font-size: 7px; white-space: nowrap; }
.gov-news-list-headline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #fff; font-size: 13px; line-height: 1.55; font-weight: 900; }
.gov-news-list-meta { display: block; width: 100%; margin-top: 5px; overflow: hidden; color: #b8c6d6; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gov-news-list-media { display: flex; gap: 5px; margin-top: 6px; }
.gov-news-list-media span { padding: 3px 7px; border-radius: 999px; color: #eaf2fb; background: rgba(2,12,24,.35); font-size: 8px; font-weight: 900; }
.gov-empty-state { grid-column: 1/-1; min-height: 220px; display: grid; place-items: center; padding: 28px; border: 1px dashed rgba(255,255,255,.15); border-radius: 13px; color: #9fb1c6; text-align: center; font-weight: 800; background: rgba(255,255,255,.02); }

/* Details carousel */
.gov-modal-carousel { width: min(500px,100%); margin: 0 auto; }
.gov-modal-carousel-track { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: 16px; background: #020b17; }
.gov-modal-slide { position: absolute; inset: 0; display: none; }
.gov-modal-slide.is-active { display: block; }
.gov-modal-slide img,
.gov-modal-slide video { width: 100%; height: 100%; display: block; object-fit: contain; background: #020b17; }
.gov-modal-slide img { cursor: zoom-in; }
.gov-modal-carousel-actions { display: grid; grid-template-columns: 48px minmax(70px,auto) 48px; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
.gov-modal-carousel-button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(216,176,86,.48); color: #fff; background: rgba(255,255,255,.055); font-size: 23px; cursor: pointer; }
.gov-modal-carousel-counter { min-width: 72px; text-align: center; color: var(--gov-gold); font-weight: 900; }

@media (max-width: 980px) {
  .gov-dashboard-header { grid-template-columns: minmax(0,1fr) auto; }
  .gov-dashboard-update { display: none; }
  .gov-featured-news { grid-template-columns: 1fr; grid-template-areas: "media" "content"; height: auto; min-height: 0; max-height: none; }
  .gov-featured-media { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .gov-featured-media::after { inset: auto 0 0; width: 100%; height: 102px; background: linear-gradient(180deg, rgba(4,19,38,0), rgba(4,19,38,.24) 28%, rgba(4,19,38,.78) 68%, #041326 100%); }
  .gov-featured-media img,
  .gov-featured-media video,
  .gov-featured-placeholder { min-height: 0; height: 100%; }
  .gov-featured-content { height: 270px; min-height: 270px; max-height: 270px; margin: -76px 0 0; padding: 96px 24px 25px; background: linear-gradient(var(--gov-sector-tint), var(--gov-sector-tint)), linear-gradient(180deg, rgba(4,19,38,0), rgba(4,19,38,.78) 52px, #041326 90px); }
}

@media (max-width: 760px) {
  #governorateActivityPage { padding: 0 0 40px; }
  .gov-dashboard-shell { width: 100%; }
  .gov-dashboard-header {
    grid-template-columns: 1fr;
    grid-template-areas: "identity" "actions";
    gap: 13px;
    min-height: 0;
    padding: 15px;
    border-width: 0 0 2px;
    border-radius: 0;
  }
  .gov-dashboard-identity { gap: 12px; }
  .gov-dashboard-logo { flex-basis: 58px; width: 58px; height: 58px; }
  .gov-dashboard-title { font-size: clamp(23px, 7vw, 31px); }
  .gov-dashboard-kicker { font-size: 10px; }
  .gov-dashboard-subtitle { font-size: 10px; }
  .gov-dashboard-header-action { justify-content: stretch; }
  .gov-dashboard-back { width: 100%; min-width: 0; }

  .gov-sector-tabs { top: 0; margin: 0 12px 10px; width: calc(100% - 24px); }
  .gov-sector-tab { min-height: 48px; padding: 9px 8px; font-size: 12px; }
  .gov-news-frame { margin: 0 12px; padding: 13px; border-radius: 14px; }
  .gov-section-heading { align-items: center; margin-bottom: 12px; }
  .gov-section-heading h2 { font-size: 18px; }
  .gov-news-list-panel { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .gov-sector-tab { gap: 6px; font-size: 11px; }
  .gov-sector-tab b { min-width: 23px; height: 23px; padding: 0 5px; font-size: 9px; }
  .gov-featured-media { aspect-ratio: 4 / 3; }
  .gov-featured-content { height: 320px; min-height: 320px; max-height: 320px; margin-top: -58px; padding: 77px 15px 18px; }
  .gov-featured-topline { align-items: flex-start; }
  .gov-featured-badge { padding: 6px 10px; font-size: 9px; }
  .gov-featured-sector { font-size: 11px; }
  .gov-featured-title { font-size: 21px; }
  .gov-featured-meta { gap: 5px; font-size: 10px; }
  .gov-featured-meta span { min-height: 29px; padding: 5px 8px; }
  .gov-featured-open { width: 100%; align-self: stretch; min-width: 0; margin-top: 18px; }
  .gov-featured-media-info { left: 9px; bottom: 9px; }
  .gov-news-list-item { grid-template-columns: 94px minmax(0,1fr); height: 98px; min-height: 98px; max-height: 98px; padding: 7px; }
  .gov-news-list-thumb { width: 94px; height: 76px; }
  .gov-news-list-current { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gov-sector-tab,
  .gov-featured-news,
  .gov-news-list-item { transition: none !important; }
}

/* ASSISTANT_UNIFIED_GOV_NEWS_SIZE_START
   مرجع المقاس الموحد: بطاقة خبر الوقاية في محافظة العاصمة.
   كل الأخبار الحالية والمستقبلية تستخدم الفئات نفسها، لذا يطبق المقاس تلقائيًا.
*/
.gov-featured-news,
.gov-news-list-item { box-sizing: border-box; }
.gov-featured-media img,
.gov-featured-media video,
.gov-news-list-thumb img,
.gov-news-list-thumb video { object-position: center center; }
/* ASSISTANT_UNIFIED_GOV_NEWS_SIZE_END */
/* KFF_GOVERNORATE_CONSOLIDATED_END */

/* === original style block 43 | id: attachedOfficialIntroStyle === */
/* ATTACHED_INTRO_BASE_START */
.introAnimation {
  --gold-2: #f2d58b;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 32%, rgba(216,179,93,.18), transparent 28%),
    radial-gradient(circle at 18% 85%, rgba(50,119,176,.16), transparent 25%),
    linear-gradient(155deg,#050c16 0%,#071523 45%,#0b2035 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity .65s ease, visibility .65s ease;
  font-family: "Noto Kufi Arabic", "Tajawal", Tahoma, Arial, sans-serif !important;
}
.introAnimation::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 180deg, transparent, rgba(216,179,93,.07), transparent 24%, rgba(81,142,190,.07), transparent 55%);
  animation: introRotate 12s linear infinite;
}
.introAnimation::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}
.introAnimation.introClosing { opacity: 0; visibility: hidden; pointer-events: none; }
.introSkip {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(242,213,139,.3);
  border-radius: 999px;
  color: #f2d58b;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.introSkip:hover { }
@keyframes introRotate { to { transform: rotate(360deg); } }
/* ATTACHED_INTRO_BASE_END */

/* شاشة البداية الرسمية — نمط غرفة العمليات */
.introOfficial{
  place-items:center;
  background:
    radial-gradient(circle at 50% 38%,rgba(216,179,93,.16),transparent 23%),
    radial-gradient(circle at 15% 85%,rgba(62,125,184,.13),transparent 28%),
    linear-gradient(155deg,#040a12 0%,#071523 48%,#0a2036 100%);
  transform:translateY(0);
  clip-path:inset(0 0 0 0);
  transition:opacity .62s ease,transform .68s cubic-bezier(.22,.78,.2,1),clip-path .68s cubic-bezier(.22,.78,.2,1),visibility .68s ease;
}
.introOfficial::before{
  inset:-38%;
  opacity:.8;
  background:conic-gradient(from 140deg,transparent 0 20%,rgba(216,179,93,.065) 28%,transparent 37% 58%,rgba(72,145,202,.06) 66%,transparent 75%);
  animation:introOpsRotate 18s linear infinite;
}
.introOfficial::after{
  background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:radial-gradient(circle at center,black 0 36%,transparent 76%);
  opacity:.72;
}
.introOfficial.introClosing{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-7%);
  clip-path:inset(0 0 100% 0);
}
.introScanGrid{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  overflow:hidden;
}
.introScanGrid::before{
  content:"";
  position:absolute;
  left:0;right:0;top:-22%;
  height:24%;
  background:linear-gradient(180deg,transparent,rgba(242,213,139,.055),transparent);
  animation:introScan 2.7s ease-in-out infinite;
}
.introCommandScene{
  position:relative;
  z-index:3;
  width:min(720px,calc(100% - 34px));
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:30px 20px 34px;
}
.introSystemTag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:15px;
  padding:6px 13px;
  border:1px solid rgba(142,180,232,.2);
  border-radius:999px;
  background:rgba(8,23,39,.58);
  color:#b9cadc;
  font-size:10px;
  font-weight:800;
  letter-spacing:.2px;
  backdrop-filter:blur(10px);
  opacity:0;
  animation:introTagIn .45s ease .12s forwards;
}
.introSystemTag span{
  width:7px;height:7px;border-radius:50%;
  background:#76caa0;
  box-shadow:0 0 12px rgba(118,202,160,.75);
  animation:introStatusBlink 1.1s ease-in-out infinite;
}
.introEmblemShell{
  position:relative;
  width:clamp(150px,25vw,220px);
  aspect-ratio:1;
  display:grid;
  place-items:center;
  margin-bottom:9px;
  opacity:0;
  transform:scale(.82);
  animation:introEmblemIn .72s cubic-bezier(.18,.86,.22,1) .22s forwards;
}
.introEmblemShell::before{
  content:"";
  position:absolute;
  inset:18%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(242,213,139,.16),rgba(242,213,139,.045) 48%,transparent 72%);
  box-shadow:0 0 44px rgba(216,179,93,.18);
  animation:introEmblemGlow 1.8s ease-in-out infinite;
}
.introOrbit,.introPulseRing{
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.introOrbitOne{
  inset:3%;
  border:1px solid rgba(242,213,139,.25);
  border-top-color:rgba(242,213,139,.82);
  border-right-color:transparent;
  animation:introOrbitSpin 5.5s linear infinite;
}
.introOrbitTwo{
  inset:12%;
  border:1px dashed rgba(142,180,232,.24);
  border-left-color:rgba(142,180,232,.72);
  animation:introOrbitSpinReverse 8s linear infinite;
}
.introPulseRing{
  inset:24%;
  border:1px solid rgba(242,213,139,.28);
  animation:introRingPulse 1.8s ease-out .55s infinite;
}
.introOfficialLogo{
  position:relative;
  z-index:2;
  width:52%;
  height:62%;
  object-fit:contain;
  filter:drop-shadow(0 16px 25px rgba(0,0,0,.34)) drop-shadow(0 0 18px rgba(242,213,139,.14));
}
.introGoldLine{
  width:min(460px,74vw);
  height:2px;
  margin:5px auto 16px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.04);
}
.introGoldLine span{
  display:block;
  width:100%;height:100%;
  transform:scaleX(0);
  transform-origin:right center;
  background:linear-gradient(90deg,transparent 0%,rgba(242,213,139,.55) 12%,#f2d58b 50%,rgba(242,213,139,.55) 88%,transparent 100%);
  box-shadow:0 0 16px rgba(216,179,93,.48);
  animation:introLineDraw .7s cubic-bezier(.2,.82,.2,1) .72s forwards;
}
.introCommandScene h2{
  margin:0;
  color:var(--gold-2);
  font-family:"Noto Kufi Arabic","IBM Plex Sans Arabic","Tahoma",sans-serif;
  font-size:clamp(24px,4.2vw,42px);
  line-height:1.55;
  font-weight:900;
  word-spacing:2px;
  text-shadow:0 2px 0 rgba(80,55,10,.35),0 10px 28px rgba(0,0,0,.32);
  opacity:0;
  transform:translateY(16px);
  animation:introOfficialTitle .62s cubic-bezier(.2,.8,.2,1) .92s forwards;
}
.introCommandScene p{
  margin:5px 0 0;
  color:#b8c9da;
  font-size:13px;
  font-weight:800;
  opacity:0;
  transform:translateY(10px);
  animation:introOfficialTitle .55s ease 1.08s forwards;
}
.introStatusRow{
  min-height:24px;
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  color:#8499ae;
  font-size:10px;
  opacity:0;
  animation:introStatusIn .4s ease 1.35s forwards;
}
.introStatusRow > span{
  width:6px;height:6px;border-radius:50%;
  background:#d8b35d;
  box-shadow:0 0 10px rgba(216,179,93,.6);
}
.introStatusRow b{font-weight:800;margin-inline-end:4px}
.introStatusRow i{
  width:5px;height:5px;border-radius:50%;
  background:#8da2b6;
  animation:introDot 1s ease-in-out infinite;
}
.introStatusRow i:nth-of-type(2){animation-delay:.15s}
.introStatusRow i:nth-of-type(3){animation-delay:.3s}
.introSkip{
  top:max(16px,env(safe-area-inset-top));
  left:max(16px,env(safe-area-inset-left));
  padding:7px 15px;
  border-color:rgba(242,213,139,.26);
  background:rgba(6,20,34,.58);
  font-size:11px;
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}
.introSkip:hover{transform:translateY(-1px);border-color:rgba(242,213,139,.48);background:rgba(216,179,93,.12)}

/* إظهار الصفحة الحالية بعد انتهاء شاشة البداية */
#homePage, #homeNewsTicker {
  transition: opacity .56s ease, transform .56s cubic-bezier(.2,.8,.2,1);
}
body.introLock #homePage, body.introLock #homeNewsTicker {
  opacity: 0 !important;
  transform: translateY(18px) scale(.993);
  pointer-events: none !important;
}
body:not(.introLock) #homePage { transition-delay: .05s; }
body:not(.introLock) #homeNewsTicker { transition-delay: .18s; }

@keyframes introOpsRotate{to{transform:rotate(360deg)}}
@keyframes introScan{0%{transform:translateY(-20%);opacity:0}20%{opacity:1}75%{opacity:.6}100%{transform:translateY(510%);opacity:0}}
@keyframes introTagIn{to{opacity:1;transform:translateY(0)}}
@keyframes introStatusBlink{50%{opacity:.35;transform:scale(.8)}}
@keyframes introEmblemIn{to{opacity:1;transform:scale(1)}}
@keyframes introEmblemGlow{50%{transform:scale(1.06);opacity:.72}}
@keyframes introOrbitSpin{to{transform:rotate(360deg)}}
@keyframes introOrbitSpinReverse{to{transform:rotate(-360deg)}}
@keyframes introRingPulse{0%{opacity:.55;transform:scale(.72)}100%{opacity:0;transform:scale(1.55)}}
@keyframes introLineDraw{to{transform:scaleX(1)}}
@keyframes introOfficialTitle{to{opacity:1;transform:translateY(0)}}
@keyframes introStatusIn{to{opacity:1}}
@keyframes introDot{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}

@media(max-width:640px){
  .introCommandScene{width:calc(100% - 20px);padding:24px 8px 28px}
  .introEmblemShell{width:clamp(132px,43vw,176px);margin-bottom:7px}
  .introCommandScene h2{font-size:clamp(20px,5.7vw,29px);line-height:1.65;word-spacing:1px}
  .introCommandScene p{font-size:11px}
  .introGoldLine{width:min(330px,78vw);margin-bottom:13px}
  .introStatusRow{margin-top:14px;font-size:9px}
  .introSystemTag{font-size:9px;margin-bottom:11px}
}
@media(prefers-reduced-motion:reduce){
  .introOfficial::before,.introScanGrid::before,.introSystemTag span,.introOrbit,.introPulseRing,.introEmblemShell::before,.introStatusRow i{animation:none!important}
  .introEmblemShell,.introGoldLine span,.introCommandScene h2,.introCommandScene p,.introSystemTag,.introStatusRow{opacity:1!important;transform:none!important;animation:none!important}
  .introOfficial{transition-duration:.12s!important}
  #homePage,#homeNewsTicker{transition-duration:.12s!important;transition-delay:0s!important}
}

/* === original style block 44 | id: attachedIntroFullscreenRepair === */
/* ATTACHED_INTRO_FULLSCREEN_REPAIR_REAL */
html, body { min-height: 100%; }
body.introLock {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
body > #introAnimation.introAnimation {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-width: none !important;
  margin: 0 !important;
  z-index: 2147483000 !important;
  box-sizing: border-box !important;
}
@supports (height: 100dvh) {
  body > #introAnimation.introAnimation {
    width: 100dvw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
  }
}
body > #introAnimation .introCommandScene {
  width: min(720px, calc(100% - 20px)) !important;
  max-width: 92vw !important;
  max-height: calc(100dvh - 28px) !important;
  box-sizing: border-box !important;
}
@media (max-width: 480px) {
  body > #introAnimation .introCommandScene {
    padding: 20px 8px 22px !important;
  }
}

/* === original style block 45 | id: assistantSixColumnHomeBoxesStyle === */
/* ASSISTANT_SIX_COLUMN_HOME_BOXES_START */
/* الكمبيوتر: المحافظات الست في صف واحد، والإدارات التخصصية الخمس في صف واحد. */
@media (min-width: 901px) {
  #homePage .home-centers-sections {
    width: min(1540px, calc(100vw - 32px)) !important;
    max-width: 1540px !important;
    gap: 28px !important;
    margin-inline: auto !important;
  }

  #homePage .governorates-centers-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  #homePage .specialized-centers-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  #homePage .governorates-centers-grid .center-btn,
  #homePage .specialized-centers-grid .center-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 82px !important;
    padding: 11px 9px !important;
    border-radius: 15px !important;
    font-size: clamp(12px, 1.05vw, 16px) !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  /* إلغاء تمركز الخانة السادسة الذي كان مستخدماً مع تصميم 5 أعمدة. */
  #homePage .governorates-centers-grid .center-btn:nth-child(6):last-child {
    grid-column: auto !important;
  }
}
/* ASSISTANT_SIX_COLUMN_HOME_BOXES_END */

/* === original style block 46 | id: kffRobustLoginStyle === */
html.kff-access-locked,
  body.kff-access-locked {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  body.kff-access-locked > :not(#kffAccessGate) {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.kff-access-locked > #kffAccessGate {
    visibility: visible !important;
    pointer-events: auto !important;
  }

  #kffAccessGate {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483646 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding:
      max(18px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left)) !important;
    direction: rtl !important;
    background:
      radial-gradient(circle at 50% 10%, rgba(216,178,93,.15), transparent 30%),
      linear-gradient(180deg, #06172a 0%, #0b2b49 58%, #061526 100%) !important;
    font-family: "Tajawal", Tahoma, Arial, sans-serif !important;
  }

  #kffAccessGate.kff-access-gate-hidden {
    display: none !important;
  }

  #kffAccessGate .kff-access-card {
    width: min(380px, calc(100vw - 28px)) !important;
    padding: 26px 24px 22px !important;
    margin: 0 !important;
    border-radius: 24px !important;
    border: 1px solid rgba(216,178,93,.52) !important;
    background:
      linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012)),
      linear-gradient(180deg, rgba(7,25,48,.995), rgba(4,16,32,.995)) !important;
    box-shadow: 0 28px 70px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.08) !important;
    box-sizing: border-box !important;
  }

  #kffAccessGate .kff-access-title {
    margin: 0 0 7px !important;
    color: #f6ddb2 !important;
    text-align: center !important;
    font-size: 23px !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
  }

  #kffAccessGate .kff-access-subtitle {
    margin: 0 0 20px !important;
    color: rgba(235,242,250,.74) !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.8 !important;
  }

  #kffAccessGate .kff-access-field {
    margin-bottom: 13px !important;
  }

  #kffAccessGate .kff-access-label {
    display: block !important;
    margin-bottom: 7px !important;
    color: #e7eef8 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }

  #kffAccessGate .kff-access-input {
    width: 100% !important;
    min-height: 46px !important;
    padding: 11px 13px !important;
    box-sizing: border-box !important;
    border-radius: 13px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    outline: none !important;
    background: rgba(255,255,255,.065) !important;
    color: #fff !important;
    font-family: "Tajawal", Tahoma, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
  }

  #kffAccessGate .kff-access-input:focus {
    border-color: rgba(216,178,93,.82) !important;
  }

  #kffAccessGate .kff-access-button {
    width: 100% !important;
    min-height: 47px !important;
    margin-top: 4px !important;
    border: 1px solid rgba(255,238,195,.28) !important;
    border-radius: 13px !important;
    cursor: pointer !important;
    color: #08172f !important;
    background: linear-gradient(180deg, #f4ddb0, #d8b25d) !important;
    font-family: "Tajawal", Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.22) !important;
  }

  #kffAccessGate .kff-access-error {
    min-height: 22px !important;
    margin-top: 11px !important;
    color: #ff9cab !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
  }

  @media (max-width: 520px) {
    #kffAccessGate .kff-access-card {
      width: min(360px, calc(100vw - 24px)) !important;
      padding: 22px 18px 18px !important;
      border-radius: 20px !important;
    }
    #kffAccessGate .kff-access-title {
      font-size: 21px !important;
    }
    #kffAccessGate .kff-access-input {
      font-size: 16px !important;
    }
  }

/* ASSISTANT_LOGIN_WATERMARK_LOGO_START */
  #kffAccessGate .kff-access-watermark {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: min(72vw, 720px) !important;
    height: min(72vw, 720px) !important;
    transform: translate(-50%, -50%) !important;
    object-fit: contain !important;
    display: block !important;
    opacity: .075 !important;
    filter: saturate(.82) contrast(1.05) !important;
    pointer-events: none !important;
    user-select: none !important;
    z-index: 0 !important;
  }

  #kffAccessGate .kff-access-card {
    position: relative !important;
    z-index: 2 !important;
  }

  @media (max-width: 520px) {
    #kffAccessGate .kff-access-watermark {
      width: min(88vw, 430px) !important;
      height: min(88vw, 430px) !important;
      opacity: .07 !important;
    }
  }
/* ASSISTANT_LOGIN_WATERMARK_LOGO_END */

/* === original style block 47 | id: kffViewerHideAdminLoginStyle === */
/* KFF_VIEWER_HIDE_ADMIN_LOGIN_START */
body.kff-viewer-login #openLoginBtn,
body.kff-viewer-login #openLoginBtnActivity,
body.kff-viewer-login #openLoginBtnCenter {
  display: none !important;
}

body.kff-viewer-login #homePage .banner-right-login {
  display: none !important;
}
/* KFF_VIEWER_HIDE_ADMIN_LOGIN_END */

/* === original style block 48 | id: assistantRefinedDialogsStyle === */
/* ===== دايلوق دخول المشرف ===== */
  #loginModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000020 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    background: rgba(3, 10, 20, .74) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  #loginModal.hidden {
    display: none !important;
  }

  #loginModal .admin-login-box {
    position: relative !important;
    width: min(370px, calc(100vw - 28px)) !important;
    max-width: 370px !important;
    max-height: calc(100dvh - 32px) !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 52px 22px 22px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(216, 178, 93, .48) !important;
    background:
      linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01)),
      linear-gradient(180deg, #0a2340 0%, #06172b 100%) !important;
    box-shadow:
      0 28px 70px rgba(0,0,0,.48),
      inset 0 1px 0 rgba(255,255,255,.07) !important;
  }

  #loginModal .admin-login-close {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.07) !important;
    color: #fff !important;
    font-size: 25px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
  }

  #loginModal .modal-title {
    margin: 0 0 7px !important;
    text-align: center !important;
    color: #f3d6aa !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1.45 !important;
  }

  #loginModal .modal-subtitle {
    max-width: 290px !important;
    margin: 0 auto 18px !important;
    text-align: center !important;
    color: rgba(229, 238, 252, .72) !important;
    font-size: 12px !important;
    line-height: 1.75 !important;
  }

  #loginModal .form-group {
    margin-bottom: 12px !important;
  }

  #loginModal .form-label {
    margin-bottom: 6px !important;
    color: #e7eef8 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  #loginModal .form-input {
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    font-size: 16px !important;
    outline: none !important;
  }

  #loginModal .form-input:focus {
    border-color: rgba(216,178,93,.74) !important;
    box-shadow: 0 0 0 3px rgba(216,178,93,.10) !important;
  }

  #loginModal .btn.btn-primary {
    min-height: 44px !important;
    margin-top: 3px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  #loginModal .error-text {
    min-height: 18px !important;
    margin-top: 8px !important;
    font-size: 12px !important;
  }

  /* ===== دايلوق إضافة خبر ===== */
  #quickAddNewsModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000021 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    background: rgba(3, 10, 20, .76) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  #quickAddNewsModal.hidden {
    display: none !important;
  }

  #quickAddNewsModal .quick-news-box {
    width: min(640px, calc(100vw - 30px)) !important;
    max-width: 640px !important;
    max-height: min(86dvh, 760px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 18px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(216,178,93,.42) !important;
    background:
      linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01)),
      linear-gradient(180deg, #0a2340 0%, #06172b 100%) !important;
    box-shadow:
      0 28px 76px rgba(0,0,0,.50),
      inset 0 1px 0 rgba(255,255,255,.07) !important;
  }

  #quickAddNewsModal .quick-news-head {
    position: sticky !important;
    top: -18px !important;
    z-index: 4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: -18px -18px 14px !important;
    padding: 16px 18px 12px !important;
    background: linear-gradient(180deg, #0a2340 80%, rgba(10,35,64,.94)) !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
  }

  #quickAddNewsModal .quick-news-title {
    color: #f3d6aa !important;
    font-size: 20px !important;
    font-weight: 900 !important;
  }

  #quickAddNewsModal .quick-news-close-x {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.07) !important;
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  #quickAddNewsModal .quick-news-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 11px 12px !important;
  }

  #quickAddNewsModal .quick-news-full {
    grid-column: 1 / -1 !important;
  }

  #quickAddNewsModal .quick-news-label,
  #quickAddNewsModal .quick-news-choice-title {
    color: #e4edf9 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  #quickAddNewsModal .quick-news-input {
    min-height: 43px !important;
    padding: 9px 11px !important;
    border-radius: 11px !important;
    font-size: 14px !important;
  }

  #quickAddNewsModal textarea.quick-news-input {
    min-height: 100px !important;
    resize: vertical !important;
  }

  #quickAddNewsModal .quick-news-choice-box,
  #quickAddNewsModal .quick-news-toggle {
    border-radius: 13px !important;
    padding: 10px !important;
  }

  #quickAddNewsModal .quick-news-radio-row {
    gap: 7px !important;
  }

  #quickAddNewsModal .quick-news-radio {
    min-height: 34px !important;
    padding: 7px 9px !important;
    font-size: 11px !important;
  }

  #quickAddNewsModal .quick-news-actions {
    position: sticky !important;
    bottom: -18px !important;
    z-index: 4 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
    margin: 14px -18px -18px !important;
    padding: 12px 18px 16px !important;
    background: linear-gradient(0deg, #06172b 80%, rgba(6,23,43,.94)) !important;
    border-top: 1px solid rgba(255,255,255,.07) !important;
  }

  #quickAddNewsModal .quick-news-actions .btn {
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
  }

  /* إزالة واجهة تعديل النصوص نهائياً */
  #textEditorPanel,
  button[onclick*="openTextEditor"] {
    display: none !important;
  }

  @media (max-width: 700px) {
    #loginModal,
    #quickAddNewsModal {
      padding:
        max(10px, env(safe-area-inset-top))
        max(10px, env(safe-area-inset-right))
        max(10px, env(safe-area-inset-bottom))
        max(10px, env(safe-area-inset-left)) !important;
    }

    #loginModal .admin-login-box {
      width: min(340px, calc(100vw - 20px)) !important;
      max-width: 340px !important;
      padding: 50px 17px 18px !important;
      border-radius: 19px !important;
    }

    #quickAddNewsModal .quick-news-box {
      width: min(390px, calc(100vw - 20px)) !important;
      max-width: 390px !important;
      max-height: calc(100dvh - 20px) !important;
      padding: 14px !important;
      border-radius: 19px !important;
    }

    #quickAddNewsModal .quick-news-head {
      top: -14px !important;
      margin: -14px -14px 12px !important;
      padding: 14px 14px 11px !important;
    }

    #quickAddNewsModal .quick-news-title {
      font-size: 18px !important;
    }

    #quickAddNewsModal .quick-news-grid {
      grid-template-columns: 1fr !important;
      gap: 10px !important;
    }

    #quickAddNewsModal .quick-news-full {
      grid-column: auto !important;
    }

    #quickAddNewsModal .quick-news-input {
      min-height: 43px !important;
      font-size: 16px !important;
    }

    #quickAddNewsModal .quick-news-radio {
      flex: 1 1 100% !important;
      width: 100% !important;
    }

    #quickAddNewsModal .quick-news-actions {
      bottom: -14px !important;
      grid-template-columns: 1fr !important;
      margin: 12px -14px -14px !important;
      padding: 11px 14px 14px !important;
    }
  }

/* === original style block 49 | id: assistantAdminLoginFunctionalRefinementStyle === */
body.admin-login-open {
    overflow: hidden !important;
  }

  #loginModal .admin-login-box {
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #loginModal .btn[type="submit"] {
    width: 100% !important;
  }

/* === original style block 50 | id: assistantTickerNoVisibleDuplicatesStyle === */
#homePage .home-news-cycle {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    gap: 18px !important;
    white-space: nowrap !important;
  }

  @media (max-width: 700px) {
    #homePage .home-news-cycle {
      gap: 12px !important;
    }
  }

/* === original style block 51 | id: assistantBalancedNewsDetailStyle === */
body > #homeNewsDetailModal .home-news-detail-card {
  }

  body > #homeNewsDetailModal .home-news-detail-content {
    width: 100% !important;
    max-width: 940px !important;
    margin: 16px auto 0 !important;
  }

  /* لا يوجد ميديا: لا نترك عموداً فارغاً */
  body > #homeNewsDetailModal .home-news-detail-card:not(.has-rendered-media) .home-news-detail-content {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 860px !important;
  }

  body > #homeNewsDetailModal .home-news-detail-card:not(.has-rendered-media) .home-news-detail-text {
    max-width: 860px !important;
    margin-inline: auto !important;
  }

  /* يوجد ميديا فعلي: عمودان متوازنان */
  body > #homeNewsDetailModal .home-news-detail-card.has-rendered-media .home-news-detail-content {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr) !important;
    gap: 16px !important;
    max-width: 960px !important;
  }

  body > #homeNewsDetailModal .home-news-detail-text {
    padding: 16px !important;
    line-height: 1.75 !important;
    white-space: normal !important;
  }

  body > #homeNewsDetailModal .home-news-detail-summary {
    direction: rtl !important;
  }

  body > #homeNewsDetailModal .home-news-detail-info-card {
    min-width: 0 !important;
    text-align: right !important;
  }

  body > #homeNewsDetailModal .home-news-detail-info-card.is-full {
    grid-column: 1 / -1 !important;
  }

  body > #homeNewsDetailModal .home-news-detail-info-label {
    display: block !important;
    margin-bottom: 4px !important;
    color: #d8b45f !important;
    font: 800 12px/1.5 "Tajawal", "Noto Kufi Arabic", sans-serif !important;
  }

  body > #homeNewsDetailModal .home-news-detail-info-value {
    display: block !important;
    color: #f0f4f9 !important;
    font: 800 15px/1.7 "Tajawal", "Noto Kufi Arabic", sans-serif !important;
    overflow-wrap: anywhere !important;
  }

  body > #homeNewsDetailModal .home-news-support-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 7px !important;
  }

  body > #homeNewsDetailModal .home-news-support-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 11px !important;
    background: rgba(5,18,35,.35) !important;
    color: #eef3f8 !important;
    font: 700 13px/1.55 "Tajawal", sans-serif !important;
  }

  body > #homeNewsDetailModal .home-news-support-number {
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(216,180,95,.16) !important;
    border: 1px solid rgba(216,180,95,.34) !important;
    color: #ffe4a8 !important;
    font-weight: 900 !important;
  }

  body > #homeNewsDetailModal .home-news-detail-description {
    margin-top: 2px !important;
    color: #f1f4f8 !important;
    font: 700 15px/1.9 "Tajawal", "Noto Kufi Arabic", sans-serif !important;
    text-align: right !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
  }

  body > #homeNewsDetailModal .home-news-detail-plain {
    width: 100% !important;
    padding: 2px !important;
    color: #f1f4f8 !important;
    font: 700 15px/1.95 "Tajawal", "Noto Kufi Arabic", sans-serif !important;
    text-align: right !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
  }

  @media (max-width: 900px) {
    body > #homeNewsDetailModal .home-news-detail-card.has-rendered-media .home-news-detail-content {
      grid-template-columns: minmax(0, 1fr) !important;
      max-width: 760px !important;
    }

    body > #homeNewsDetailModal .home-news-detail-media {
      max-width: 620px !important;
      margin-inline: auto !important;
    }
  }

  @media (max-width: 700px) {
    body > #homeNewsDetailModal .home-news-detail-card {
    }

    body > #homeNewsDetailModal .home-news-detail-content {
      max-width: none !important;
      margin-top: 11px !important;
    }

    body > #homeNewsDetailModal .home-news-detail-text {
      padding: 10px !important;
      border-radius: 14px !important;
    }

    body > #homeNewsDetailModal .home-news-detail-summary {
    }

    body > #homeNewsDetailModal .home-news-detail-info-card.is-full,
    body > #homeNewsDetailModal .home-news-detail-description {
      grid-column: auto !important;
    }

    body > #homeNewsDetailModal .home-news-support-list {
      grid-template-columns: 1fr !important;
    }

    body > #homeNewsDetailModal .home-news-detail-info-card {
    }

    body > #homeNewsDetailModal .home-news-detail-info-value,
    body > #homeNewsDetailModal .home-news-detail-description,
    body > #homeNewsDetailModal .home-news-detail-plain {
      font-size: 14px !important;
    }
  }

/* === original style block 52 | id: assistantNewsDetailLabelSizeStyle === */
/* عنوانا المركز والموقع أكبر، والقيم تحتهما أصغر */
  body > #homeNewsDetailModal .home-news-detail-info-card:not(.is-full) .home-news-detail-info-label {
    font-size: 18px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    margin-bottom: 7px !important;
    color: #f0c86c !important;
  }

  body > #homeNewsDetailModal .home-news-detail-info-card:not(.is-full) .home-news-detail-info-value {
    font-size: 13px !important;
    line-height: 1.65 !important;
    font-weight: 700 !important;
  }

  @media (max-width: 700px) {
    body > #homeNewsDetailModal .home-news-detail-info-card:not(.is-full) .home-news-detail-info-label {
      font-size: 17px !important;
    }

    body > #homeNewsDetailModal .home-news-detail-info-card:not(.is-full) .home-news-detail-info-value {
      font-size: 12.5px !important;
    }
  }

/* === original style block 53 | id: assistantOfficialLoginEffectStyle === */
/* حركة دخول هادئة ورسمية */
  #kffAccessGate {
    isolation: isolate !important;
    overflow: hidden !important;
  }

  #kffAccessGate::before {
    content: "" !important;
    position: absolute !important;
    inset: -18% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background:
      radial-gradient(circle at 50% 44%, rgba(216,178,93,.08), transparent 31%),
      radial-gradient(circle at 50% 46%, rgba(73,118,163,.10), transparent 54%) !important;
    opacity: .78 !important;
    animation: kffGateAmbient 9s ease-in-out infinite alternate !important;
  }

  #kffAccessGate .kff-access-watermark {
    animation: kffWatermarkOfficialPulse 10s ease-in-out infinite alternate !important;
  }

  #kffAccessGate .kff-access-card {
    overflow: hidden !important;
    transform-origin: 50% 50% !important;
    animation: kffOfficialCardEnter .68s cubic-bezier(.2,.72,.25,1) both !important;
  }

  /* خط ذهبي رسمي يمر مرة واحدة أعلى البطاقة */
  #kffAccessGate .kff-access-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -46% !important;
    width: 46% !important;
    height: 2px !important;
    z-index: 4 !important;
    pointer-events: none !important;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255,232,178,.28),
      rgba(255,218,132,.98),
      rgba(255,232,178,.28),
      transparent
    ) !important;
    filter: drop-shadow(0 0 7px rgba(216,178,93,.42)) !important;
    animation: kffOfficialTopSweep 1.8s .42s ease-out 1 both !important;
  }

  /* إطار داخلي خفيف */
  #kffAccessGate .kff-access-card::after {
    content: "" !important;
    position: absolute !important;
    inset: 7px !important;
    z-index: 0 !important;
    pointer-events: none !important;
    border: 1px solid rgba(255,255,255,.035) !important;
    border-radius: 18px !important;
  }

  #kffAccessGate .kff-access-card > * {
    position: relative !important;
    z-index: 2 !important;
  }

  #kffAccessGate .kff-access-title {
    text-shadow: 0 2px 16px rgba(216,178,93,.13) !important;
    animation: kffOfficialTitleEnter .68s .10s ease-out both !important;
  }

  #kffAccessGate .kff-access-subtitle {
    animation: kffOfficialFieldEnter .58s .18s ease-out both !important;
  }

  #kffAccessGate .kff-access-field:nth-of-type(1) {
    animation: kffOfficialFieldEnter .58s .24s ease-out both !important;
  }

  #kffAccessGate .kff-access-field:nth-of-type(2) {
    animation: kffOfficialFieldEnter .58s .30s ease-out both !important;
  }

  #kffAccessGate .kff-access-input {
    transition:
      border-color .18s ease,
      box-shadow .18s ease,
      background-color .18s ease,
      transform .18s ease !important;
  }

  #kffAccessGate .kff-access-input:hover {
    background: rgba(255,255,255,.078) !important;
    border-color: rgba(255,255,255,.20) !important;
  }

  #kffAccessGate .kff-access-input:focus {
    transform: translateY(-1px) !important;
    background: rgba(255,255,255,.085) !important;
    box-shadow:
      0 0 0 3px rgba(216,178,93,.11),
      0 8px 20px rgba(0,0,0,.12) !important;
  }

  #kffAccessGate .kff-access-button {
    position: relative !important;
    overflow: hidden !important;
    transition:
      transform .18s ease,
      box-shadow .18s ease,
      filter .18s ease !important;
    animation: kffOfficialFieldEnter .58s .36s ease-out both !important;
  }

  #kffAccessGate .kff-access-button::after {
    content: "" !important;
    position: absolute !important;
    top: -25% !important;
    bottom: -25% !important;
    left: -45% !important;
    width: 34% !important;
    transform: skewX(-18deg) !important;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.38),
      transparent
    ) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  #kffAccessGate .kff-access-button:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.025) !important;
    box-shadow: 0 13px 28px rgba(0,0,0,.26) !important;
  }

  #kffAccessGate .kff-access-button:hover::after {
    opacity: .8 !important;
    animation: kffOfficialButtonSheen .75s ease-out 1 !important;
  }

  #kffAccessGate .kff-access-button:active {
    transform: translateY(1px) !important;
  }

  /* خطأ دخول: اهتزاز خفيف مرة واحدة فقط */
  #kffAccessGate .kff-access-card.kff-login-invalid {
    animation: kffOfficialInvalid .34s ease both !important;
  }

  #kffAccessGate .kff-access-card.kff-login-invalid .kff-access-input {
    border-color: rgba(255,110,125,.44) !important;
  }

  /* نجاح الدخول: تثبيت ذهبي قصير قبل الاختفاء */
  #kffAccessGate .kff-access-card.kff-login-success {
    border-color: rgba(228,194,116,.80) !important;
    box-shadow:
      0 28px 70px rgba(0,0,0,.44),
      0 0 0 1px rgba(228,194,116,.12),
      0 0 32px rgba(216,178,93,.11),
      inset 0 1px 0 rgba(255,255,255,.08) !important;
  }

  @keyframes kffOfficialCardEnter {
    0% {
      opacity: 0;
      transform: translateY(14px) scale(.975);
      filter: blur(2px);
    }
    60% {
      opacity: 1;
      filter: blur(0);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes kffOfficialTitleEnter {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes kffOfficialFieldEnter {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes kffOfficialTopSweep {
    0%   { left: -46%; opacity: 0; }
    15%  { opacity: 1; }
    82%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
  }

  @keyframes kffGateAmbient {
    from { transform: scale(1); opacity: .66; }
    to   { transform: scale(1.035); opacity: .86; }
  }

  @keyframes kffWatermarkOfficialPulse {
    from {
      opacity: .055;
      transform: translate(-50%, -50%) scale(.985);
    }
    to {
      opacity: .078;
      transform: translate(-50%, -50%) scale(1.015);
    }
  }

  @keyframes kffOfficialButtonSheen {
    from { left: -45%; }
    to   { left: 118%; }
  }

  @keyframes kffOfficialInvalid {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(4px); }
    50%      { transform: translateX(-4px); }
    75%      { transform: translateX(2px); }
  }

  @media (max-width: 520px) {
    #kffAccessGate .kff-access-card::after {
      border-radius: 15px !important;
    }

    #kffAccessGate .kff-access-button:hover {
      transform: none !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #kffAccessGate::before,
    #kffAccessGate .kff-access-watermark,
    #kffAccessGate .kff-access-card,
    #kffAccessGate .kff-access-card::before,
    #kffAccessGate .kff-access-title,
    #kffAccessGate .kff-access-subtitle,
    #kffAccessGate .kff-access-field,
    #kffAccessGate .kff-access-button {
      animation: none !important;
    }

    #kffAccessGate .kff-access-input,
    #kffAccessGate .kff-access-button {
      transition: none !important;
    }
  }

/* === original style block 54 | id: assistantAllDialogsOfficialEffectStyle === */
/*
    هوية حركة رسمية موحدة لجميع النوافذ المنبثقة.
    لا تغيّر ألوان نوع الخبر؛ فقط الحركة والإطار واللمسة الذهبية.
  */

  /* الخلفيات/الـ overlays */
  #loginModal:not(.hidden),
  #quickAddNewsModal:not(.hidden),
  #homeNewsEditorBackdrop:not(.hidden),
  #homeNewsDetailModal:not(.hidden),
  #homeNewsImageViewer:not(.hidden),
  #governorateActivityEditor:not(.hidden),
  #injuriesModal:not(.hidden),
  .kff-video-viewer:not(.hidden) {
    animation: kffOfficialDialogBackdropEnter .28s ease-out both !important;
  }

  /* الصناديق الرئيسية */
  #loginModal .admin-login-box,
  #quickAddNewsModal .quick-news-box,
  #homeNewsEditor,
  #homeNewsDetailModal .home-news-detail-card,
  #homeNewsImageViewer .home-news-image-frame,
  #governorateActivityEditor .activity-editor-box,
  #injuriesModal .injuries-modal-box,
  .kff-video-viewer .kff-video-viewer-frame {
    position: relative !important;
    isolation: isolate !important;
  }

  /* يضاف عند كل فتح حتى تتكرر الحركة كل مرة */
  #loginModal .admin-login-box.kff-dialog-opening,
  #quickAddNewsModal .quick-news-box.kff-dialog-opening,
  #homeNewsEditor.kff-dialog-opening,
  #homeNewsDetailModal .home-news-detail-card.kff-dialog-opening,
  #homeNewsImageViewer .home-news-image-frame.kff-dialog-opening,
  #governorateActivityEditor .activity-editor-box.kff-dialog-opening,
  #injuriesModal .injuries-modal-box.kff-dialog-opening,
  .kff-video-viewer .kff-video-viewer-frame.kff-dialog-opening {
    animation: kffOfficialDialogCardEnter .56s cubic-bezier(.2,.72,.25,1) both !important;
  }

  /* لمعة محيط رسمية خفيفة وقت الفتح */
  #loginModal .admin-login-box.kff-dialog-opening,
  #quickAddNewsModal .quick-news-box.kff-dialog-opening,
  #homeNewsEditor.kff-dialog-opening,
  #homeNewsDetailModal .home-news-detail-card.kff-dialog-opening,
  #governorateActivityEditor .activity-editor-box.kff-dialog-opening,
  #injuriesModal .injuries-modal-box.kff-dialog-opening {
    box-shadow:
      0 28px 72px rgba(0,0,0,.46),
      0 0 0 1px rgba(216,178,93,.08),
      0 0 28px rgba(216,178,93,.055),
      inset 0 1px 0 rgba(255,255,255,.055) !important;
  }

  /* الخط الذهبي المتحرك - عنصر حقيقي لتجنب تعارض pseudo-elements الموجودة */
  .kff-official-dialog-sweep {
    position: absolute !important;
    top: 0 !important;
    left: -42% !important;
    width: 42% !important;
    height: 2px !important;
    z-index: 999 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255,234,186,.26),
      rgba(247,207,118,.96),
      rgba(255,234,186,.26),
      transparent
    ) !important;
    filter: drop-shadow(0 0 6px rgba(216,178,93,.38)) !important;
  }

  .kff-dialog-opening > .kff-official-dialog-sweep {
    animation: kffOfficialDialogSweep 1.55s .22s ease-out 1 both !important;
  }

  /* تحسين بسيط لأزرار الإغلاق */
  #loginModal .admin-login-close,
  #quickAddNewsModal .quick-news-close-x,
  #homeNewsDetailModal .home-news-detail-close,
  #homeNewsImageViewer .home-news-image-close,
  .kff-video-viewer .kff-video-viewer-close {
    transition:
      transform .18s ease,
      border-color .18s ease,
      background-color .18s ease,
      box-shadow .18s ease !important;
  }

  #loginModal .admin-login-close:hover,
  #quickAddNewsModal .quick-news-close-x:hover,
  #homeNewsDetailModal .home-news-detail-close:hover,
  #homeNewsImageViewer .home-news-image-close:hover,
  .kff-video-viewer .kff-video-viewer-close:hover {
    transform: scale(1.06) !important;
    border-color: rgba(216,178,93,.42) !important;
    box-shadow: 0 0 16px rgba(216,178,93,.10) !important;
  }

  /* حقول النماذج داخل الدايالوقات */
  #loginModal .form-input,
  #quickAddNewsModal .quick-news-input,
  #homeNewsEditor input,
  #homeNewsEditor textarea,
  #homeNewsEditor select,
  #governorateActivityEditor .activity-editor-input {
    transition:
      border-color .18s ease,
      box-shadow .18s ease,
      background-color .18s ease,
      transform .18s ease !important;
  }

  #loginModal .form-input:focus,
  #quickAddNewsModal .quick-news-input:focus,
  #homeNewsEditor input:focus,
  #homeNewsEditor textarea:focus,
  #homeNewsEditor select:focus,
  #governorateActivityEditor .activity-editor-input:focus {
    transform: translateY(-1px) !important;
    border-color: rgba(216,178,93,.62) !important;
    box-shadow:
      0 0 0 3px rgba(216,178,93,.08),
      0 7px 18px rgba(0,0,0,.10) !important;
  }

  @keyframes kffOfficialDialogBackdropEnter {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  @keyframes kffOfficialDialogCardEnter {
    0% {
      opacity: 0;
      transform: translateY(13px) scale(.982);
      filter: blur(1.5px);
    }
    65% {
      opacity: 1;
      filter: blur(0);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes kffOfficialDialogSweep {
    0%   { left: -42%; opacity: 0; }
    14%  { opacity: 1; }
    82%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
  }

  @media (max-width: 700px) {
    #loginModal .admin-login-box.kff-dialog-opening,
    #quickAddNewsModal .quick-news-box.kff-dialog-opening,
    #homeNewsEditor.kff-dialog-opening,
    #homeNewsDetailModal .home-news-detail-card.kff-dialog-opening,
    #homeNewsImageViewer .home-news-image-frame.kff-dialog-opening,
    #governorateActivityEditor .activity-editor-box.kff-dialog-opening,
    #injuriesModal .injuries-modal-box.kff-dialog-opening,
    .kff-video-viewer .kff-video-viewer-frame.kff-dialog-opening {
      animation-duration: .48s !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #loginModal:not(.hidden),
    #quickAddNewsModal:not(.hidden),
    #homeNewsEditorBackdrop:not(.hidden),
    #homeNewsDetailModal:not(.hidden),
    #homeNewsImageViewer:not(.hidden),
    #governorateActivityEditor:not(.hidden),
    #injuriesModal:not(.hidden),
    .kff-video-viewer:not(.hidden),
    .kff-dialog-opening,
    .kff-dialog-opening > .kff-official-dialog-sweep {
      animation: none !important;
    }

    #loginModal .form-input,
    #quickAddNewsModal .quick-news-input,
    #homeNewsEditor input,
    #homeNewsEditor textarea,
    #homeNewsEditor select,
    #governorateActivityEditor .activity-editor-input {
      transition: none !important;
    }
  }

/* === original style block 55 | id: assistantMobileLoginPositionNoCyanStyle === */
/*
    تسجيل الدخول على الهاتف:
    - أعلى من منتصف الشاشة.
    - يعتمد على visual viewport الحديثة.
    - لا يوجد أي شريط/حد سماوي أسفل الصفحة.
  */
  @media (max-width: 700px), (hover: none) and (pointer: coarse) and (max-width: 900px) {
    html.kff-access-locked,
    body.kff-access-locked {
      width: 100% !important;
      min-height: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
      background: #061526 !important;
      background-color: #061526 !important;
      border: 0 !important;
      outline: 0 !important;
      box-shadow: none !important;
    }

    /* منع أي زخرفة عامة من الظهور كشريط أسفل شاشة تسجيل الدخول */
    html.kff-access-locked::before,
    html.kff-access-locked::after,
    body.kff-access-locked::before,
    body.kff-access-locked::after {
      content: none !important;
      display: none !important;
      border: 0 !important;
      box-shadow: none !important;
      background: transparent !important;
    }

    #kffAccessGate {
      position: fixed !important;
      inset: 0 !important;
      top: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      min-height: 100vh !important;
      max-height: none !important;
      margin: 0 !important;

      display: flex !important;

      padding:
        max(20px, env(safe-area-inset-top))
        12px
        max(12px, env(safe-area-inset-bottom))
        12px !important;

      overflow-x: hidden !important;
      overflow-y: auto !important;
      overscroll-behavior: none !important;
      -webkit-overflow-scrolling: touch !important;

      border: 0 !important;
      border-bottom: 0 !important;
      outline: 0 !important;
      box-shadow: none !important;

      background:
        radial-gradient(circle at 50% 8%, rgba(216,178,93,.13), transparent 27%),
        linear-gradient(180deg, #07192d 0%, #0a2946 52%, #061526 100%) !important;
      background-color: #061526 !important;
    }

    @supports (height: 100svh) {
      #kffAccessGate {
        height: 100svh !important;
        min-height: 100svh !important;
      }
    }

    @supports (height: 100dvh) {
      #kffAccessGate {
        height: 100dvh !important;
        min-height: 100dvh !important;
      }
    }

    /* لا نسمح لأي pseudo-element في البوابة أن يرسم خطاً أسفل الشاشة */
    #kffAccessGate::after {
      content: none !important;
      display: none !important;
      border: 0 !important;
      border-bottom: 0 !important;
      box-shadow: none !important;
      background: transparent !important;
    }

    #kffAccessGate .kff-access-card {
      width: min(360px, calc(100vw - 24px)) !important;
      max-width: 100% !important;
      padding: 21px 18px 17px !important;
      border-radius: 20px !important;
    }

    #kffAccessGate .kff-access-title {
      margin-bottom: 5px !important;
      font-size: 21px !important;
      line-height: 1.4 !important;
    }

    #kffAccessGate .kff-access-subtitle {
      margin-bottom: 15px !important;
      font-size: 12.5px !important;
      line-height: 1.65 !important;
    }

    #kffAccessGate .kff-access-field {
      margin-bottom: 11px !important;
    }

    #kffAccessGate .kff-access-label {
      margin-bottom: 6px !important;
      font-size: 13px !important;
    }

    #kffAccessGate .kff-access-input {
      min-height: 45px !important;
      padding: 10px 12px !important;
      border-radius: 12px !important;
    }

    #kffAccessGate .kff-access-button {
      min-height: 46px !important;
      margin-top: 3px !important;
      border-radius: 12px !important;
    }

    #kffAccessGate .kff-access-error {
      min-height: 18px !important;
      margin-top: 8px !important;
    }

    #kffAccessGate .kff-access-watermark {
    }
  }

  /* الشاشات القصيرة أو عند ظهور لوحة المفاتيح */
  @media (max-width: 700px) and (max-height: 650px) {
    #kffAccessGate {
      padding-top: max(10px, env(safe-area-inset-top)) !important;
    }

    #kffAccessGate .kff-access-card {
      margin-bottom: 12px !important;
      padding-top: 17px !important;
      padding-bottom: 14px !important;
    }

    #kffAccessGate .kff-access-subtitle {
      margin-bottom: 10px !important;
    }

    #kffAccessGate .kff-access-field {
      margin-bottom: 8px !important;
    }
  }

/* === original style block 56 | id: assistantMobileLogoAboveLoginStyle === */
/*
    الموبايل فقط:
    الشعار يظهر كاملاً فوق دايلوق تسجيل الدخول.
    الكمبيوتر لا يتأثر بهذه القواعد.
  */
  @media (max-width: 700px), (hover: none) and (pointer: coarse) and (max-width: 900px) {
    #kffAccessGate {
      flex-direction: column !important;
      align-items: center !important;
      justify-content: flex-start !important;
    }

    #kffAccessGate .kff-access-watermark {
      position: relative !important;
      top: auto !important;
      right: auto !important;
      bottom: auto !important;
      left: auto !important;

      display: block !important;
      flex: 0 0 auto !important;
      width: clamp(86px, 24vw, 112px) !important;
      height: clamp(86px, 24vw, 112px) !important;

      margin:
        clamp(22px, 5.5dvh, 48px)
        auto
        11px
        auto !important;

      transform: none !important;
      object-fit: contain !important;
      opacity: 1 !important;
      filter:
        drop-shadow(0 8px 18px rgba(0,0,0,.28))
        drop-shadow(0 0 10px rgba(216,178,93,.08)) !important;

      z-index: 3 !important;
      animation: kffMobileOfficialLogoEnter .58s cubic-bezier(.2,.72,.25,1) both !important;
    }

    #kffAccessGate .kff-access-card {
      margin:
        0
        auto
        max(18px, env(safe-area-inset-bottom))
        auto !important;
      flex: 0 0 auto !important;
    }

    @keyframes kffMobileOfficialLogoEnter {
      0% {
        opacity: 0;
        transform: translateY(-7px) scale(.965);
        filter:
          drop-shadow(0 4px 10px rgba(0,0,0,.15))
          blur(1px);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter:
          drop-shadow(0 8px 18px rgba(0,0,0,.28))
          drop-shadow(0 0 10px rgba(216,178,93,.08));
      }
    }
  }

  /* الشاشات القصيرة: نصغّر الشعار ونقلل الفراغ دون إعادة العلامة المائية للخلفية */
  @media (max-width: 700px) and (max-height: 650px) {
    #kffAccessGate .kff-access-watermark {
      width: 72px !important;
      height: 72px !important;
      margin-top: 8px !important;
      margin-bottom: 7px !important;
    }

    #kffAccessGate .kff-access-card {
      margin-top: 0 !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #kffAccessGate .kff-access-watermark {
      animation: none !important;
    }
  }

/* === original style block 57 | id: assistantCompactNewsManagerStyle === */
/* ASSISTANT_COMPACT_NEWS_MANAGER_START */
#homeNewsEditorBackdrop.home-news-editor-backdrop {
}

#homeNewsEditor.home-news-editor {
  -webkit-overflow-scrolling: touch !important;
}

@supports (height: 100dvh) {
  #homeNewsEditor.home-news-editor {
  }
}

#homeNewsEditor .home-news-editor-note {
}

#homeNewsEditor .home-news-list {
  min-height: 0 !important;
}

#homeNewsEditor .home-news-list-item {
}

#homeNewsEditor .home-news-list-title {
}

#homeNewsEditor .home-news-list-stamp,
#homeNewsEditor .home-news-list-status {
  font-size: 9px !important;
}

#homeNewsEditor .home-news-editor-subtitle {
}

#homeNewsEditor #homeNewsInput,
#homeNewsEditor #homeNewsDetailInput {
  border-radius: 12px !important;
}

#homeNewsEditor #homeNewsDetailInput {
}

#homeNewsEditor .home-news-meta-editor-grid {
}

#homeNewsEditor .home-news-meta-editor-field label {
  margin-bottom: 3px !important;
  font-size: 10.5px !important;
  line-height: 1.4 !important;
}

#homeNewsEditor .home-news-optional-mark {
}

#homeNewsEditor .home-news-meta-editor-field input,
#homeNewsEditor .home-news-meta-editor-field select {
  min-height: 39px !important;
  height: 39px !important;
  padding: 7px 9px !important;
  border-radius: 10px !important;
  font-size: 11.5px !important;
}

#homeNewsEditor .home-news-status-controls {
}

#homeNewsEditor .home-news-status-title {
  margin-bottom: 5px !important;
}

#homeNewsEditor .home-news-toggle-row {
  margin-bottom: 5px !important;
}

#homeNewsEditor .home-news-toggle-row label,
#homeNewsEditor .home-news-status-option {
}

#homeNewsEditor .home-news-media-tools {
}

#homeNewsEditor .home-news-file-label,
#homeNewsEditor .home-news-clear-media {
}

#homeNewsEditor .home-news-media-hint {
}

#homeNewsEditor .home-news-media-preview {
  margin-top: 5px !important;
}

#homeNewsEditor .home-news-media-item {
}

#homeNewsEditor .home-news-media-item img,
#homeNewsEditor .home-news-media-item video {
}

#homeNewsEditor .home-news-editor-actions {
  flex-wrap: nowrap !important;
}

#homeNewsEditor .home-news-editor-actions button {
  flex: 1 1 0 !important;
}

@media (max-width: 700px) {
  #homeNewsEditor.home-news-editor {
    width: calc(100vw - 16px) !important;
    max-width: none !important;
    max-height: calc(100vh - 16px) !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  @supports (height: 100dvh) {
    #homeNewsEditor.home-news-editor {
      max-height: calc(100dvh - 16px) !important;
    }
  }

  #homeNewsEditor .home-news-editor-title {
    margin: -12px -12px 7px !important;
    padding: 11px 12px 9px !important;
    font-size: 19px !important;
  }

  #homeNewsEditor .home-news-meta-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  #homeNewsEditor input,
  #homeNewsEditor textarea,
  #homeNewsEditor select {
    font-size: 16px !important;
  }

  #homeNewsEditor #homeNewsInput {
    height: 54px !important;
  }

  #homeNewsEditor #homeNewsDetailInput {
    height: 76px !important;
  }

  #homeNewsEditor .home-news-status-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  #homeNewsEditor .home-news-status-option {
    justify-content: center !important;
    text-align: center !important;
  }

  #homeNewsEditor .home-news-editor-actions {
    bottom: -12px !important;
    margin: 8px -12px -12px !important;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 5px !important;
  }

  #homeNewsEditor .home-news-editor-actions button {
    min-height: 40px !important;
    padding: 6px 5px !important;
    font-size: 10px !important;
  }
}

@media (max-width: 390px) {
  #homeNewsEditor .home-news-meta-editor-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  #homeNewsEditor .home-news-editor-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
/* ASSISTANT_COMPACT_NEWS_MANAGER_END */

/* === original style block 58 | id: assistantNewsDepartmentDropdownStyle === */
/* ASSISTANT_NEWS_DEPARTMENT_DROPDOWN_START */
#homeNewsEditor #homeNewsDepartmentInput {
  width: 100% !important;
  min-height: 39px !important;
  height: 39px !important;
  padding: 7px 32px 7px 9px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(216,178,93,.22) !important;
  background-color: rgba(255,255,255,.065) !important;
  color: #fff !important;
  cursor: pointer !important;
  outline: none !important;
}

#homeNewsEditor #homeNewsDepartmentInput option,
#homeNewsEditor #homeNewsDepartmentInput optgroup,
#homeNewsEditor #homeNewsCenterInput option,
#homeNewsEditor #homeNewsCenterInput optgroup,
#homeNewsEditor #homeNewsSupportCenter1 option,
#homeNewsEditor #homeNewsSupportCenter1 optgroup,
#homeNewsEditor #homeNewsSupportCenter2 option,
#homeNewsEditor #homeNewsSupportCenter2 optgroup,
#homeNewsEditor #homeNewsSupportCenter3 option,
#homeNewsEditor #homeNewsSupportCenter3 optgroup,
#homeNewsEditor #homeNewsSupportCenter4 option,
#homeNewsEditor #homeNewsSupportCenter4 optgroup {
  background: #0b203a !important;
  color: #ffffff !important;
}

#homeNewsEditor #homeNewsDepartmentInput optgroup,
#homeNewsEditor #homeNewsCenterInput optgroup,
#homeNewsEditor #homeNewsSupportCenter1 optgroup,
#homeNewsEditor #homeNewsSupportCenter2 optgroup,
#homeNewsEditor #homeNewsSupportCenter3 optgroup,
#homeNewsEditor #homeNewsSupportCenter4 optgroup {
  color: #f3d6aa !important;
  font-weight: 800 !important;
}

@media (max-width: 700px) {
  #homeNewsEditor #homeNewsDepartmentInput {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 16px !important;
  }
}
/* ASSISTANT_NEWS_DEPARTMENT_DROPDOWN_END */

/* === original style block 59 | id: assistantNewFireForceTitleImageStyle === */
/* ASSISTANT_NEW_FIREFORCE_TITLE_IMAGE_START */
#homePage .page-brand-ar.decorated-fire-title {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}

#homePage .page-brand-ar.decorated-fire-title img,
#homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
  flex: 0 1 auto !important;
}

@media (max-width: 900px) {
  #homePage .page-brand-ar.decorated-fire-title {
  }
  #homePage .page-brand-ar.decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
  }
}

@media (max-width: 700px) {
  #homePage .page-brand-ar.decorated-fire-title {
    border-radius: 10px !important;
  }
  #homePage .page-brand-ar.decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
  }
}
/* ASSISTANT_NEW_FIREFORCE_TITLE_IMAGE_END */

/* === original style block 60 | id: assistantTransparentTitleBgStyle === */

/* === original style block 61 | id: assistantGoldTransparentArabicTitleStyle === */
/* ASSISTANT_GOLD_TRANSPARENT_ARABIC_TITLE_START */
#homePage .page-brand-ar.decorated-fire-title{
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
#homePage .page-brand-ar.decorated-fire-title img,
#homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"]{
  background: transparent !important;
  display: block !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 10px rgba(246, 232, 179, .18)) !important;
}
@media (max-width: 700px){
  #homePage .page-brand-ar.decorated-fire-title{
  }
  #homePage .page-brand-ar.decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"]{
  }
}
/* ASSISTANT_GOLD_TRANSPARENT_ARABIC_TITLE_END */

/* === original style block 62 | id: assistantSmallerArabicTitleOverride === */
/* ASSISTANT_SMALLER_ARABIC_TITLE_OVERRIDE_START */
#homePage .page-brand-ar.decorated-fire-title{
  margin: 12px auto 12px !important;
}

#homePage .page-brand-ar.decorated-fire-title img,
#homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"]{
  width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
}

#homePage .page-brand-en{
  margin-top: 14px !important;
}

@media (max-width: 900px){
  #homePage .page-brand-ar.decorated-fire-title{
    margin: 12px auto 12px !important;
  }
  #homePage .page-brand-ar.decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"]{
  }
}

@media (max-width: 700px){
  #homePage .page-brand-ar.decorated-fire-title{
    margin: 12px auto 12px !important;
  }
  #homePage .page-brand-ar.decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"]{
  }
}

@media (max-width: 480px){
  #homePage .page-brand-ar.decorated-fire-title{
    margin: 14px auto 14px !important;
  }
  #homePage .page-brand-ar.decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"]{
  }
  #homePage .page-brand-en{
    margin-top: 16px !important;
  }
}
/* ASSISTANT_SMALLER_ARABIC_TITLE_OVERRIDE_END */

/* === original style block 63 | id: assistantExtraSmallerArabicTitleOverride === */
/* ASSISTANT_EXTRA_SMALLER_ARABIC_TITLE_START */
#homePage .page-brand-ar.decorated-fire-title{
  width: min(72vw, 610px) !important;
  max-width: 610px !important;
}

#homePage .page-brand-ar.decorated-fire-title img,
#homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"]{
  max-width: 610px !important;
}

@media (max-width: 900px){
  #homePage .page-brand-ar.decorated-fire-title{
    width: min(68vw, 500px) !important;
    max-width: 500px !important;
  }
  #homePage .page-brand-ar.decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"]{
    max-width: 500px !important;
  }
}

@media (max-width: 700px){
  #homePage .page-brand-ar.decorated-fire-title{
    width: min(66vw, 410px) !important;
    max-width: 410px !important;
  }
  #homePage .page-brand-ar.decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"]{
    max-width: 410px !important;
  }
}

@media (max-width: 480px){
  #homePage .page-brand-ar.decorated-fire-title{
    width: min(64vw, 320px) !important;
    max-width: 320px !important;
  }
  #homePage .page-brand-ar.decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"]{
    max-width: 320px !important;
  }
}
/* ASSISTANT_EXTRA_SMALLER_ARABIC_TITLE_END */

/* === original style block 64 | id: assistantAdminAccessPillStyle === */
/* ASSISTANT_ADMIN_ACCESS_PILL_START */
#homePage .admin-access-pill-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  width: auto !important;
  max-width: 100% !important;
}

#homePage #openLoginBtn.admin-access-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 8px 13px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  color: #f3d6aa !important;
  background:
    linear-gradient(180deg, rgba(17,48,80,.96), rgba(6,24,43,.98)) !important;
  border: 1px solid rgba(216,178,93,.46) !important;
  box-shadow:
    0 8px 18px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease,
    transform .18s ease !important;
}

#homePage #openLoginBtn.admin-access-pill:hover,
#homePage #openLoginBtn.admin-access-pill:focus-visible {
  transform: translateY(-1px) !important;
  border-color: rgba(243,214,170,.72) !important;
  box-shadow:
    0 10px 22px rgba(0,0,0,.26),
    0 0 0 3px rgba(216,178,93,.08),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
}

#homePage #openLoginBtn.admin-access-pill.is-admin-connected {
  cursor: default !important;
  color: #d9ffe9 !important;
  background:
    linear-gradient(180deg, rgba(23,104,70,.92), rgba(8,55,38,.96)) !important;
  border-color: rgba(103,226,158,.46) !important;
  box-shadow:
    0 8px 18px rgba(0,0,0,.22),
    0 0 0 2px rgba(70,207,132,.07),
    inset 0 1px 0 rgba(255,255,255,.09) !important;
}

#homePage #openLoginBtn.admin-access-pill.is-admin-connected:hover {
  transform: none !important;
}

#homePage .admin-access-pill-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

#homePage .admin-access-pill-text {
  display: inline-block !important;
  line-height: 1 !important;
}

#homePage #adminHeaderLogoutBtn.admin-access-logout {
  min-height: 36px !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,143,154,.30) !important;
  color: #ffe9ec !important;
  background:
    linear-gradient(180deg, rgba(135,39,51,.86), rgba(88,22,32,.92)) !important;
  box-shadow: 0 7px 16px rgba(0,0,0,.20) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

#homePage #adminHeaderLogoutBtn.admin-access-logout:hover,
#homePage #adminHeaderLogoutBtn.admin-access-logout:focus-visible {
  filter: brightness(1.08) !important;
  transform: translateY(-1px) !important;
}

/* منع تكرار زر الخروج القديم في الهيدر الرئيسي */
#homePage #logoutBtn {
  display: none !important;
}

/* حساب المشاهدة لا يرى بوابة المشرف أو زر الخروج */
body.kff-viewer-login #homePage .admin-access-pill-wrap,
body.kff-viewer-login #homePage #adminHeaderLogoutBtn {
  display: none !important;
}

@media (max-width: 640px) {
  #homePage .admin-access-pill-wrap {
    gap: 5px !important;
  }

  #homePage #openLoginBtn.admin-access-pill {
    min-height: 36px !important;
    padding: 7px 11px !important;
    font-size: 11.5px !important;
    gap: 5px !important;
  }

  #homePage .admin-access-pill-icon {
    font-size: 13px !important;
  }

  #homePage #adminHeaderLogoutBtn.admin-access-logout {
    min-height: 34px !important;
    padding: 6px 9px !important;
    font-size: 10.5px !important;
  }
}

@media (max-width: 380px) {
  #homePage #openLoginBtn.admin-access-pill {
    min-height: 34px !important;
    padding: 6px 9px !important;
    font-size: 10.8px !important;
  }

  #homePage #adminHeaderLogoutBtn.admin-access-logout {
    min-height: 32px !important;
    padding: 6px 8px !important;
    font-size: 10px !important;
  }
}
/* ASSISTANT_ADMIN_ACCESS_PILL_END */

/* === original style block 65 | id: assistantCompactSideBySideSectorLogos === */
/* ASSISTANT_COMPACT_SIDE_BY_SIDE_SECTOR_LOGOS_START */
/* جعل الشعارين بجانب بعض وتقليل ارتفاع الهيدر */
#homePage .banner-left-group{
  margin:0 !important;
  padding:0 !important;
}

#homePage .banner-left-logos{
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  margin:0 !important;
  padding:0 !important;
  width:auto !important;
  flex:0 0 auto !important;
}

#homePage .banner-left-logo{
  object-fit:contain !important;
  margin:0 !important;
}

#homePage .banner-left-actions{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:6px !important;
  flex:0 0 auto !important;
}

#homePage .unified-header,
#homePage .unified-header-inner{
  row-gap:8px !important;
}

#homePage .unified-header-title{
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}

@media (max-width: 900px){
  #homePage .banner-left-group{
    gap:8px !important;
  }

  #homePage .banner-left-logo{
    width:31px !important;
    height:31px !important;
    max-width:31px !important;
    max-height:31px !important;
  }

  #homePage .banner-left-actions{
    gap:5px !important;
  }
}

@media (max-width: 640px){
  #homePage .banner-left-group{
    gap:7px !important;
  }

  #homePage .banner-left-logos{
    gap:6px !important;
  }

  #homePage .banner-left-logo{
    width:28px !important;
    height:28px !important;
    max-width:28px !important;
    max-height:28px !important;
  }

  #homePage .banner-left-actions{
    gap:4px !important;
  }
}

@media (max-width: 420px){
  #homePage .banner-left-group{
    gap:6px !important;
  }

  #homePage .banner-left-logo{
    width:26px !important;
    height:26px !important;
    max-width:26px !important;
    max-height:26px !important;
  }
}
/* ASSISTANT_COMPACT_SIDE_BY_SIDE_SECTOR_LOGOS_END */

/* === original style block 66 | id: assistantAdminButtonsPositionOnly === */
/* تغيير مكان أزرار المشرف فقط على الهاتف */
@media (max-width: 768px) {
  #homePage .banner-left-actions {
    top: 4px !important;
    inset-inline-end: 10px !important;
    margin: 0 !important;
  }

  #homePage .mobile-header-admin-controls {
    margin-top: 0 !important;
  }
}

@media (max-width: 480px) {
  #homePage .banner-left-actions {
    top: 2px !important;
    inset-inline-end: 8px !important;
  }
}

/* === original style block 67 | id: assistantAllDevicesAdminButtonsCentered === */
/* جميع الأجهزة: إخفاء الأزرار القديمة ووضع الأزرار الثلاثة أسفل KUWAIT FIRE FORCE */
#homePage #quickAddNewsBtn,
#homePage #logoutBtn,
#homePage .admin-access-pill-wrap,
#homePage #openLoginBtn,
#homePage #adminHeaderLogoutBtn {
  display: none !important;
}

/* إلغاء أي تموضع سابق لمجموعة الأزرار القديمة */
#homePage .banner-left-actions {
  inset: auto !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* الأزرار الثلاثة تحت KUWAIT FIRE FORCE على الكمبيوتر والتابلت والهاتف */
body.admin-mode #homePage .unified-header-title > .mobile-header-admin-controls {
  direction: rtl !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 12px auto 0 !important;
  padding: 0 8px !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  z-index: 8 !important;
  white-space: nowrap !important;
}

#homePage .unified-header-title > .mobile-header-admin-controls .mobile-header-admin-btn {
  min-height: 36px !important;
  padding: 7px 14px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  flex: 0 0 auto !important;
}

#homePage .unified-header-title > .mobile-header-admin-controls .mobile-header-admin-status {
  display: none !important;
}

/* تابلت */
@media (max-width: 1024px) {
  body.admin-mode #homePage .unified-header-title > .mobile-header-admin-controls {
    gap: 7px !important;
    max-width: 460px !important;
    margin-top: 10px !important;
  }

  #homePage .unified-header-title > .mobile-header-admin-controls .mobile-header-admin-btn {
    min-height: 34px !important;
    padding: 6px 12px !important;
    font-size: 10.5px !important;
  }
}

/* هاتف */
@media (max-width: 640px) {
  body.admin-mode #homePage .unified-header-title > .mobile-header-admin-controls {
    gap: 6px !important;
    max-width: 360px !important;
    margin-top: 9px !important;
    padding: 0 6px !important;
  }

  #homePage .unified-header-title > .mobile-header-admin-controls .mobile-header-admin-btn {
    min-height: 32px !important;
    padding: 6px 10px !important;
    font-size: 10px !important;
    border-radius: 9px !important;
  }
}

@media (max-width: 390px) {
  body.admin-mode #homePage .unified-header-title > .mobile-header-admin-controls {
    gap: 4px !important;
    margin-top: 7px !important;
    padding: 0 4px !important;
  }

  #homePage .unified-header-title > .mobile-header-admin-controls .mobile-header-admin-btn {
    min-height: 30px !important;
    padding: 5px 8px !important;
    font-size: 9.3px !important;
  }
}

/* === original style block 68 | id: assistantTickerLocationColors === */
/* شريط الأخبار: المحافظة والمنطقة أصغر وبألوان مختلفة */
#homePage .home-news-location-part {
}

#homePage .home-news-governorate {
}

#homePage .home-news-area {
}

#homePage .home-news-location-sep {
}

@media (max-width: 640px) {
  #homePage .home-news-location-part {
  }

  #homePage .home-news-location-sep {
  }
}

/* === original style block 69 | id: assistantHeaderLogosLarger === */
/* تكبير الشعارين الموجودين في الهيدر فقط */
#homePage .banner-left-logo {
}

@media (max-width: 1024px) {
  #homePage .banner-left-logo {
  }
}

@media (max-width: 768px) {
  #homePage .banner-left-logo {
  }
}

@media (max-width: 480px) {
  #homePage .banner-left-logo {
  }
}

/* === original style block 70 | id: assistantColoredAdminButtonsUnderTitle === */
/* تلوين الأزرار الثلاثة تحت KUWAIT FIRE FORCE فقط */
#homePage .unified-header-title > .mobile-header-admin-controls {
  direction: rtl !important;
}

#homePage .unified-header-title > .mobile-header-admin-controls .mobile-header-admin-btn {
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow:
    0 8px 20px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.14) !important;
}

/* إضافة خبر */
#homePage .unified-header-title > .mobile-header-admin-controls .mobile-header-admin-btn:nth-child(1) {
  background: linear-gradient(135deg, #d7b368 0%, #b78a3b 100%) !important;
  color: #13253f !important;
  border-color: rgba(255,224,164,.34) !important;
}

/* إدارة الأخبار */
#homePage .unified-header-title > .mobile-header-admin-controls .mobile-header-admin-btn:nth-child(2) {
  background: linear-gradient(135deg, #2b4d7c 0%, #173457 100%) !important;
  color: #f5f8ff !important;
  border-color: rgba(143,186,255,.22) !important;
}

/* تسجيل خروج */
#homePage .unified-header-title > .mobile-header-admin-controls .mobile-header-admin-btn:nth-child(3) {
  background: linear-gradient(135deg, #b13445 0%, #7e1826 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255,171,171,.22) !important;
}

#homePage .unified-header-title > .mobile-header-admin-controls .mobile-header-admin-btn:hover,
#homePage .unified-header-title > .mobile-header-admin-controls .mobile-header-admin-btn:focus-visible {
  filter: brightness(1.05) !important;
  transform: translateY(-1px) !important;
}

/* === original style block 71 | id: assistantElegantHomeSectionsSeparation === */
/* ===== فصل أنيق بين المحافظات والإدارات التخصصية ===== */
#homePage .home-centers-sections {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

#homePage .home-centers-section {
  width: 100% !important;
}

/* عنوانا القسمين */
#homePage .home-section-title {
  width: fit-content !important;
  max-width: calc(100% - 24px) !important;
  margin: 0 auto 14px !important;
  padding: 5px 18px 6px !important;
  border: 1px solid rgba(219, 185, 118, .28) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(19, 52, 84, .82), rgba(8, 29, 52, .82)) !important;
  color: #ead09a !important;
  font-family: "Noto Kufi Arabic","Tajawal",Tahoma,Arial,sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 6px 18px rgba(0,0,0,.12) !important;
}

#homePage .governorates-section-title {
  margin-top: 2px !important;
}

#homePage .specialized-section {
  margin-top: 18px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

/* الفاصل: خط ذهبي رفيع + نجمة صغيرة */
#homePage .home-sections-divider {
  display: grid !important;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr) !important;
  align-items: center !important;
  margin: 0 auto 14px !important;
  opacity: .92 !important;
}

#homePage .home-sections-divider-line {
  display: block !important;
}

#homePage .home-sections-divider-line:last-child {
  transform: scaleX(-1) !important;
}

#homePage .home-sections-divider-ornament {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #d8b875 !important;
  line-height: 1 !important;
  text-shadow: 0 0 12px rgba(218,181,117,.28) !important;
}

/* ===== توحيد شكل وحجم خط جميع الخانات ===== */
#homePage .governorates-centers-grid .center-btn,
#homePage .specialized-centers-grid .center-btn {
  min-height: 82px !important;
  padding: 11px 10px !important;
  border-radius: 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: normal !important;
}

/* نفس حجم الخط لكل خانات المحافظات والإدارات */
#homePage .governorates-centers-grid .center-btn .desktop-department-label,
#homePage .specialized-centers-grid .center-btn .desktop-department-label,
#homePage .governorates-centers-grid .center-btn .mobile-department-label,
#homePage .specialized-centers-grid .center-btn .mobile-department-label {
  font-family: "Noto Kufi Arabic","Tajawal",Tahoma,Arial,sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

/* تابلت */
@media (max-width: 900px) {
  #homePage .home-section-title {
    margin-bottom: 12px !important;
    padding: 4px 16px 5px !important;
    font-size: 11.5px !important;
  }

  #homePage .specialized-section {
    margin-top: 16px !important;
  }

  #homePage .home-sections-divider {
    margin-bottom: 12px !important;
  }

  #homePage .governorates-centers-grid .center-btn .desktop-department-label,
  #homePage .specialized-centers-grid .center-btn .desktop-department-label,
  #homePage .governorates-centers-grid .center-btn .mobile-department-label,
  #homePage .specialized-centers-grid .center-btn .mobile-department-label {
    font-size: 14px !important;
  }
}

/* هاتف */
@media (max-width: 600px) {
  #homePage .home-section-title {
    margin-bottom: 10px !important;
    padding: 4px 14px 5px !important;
    font-size: 11px !important;
  }

  #homePage .specialized-section {
    margin-top: 14px !important;
  }

  #homePage .home-sections-divider {
  }

  #homePage .home-sections-divider-ornament {
  }

  #homePage .governorates-centers-grid .center-btn,
  #homePage .specialized-centers-grid .center-btn {
    min-height: 76px !important;
    padding: 10px 12px !important;
  }

  #homePage .governorates-centers-grid .center-btn .desktop-department-label,
  #homePage .specialized-centers-grid .center-btn .desktop-department-label,
  #homePage .governorates-centers-grid .center-btn .mobile-department-label,
  #homePage .specialized-centers-grid .center-btn .mobile-department-label {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
}

/* === original style block 72 | id: assistantWiderDepartmentsDivider === */
/* تكبير الخط الفاصل بين المحافظات والإدارات */
#homePage .home-sections-divider {
  width: min(98%, 1280px) !important;
  gap: 14px !important;
  margin-top: 6px !important;
  margin-bottom: 16px !important;
}

#homePage .home-sections-divider-line {
  height: 2px !important;
  border-radius: 999px !important;
  background:
    linear-gradient(
      90deg,
      rgba(218,181,117,0),
      rgba(218,181,117,.88),
      rgba(218,181,117,.34)
    ) !important;
  box-shadow: 0 0 8px rgba(218,181,117,.12) !important;
}

#homePage .home-sections-divider-ornament {
  width: 26px !important;
  height: 26px !important;
  font-size: 14px !important;
}

@media (max-width: 900px) {
  #homePage .home-sections-divider {
    width: 96% !important;
    gap: 12px !important;
  }
}

@media (max-width: 600px) {
  #homePage .home-sections-divider {
    width: 94% !important;
    gap: 10px !important;
    margin-bottom: 13px !important;
  }

  #homePage .home-sections-divider-line {
    height: 2px !important;
  }

  #homePage .home-sections-divider-ornament {
    width: 24px !important;
    height: 24px !important;
    font-size: 13px !important;
  }
}

/* === original style block 73 | id: assistantTickerGlassCapsulesStar === */
/* =========================================================
   شريط الأخبار:
   - المحافظة داخل كبسولة زجاجية
   - المنطقة داخل كبسولة زجاجية
   - نجمة واضحة بين خبر وخبر
   ========================================================= */

#homePage .home-news-location-part {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 24px !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: .76em !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.08) !important;
  -webkit-backdrop-filter: blur(9px) saturate(125%) !important;
  backdrop-filter: blur(9px) saturate(125%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 3px 9px rgba(0,0,0,.14) !important;
  vertical-align: middle !important;
}

/* المحافظة: زجاج ذهبي خفيف */
#homePage .home-news-governorate {
  color: #f3d58e !important;
  border-color: rgba(231,194,116,.30) !important;
  background:
    linear-gradient(
      180deg,
      rgba(231,194,116,.13),
      rgba(231,194,116,.055)
    ) !important;
}

/* المنطقة: زجاج أزرق خفيف */
#homePage .home-news-area {
  color: #9fe4ff !important;
  border-color: rgba(112,206,244,.30) !important;
  background:
    linear-gradient(
      180deg,
      rgba(112,206,244,.13),
      rgba(112,206,244,.055)
    ) !important;
}

/* الشرطات داخل الخبر تبقى هادئة وصغيرة */
#homePage .home-news-location-sep {
  display: inline-block !important;
  margin: 0 5px !important;
  color: rgba(255,255,255,.48) !important;
  font-size: .72em !important;
  vertical-align: middle !important;
}

/* النجمة بين خبر وخبر */
#homePage .home-news-separator {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 22px !important;
  color: #e3bf72 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  text-shadow:
    0 0 6px rgba(227,191,114,.28),
    0 0 14px rgba(227,191,114,.16) !important;
}

/* الهاتف */
@media (max-width: 640px) {
  #homePage .home-news-location-part {
    min-height: 22px !important;
    padding: 3px 8px !important;
    font-size: .71em !important;
  }

  #homePage .home-news-location-sep {
    margin: 0 3px !important;
    font-size: .68em !important;
  }

  #homePage .home-news-separator {
    margin: 0 16px !important;
    font-size: 18px !important;
  }
}

/* === original style block 74 | id: assistant-header-side-transparent-logos === */
/* Assistant override: larger transparent header logos on left and right */
#homePage .unified-header,
#homePage .unified-header-inner {
  position: relative !important;
  overflow: hidden !important;
}

#homePage .banner-right-group .hero-logo-frame {
  display: none !important;
}

#homePage .banner-left-group {
  width: 100% !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

#homePage .banner-left-group .banner-left-logos {
  position: absolute !important;
  top: 10px !important;
  left: 22px !important;
  right: 22px !important;
  width: calc(100% - 44px) !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

#homePage .banner-left-group .banner-left-logo {
  width: 168px !important;
  height: 168px !important;
  flex: 0 0 168px !important;
  object-fit: contain !important;
  opacity: 0.16 !important;
  filter: grayscale(0%) contrast(0.96) brightness(1.02) drop-shadow(0 8px 18px rgba(0,0,0,.16)) !important;
}

#homePage .banner-left-group .banner-left-logo:first-child {
  transform: translateX(-6px);
}

#homePage .banner-left-group .banner-left-logo:last-child {
  transform: translateX(6px);
}

#homePage .unified-header-title,
#homePage .page-brand-title,
#homePage .banner-left-actions,
#homePage .unified-header-title > .mobile-header-admin-controls {
  position: relative !important;
  z-index: 3 !important;
}

#homePage .banner-left-group .banner-left-actions {
  justify-content: center !important;
  align-self: center !important;
  margin-top: 8px !important;
}

@media (max-width: 1100px) {
  #homePage .banner-left-group .banner-left-logos {
    top: 8px !important;
    left: 16px !important;
    right: 16px !important;
    width: calc(100% - 32px) !important;
  }

  #homePage .banner-left-group .banner-left-logo {
    width: 146px !important;
    height: 146px !important;
    flex-basis: 146px !important;
    opacity: 0.14 !important;
  }
}

@media (max-width: 700px) {
  #homePage .banner-left-group .banner-left-logos {
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
    width: calc(100% - 24px) !important;
  }

  #homePage .banner-left-group .banner-left-logo {
    width: 124px !important;
    height: 124px !important;
    flex-basis: 124px !important;
    opacity: 0.13 !important;
  }
}

/* === original style block 75 | id: assistantDesktopGridExactCenter === */
/* سطح المكتب فقط: تمركز شبكة الخانات دون تغيير عرض/ارتفاع الخانات. */
@media (min-width: 901px) {
  #homePage #homeCentersCard {
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
  }
}

/* عند العروض التي تملأ فيها الشبكة معظم الشاشة: تصحيح بصري دقيق 2px فقط. */
@media (min-width: 901px) and (max-width: 1580px) {
  #homePage #homeCentersCard {
    left: 2px !important;
  }
}

/* === original style block 76 | id: assistantCardLogoWatermarkVerified === */
#homePage { --kff-card-logo-watermark: url("/assets/images/kff-official-logo.webp"); }

#homePage .governorates-centers-grid .center-btn,
#homePage .specialized-centers-grid .center-btn {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

#homePage .governorates-centers-grid .center-btn > .center-btn-watermark,
#homePage .specialized-centers-grid .center-btn > .center-btn-watermark {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 48px !important;
  height: 48px !important;
  transform: translate(-50%, -50%) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
  filter: grayscale(1) brightness(1.55) contrast(.95) !important;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 0 !important;
}

#homePage .governorates-centers-grid .center-btn > .desktop-department-label,
#homePage .governorates-centers-grid .center-btn > .mobile-department-label,
#homePage .specialized-centers-grid .center-btn > .desktop-department-label,
#homePage .specialized-centers-grid .center-btn > .mobile-department-label {
  position: relative !important;
  z-index: 1 !important;
}

#homePage button.center-btn.alert-red::after,
#homePage button.center-btn.alert-cyan::after,
#homePage button.center-btn.alert-dual::after,
#homePage button.center-btn.alert-dual::before {
  z-index: 2 !important;
}

@media (max-width: 768px) {
  #homePage .governorates-centers-grid .center-btn > .center-btn-watermark,
  #homePage .specialized-centers-grid .center-btn > .center-btn-watermark {
    width: 36px !important;
    height: 36px !important;
    opacity: .095 !important;
  }
}

/* === original style block 77 | id: assistantTickerLocationSmallerTighter === */
/* Final ticker sizing: governorate + area are noticeably smaller than the headline. */
#homePage #homeNewsTicker .home-news-location-part {
  min-height: 18px !important;
  padding: 2px 6px !important;
  border-radius: 999px !important;
  font-size: .58em !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* Keep the headline dominant. */
#homePage #homeNewsTicker .home-news-item-title {
  font-size: 1em !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}

/* General dash spacing around ticker parts. */
#homePage #homeNewsTicker .home-news-location-sep {
  margin: 0 3px !important;
  font-size: .60em !important;
}

/* Governorate ↔ area: intentionally much tighter. */
#homePage #homeNewsTicker .home-news-location-sep-between {
  margin-inline: 1px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 640px) {
  #homePage #homeNewsTicker .home-news-location-part {
    min-height: 17px !important;
    padding: 2px 5px !important;
    font-size: .54em !important;
  }

  #homePage #homeNewsTicker .home-news-location-sep {
    margin: 0 2px !important;
    font-size: .56em !important;
  }

  #homePage #homeNewsTicker .home-news-location-sep-between {
    margin-inline: 0 !important;
    letter-spacing: 0 !important;
  }
}

/* === original style block 78 | id: assistantHomeCleanGradientNoLogoClock === */
/* =========================================================
   CLEAN HOME BACKGROUND — NO LARGE LOGO / NO CLOCK
   Keeps card watermarks; affects the main home page background only.
   ========================================================= */
#homePage {
  background:
    radial-gradient(circle at 50% 46%,
      rgba(125, 190, 232, .12) 0%,
      rgba(87, 151, 194, .065) 24%,
      rgba(37, 92, 133, 0) 56%),
    linear-gradient(180deg,
      #0a2744 0%,
      #123b60 34%,
      #2a608d 68%,
      #24577f 100%) !important;
  background-attachment: scroll !important;
}

/* Disable every older large-background-logo implementation. */
#homePage::before {
  background: none !important;
}

/* Safety: if any old background/clock node is reintroduced, keep it hidden. */
#homePage .mobile-below-cards-background,
#homePage .mobile-below-cards-logo,
#homePage .home-background-clock,
#homePage .home-background-clock-label,
#homePage .home-background-clock-time,
#homePage .home-background-clock-date {
  display: none !important;
}

@media (max-width: 767px) {
  #homePage {
    background:
      radial-gradient(circle at 50% 44%,
        rgba(134, 197, 236, .13) 0%,
        rgba(80, 146, 190, .065) 24%,
        rgba(36, 92, 134, 0) 54%),
      linear-gradient(180deg,
        #0a2744 0%,
        #123b60 31%,
        #2c6491 66%,
        #285c85 100%) !important;
  }
}

/* === original style block 79 | id: assistantGovernorateCleanCompactLayout === */
/* =========================================================
   GOVERNORATE CLEAN COMPACT LAYOUT
   هيدر أبسط، أقل ارتفاعاً، وتبويبات/إطار أخبار أكثر هدوءاً.
   ========================================================= */

#governorateActivityPage .gov-dashboard-shell {
  width: min(1180px, calc(100% - 24px)) !important;
  margin-inline: auto !important;
}

#governorateActivityPage .gov-dashboard-header {
  display: block !important;
  min-height: 0 !important;
  margin: 0 0 8px !important;
  padding: 16px 84px 14px !important;
  border: 1px solid rgba(216,176,86,.30) !important;
  border-bottom: 1px solid rgba(216,176,86,.72) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(9,35,63,.97), rgba(5,23,43,.98)) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.16) !important;
}

#governorateActivityPage .gov-dashboard-heading {
  position: relative !important;
  justify-content: center !important;
  width: min(760px, 100%) !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
}

#governorateActivityPage .gov-dashboard-title {
  margin: 0 !important;
  color: var(--gov-gold) !important;
  font-size: clamp(27px, 3vw, 38px) !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  text-align: center !important;
  text-wrap: balance !important;
}

/* زر العودة: أعلى اليسار وصغير */
#governorateActivityPage .gov-dashboard-header-action {
  display: block !important;
  width: auto !important;
  padding: 0 !important;
}

#governorateActivityPage .gov-dashboard-back {
  white-space: nowrap !important;
}

/* شعار صغير يمين الهيدر */
#governorateActivityPage .gov-dashboard-identity {
  position: absolute !important;
  top: 13px !important;
  right: 16px !important;
  left: auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 3 !important;
}

#governorateActivityPage .gov-dashboard-logo {
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  opacity: .88 !important;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,.20)) !important;
}

#governorateActivityPage .gov-dashboard-update {
  display: none !important;
}

/* أزرار الإدارة: صف واحد صغير أسفل العنوان */

body.admin-mode #governorateActivityPage .gov-header-admin-controls {
  direction: rtl !important;
  flex-wrap: nowrap !important;
  max-width: 100% !important;
}

#governorateActivityPage .gov-header-admin-btn {
}

/* التبويبات: أقرب لستايل Tabs بدل البطاقات الكبيرة */
#governorateActivityPage .gov-sector-tabs {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  padding: 4px !important;
  gap: 5px !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 12px !important;
  background: rgba(4,18,35,.88) !important;
  box-shadow: 0 5px 14px rgba(0,0,0,.12) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
}

#governorateActivityPage .gov-sector-tab {
  min-height: 44px !important;
  padding: 7px 11px !important;
  gap: 7px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

#governorateActivityPage .gov-sector-tab b {
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 6px !important;
  font-size: 10px !important;
}

#governorateActivityPage .gov-sector-tab::after {
  height: 2px !important;
  inset-inline: 18% !important;
}

/* مساحة الأخبار أبسط وأقرب للتبويبات */
#governorateActivityPage .gov-news-frame {
  width: 100% !important;
  margin: 0 !important;
  padding: 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.065) !important;
  box-shadow: 0 7px 18px rgba(0,0,0,.10) !important;
}

#governorateActivityPage .gov-section-heading {
  margin-bottom: 9px !important;
}

#governorateActivityPage .gov-section-eyebrow {
  font-size: 10px !important;
}

#governorateActivityPage .gov-section-heading h2 {
  margin-top: 2px !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
}

#governorateActivityPage .gov-section-count {
  min-height: 30px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
}

#governorateActivityPage .gov-featured-news {
  border-radius: 18px !important;
}

#governorateActivityPage .gov-news-list-item {
  border-radius: 12px !important;
}

@media (max-width: 760px) {
  #governorateActivityPage {
    padding: 0 0 28px !important;
  }

  #governorateActivityPage .gov-dashboard-shell {
    width: 100% !important;
  }

  #governorateActivityPage .gov-dashboard-header {
    margin: 0 0 6px !important;
    padding: 12px 52px 10px !important;
    border-width: 0 0 1px !important;
    border-radius: 0 !important;
    box-shadow: 0 5px 14px rgba(0,0,0,.12) !important;
  }

  #governorateActivityPage .gov-dashboard-heading {
    width: 100% !important;
    min-height: 64px !important;
  }

  #governorateActivityPage .gov-dashboard-title {
    width: min(78vw, 430px) !important;
    margin: 0 auto !important;
    font-size: clamp(18px, 5.3vw, 22px) !important;
    line-height: 1.16 !important;
  }

  #governorateActivityPage .gov-dashboard-header-action {
  }

  #governorateActivityPage .gov-dashboard-back {
    padding: 4px 8px !important;
  }

  #governorateActivityPage .gov-dashboard-identity {
    top: 8px !important;
    right: 10px !important;
  }

  #governorateActivityPage .gov-dashboard-logo {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    opacity: .80 !important;
  }

  body.admin-mode #governorateActivityPage .gov-header-admin-controls {
  }

  #governorateActivityPage .gov-header-admin-btn {
  }

  #governorateActivityPage .gov-sector-tabs {
    width: calc(100% - 20px) !important;
    margin: 0 10px 7px !important;
    padding: 4px !important;
    gap: 4px !important;
    border-radius: 11px !important;
  }

  #governorateActivityPage .gov-sector-tab {
    min-height: 40px !important;
    padding: 6px 6px !important;
    gap: 5px !important;
    border-radius: 8px !important;
    font-size: 10.5px !important;
  }

  #governorateActivityPage .gov-sector-tab b {
    min-width: 21px !important;
    height: 21px !important;
    padding: 0 5px !important;
    font-size: 8.5px !important;
  }

  #governorateActivityPage .gov-news-frame {
    width: calc(100% - 20px) !important;
    margin: 0 10px !important;
    padding: 10px !important;
    border-radius: 13px !important;
  }

  #governorateActivityPage .gov-section-heading {
    margin-bottom: 7px !important;
  }

  #governorateActivityPage .gov-section-eyebrow {
    font-size: 8.5px !important;
  }

  #governorateActivityPage .gov-section-heading h2 {
    font-size: 18px !important;
  }

  #governorateActivityPage .gov-section-count {
    min-height: 26px !important;
    padding: 4px 8px !important;
    font-size: 8.5px !important;
  }

  #governorateActivityPage .gov-featured-news {
    border-radius: 15px !important;
  }

  #governorateActivityPage .gov-news-list-item {
    border-radius: 10px !important;
  }
}

@media (max-width: 390px) {
  #governorateActivityPage .gov-dashboard-header {
    padding-inline: 46px !important;
  }

  #governorateActivityPage .gov-dashboard-title {
    width: min(76vw, 300px) !important;
    font-size: clamp(17px, 5.1vw, 20px) !important;
  }

  #governorateActivityPage .gov-dashboard-logo {
    width: 31px !important;
    height: 31px !important;
    max-width: 31px !important;
    max-height: 31px !important;
  }

  #governorateActivityPage .gov-dashboard-back {
    padding-inline: 7px !important;
  }

  #governorateActivityPage .gov-header-admin-btn {
    padding-inline: 6px !important;
  }
}


/* === Assistant update: smaller bold gold back arrow + aligned admin buttons === */
#governorateActivityPage .gov-dashboard-header-action {
}

#governorateActivityPage .gov-dashboard-back {
}

#governorateActivityPage .gov-dashboard-back:hover,
#governorateActivityPage .gov-dashboard-back:focus-visible {
  border-color: rgba(243,217,143,.88) !important;
}

body.admin-mode #governorateActivityPage .gov-header-admin-controls {
}

@media (max-width: 760px) {
  #governorateActivityPage .gov-dashboard-header-action {
  }

  #governorateActivityPage .gov-dashboard-back {
    border-radius: 10px !important;
    border-width: 1.4px !important;
  }

  body.admin-mode #governorateActivityPage .gov-header-admin-controls {
  }

  #governorateActivityPage .gov-header-admin-btn {
  }
}

@media (max-width: 420px) {
  body.admin-mode #governorateActivityPage .gov-header-admin-controls {
    width: min(95vw, 360px) !important;
    gap: 6px !important;
  }

  #governorateActivityPage .gov-header-admin-btn {
    height: 34px !important;
  }
}



/* === Assistant refinement: frameless gold back arrow + equal admin buttons === */


#governorateActivityPage .gov-dashboard-back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #d8b25d !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.10), 0 2px 5px rgba(0,0,0,.30) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

#governorateActivityPage .gov-dashboard-back:hover,
#governorateActivityPage .gov-dashboard-back:focus-visible {
  color: #f3d98f !important;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  transform: translateX(-1px) !important;
}

body.admin-mode #governorateActivityPage .gov-header-admin-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  justify-content: center !important;
  width: min(100%, 720px) !important;
  margin: 12px auto 0 !important;
  padding: 0 !important;
  gap: 9px !important;
}

#governorateActivityPage .gov-header-admin-btn {
  max-width: none !important;
  height: 44px !important;
  margin: 0 !important;
}

@media (max-width: 760px) {
  #governorateActivityPage .gov-dashboard-header-action {
    top: 9px !important;
  }

  #governorateActivityPage .gov-dashboard-back {
    width: 27px !important;
    min-width: 27px !important;
    height: 27px !important;
    min-height: 27px !important;
    font-size: 21px !important;
  }

  body.admin-mode #governorateActivityPage .gov-header-admin-controls {
    width: min(94vw, 390px) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 9px !important;
  }

  #governorateActivityPage .gov-header-admin-btn {
    height: 36px !important;
    font-weight: 800 !important;
  }
}

@media (max-width: 390px) {
  #governorateActivityPage .gov-dashboard-back {
    width: 25px !important;
    min-width: 25px !important;
    height: 25px !important;
    min-height: 25px !important;
    font-size: 20px !important;
  }

  body.admin-mode #governorateActivityPage .gov-header-admin-controls {
    width: min(95vw, 350px) !important;
    gap: 5px !important;
  }

  #governorateActivityPage .gov-header-admin-btn {
    height: 34px !important;
    border-radius: 9px !important;
  }
}

/* === original style block 80 | id: assistantHideGovernorateSmallHeaderLogo === */
/* إخفاء الشعار الصغير في هيدر صفحة المحافظات/الإدارات فقط.
   يبقى العنصر داخل DOM ليستمر استخدامه كمصدر للعلامة المائية الكبيرة الشفافة. */
#governorateActivityPage .gov-dashboard-identity {
  display: none !important;
}

/* === original style block 81 | id: assistantBackArrowLeftFinal === */
/* تثبيت سهم الرجوع على يسار الصفحة */
#centerPage .unified-header {
  position: relative !important;
}

#centerPage .unified-header-inner {
  position: relative !important;
}

#centerPage .unified-header-actions .btn-back.btn-compact {
}

@media (max-width: 760px) {
  #centerPage .unified-header-actions .btn-back.btn-compact {
    left: 10px !important;
  }

  #governorateActivityPage .gov-dashboard-header-action {
    left: 10px !important;
    right: auto !important;
  }
}

@media (max-width: 390px) {
  #centerPage .unified-header-actions .btn-back.btn-compact {
    left: 8px !important;
  }

  #governorateActivityPage .gov-dashboard-header-action {
    left: 8px !important;
    right: auto !important;
  }
}

/* === original style block 82 | id: assistantComfortableNewsManagerStyle === */
/* ASSISTANT_COMFORTABLE_NEWS_MANAGER_START */
#homeNewsEditorBackdrop.home-news-editor-backdrop {
  background: rgba(1, 7, 15, .58) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  backdrop-filter: blur(5px) !important;
}

#homeNewsEditor.home-news-editor {
  width: min(760px, calc(100vw - 34px)) !important;
  max-width: 760px !important;
  max-height: min(860px, calc(100vh - 34px)) !important;
  padding: 0 20px 0 !important;
  border-radius: 18px !important;
  border: 1px solid rgba(216, 178, 93, .20) !important;
  background: #07182d !important;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .50) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(216,178,93,.34) rgba(255,255,255,.035) !important;
}

@supports (height: 100dvh) {
  #homeNewsEditor.home-news-editor {
    max-height: min(860px, calc(100dvh - 34px)) !important;
  }
}

#homeNewsEditor .home-news-editor-title {
  position: sticky !important;
  top: 0 !important;
  z-index: 12 !important;
  margin: 0 -20px !important;
  padding: 18px 20px 12px !important;
  color: #f1d3a3 !important;
  background: rgba(7,24,45,.98) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  box-shadow: none !important;
}

#homeNewsEditor .home-news-editor-note {
  margin: 0 -20px 16px !important;
  padding: 8px 20px 12px !important;
  color: rgba(229,238,252,.72) !important;
  background: rgba(7,24,45,.98) !important;
  border-bottom: 1px solid rgba(255,255,255,.045) !important;
  font-size: 11.5px !important;
  line-height: 1.7 !important;
  text-align: center !important;
}

#homeNewsEditor .home-news-list {
  box-shadow: none !important;
}

#homeNewsEditor .home-news-list-item {
  min-height: 38px !important;
  padding: 7px 10px !important;
  border-radius: 9px !important;
  border-color: rgba(255,255,255,.07) !important;
  background: rgba(255,255,255,.035) !important;
  box-shadow: none !important;
}

#homeNewsEditor .home-news-list-item:hover,
#homeNewsEditor .home-news-list-item.is-active {
  border-color: rgba(216,178,93,.36) !important;
  background: rgba(216,178,93,.075) !important;
}

#homeNewsEditor .home-news-form-section {
  margin: 0 0 16px !important;
  padding: 16px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(255,255,255,.065) !important;
  background: rgba(255,255,255,.022) !important;
  box-shadow: none !important;
}

#homeNewsEditor .home-news-form-section-heading {
  margin: 0 0 13px !important;
  padding: 0 0 9px !important;
  color: #d8b25d !important;
  border-bottom: 1px solid rgba(216,178,93,.16) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
}

#homeNewsEditor .home-news-editor-subtitle {
  margin: 0 0 10px !important;
  color: rgba(229,238,252,.70) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-align: right !important;
}

#homeNewsEditor .home-news-main-field-label,
#homeNewsEditor .home-news-meta-editor-field label {
  display: block !important;
  margin: 0 0 6px !important;
  color: rgba(242,231,212,.90) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
}

#homeNewsEditor #homeNewsInput,
#homeNewsEditor #homeNewsDetailInput,
#homeNewsEditor .home-news-meta-editor-field input,
#homeNewsEditor .home-news-meta-editor-field select,
#homeNewsEditor #homeNewsDepartmentInput {
  width: 100% !important;
  border: 1px solid rgba(255,255,255,.085) !important;
  background: rgba(255,255,255,.045) !important;
  color: #f6f8fb !important;
  border-radius: 10px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .16s ease, background .16s ease !important;
}

#homeNewsEditor #homeNewsInput,
#homeNewsEditor #homeNewsDetailInput {
  min-height: 0 !important;
  height: 66px !important;
  margin: 0 0 13px !important;
  padding: 11px 12px !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  resize: vertical !important;
}

#homeNewsEditor #homeNewsDetailInput {
  height: 104px !important;
  margin-bottom: 0 !important;
}

#homeNewsEditor #homeNewsInput:focus,
#homeNewsEditor #homeNewsDetailInput:focus,
#homeNewsEditor .home-news-meta-editor-field input:focus,
#homeNewsEditor .home-news-meta-editor-field select:focus,
#homeNewsEditor #homeNewsDepartmentInput:focus {
  border-color: rgba(216,178,93,.54) !important;
  background: rgba(255,255,255,.06) !important;
  box-shadow: 0 0 0 3px rgba(216,178,93,.07) !important;
}

#homeNewsEditor .home-news-meta-editor-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 14px !important;
  margin: 0 !important;
}

#homeNewsEditor .home-news-meta-editor-field {
  min-width: 0 !important;
}

#homeNewsEditor .home-news-meta-editor-field:last-child {
  grid-column: 1 / -1 !important;
}

#homeNewsEditor .home-news-meta-editor-field input,
#homeNewsEditor .home-news-meta-editor-field select,
#homeNewsEditor #homeNewsDepartmentInput {
  min-height: 42px !important;
  height: 42px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
}

#homeNewsEditor #homeNewsDepartmentInput {
  padding-inline: 10px 30px !important;
}

#homeNewsEditor .home-news-optional-mark {
  color: rgba(158,182,218,.78) !important;
  font-size: .9em !important;
  font-weight: 600 !important;
}

#homeNewsEditor .home-news-status-controls {
  margin: 0 0 13px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#homeNewsEditor .home-news-status-title {
  margin: 0 0 8px !important;
  color: rgba(242,231,212,.90) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
}

#homeNewsEditor .home-news-toggle-row {
  margin: 0 0 8px !important;
}

#homeNewsEditor .home-news-toggle-row label,
#homeNewsEditor .home-news-status-option {
  min-height: 36px !important;
  padding: 7px 11px !important;
  border-radius: 10px !important;
  border-color: rgba(255,255,255,.075) !important;
  background: rgba(255,255,255,.035) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

#homeNewsEditor .home-news-status-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 8px !important;
}

#homeNewsEditor .home-news-status-option.status-ongoing {
  border-color: rgba(87,243,155,.20) !important;
  background: rgba(12,169,87,.08) !important;
}

#homeNewsEditor .home-news-status-option.status-done {
  border-color: rgba(255,102,102,.20) !important;
  background: rgba(184,31,47,.08) !important;
}

#homeNewsEditor .home-news-media-tools {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255,255,255,.055) !important;
}

#homeNewsEditor .home-news-file-label,
#homeNewsEditor .home-news-clear-media {
  min-height: 38px !important;
  padding: 8px 11px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,.085) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

#homeNewsEditor .home-news-file-label {
  color: #f1d3a3 !important;
  background: rgba(255,255,255,.045) !important;
}

#homeNewsEditor .home-news-clear-media {
  background: rgba(159,46,61,.18) !important;
  border-color: rgba(255,120,136,.16) !important;
}

#homeNewsEditor .home-news-media-hint {
  flex: 1 1 100% !important;
  color: rgba(158,182,218,.72) !important;
  font-size: 10px !important;
  line-height: 1.6 !important;
}

#homeNewsEditor .home-news-media-preview {
  margin: 10px 0 0 !important;
  gap: 8px !important;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
}

#homeNewsEditor .home-news-media-item {
  min-height: 84px !important;
  border-radius: 10px !important;
  border-color: rgba(255,255,255,.07) !important;
  background: rgba(255,255,255,.025) !important;
  box-shadow: none !important;
}

#homeNewsEditor .home-news-media-item img,
#homeNewsEditor .home-news-media-item video {
  height: 98px !important;
}

#homeNewsEditor .home-news-editor-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 12 !important;
  display: grid !important;
  grid-template-columns: 1.35fr 1fr 1fr .9fr !important;
  gap: 8px !important;
  margin: 0 -20px !important;
  padding: 12px 20px 14px !important;
  border-top: 1px solid rgba(255,255,255,.07) !important;
  background: rgba(7,24,45,.985) !important;
  box-shadow: 0 -10px 26px rgba(0,0,0,.15) !important;
}

#homeNewsEditor .home-news-editor-actions button {
  min-height: 42px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  border-width: 1px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

#homeNewsEditor .home-news-save {
  color: #08172f !important;
  background: #d8b25d !important;
  border-color: rgba(247,231,176,.36) !important;
}

#homeNewsEditor .home-news-new {
  background: #176142 !important;
  border-color: rgba(87,243,155,.16) !important;
}

#homeNewsEditor .home-news-delete {
  background: rgba(126,31,44,.72) !important;
  border-color: rgba(255,102,102,.14) !important;
}

#homeNewsEditor .home-news-close {
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

@media (max-width: 620px) {
  #homeNewsEditor.home-news-editor {
    width: calc(100vw - 14px) !important;
    max-width: none !important;
    max-height: calc(100vh - 14px) !important;
    padding-inline: 12px !important;
    border-radius: 15px !important;
  }

  @supports (height: 100dvh) {
    #homeNewsEditor.home-news-editor {
      max-height: calc(100dvh - 14px) !important;
    }
  }

  #homeNewsEditor .home-news-editor-title {
    margin-inline: -12px !important;
    padding: 15px 12px 10px !important;
    font-size: 20px !important;
  }

  #homeNewsEditor .home-news-editor-note {
    margin-inline: -12px !important;
    padding-inline: 12px !important;
    font-size: 10.5px !important;
  }

  #homeNewsEditor .home-news-form-section {
    padding: 13px !important;
    margin-bottom: 12px !important;
  }

  #homeNewsEditor .home-news-meta-editor-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  #homeNewsEditor .home-news-meta-editor-field:last-child {
    grid-column: auto !important;
  }

  #homeNewsEditor input,
  #homeNewsEditor textarea,
  #homeNewsEditor select {
    font-size: 16px !important;
  }

  #homeNewsEditor #homeNewsInput {
    height: 62px !important;
  }

  #homeNewsEditor #homeNewsDetailInput {
    height: 92px !important;
  }

  #homeNewsEditor .home-news-status-buttons {
    grid-template-columns: 1fr !important;
  }

  #homeNewsEditor .home-news-editor-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-inline: -12px !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #homeNewsEditor .home-news-editor-actions button {
    min-height: 42px !important;
    font-size: 11px !important;
  }
}
/* ASSISTANT_COMFORTABLE_NEWS_MANAGER_END */

/* === original style block 83 | id: kffSuperAdminTopControlsFix === */
/* Fix: keep the real admin controls visible and place Users Management beside them */
body.admin-mode #homePage .unified-header-title > .mobile-header-admin-controls {
  display:flex !important;
  flex-wrap:wrap !important;
  max-width:720px !important;
}
#homePage .unified-header-title > .mobile-header-admin-controls #kffPermissionsButton {
  display:none;
}
body.super-admin-mode.admin-mode #homePage .unified-header-title > .mobile-header-admin-controls #kffPermissionsButton {
  display:inline-flex !important;
}
@media (min-width:768px){
  #homePage .unified-header-title > .mobile-header-admin-controls .mobile-header-admin-btn {
    min-width:110px !important;
    width:auto !important;
    flex:0 0 auto !important;
  }
}
@media (max-width:767px){
  #homePage .unified-header-title > .mobile-header-admin-controls {
    gap:6px !important;
  }
  #homePage .unified-header-title > .mobile-header-admin-controls .mobile-header-admin-btn {
    flex:1 1 calc(50% - 6px) !important;
    min-width:0 !important;
  }
}

/* === original style block 84 | id: kffSignedInLogoutVisibilityFix === */
/* Keep the ORIGINAL admin toolbar. For signed-in users with no permissions, show only Logout. */
body.kff-viewer-login #homePage .unified-header-title > .mobile-header-admin-controls{
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
}
body.kff-viewer-login #homePage .unified-header-title > .mobile-header-admin-controls > .mobile-header-admin-btn:not(.is-danger){
  display:none !important;
}
body.kff-viewer-login #homePage .unified-header-title > .mobile-header-admin-controls > .mobile-header-admin-btn.is-danger{
  display:inline-flex !important;
}
/* Super admin gets Users Management on the original toolbar. */
body.super-admin-mode.admin-mode #homePage #kffPermissionsButton{ display:inline-flex !important; }

/* === original style block 85 | id: kff-pwa-push-style === */
.kff-push-panel{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:10px auto 2px;padding:0 12px;max-width:760px}
.kff-push-btn{min-height:38px;padding:8px 14px;border-radius:11px;border:1px solid rgba(216,178,93,.55);background:linear-gradient(180deg,#e5c36e,#c99d43);color:#07162b;font-weight:900;font-size:13px;cursor:pointer;box-shadow:0 5px 16px rgba(0,0,0,.18)}
.kff-push-btn[disabled]{opacity:.6;cursor:default}
.kff-push-status{font-size:11px;font-weight:800;color:#dce8f8;line-height:1.7;max-width:440px;text-align:center}
.kff-push-status.is-ok{color:#86e6af}.kff-push-status.is-warn{color:#f2d28b}.kff-push-status.is-error{color:#ff9da8}
.quick-news-push-toggle{border-color:rgba(216,178,93,.3)!important;background:rgba(216,178,93,.08)!important}
@media(max-width:700px){.kff-push-panel{margin-top:8px}.kff-push-btn{width:auto;min-width:150px;font-size:12px}.kff-push-status{flex-basis:100%;font-size:10.5px}}

/* === original style block 86 | id: assistantCentersCombinedCardLayout === */
/* المراكز: المركز الأساسي والمراكز المساندة داخل كرت واحد */
body > #homeNewsDetailModal .home-news-centers-card {
  display: block !important;
  min-height: 0 !important;
  padding: 14px 16px !important;
}
body > #homeNewsDetailModal .home-news-center-section {
  display: block !important;
  width: 100% !important;
}
body > #homeNewsDetailModal .home-news-center-section + .home-news-center-section {
  margin-top: 13px !important;
  padding-top: 13px !important;
  border-top: 1px solid rgba(216,180,95,.18) !important;
}
body > #homeNewsDetailModal .home-news-centers-card .home-news-detail-info-label {
  color: #f3c84b !important;
  font-weight: 900 !important;
  margin: 0 0 6px !important;
}
body > #homeNewsDetailModal .home-news-centers-card .home-news-detail-info-value {
  display: block !important;
  margin: 0 !important;
}
body > #homeNewsDetailModal .home-news-centers-card .home-news-support-list {
  margin-top: 3px !important;
}
@media (max-width: 700px) {
  body > #homeNewsDetailModal .home-news-centers-card {
    padding: 12px !important;
  }
}

/* === original style block 87 | id: kff-news-edit-enhancements === */
.activity-editor-support-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.activity-editor-toggle{min-height:45px;display:flex;align-items:center;gap:9px;padding:10px 12px;border-radius:12px;color:#fff;background:rgba(255,255,255,.065);border:1px solid rgba(255,255,255,.12);font-weight:800}
.activity-editor-toggle input{width:18px;height:18px;accent-color:#d6aa57}
.kff-modified-alert{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 13px;border-radius:12px;background:rgba(235,184,51,.16);border:1px solid rgba(255,205,74,.48);color:#ffd85a;font-weight:900;font-size:13px;text-align:center}
.kff-edit-toast{position:fixed;z-index:10000150;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translate(-50%,20px);min-width:min(360px,calc(100vw - 28px));max-width:calc(100vw - 28px);padding:13px 18px;border-radius:14px;background:#0e2945;border:1px solid rgba(255,216,90,.55);color:#fff;box-shadow:0 18px 45px rgba(0,0,0,.38);font:800 14px/1.6 Cairo,Arial,sans-serif;text-align:center;opacity:0;pointer-events:none;transition:.22s ease}
.kff-edit-toast.is-show{opacity:1;transform:translate(-50%,0)}
@media(max-width:640px){.activity-editor-support-grid{grid-template-columns:1fr}.kff-modified-alert{font-size:12px}}

/* === original style block 88 | id: kff-silver-header-override === */
/* FINAL HEADER SILVER OVERRIDE */

#homePage .hero-logo-frame .page-brand-ar.decorated-fire-title img {
  width: 100% !important;
  max-width: 400px !important;
  height: auto !important;
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,0.72))
    drop-shadow(0 2px 3px rgba(164,174,186,0.62))
    drop-shadow(0 10px 18px rgba(0,0,0,0.28)) !important;
}
#homePage .hero-logo-frame .page-brand-en,
.page-brand-en {
  color: #d9dfe7 !important;
  background: linear-gradient(180deg,
    #ffffff 0%,
    #eef2f6 18%,
    #d9e0e8 40%,
    #bcc5cf 56%,
    #f8fafb 72%,
    #a4afbb 86%,
    #edf1f5 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,.40),
    0 2px 4px rgba(147,157,169,.32),
    0 10px 18px rgba(0,0,0,.22) !important;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  #homePage .hero-logo-frame .page-brand-en,
  .page-brand-en {
    background: none !important;
    color: #d9dfe7 !important;
    -webkit-text-fill-color: currentColor !important;
  }
}
@media (max-width: 700px) {
  #homePage .hero-logo-frame .page-brand-ar.decorated-fire-title {
    width: min(100%, 320px) !important;
  }
  #homePage .hero-logo-frame .page-brand-ar.decorated-fire-title img {
    max-width: 320px !important;
  }
}

/* === original style block 89 | id: assistantQuickNewsDepartmentDarkTheme === */
/* ===== ثيم داكن رسمي لقائمة المحافظة في إضافة خبر ===== */
#quickAddNewsModal #quickNewsDepartment {
  color-scheme: dark !important;
  color: #f7fbff !important;
  background-color: #07172c !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #e0bd70 50%),
    linear-gradient(135deg, #e0bd70 50%, transparent 50%),
    linear-gradient(180deg, rgba(20,52,92,.98), rgba(5,20,39,.99)) !important;
  background-position:
    left 18px center,
    left 12px center,
    0 0 !important;
  background-size: 6px 6px, 6px 6px, 100% 100% !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(224,189,112,.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 8px 20px rgba(0,0,0,.18) !important;
  font-weight: 800 !important;
  letter-spacing: .1px;
}

#quickAddNewsModal #quickNewsDepartment:hover {
  border-color: rgba(224,189,112,.78) !important;
  background-color: #0a1d38 !important;
}

#quickAddNewsModal #quickNewsDepartment:focus {
  border-color: #e0bd70 !important;
  box-shadow:
    0 0 0 3px rgba(224,189,112,.13),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 24px rgba(0,0,0,.22) !important;
}

#quickAddNewsModal #quickNewsDepartment option {
  color: #f3f7ff !important;
  background: #07172c !important;
  font-weight: 700 !important;
}

#quickAddNewsModal #quickNewsDepartment option:checked {
  color: #fff8df !important;
  background: #183a63 !important;
}

#quickAddNewsModal #quickNewsDepartment optgroup {
  color: #e0bd70 !important;
  background: #0c2342 !important;
  font-weight: 900 !important;
}

#quickAddNewsModal label[for="quickNewsDepartment"] {
  color: #e7d29a !important;
}

/* === original style block 90 | id: assistantQuickNewsCentersDarkTheme === */
/* ===== ثيم داكن رسمي للمركز الأساسي والمراكز المساندة ===== */
#quickAddNewsModal #quickNewsTeam,
#quickAddNewsModal #quickNewsSupportCenter1,
#quickAddNewsModal #quickNewsSupportCenter2,
#quickAddNewsModal #quickNewsSupportCenter3,
#quickAddNewsModal #quickNewsSupportCenter4 {
  color-scheme: dark !important;
  background-color: #07172c !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #e0bd70 50%),
    linear-gradient(135deg, #e0bd70 50%, transparent 50%),
    linear-gradient(180deg, rgba(18,46,82,.98), rgba(5,18,36,.99)) !important;
  background-position: left 18px center, left 12px center, 0 0 !important;
  background-size: 6px 6px, 6px 6px, 100% 100% !important;
  background-repeat: no-repeat !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 8px 20px rgba(0,0,0,.16) !important;
  font-weight: 750 !important;
}
#quickAddNewsModal #quickNewsTeam:hover,
#quickAddNewsModal #quickNewsSupportCenter1:hover,
#quickAddNewsModal #quickNewsSupportCenter2:hover,
#quickAddNewsModal #quickNewsSupportCenter3:hover,
#quickAddNewsModal #quickNewsSupportCenter4:hover {
  border-color: rgba(224,189,112,.65) !important;
}
#quickAddNewsModal #quickNewsTeam:focus,
#quickAddNewsModal #quickNewsSupportCenter1:focus,
#quickAddNewsModal #quickNewsSupportCenter2:focus,
#quickAddNewsModal #quickNewsSupportCenter3:focus,
#quickAddNewsModal #quickNewsSupportCenter4:focus {
  border-color: #e0bd70 !important;
  box-shadow: 0 0 0 3px rgba(224,189,112,.12), inset 0 1px 0 rgba(255,255,255,.07) !important;
}
#quickAddNewsModal #quickNewsTeam option,
#quickAddNewsModal #quickNewsSupportCenter1 option,
#quickAddNewsModal #quickNewsSupportCenter2 option,
#quickAddNewsModal #quickNewsSupportCenter3 option,
#quickAddNewsModal #quickNewsSupportCenter4 option {
  color: #f5f8ff !important;
  background: #07172c !important;
  font-weight: 650 !important;
}
/* اسم المحافظة/الإدارة يظهر كرأس مجموعة بلون مميز عن أسماء المراكز */
#quickAddNewsModal select optgroup.kff-governorate-group {
  color: #f0c86f !important;
  background: #14243a !important;
  font-weight: 900 !important;
}
#quickAddNewsModal select optgroup.kff-specialized-group {
  color: #7fc9ff !important;
  background: #102c4c !important;
  font-weight: 900 !important;
}
#quickAddNewsModal .quick-news-support-block {
  background: linear-gradient(180deg, rgba(5,19,38,.72), rgba(6,23,44,.54)) !important;
  border: 1px solid rgba(94,154,219,.20) !important;
  border-radius: 16px !important;
  padding: 14px !important;
}
#quickAddNewsModal .quick-news-support-block .quick-news-choice-title {
  color: #e7d29a !important;
}

/* === original style block 91 | id: kff-native-centers-reliable-style === */
/* Final reliability mode: native selects only. No custom picker JS. */
#quickAddNewsModal #quickNewsTeam,
#quickAddNewsModal #quickNewsSupportCenter1,
#quickAddNewsModal #quickNewsSupportCenter2,
#quickAddNewsModal #quickNewsSupportCenter3,
#quickAddNewsModal #quickNewsSupportCenter4 {
  color-scheme: dark;
  background: linear-gradient(180deg,#123252,#07182b) !important;
  color:#f7fbff !important;
  border:1px solid rgba(224,189,112,.42) !important;
}
#quickAddNewsModal #quickNewsTeam:disabled {
  opacity:.72;
  cursor:not-allowed;
}
#quickAddNewsModal #quickNewsTeam option,
#quickAddNewsModal #quickNewsSupportCenter1 option,
#quickAddNewsModal #quickNewsSupportCenter2 option,
#quickAddNewsModal #quickNewsSupportCenter3 option,
#quickAddNewsModal #quickNewsSupportCenter4 option {
  background:#0b1d31;
  color:#f7fbff;
}
#quickAddNewsModal #quickNewsTeam optgroup,
#quickAddNewsModal #quickNewsSupportCenter1 optgroup,
#quickAddNewsModal #quickNewsSupportCenter2 optgroup,
#quickAddNewsModal #quickNewsSupportCenter3 optgroup,
#quickAddNewsModal #quickNewsSupportCenter4 optgroup {
  background:#102b49;
  color:#e0bd70;
  font-weight:900;
}

/* === original style block 92 === */
* { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: "Tajawal", Tahoma, Arial, sans-serif;
      background: linear-gradient(180deg, #06111f 0%, #0b1f39 35%, #102b4d 70%, #06101b 100%);
      color: #ffffff;
      padding: 24px;
    }
    .report-shell {
      max-width: 1200px;
      margin: 0 auto;
    }
    .report-header {
      background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), linear-gradient(180deg, rgba(8,25,48,0.96), rgba(10,29,57,0.96));
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 18px;
      padding: 18px 22px;
      margin-bottom: 18px;
    }
    .report-kicker {
      color: #d8b25d;
      font-size: 18px;
      font-weight: 800;
      margin-bottom: 8px;
    }
    .report-title {
      font-size: 28px;
      font-weight: 800;
      margin-bottom: 8px;
    }
    .report-meta {
      color: #c6d6ef;
      font-size: 13px;
      line-height: 1.8;
    }
    .report-card {
      background: linear-gradient(180deg, rgba(14, 34, 66, 0.96), rgba(8, 22, 42, 0.90));
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 18px;
      padding: 16px;
      margin-bottom: 16px;
      box-shadow: 0 14px 35px rgba(0,0,0,0.30);
      overflow: hidden;
    }
    .report-card-title {
      font-size: 20px;
      font-weight: 800;
      color: #dce9ff;
      margin-bottom: 12px;
    }
    .report-table-wrap { overflow-x: auto; }
    table {
      width: 100%;
      border-collapse: collapse;
      background: rgba(255,255,255,0.03);
      border-radius: 12px;
      overflow: hidden;
    }
    
    td { color: #e5eefc; }
    
    .empty-row {
      color: #c6d6ef;
      padding: 18px;
      background: rgba(255,255,255,0.04);
    }
    .report-actions {
      display: flex;
      gap: 10px;
      justify-content: flex-start;
      margin-bottom: 14px;
      flex-wrap: wrap;
    }
    .report-print-btn {
      border: 1px solid rgba(198,214,239,0.35);
      background: rgba(74,124,201,0.18);
      color: #eef5ff;
      border-radius: 12px;
      padding: 10px 14px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: 0.2s ease;
    }
    .report-print-btn:hover {
      background: rgba(74,124,201,0.28);
      border-color: rgba(216,178,93,0.4);
      transform: translateY(-1px);
    }
    @page {
      size: A4;
      margin: 12mm;
    }
    @media print {
      html, body {
        background: linear-gradient(180deg, #06111f 0%, #0b1f39 35%, #102b4d 70%, #06101b 100%) !important;
        color: #ffffff !important;
        padding: 0;
        margin: 0;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }
      * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }
      .report-actions { display: none !important; }
      .report-shell {
        max-width: none;
        width: 100%;
      }
      .report-header,
      .report-card {
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
      }
      .report-header {
        background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), linear-gradient(180deg, rgba(8,25,48,0.96), rgba(10,29,57,0.96)) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
      }
      .report-kicker { color: #d8b25d !important; }
      .report-title,
      .report-meta,
      .report-card-title,
      td { color: #e5eefc !important; }
      .report-card {
        background: linear-gradient(180deg, rgba(14, 34, 66, 0.96), rgba(8, 22, 42, 0.90)) !important;
        border: 1px solid rgba(255,255,255,0.10) !important;
      }
      table {
        background: rgba(255,255,255,0.03) !important;
      }
      th {
        background: rgba(74,124,201,0.18) !important;
        color: #eef5ff !important;
      }
      .empty-row {
        color: #c6d6ef !important;
        background: rgba(255,255,255,0.04) !important;
      }
    }


/* DECORATED_FIRE_TITLE_START */
.decorated-fire-title {
  width: min(100%, 620px);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  line-height: 1;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: none !important;
  filter: none !important;
}
.decorated-fire-title img {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
  filter:
    brightness(0)
    saturate(100%)
    invert(96%)
    sepia(8%)
    saturate(190%)
    hue-rotate(174deg)
    brightness(101%)
    contrast(96%)
    drop-shadow(0 2px 0 rgba(56,69,89,0.68))
    drop-shadow(0 6px 14px rgba(0,0,0,0.22));
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-width: 900px) {
  .decorated-fire-title { width: min(100%, 500px); }
  .decorated-fire-title img { max-width: 500px; }
}
@media (max-width: 700px) {
  .decorated-fire-title { width: min(100%, 400px); }
  .decorated-fire-title img { max-width: 400px; }
}
@media (max-width: 480px) {
  .decorated-fire-title { width: min(100%, 320px); }
  .decorated-fire-title img { max-width: 320px; }
}
/* DECORATED_FIRE_TITLE_END */

/* === original style block 93 | id: large-watermark-header-logos === */
/* Large transparent watermark sector logos inside the home header */
#homePage .unified-header,
#homePage .unified-header-inner {
  position: relative;
  overflow: hidden;
}

#homePage .unified-header-inner {
  justify-content: center;
  align-items: center;
  isolation: isolate;
}

#homePage .banner-right-group,
#homePage .hero-logo-frame,
#homePage .hero-logo-frame img {
  position: relative;
  z-index: 2;
}

#homePage .banner-left-group {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block !important;
  pointer-events: none;
  z-index: 1;
}

#homePage .banner-left-actions {
  position: absolute !important;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: auto;
}

#homePage .banner-left-logos {
  position: absolute !important;
  top: 50%;
  inset-inline-start: 18px;
  transform: translateY(-50%);
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
  filter: saturate(0.95);
  mix-blend-mode: screen;
}

#homePage .banner-left-logo {
  width: 148px !important;
  height: 148px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  background: transparent !important;
  filter: grayscale(0.05) drop-shadow(0 0 20px rgba(214, 184, 109, 0.10));
}

@media (max-width: 1024px) {
  #homePage .banner-left-logos {
    inset-inline-start: 14px;
    gap: 12px;
    opacity: 0.12;
  }
  #homePage .banner-left-logo {
    width: 122px !important;
    height: 122px !important;
  }
}

@media (max-width: 768px) {
  #homePage .banner-left-actions {
    top: 14px;
    inset-inline-end: 12px;
  }
  #homePage .banner-left-logos {
    top: 46%;
    inset-inline-start: 10px;
    gap: 8px;
    opacity: 0.11;
  }
  #homePage .banner-left-logo {
    width: 88px !important;
    height: 88px !important;
  }
}

@media (max-width: 480px) {
  #homePage .banner-left-actions {
    top: 12px;
    inset-inline-end: 10px;
  }
  #homePage .banner-left-logos {
    top: 44%;
    inset-inline-start: 8px;
    gap: 6px;
    opacity: 0.10;
  }
  #homePage .banner-left-logo {
    width: 82px !important;
    height: 82px !important;
  }
}

/* === original style block 95 | id: assistantHomeCardsFlatGlassGoldHairline === */
/* =========================================================
   الصفحة الرئيسية - خانات مودرن هادئة للموبايل
   Flat Glass + Gold Hairline
   ========================================================= */
@media (max-width: 767px) {
  #homePage .home-centers-sections,
  html.kff-phone-layout #homePage .home-centers-sections {
    margin-inline: auto !important;
  }

  #homePage .centers-grid,
  html.kff-phone-layout #homePage .centers-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 13px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 17px auto 0 !important;
  }

  #homePage .center-btn,
  html.kff-phone-layout #homePage .center-btn {
    min-height: 56px !important;
    height: 56px !important;
    padding: 8px 10px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(216,178,93,.34) !important;
    background: rgba(7,24,45,.58) !important;
    -webkit-backdrop-filter: blur(8px) saturate(112%) !important;
    backdrop-filter: blur(8px) saturate(112%) !important;
    box-shadow:
      0 6px 15px rgba(0,0,0,.14),
      inset 0 1px 0 rgba(255,255,255,.035) !important;
    color: #fff !important;
    font-size: clamp(13.2px, 3.65vw, 16px) !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    transition: transform .12s ease, background-color .12s ease, border-color .12s ease, box-shadow .12s ease !important;
  }

  #homePage .center-btn:hover,
  html.kff-phone-layout #homePage .center-btn:hover {
    transform: none !important;
    background: rgba(9,29,54,.64) !important;
    border-color: rgba(216,178,93,.42) !important;
    box-shadow:
      0 6px 15px rgba(0,0,0,.14),
      inset 0 1px 0 rgba(255,255,255,.04) !important;
  }

  #homePage .center-btn:active,
  html.kff-phone-layout #homePage .center-btn:active {
    transform: scale(.985) !important;
    background: rgba(10,31,58,.72) !important;
    border-color: rgba(216,178,93,.55) !important;
    box-shadow:
      0 2px 7px rgba(0,0,0,.16),
      inset 0 1px 0 rgba(255,255,255,.035) !important;
  }

  #homePage .center-btn .mobile-department-label,
  #homePage .center-btn .desktop-department-label,
  html.kff-phone-layout #homePage .center-btn .mobile-department-label,
  html.kff-phone-layout #homePage .center-btn .desktop-department-label {
    font-size: inherit !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.18) !important;
  }

  /* الشعار داخل الخانة: أهدأ وأصغر حتى يبقى خلف النص فقط */
  #homePage .governorates-centers-grid .center-btn > .center-btn-watermark,
  #homePage .specialized-centers-grid .center-btn > .center-btn-watermark,
  html.kff-phone-layout #homePage .governorates-centers-grid .center-btn > .center-btn-watermark,
  html.kff-phone-layout #homePage .specialized-centers-grid .center-btn > .center-btn-watermark {
    width: 40px !important;
    height: 40px !important;
    opacity: .065 !important;
    filter: grayscale(1) brightness(1.45) contrast(.9) !important;
  }

  /* التنبيه يبقى زاوية فقط، والخانة نفسها محافظة على الستايل الموحد */
  #homePage button.center-btn.alert-corner,
  #homePage button.center-btn.alert-red,
  #homePage button.center-btn.alert-cyan,
  #homePage button.center-btn.alert-dual {
    background: rgba(7,24,45,.58) !important;
    border-color: rgba(216,178,93,.34) !important;
    box-shadow:
      0 6px 15px rgba(0,0,0,.14),
      inset 0 1px 0 rgba(255,255,255,.035) !important;
  }

  /* تصغير مثلثات التنبيه لتكون دلالة هادئة لا عنصرًا مهيمنًا */
  #homePage button.center-btn.alert-red::after,
  #homePage button.center-btn.alert-cyan::after,
  #homePage button.center-btn.alert-dual::after {
    opacity: .9 !important;
  }

  #homePage button.center-btn.alert-dual::before {
    opacity: .9 !important;
  }

  /* العنصر الأخير في الإدارات التخصصية يبقى بنفس عرض بقية الخانات لكن في المنتصف */
  #homePage .specialized-centers-grid .center-btn:last-child,
  html.kff-phone-layout #homePage .specialized-centers-grid .center-btn:last-child {
    grid-column: 1 / -1 !important;
    width: calc((100% - 14px) / 2) !important;
    justify-self: center !important;
  }
}

@media (max-width: 390px) {
  #homePage .home-centers-sections,
  html.kff-phone-layout #homePage .home-centers-sections {
  }

  #homePage .centers-grid,
  html.kff-phone-layout #homePage .centers-grid {
    gap: 11px !important;
    margin-top: 15px !important;
  }

  #homePage .center-btn,
  html.kff-phone-layout #homePage .center-btn {
    min-height: 53px !important;
    height: 53px !important;
    padding: 7px 8px !important;
    border-radius: 14px !important;
    font-size: clamp(12.5px, 3.75vw, 14.5px) !important;
  }

  #homePage .specialized-centers-grid .center-btn:last-child,
  html.kff-phone-layout #homePage .specialized-centers-grid .center-btn:last-child {
    width: calc((100% - 11px) / 2) !important;
  }
}

/* === original style block 96 | id: assistantMobileHeaderSafeSpacingFinal === */
/* إبعاد هيدر صفحات المحافظات والإدارات عن شريط حالة الهاتف - موبايل فقط */
@media (max-width: 767px) {
  #governorateActivityPage .gov-dashboard-header {
    padding-top: calc(44px + env(safe-area-inset-top, 0px)) !important;
  }

  #governorateActivityPage .gov-dashboard-header-action {
    top: calc(39px + env(safe-area-inset-top, 0px)) !important;
    left: max(10px, env(safe-area-inset-left, 0px)) !important;
    right: auto !important;
  }

  #centerPage .unified-header {
    padding-top: calc(42px + env(safe-area-inset-top, 0px)) !important;
  }

  #centerPage .unified-header-actions .btn-back.btn-compact {
    top: calc(39px + env(safe-area-inset-top, 0px)) !important;
    left: max(10px, env(safe-area-inset-left, 0px)) !important;
    right: auto !important;
  }
}

@media (max-width: 390px) {
  #governorateActivityPage .gov-dashboard-header-action,
  #centerPage .unified-header-actions .btn-back.btn-compact {
  }
}

/* === original style block 97 | id: assistantStatusColorsSemanticSwap === */
/* الحالة: جاري = أحمر، انتهى = أخضر */
.home-news-item.news-status-ongoing .home-news-badge,
.home-news-badge.news-status-ongoing {
  color: #ffffff !important;
  background: linear-gradient(180deg, #ff6666, #b81f2f) !important;
  box-shadow: 0 0 0 1px rgba(255,160,160,.35), 0 0 18px rgba(220,36,58,.45) !important;
}

.home-news-item.news-status-done .home-news-badge,
.home-news-badge.news-status-done {
  color: #062315 !important;
  background: linear-gradient(180deg, #57f39b, #0ca957) !important;
  box-shadow: 0 0 0 1px rgba(120,255,178,.35), 0 0 18px rgba(26,210,111,.45) !important;
}

.home-news-status-option.status-ongoing,
#homeNewsEditor .home-news-status-option.status-ongoing {
  border-color: rgba(255,102,102,.35) !important;
  background: rgba(184,31,47,.18) !important;
}

.home-news-status-option.status-done,
#homeNewsEditor .home-news-status-option.status-done {
  border-color: rgba(87,243,155,.35) !important;
  background: rgba(12,169,87,.16) !important;
}

.home-news-list-item.status-ongoing {
  border-color: rgba(255,102,102,.30) !important;
}

.home-news-list-item.status-done {
  border-color: rgba(87,243,155,.30) !important;
}

.home-news-list-item.status-ongoing .home-news-list-status {
  color: #fff !important;
  background: #c82538 !important;
}

.home-news-list-item.status-done .home-news-list-status {
  color: #062315 !important;
  background: #57f39b !important;
}

.governorate-activity-record-status.status-ongoing,
.quick-news-radio.status-ongoing {
  color: #fff1f3 !important;
  background: linear-gradient(145deg, rgba(159,46,61,.96), rgba(126,31,44,.96)) !important;
}

.governorate-activity-record-status.status-done,
.quick-news-radio.status-done {
  color: #ecfff6 !important;
  background: linear-gradient(145deg, rgba(31,122,82,.96), rgba(23,97,66,.96)) !important;
}

/* === original style block 98 | id: assistantGovernorateTitleDateSearch === */
#governorateActivityPage .gov-news-search {
  margin: 0 0 18px; padding: 14px; border: 1px solid rgba(196,207,220,.20);
  border-radius: 16px; background: linear-gradient(180deg,rgba(8,25,48,.88),rgba(5,17,34,.82));
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
}
#governorateActivityPage .gov-news-search-title {
  margin-bottom: 11px; color: #e5ebf2; font-size: 15px; font-weight: 900; text-align: right;
}
#governorateActivityPage .gov-news-search-grid {
  display: grid; grid-template-columns: minmax(220px,1.5fr) minmax(145px,.7fr) minmax(145px,.7fr) auto;
  gap: 10px; align-items: end;
}
#governorateActivityPage .gov-news-search-field { display:flex; flex-direction:column; gap:6px; min-width:0; }
#governorateActivityPage .gov-news-search-field > span { color:#c7d2df; font-size:11px; font-weight:900; }
#governorateActivityPage .gov-news-search-field input {
  width:100%; min-height:42px; border:1px solid rgba(207,217,229,.22); border-radius:11px;
  padding:9px 11px; color:#fff; background:rgba(255,255,255,.055); outline:none; font:inherit;
}
#governorateActivityPage .gov-news-search-field input:focus { border-color:rgba(220,228,238,.58); box-shadow:0 0 0 3px rgba(207,217,229,.08); }
#governorateActivityPage .gov-news-search-clear {
  min-height:42px; padding:9px 14px; border:1px solid rgba(207,217,229,.24); border-radius:11px; cursor:pointer;
  color:#e7edf4; background:linear-gradient(180deg,rgba(79,96,117,.74),rgba(43,56,72,.82)); font-weight:900;
}
#governorateActivityPage .gov-news-search-summary { min-height:20px; margin-top:10px; color:#aebdcc; font-size:11px; font-weight:800; }
#governorateActivityPage .gov-news-search-results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:8px; }
#governorateActivityPage .gov-news-search-result {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; width:100%; min-width:0;
  padding:10px 12px; border:1px solid rgba(255,255,255,.09); border-radius:12px; text-align:right; cursor:pointer;
  color:#fff; background:rgba(255,255,255,.045);
}
#governorateActivityPage .gov-news-search-result:hover { border-color:rgba(205,215,226,.38); background:rgba(255,255,255,.07); }
#governorateActivityPage .gov-news-search-result-copy { min-width:0; }
#governorateActivityPage .gov-news-search-result-title { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:900; }
#governorateActivityPage .gov-news-search-result-meta { display:block; margin-top:4px; color:#aebdcc; font-size:10px; font-weight:700; }
#governorateActivityPage .gov-news-search-result-sector { color:#d7e0ea; font-size:10px; font-weight:900; white-space:nowrap; }
#governorateActivityPage .gov-news-search-empty { grid-column:1/-1; padding:18px; border:1px dashed rgba(255,255,255,.13); border-radius:12px; color:#9eafc0; text-align:center; font-size:12px; font-weight:800; }
@media (max-width:767px) {
  #governorateActivityPage .gov-news-search { margin-inline:10px; padding:12px; }
  #governorateActivityPage .gov-news-search-grid { grid-template-columns:1fr 1fr; }
  #governorateActivityPage .gov-news-search-field-title { grid-column:1/-1; }
  #governorateActivityPage .gov-news-search-clear { grid-column:1/-1; width:100%; }
  #governorateActivityPage .gov-news-search-results { grid-template-columns:1fr; }
}

/* === original style block 99 === */
/* GOVERNORATE_ACTIVITY_SAVE_FIX_STYLE_START */
.activity-editor-status {
  min-height: 24px;
  margin-top: 12px;
  padding: 0 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
  color: var(--text-muted);
}
.activity-editor-status.is-saving { color: #f7e7b0; }
.activity-editor-status.is-success { color: #7ee2ad; }
.activity-editor-status.is-error { color: #ff9eaa; }
.activity-editor-actions .btn:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none !important;
}
/* GOVERNORATE_ACTIVITY_SAVE_FIX_STYLE_END */

/* === original style block 100 | id: kff-video-preview-viewer-style === */
/* معاينة الفيديو داخل الخبر */
.kff-video-preview-card {
  position: relative !important;
  display: block !important;
  width: min(100%, 440px) !important;
  aspect-ratio: 16 / 9 !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  border: 1px solid rgba(226, 194, 117, .28) !important;
  border-radius: 16px !important;
  background: #020913 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .30) !important;
  cursor: pointer !important;
  isolation: isolate !important;
  -webkit-tap-highlight-color: transparent !important;
}

.kff-video-preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .03), rgba(0, 0, 0, .20)),
    radial-gradient(circle at center, transparent 0 18%, rgba(0, 0, 0, .08) 52%, rgba(0, 0, 0, .24) 100%);
}

.kff-video-preview-card:focus-visible {
  outline: 3px solid rgba(237, 202, 120, .82) !important;
  outline-offset: 3px !important;
}

.kff-video-preview-card .kff-video-preview-source {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #020913 !important;
  object-fit: cover !important;
  object-position: center top !important;
  pointer-events: none !important;
}

.kff-video-preview-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 4;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 50%;
  color: #061426;
  background: linear-gradient(180deg, #fff8df, #d9b35f);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .42), 0 0 0 8px rgba(255, 255, 255, .10);
  pointer-events: none;
  transition: transform .18s ease, filter .18s ease;
}

.kff-video-preview-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-inline-start: 5px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid currentColor;
}

.kff-video-preview-card:hover .kff-video-preview-play,
.kff-video-preview-card:focus-visible .kff-video-preview-play {
  transform: translate(-50%, -50%) scale(1.06);
  filter: brightness(1.06);
}

.kff-video-preview-label {
  position: absolute;
  inset: auto 12px 10px auto;
  z-index: 4;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: rgba(255, 255, 255, .94);
  background: rgba(2, 10, 22, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 800 11px/1.2 "Tajawal", sans-serif !important;
  pointer-events: none;
}

/* إزالة أبعاد الفيديو القديمة من حاويات الأخبار */
body > #homeNewsDetailModal .governorate-news-carousel-track.kff-video-preview-track,
.gov-modal-carousel-track.kff-video-preview-track,
body > #homeNewsDetailModal .home-news-media-item.kff-video-preview-parent,
.gov-modal-slide.kff-video-preview-parent,
#governorateActivityPage .gov-featured-media.kff-video-preview-parent {
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
  height: auto !important;
  background: transparent !important;
}

body > #homeNewsDetailModal .governorate-news-slide .kff-video-preview-card,
.gov-modal-slide .kff-video-preview-card,
#governorateActivityPage .gov-featured-media .kff-video-preview-card {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border-radius: inherit !important;
}

/* العارض المستقل */
body.kff-video-viewer-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.kff-video-viewer-open .home-news-detail-card,
body.kff-video-viewer-open .gov-modal-card,
body.kff-video-viewer-open .gov-modal-content,
body.kff-video-viewer-open #governorateActivityPage {
  overscroll-behavior: none !important;
}

.kff-video-viewer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 54px 14px 24px !important;
  background: rgba(0, 5, 13, .92) !important;
  -webkit-backdrop-filter: blur(10px) saturate(110%) !important;
  backdrop-filter: blur(10px) saturate(110%) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity .18s ease, visibility .18s ease !important;
  touch-action: none !important;
}

.kff-video-viewer.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.kff-video-viewer-frame {
  position: relative !important;
  width: auto !important;
  height: auto !important;
  max-width: 94vw !important;
  max-height: 80dvh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 18px !important;
  background: #000 !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .68) !important;
}

.kff-video-viewer-video {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 94vw !important;
  max-height: 80dvh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  object-fit: contain !important;
}

.kff-video-viewer-close {
  position: fixed !important;
  top: max(14px, env(safe-area-inset-top)) !important;
  left: max(14px, env(safe-area-inset-left)) !important;
  z-index: 2147483647 !important;
  width: 46px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .26) !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: rgba(5, 14, 27, .90) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .38) !important;
  font: 400 30px/1 Arial, sans-serif !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}

.kff-video-viewer-close:hover,
.kff-video-viewer-close:focus-visible {
  color: #061426 !important;
  background: #e7c36d !important;
  outline: none !important;
}

@media (max-width: 700px) {
  .kff-video-preview-card {
    width: min(100%, 410px) !important;
    border-radius: 14px !important;
  }
  .kff-video-preview-play {
    width: 60px;
    height: 60px;
  }
  .kff-video-viewer {
    padding: 58px 8px 18px !important;
  }
  .kff-video-viewer-frame,
  .kff-video-viewer-video {
    max-width: 96vw !important;
    max-height: 80dvh !important;
  }
}

/* === original style block 101 | id: kff-unified-sector-featured-gradient-and-cards === */
/*
  بطاقة الخبر المميز في القطاعين أصبحت طبقة واحدة:
  الصورة خلف البطاقة كاملة، ومحتوى الخبر فوق تدرج متصل بلا خط فاصل.
  كما تم توحيد قياسات بطاقات قسم جميع الأخبار.
*/

/* ألوان كل قطاع */
.gov-featured-news.gov-featured-incident {
  --kff-feature-rgb: 42, 9, 20;
  --kff-feature-solid: #2a0914;
}

.gov-featured-news.gov-featured-campaign {
  --kff-feature-rgb: 5, 35, 50;
  --kff-feature-solid: #052332;
}

/* قياس موحد للبطاقة الرئيسية في المكافحة والوقاية */
.gov-featured-news.gov-featured-incident,
.gov-featured-news.gov-featured-campaign {
  position: relative !important;
  display: block !important;
  isolation: isolate !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 390px !important;
  min-height: 390px !important;
  max-height: 390px !important;
  background: var(--kff-feature-solid) !important;
}

.gov-featured-news.gov-featured-incident::before,
.gov-featured-news.gov-featured-incident::after,
.gov-featured-news.gov-featured-campaign::before,
.gov-featured-news.gov-featured-campaign::after {
  content: none !important;
  display: none !important;
}

/* الصورة أو الفيديو يغطيان البطاقة كلها */
.gov-featured-news.gov-featured-incident .gov-featured-media,
.gov-featured-news.gov-featured-campaign .gov-featured-media {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  aspect-ratio: auto !important;
  background: #07172b !important;
}

.gov-featured-news.gov-featured-incident .gov-featured-media::before,
.gov-featured-news.gov-featured-incident .gov-featured-media::after,
.gov-featured-news.gov-featured-campaign .gov-featured-media::before,
.gov-featured-news.gov-featured-campaign .gov-featured-media::after {
  content: none !important;
  display: none !important;
}

.gov-featured-news.gov-featured-incident .gov-featured-media img,
.gov-featured-news.gov-featured-incident .gov-featured-media video,
.gov-featured-news.gov-featured-incident .gov-featured-placeholder,
.gov-featured-news.gov-featured-campaign .gov-featured-media img,
.gov-featured-news.gov-featured-campaign .gov-featured-media video,
.gov-featured-news.gov-featured-campaign .gov-featured-placeholder {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* طبقة التدرج الوحيدة فوق الصورة */
.gov-featured-news.gov-featured-incident .gov-featured-content,
.gov-featured-news.gov-featured-campaign .gov-featured-content {
  position: relative !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 28px 34px 28px max(42%, 440px) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  direction: rtl !important;
  text-align: right !important;
  background: linear-gradient(
    90deg,
    rgba(var(--kff-feature-rgb), 0) 0%,
    rgba(var(--kff-feature-rgb), 0) 27%,
    rgba(var(--kff-feature-rgb), .018) 33%,
    rgba(var(--kff-feature-rgb), .055) 39%,
    rgba(var(--kff-feature-rgb), .13) 46%,
    rgba(var(--kff-feature-rgb), .26) 54%,
    rgba(var(--kff-feature-rgb), .44) 62%,
    rgba(var(--kff-feature-rgb), .64) 71%,
    rgba(var(--kff-feature-rgb), .81) 81%,
    rgba(var(--kff-feature-rgb), .94) 91%,
    var(--kff-feature-solid) 100%
  ) !important;
}

.gov-featured-news.gov-featured-incident .gov-featured-content::before,
.gov-featured-news.gov-featured-incident .gov-featured-content::after,
.gov-featured-news.gov-featured-campaign .gov-featured-content::before,
.gov-featured-news.gov-featured-campaign .gov-featured-content::after {
  content: none !important;
  display: none !important;
}

.gov-featured-news.gov-featured-incident .gov-featured-media-info,
.gov-featured-news.gov-featured-campaign .gov-featured-media-info {
  z-index: 4 !important;
}

/* توحيد بطاقات الأخبار الأخرى */
#governorateActivityPage .gov-news-list-panel {
}

#governorateActivityPage .gov-news-list-item {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 112px !important;
  min-height: 112px !important;
  max-height: 112px !important;
  grid-template-columns: 128px minmax(0, 1fr) !important;
  align-items: center !important;
  padding: 9px !important;
}

#governorateActivityPage .gov-news-list-thumb {
  box-sizing: border-box !important;
  width: 128px !important;
  height: 92px !important;
  min-width: 128px !important;
  min-height: 92px !important;
  max-width: 128px !important;
  max-height: 92px !important;
  overflow: hidden !important;
}

#governorateActivityPage .gov-news-list-thumb img,
#governorateActivityPage .gov-news-list-thumb video,
#governorateActivityPage .gov-news-list-thumb .gov-list-placeholder {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

#governorateActivityPage .gov-news-list-copy {
  min-width: 0 !important;
  max-height: 94px !important;
  overflow: hidden !important;
}

#governorateActivityPage .gov-news-list-headline {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
}

#governorateActivityPage .gov-news-list-meta {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 980px) {
  .gov-featured-news.gov-featured-incident,
  .gov-featured-news.gov-featured-campaign {
    display: block !important;
    height: 570px !important;
    min-height: 570px !important;
    max-height: 570px !important;
  }

  .gov-featured-news.gov-featured-incident .gov-featured-media,
  .gov-featured-news.gov-featured-campaign .gov-featured-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .gov-featured-news.gov-featured-incident .gov-featured-media img,
  .gov-featured-news.gov-featured-incident .gov-featured-media video,
  .gov-featured-news.gov-featured-incident .gov-featured-placeholder,
  .gov-featured-news.gov-featured-campaign .gov-featured-media img,
  .gov-featured-news.gov-featured-campaign .gov-featured-media video,
  .gov-featured-news.gov-featured-campaign .gov-featured-placeholder {
    object-position: center top !important;
  }

  .gov-featured-news.gov-featured-incident .gov-featured-content,
  .gov-featured-news.gov-featured-campaign .gov-featured-content {
    position: relative !important;
    width: 100% !important;
    height: 570px !important;
    min-height: 570px !important;
    max-height: 570px !important;
    margin: 0 !important;
    padding: 285px 24px 26px !important;
    justify-content: flex-end !important;
    background: linear-gradient(
      180deg,
      rgba(var(--kff-feature-rgb), 0) 0%,
      rgba(var(--kff-feature-rgb), 0) 25%,
      rgba(var(--kff-feature-rgb), .012) 30%,
      rgba(var(--kff-feature-rgb), .038) 35%,
      rgba(var(--kff-feature-rgb), .085) 40%,
      rgba(var(--kff-feature-rgb), .16) 45%,
      rgba(var(--kff-feature-rgb), .27) 50%,
      rgba(var(--kff-feature-rgb), .41) 55%,
      rgba(var(--kff-feature-rgb), .57) 60%,
      rgba(var(--kff-feature-rgb), .72) 65%,
      rgba(var(--kff-feature-rgb), .84) 70%,
      rgba(var(--kff-feature-rgb), .92) 76%,
      rgba(var(--kff-feature-rgb), .97) 82%,
      var(--kff-feature-solid) 90%,
      var(--kff-feature-solid) 100%
    ) !important;
  }
}

@media (max-width: 520px) {
  .gov-featured-news.gov-featured-incident,
  .gov-featured-news.gov-featured-campaign {
    height: 590px !important;
    min-height: 590px !important;
    max-height: 590px !important;
  }

  .gov-featured-news.gov-featured-incident .gov-featured-content,
  .gov-featured-news.gov-featured-campaign .gov-featured-content {
    height: 590px !important;
    min-height: 590px !important;
    max-height: 590px !important;
    padding: 260px 15px 20px !important;
  }

  #governorateActivityPage .gov-news-list-panel {
    grid-auto-rows: 104px !important;
  }

  #governorateActivityPage .gov-news-list-item {
    height: 104px !important;
    min-height: 104px !important;
    max-height: 104px !important;
    grid-template-columns: 94px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 7px !important;
  }

  #governorateActivityPage .gov-news-list-thumb {
    width: 94px !important;
    height: 82px !important;
    min-width: 94px !important;
    min-height: 82px !important;
    max-width: 94px !important;
    max-height: 82px !important;
  }

  #governorateActivityPage .gov-news-list-copy {
    max-height: 88px !important;
  }
}

/* === original style block 102 | id: kff-ticker-drag-touch-style === */
/* إصلاح السحب بالضغط المستمر على أخبار الشريط دون تعطيل التمرير الرأسي */
#homePage .home-news-track {
  cursor: grab !important;
  touch-action: pan-y !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

#homePage .home-news-track.is-kff-pointer-down,
#homePage .home-news-track.is-dragging-news {
  cursor: grabbing !important;
}

#homePage .home-news-item {
  position: relative !important;
  z-index: 4 !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  touch-action: pan-y !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  pointer-events: auto !important;
}

#homePage .home-news-item::after {
  content: "";
  position: absolute;
  inset: -6px -5px;
  border-radius: 999px;
  pointer-events: none;
}

#homePage .home-news-track.is-dragging-news .home-news-text,
#homePage .home-news-track.is-dragging-news .home-news-item {
  pointer-events: none !important;
}

/* === original style block 103 | id: assistantGovernorateAdminButtonsInHeader === */
/* =========================================================
   أزرار إدارة صفحة المحافظة داخل الهيدر
   بنفس روح/مقاسات أزرار الإدارة في الصفحة الرئيسية.
   ========================================================= */

#governorateActivityPage .gov-header-admin-controls {
  justify-content: flex-start !important;
  position: relative !important;
  z-index: 8 !important;
}

#governorateActivityPage .gov-header-admin-btn {
  flex: 0 0 auto !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow:
    0 8px 20px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.14) !important;
}

/* إضافة خبر — ذهبي مثل الصفحة الرئيسية */
#governorateActivityPage .gov-header-admin-btn:nth-child(1) {
  background: linear-gradient(135deg, #d7b368 0%, #b78a3b 100%) !important;
  color: #13253f !important;
  border-color: rgba(255,224,164,.34) !important;
}

/* تعديل خبر المكافحة — أحمر دلالي */
#governorateActivityPage .gov-header-admin-btn:nth-child(2) {
  background: linear-gradient(135deg, #b13445 0%, #7e1826 100%) !important;
  color: #fff !important;
  border-color: rgba(255,171,171,.22) !important;
}

/* تعديل خبر الوقاية — كحلي/أزرق مثل زر إدارة الأخبار */
#governorateActivityPage .gov-header-admin-btn:nth-child(3) {
  background: linear-gradient(135deg, #2b4d7c 0%, #173457 100%) !important;
  color: #f5f8ff !important;
  border-color: rgba(143,186,255,.22) !important;
}

/* تسجيل الخروج إن تم إظهاره برمجياً لاحقاً */
#governorateActivityPage .gov-header-admin-btn:nth-child(4) {
  background: linear-gradient(135deg, #b13445 0%, #7e1826 100%) !important;
  color: #fff !important;
}

#governorateActivityPage .gov-header-admin-btn:hover,
#governorateActivityPage .gov-header-admin-btn:focus-visible {
  filter: brightness(1.05) !important;
  transform: translateY(-1px) !important;
}

/* تابلت */
@media (max-width: 1024px) {
  #governorateActivityPage .gov-header-admin-controls {
    gap: 7px !important;
    max-width: 500px !important;
    margin-top: 10px !important;
  }

  #governorateActivityPage .gov-header-admin-btn {
    min-height: 34px !important;
    padding: 6px 12px !important;
    font-size: 10.5px !important;
  }
}

/* هاتف: نفس إحساس أزرار الصفحة الرئيسية، تحت عنوان المحافظة مباشرة */
@media (max-width: 760px) {
  #governorateActivityPage .gov-dashboard-heading {
    text-align: center !important;
  }

  #governorateActivityPage .gov-header-admin-controls {
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 390px !important;
    margin: 9px auto 0 !important;
    padding: 0 4px !important;
    white-space: normal !important;
    flex-wrap: wrap !important;
  }

  #governorateActivityPage .gov-header-admin-btn {
    min-height: 32px !important;
    padding: 6px 10px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
    flex: 0 0 auto !important;
  }
}

@media (max-width: 390px) {
  #governorateActivityPage .gov-header-admin-controls {
    gap: 4px !important;
    margin-top: 7px !important;
    padding: 0 2px !important;
  }

  #governorateActivityPage .gov-header-admin-btn {
    min-height: 30px !important;
    padding: 5px 8px !important;
    font-size: 9.2px !important;
  }
}

/* === original style block 104 | id: assistantFinalMobileHomeLayout === */
/* ثوابت خارج الموبايل للحفاظ على سلوك نسخة الكمبيوتر كما كان */
#homePage .mobile-sector-brand-row {
  display: none;
}

body:not(.admin-mode) #homePage .mobile-header-admin-controls {
  display: none !important;
}

#homePage .mobile-below-cards-background {
  display: contents;
}

#homePage .mobile-below-cards-logo {
  display: none;
}

#homePage .page-header {
  overflow: hidden !important;
}


/* =========================================================
   FINAL MOBILE HOME LAYOUT
   تخطيط واحد للصفحة الرئيسية على الهاتف فقط، بدل طبقات CSS المتراكمة.
   لا يطبق أي شيء على سطح المكتب.
   ========================================================= */

@media (max-width: 767px) {
  /* ---------- الهيدر ---------- */
  #homePage .unified-header {
    position: relative !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 0 7px !important;
    padding: 8px 16px 10px !important;
    overflow: hidden !important;
  }

  #homePage .unified-header-inner {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 0 !important;
    gap: 0 !important;
    padding: 0 !important;
  }

  /* عناصر جانبية قديمة لا تدخل في تخطيط الهاتف النهائي */
  #homePage .banner-right-group,
  #homePage .banner-left-group > .banner-left-logos,
  #homePage .banner-left-actions,
  #homePage .unified-header-title > .page-brand-en,
  #homePage #quickAddNewsBtn,
  #homePage #logoutBtn,
  #homePage .admin-access-pill-wrap {
    display: none !important;
  }

  #homePage .unified-header-title.page-brand-title {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 10px 0 0 !important;
    text-align: center !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  /* العنوان العربي أصغر بشكل واضح ليعطي مساحة تنفس */
  #homePage .page-brand-ar.decorated-fire-title {
    position: static !important;
    padding: 0 !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #homePage .page-brand-ar.decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }

  /* KUWAIT FIRE FORCE + شعار يمين وشعار يسار */
  #homePage .mobile-sector-brand-row {
    direction: ltr !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, auto) 44px !important;
    align-items: center !important;
    justify-content: center !important;
    column-gap: 8px !important;
    width: min(90vw, 320px) !important;
    max-width: 320px !important;
    margin: 7px auto 0 !important;
    padding: 0 !important;
  }

  #homePage .mobile-sector-brand-logo {
    display: block !important;
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    margin: 0 !important;
    opacity: .80 !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.20)) !important;
  }

  #homePage .mobile-sector-brand-text {
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    white-space: nowrap !important;
    color: var(--gold) !important;
    text-shadow: 0 1px 0 rgba(0,0,0,.18) !important;
  }

  /* أزرار الإدارة الرئيسية */
  #homePage .mobile-header-admin-controls {
    display: none !important;
  }

  body.admin-mode #homePage .unified-header-title > .mobile-header-admin-controls {
    direction: rtl !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    max-width: 286px !important;
    margin: 7px auto 0 !important;
    padding: 0 !important;
    gap: 4px !important;
  }

  #homePage .mobile-header-admin-btn {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    min-height: 24px !important;
    padding: 4px 8px !important;
    border-radius: 7px !important;
    font-size: 8.5px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  /* ---------- شبكة الخانات ---------- */
  #homePage #homeCentersCard {
    width: 100% !important;
    margin: 0 auto 10px !important;
    padding: 5px 0 10px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  #homePage .home-centers-sections,
  html.kff-phone-layout #homePage .home-centers-sections {
    display: flex !important;
    flex-direction: column !important;
  }

  #homePage .home-centers-section {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #homePage .governorates-centers-grid,
  #homePage .specialized-centers-grid,
  html.kff-phone-layout #homePage .governorates-centers-grid,
  html.kff-phone-layout #homePage .specialized-centers-grid {
  }

  #homePage .governorates-centers-grid .center-btn,
  #homePage .specialized-centers-grid .center-btn,
  html.kff-phone-layout #homePage .governorates-centers-grid .center-btn,
  html.kff-phone-layout #homePage .specialized-centers-grid .center-btn {
  }

  #homePage .center-btn .mobile-department-label {
  }

  /* مؤشر التنبيه القديم بحجم يتناسب مع الخانات الجديدة */
  #homePage button.center-btn.alert-red::after,
  #homePage button.center-btn.alert-cyan::after,
  #homePage button.center-btn.alert-dual::after {
  }

  #homePage button.center-btn.alert-dual::before {
  }

  /* الفاصل */
  #homePage .home-sections-divider {
    width: 88% !important;
    margin: 5px auto 8px !important;
    gap: 8px !important;
  }

  #homePage .home-sections-divider-line {
    height: 1px !important;
  }

  #homePage .home-sections-divider-ornament {
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
  }

  /* ---------- شعار الخلفية + الساعة تحت الخانات ---------- */
  body.mobile-bg-relocated #homePage::before {
    background-image: none !important;
  }

  #homePage .mobile-below-cards-background {
    display: block !important;
    position: relative !important;
    width: calc(100% - 48px) !important;
    max-width: 430px !important;
    min-height: 340px !important;
    margin: -2px auto 74px !important;
    padding: 0 !important;
    pointer-events: none !important;
    user-select: none !important;
  }

  #homePage .mobile-below-cards-logo {
    display: block !important;
    width: 78% !important;
    max-width: 300px !important;
    height: 255px !important;
    margin: 0 auto !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    opacity: .09 !important;
    transform: none !important;
  }

  #homePage .mobile-below-cards-background .home-background-clock {
    position: static !important;
    width: 100% !important;
    margin: -20px auto 0 !important;
    padding: 0 !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    text-align: center !important;
    opacity: .10 !important;
  }

  #homePage .home-background-clock-label {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  #homePage .home-background-clock-time {
    font-size: 28px !important;
    line-height: 1.05 !important;
    letter-spacing: .5px !important;
  }

  #homePage .home-background-clock-date {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  /* ---------- شريط الأخبار ---------- */
  #homeNewsTicker.home-news-ticker {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 8px !important;
    width: auto !important;
    min-height: 56px !important;
    padding: 5px 6px !important;
    border-radius: 16px !important;
    grid-template-columns: 82px minmax(0, 1fr) auto !important;
    gap: 5px !important;
  }

  #homeNewsTicker .home-news-label,
  #homeNewsTicker .home-news-track {
    height: 44px !important;
    min-height: 44px !important;
  }

  #homeNewsTicker .home-news-label {
    gap: 4px !important;
  }

  #homeNewsTicker .home-news-label-logo {
    width: 36px !important;
    height: 36px !important;
  }

  #homeNewsTicker .home-news-label span,
  #homeNewsTicker .news-label-two-lines {
    font-size: 7.6px !important;
    line-height: 1.05 !important;
  }

  #homeNewsTicker .home-news-text {
    font-size: 12.5px !important;
    line-height: 1.15 !important;
    gap: 8px !important;
    padding-inline: 26px !important;
  }

  #homeNewsTicker .home-news-location-part {
    min-height: 19px !important;
    padding: 2px 6px !important;
    font-size: .68em !important;
  }

  #homeNewsTicker .home-news-separator {
    margin: 0 11px !important;
    font-size: 15px !important;
  }

  #homeNewsTicker .home-news-edit {
    min-width: 42px !important;
    height: 29px !important;
    padding: 4px 6px !important;
    border-radius: 9px !important;
    font-size: 9px !important;
  }
}

@media (max-width: 390px) {
  #homePage .page-brand-ar.decorated-fire-title,
  #homePage .page-brand-ar.decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
    max-width: 178px !important;
  }

  #homePage .mobile-sector-brand-row {
    grid-template-columns: 40px minmax(0, auto) 40px !important;
    column-gap: 7px !important;
    max-width: 300px !important;
  }

  #homePage .mobile-sector-brand-logo {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }

  #homePage .mobile-sector-brand-text {
    font-size: 12.2px !important;
    letter-spacing: .85px !important;
    text-shadow: 0 1px 0 rgba(0,0,0,.18) !important;
  }

  #homePage .home-centers-sections,
  html.kff-phone-layout #homePage .home-centers-sections {
    width: calc(100% - 42px) !important;
  }

  #homePage .governorates-centers-grid .center-btn,
  #homePage .specialized-centers-grid .center-btn,
  html.kff-phone-layout #homePage .governorates-centers-grid .center-btn,
  html.kff-phone-layout #homePage .specialized-centers-grid .center-btn {
    min-height: 44px !important;
    font-size: 10.5px !important;
  }

  #homePage .center-btn .mobile-department-label {
    font-size: 10.5px !important;
  }

  #homePage .mobile-below-cards-background {
    width: calc(100% - 42px) !important;
    min-height: 315px !important;
    margin-bottom: 70px !important;
  }

  #homePage .mobile-below-cards-logo {
    width: 76% !important;
    height: 235px !important;
  }

  #homeNewsTicker.home-news-ticker {
    left: 8px !important;
    right: 8px !important;
    bottom: 7px !important;
    min-height: 54px !important;
    grid-template-columns: 78px minmax(0, 1fr) auto !important;
  }
}

/* === original style block 105 | id: assistantMobileArabicTitleSmaller === */
/* تصغير صورة كتابة "قوة الإطفاء العام" في الصفحة الرئيسية على الموبايل فقط */
@media (max-width: 767px) {
  #homePage .page-brand-ar.decorated-fire-title {
    width: min(46vw, 160px) !important;
    max-width: 160px !important;
  }

  #homePage .page-brand-ar.decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
    width: 100% !important;
    max-width: 160px !important;
    height: auto !important;
  }
}

@media (max-width: 390px) {
  #homePage .page-brand-ar.decorated-fire-title {
    width: min(45vw, 150px) !important;
    max-width: 150px !important;
  }

  #homePage .page-brand-ar.decorated-fire-title img,
  #homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
    max-width: 150px !important;
  }
}

/* === original style block 106 | id: assistantGovHeaderWatermarkAndAdminRow === */
/* =========================================================
   تحسين هيدر صفحة المحافظات/الإدارات:
   - توحيد أزرار صلاحية المشرف في صف واحد متساوٍ
   - إضافة شعار قوة الإطفاء كعلامة مائية كبيرة وشفافة داخل خلفية الهيدر
   ========================================================= */

#governorateActivityPage .gov-dashboard-header {
  overflow: hidden !important;
  isolation: isolate !important;
  --assistant-gov-header-logo: none;
}

#governorateActivityPage .gov-dashboard-header::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(34vw, 360px);
  height: min(34vw, 360px);
  transform: translate(-50%, -48%);
  background-image: var(--assistant-gov-header-logo);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.08;
  filter: saturate(0.95) brightness(1.08);
  pointer-events: none;
  z-index: 0;
}

#governorateActivityPage .gov-dashboard-header > * {
  position: relative !important;
  z-index: 1 !important;
}

/* صف موحد لأزرار صلاحية المشرف */
#governorateActivityPage .gov-header-admin-controls {
  direction: rtl !important;
  display: none !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: min(100%, 640px) !important;
  max-width: 640px !important;
  margin: 14px auto 0 !important;
  padding: 0 !important;
  white-space: normal !important;
}

body.admin-mode #governorateActivityPage .gov-header-admin-controls {
  display: grid !important;
}

#governorateActivityPage .gov-header-admin-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* أخفِ زر تسجيل الخروج من هذا الصف إذا ظهر برمجياً */
#governorateActivityPage .gov-header-admin-btn:nth-child(4) {
  display: none !important;
}

/* تحسين تموضع العناصر داخل الهيدر */
#governorateActivityPage .gov-dashboard-heading {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

#governorateActivityPage .gov-dashboard-title {
  position: relative !important;
  z-index: 2 !important;
}

@media (max-width: 980px) {
  #governorateActivityPage .gov-dashboard-header::before {
    width: min(42vw, 320px);
    height: min(42vw, 320px);
    opacity: 0.075;
  }

  #governorateActivityPage .gov-header-admin-controls {
    width: min(100%, 560px) !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  #governorateActivityPage .gov-header-admin-btn {
    min-height: 42px !important;
    font-size: 12.5px !important;
    padding: 9px 10px !important;
  }
}

@media (max-width: 767px) {
  #governorateActivityPage .gov-dashboard-header {
    padding-bottom: 12px !important;
  }

  #governorateActivityPage .gov-dashboard-header::before {
    width: min(74vw, 340px);
    height: min(74vw, 340px);
    transform: translate(-50%, -43%);
    opacity: 0.09;
  }

  #governorateActivityPage .gov-header-admin-controls {
    width: 100% !important;
    max-width: 100% !important;
    gap: 7px !important;
    margin: 10px auto 0 !important;
    padding: 0 2px !important;
  }

  #governorateActivityPage .gov-header-admin-btn {
    min-height: 38px !important;
    padding: 8px 6px !important;
    border-radius: 12px !important;
    font-size: 10.5px !important;
    letter-spacing: 0 !important;
  }
}

@media (max-width: 420px) {
  #governorateActivityPage .gov-dashboard-header::before {
    width: min(82vw, 330px);
    height: min(82vw, 330px);
    transform: translate(-50%, -40%);
    opacity: 0.1;
  }

  #governorateActivityPage .gov-header-admin-controls {
    gap: 6px !important;
  }

  #governorateActivityPage .gov-header-admin-btn {
    min-height: 36px !important;
    padding: 7px 4px !important;
    font-size: 9.6px !important;
    border-radius: 11px !important;
  }
}

/* === original style block 107 | id: assistantNewsDetailCleanGoldLayout === */
body > #homeNewsDetailModal .home-news-detail-card {
  width: min(820px, calc(100vw - 28px)) !important;
  max-width: 820px !important;
  max-height: min(88dvh, 820px) !important;
  padding: 20px 22px 22px !important;
  border-radius: 16px !important;
}
body > #homeNewsDetailModal .home-news-detail-watermark { opacity: .06 !important; }
body > #homeNewsDetailModal .home-news-detail-official-emblem { display: none !important; }
body > #homeNewsDetailModal .home-news-detail-head {
  padding: 0 42px 12px !important;
  border-bottom: 1px solid rgba(216,180,95,.16) !important;
}
body > #homeNewsDetailModal .home-news-detail-title {
  font-size: clamp(20px, 2.3vw, 27px) !important;
  line-height: 1.5 !important;
  color: #f5d789 !important;
}
body > #homeNewsDetailModal .home-news-detail-stamp {
  margin-top: 7px !important;
  gap: 5px !important;
}
body > #homeNewsDetailModal .home-news-detail-stamp > span,
body > #homeNewsDetailModal .home-news-meta-chip {
  min-height: 26px !important;
  padding: 3px 10px !important;
  font-size: 11px !important;
  border-radius: 999px !important;
}
body > #homeNewsDetailModal .home-news-detail-content,
body > #homeNewsDetailModal .home-news-detail-card.has-media .home-news-detail-content,
body > #homeNewsDetailModal .home-news-detail-card.has-rendered-media .home-news-detail-content,
body > #homeNewsDetailModal .home-news-detail-card:not(.has-rendered-media) .home-news-detail-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 14px auto 0 !important;
}
body > #homeNewsDetailModal .home-news-detail-text,
body > #homeNewsDetailModal .home-news-detail-card:not(.has-rendered-media) .home-news-detail-text {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body > #homeNewsDetailModal .home-news-detail-summary {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
  width: 100% !important;
}
body > #homeNewsDetailModal .home-news-detail-info-card {
  min-height: 76px !important;
  padding: 11px 12px !important;
  border: 1px solid rgba(216,180,95,.17) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.03) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

body > #homeNewsDetailModal .home-news-detail-info-label,
body > #homeNewsDetailModal .home-news-detail-info-card:not(.is-full) .home-news-detail-info-label {
  display: block !important;
  margin: 0 0 5px !important;
  color: #e0b85c !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  font-weight: 900 !important;
}
body > #homeNewsDetailModal .home-news-detail-info-value,
body > #homeNewsDetailModal .home-news-detail-info-card:not(.is-full) .home-news-detail-info-value {
  display: block !important;
  color: #f5f7fb !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  font-weight: 700 !important;
}
body > #homeNewsDetailModal .home-news-detail-description {
  grid-column: 1 / -1 !important;
  margin: 2px 0 0 !important;
  padding: 13px 14px !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.025) !important;
}
body > #homeNewsDetailModal .home-news-detail-description-label {
  display: block !important;
  margin-bottom: 7px !important;
  color: #e0b85c !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}
body > #homeNewsDetailModal .home-news-detail-description-value {
  color: #f1f4f8 !important;
  font-size: 14px !important;
  line-height: 1.85 !important;
  font-weight: 650 !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
}
body > #homeNewsDetailModal .home-news-detail-media {
  order: 2 !important;
  width: min(100%, 640px) !important;
  max-width: 640px !important;
  margin: 0 auto !important;
}
body > #homeNewsDetailModal .governorate-news-carousel { width: min(100%, 620px) !important; }
body > #homeNewsDetailModal .governorate-news-carousel-track {
  aspect-ratio: 16 / 10 !important;
  border-radius: 14px !important;
}
body > #homeNewsDetailModal .home-news-detail-close,
body > #homeNewsDetailModal.theme-sector-firefighting .home-news-detail-close,
body > #homeNewsDetailModal.theme-sector-prevention .home-news-detail-close,
body > #homeNewsDetailModal.theme-incident-red .home-news-detail-close {
  top: 10px !important;
  inset-inline-end: 12px !important;
  width: 30px !important;
  height: 30px !important;
  font-size: 25px !important;
  font-weight: 400 !important;
  opacity: .9 !important;
}
@media (max-width: 700px) {
  body > #homeNewsDetailModal.home-news-detail-modal {
    padding: 10px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body > #homeNewsDetailModal .home-news-detail-card {
    width: calc(100vw - 20px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 15px 12px 16px !important;
    border: 1px solid rgba(216,180,95,.16) !important;
    border-radius: 15px !important;
  }
  body > #homeNewsDetailModal .home-news-detail-head { padding: 0 34px 10px !important; }
  body > #homeNewsDetailModal .home-news-detail-title { font-size: clamp(18px, 5vw, 22px) !important; }
  body > #homeNewsDetailModal .home-news-detail-content,
  body > #homeNewsDetailModal .home-news-detail-card.has-media .home-news-detail-content,
  body > #homeNewsDetailModal .home-news-detail-card.has-rendered-media .home-news-detail-content {
    gap: 10px !important;
    margin-top: 10px !important;
    overflow-y: auto !important;
  }
  body > #homeNewsDetailModal .home-news-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  body > #homeNewsDetailModal .home-news-detail-info-card {
    min-height: 68px !important;
    padding: 9px !important;
    border-radius: 12px !important;
  }
  body > #homeNewsDetailModal .home-news-detail-info-label,
  body > #homeNewsDetailModal .home-news-detail-info-card:not(.is-full) .home-news-detail-info-label {
    font-size: 11.5px !important;
    margin-bottom: 4px !important;
  }
  body > #homeNewsDetailModal .home-news-detail-info-value,
  body > #homeNewsDetailModal .home-news-detail-info-card:not(.is-full) .home-news-detail-info-value {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
  }
  body > #homeNewsDetailModal .home-news-detail-description {
    padding: 11px 12px !important;
    border-radius: 12px !important;
  }
  body > #homeNewsDetailModal .home-news-detail-description-label {
    font-size: 12px !important;
    margin-bottom: 5px !important;
  }
  body > #homeNewsDetailModal .home-news-detail-description-value {
    font-size: 13px !important;
    line-height: 1.75 !important;
  }
  body > #homeNewsDetailModal .home-news-detail-media { width: 100% !important; }
  body > #homeNewsDetailModal .governorate-news-carousel-track { aspect-ratio: 4 / 3 !important; }
}
@media (max-width: 360px) {
  body > #homeNewsDetailModal .home-news-detail-summary { grid-template-columns: 1fr !important; }
  body > #homeNewsDetailModal .home-news-detail-info-card.is-full,
  body > #homeNewsDetailModal .home-news-detail-description { grid-column: auto !important; }
}

/* === original style block 108 | id: assistantHomeLargeBackgroundLogoNoCardLogos === */
/* =========================================================
   HOME PAGE — large transparent KFF background emblem
   Card-level emblem watermarks are removed from the markup.
   ========================================================= */
#homePage {
  position: relative !important;
  isolation: isolate !important;
}

/* Safety: keep any legacy per-card watermark node hidden if reintroduced. */
#homePage .governorates-centers-grid .center-btn > .center-btn-watermark,
#homePage .specialized-centers-grid .center-btn > .center-btn-watermark {
  display: none !important;
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
}

#homePage > .container {
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 767px) {
  #homePage::before {
  }
}

@media (max-width: 390px) {
  #homePage::before {
  }
}

/* === original style block 109 | id: assistantSingleDepartmentLabelFix === */
/* Desktop: full department name. Mobile: short name only. */
#homePage .center-btn .desktop-department-label {
  display: inline !important;
}
#homePage .center-btn .mobile-department-label {
  display: none !important;
}

@media (max-width: 767px) {
}

/* === original style block 110 | id: assistantHomeOfficialSealWatermarkFinal === */
/* الصفحة الرئيسية: الشعار الأصلي كامل كختم رسمي هادئ أسفل الخانات */
#homePage::before {
  content: "" !important;
  display: block !important;
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: 70% !important;
  width: min(24vw, 330px) !important;
  height: min(24vw, 330px) !important;
  transform: translate(-50%, -50%) !important;
  background-image: var(--kff-card-logo-watermark) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  background-color: transparent !important;
  opacity: .085 !important;
  filter: grayscale(.06) brightness(1.10) contrast(.98) !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 0 !important;
}



@media (max-width: 767px) {
  #homePage::before {
    top: 72% !important;
    width: 210px !important;
    height: 210px !important;
    opacity: .080 !important;
    filter: grayscale(.04) brightness(1.10) contrast(.98) !important;
  }
}

@media (max-width: 390px) {
  #homePage::before {
    top: 71% !important;
    width: 190px !important;
    height: 190px !important;
    opacity: .078 !important;
  }
}

/* === original style block 111 | id: assistantDesktopHomeBrandScale === */
/* تكبير شعار الخلفية في الصفحة الرئيسية على الكمبيوتر فقط، بدون النص */
@media (min-width: 768px) {
  #homePage::before {
    top: 68% !important;
    width: min(42vw, 620px) !important;
    height: min(42vw, 620px) !important;
    opacity: .097 !important;
    filter: grayscale(.04) brightness(1.08) contrast(.98) !important;
  }

  #homePage::after {
    content: none !important;
    display: none !important;
  }

  #homePage > .container {
    position: relative !important;
    z-index: 1 !important;
  }
}

@media (max-width: 767px) {
  #homePage::after {
    content: none !important;
    display: none !important;
  }
}

/* === original style block 112 | id: assistantDesktopHeaderTrueCenterFinal === */
/* الكمبيوتر فقط: تثبيت العنوان الرئيسي وأزرار صلاحية المشرف في المركز الحقيقي للهيدر */
@media (min-width: 1025px) {
  #homePage .unified-header-inner {
    direction: ltr !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 0 !important;
    gap: 0 !important;
  }


  #homePage .banner-left-group {
    position: absolute !important;
  }


  #homePage .unified-header-title.page-brand-title {
    direction: rtl !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  #homePage .banner-right-group {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
  }

  body.admin-mode #homePage .unified-header-title > .mobile-header-admin-controls {
    display: flex !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 10px auto 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
  }
}

/* === original style block 113 | id: assistantGlobalEdgeBackStyle === */
/* سحب الرجوع من حافة الشاشة على أجهزة اللمس */
.kff-edge-back-zone {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 26px !important;
  height: auto !important;
  z-index: 2147483646 !important;
  background: transparent !important;
  touch-action: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
.kff-edge-back-zone.is-left { left: 0 !important; right: auto !important; }
.kff-edge-back-zone.is-right { right: 0 !important; left: auto !important; }
html, body { overscroll-behavior-x: none; }

/* === original style block 114 | id: assistantBackTopLeftFinal === */
/* زر العودة أعلى يسار صفحات المحافظات والإدارات/المراكز */
#governorateActivityPage .gov-dashboard-header {
  position: relative !important;
}

#governorateActivityPage .gov-dashboard-header-action {
  position: absolute !important;
  top: 12px !important;
  left: 14px !important;
  right: auto !important;
  margin: 0 !important;
  z-index: 40 !important;
}

#centerPage .unified-header,
#centerPage .unified-header-inner {
  position: relative !important;
}

#centerPage .unified-header-actions .btn-back.btn-compact {
  position: absolute !important;
  top: 12px !important;
  left: 14px !important;
  right: auto !important;
  transform: none !important;
  margin: 0 !important;
  z-index: 40 !important;
}

@media (max-width: 767px) {
  #governorateActivityPage .gov-dashboard-header-action,
  #centerPage .unified-header-actions .btn-back.btn-compact {
    top: 9px !important;
    left: 9px !important;
    right: auto !important;
  }
}

@media (max-width: 390px) {
  #governorateActivityPage .gov-dashboard-header-action,
  #centerPage .unified-header-actions .btn-back.btn-compact {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
  }
}

/* === original style block 115 | id: assistantOtherNewsHeightFixFinal === */
/* إصلاح ارتفاع قسم الأخبار الأخرى على الكمبيوتر والموبايل */
#governorateActivityPage .gov-news-list-panel {
  grid-auto-rows: auto !important;
  align-items: stretch !important;
  align-content: start !important;
}

#governorateActivityPage .gov-news-list-panel > .gov-news-list-title {
  min-height: 0 !important;
  height: auto !important;
  align-self: auto !important;
}

#governorateActivityPage .gov-news-list-panel > .gov-empty-state {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 160px !important;
  height: 160px !important;
  max-height: 160px !important;
  margin: 0 !important;
  padding: 22px !important;
  overflow: hidden !important;
  align-self: stretch !important;
}

@media (max-width: 767px) {
  #governorateActivityPage .gov-news-list-panel {
    grid-auto-rows: auto !important;
  }

  #governorateActivityPage .gov-news-list-panel > .gov-empty-state {
    min-height: 145px !important;
    height: 145px !important;
    max-height: 145px !important;
    padding: 18px !important;
  }
}

/* === original style block 116 | id: assistantMobileHomeTitleLowerFinal === */
/* الموبايل فقط: إنزال عنوان الهيدر الرئيسي والخط الذهبي تحته دون تغيير الحجم */
@media (max-width: 767px) {
  #homePage .page-brand-ar.decorated-fire-title {
    margin: 38px auto 0 !important;
  }
}

/* === original style block 117 | id: assistantCanonicalResponsiveSafety === */
/* =========================================================
   Canonical responsive safety layer
   - Keeps phone layout at two columns without JavaScript.
   - Uses short labels on phones and coarse-pointer touch devices up to 900px.
   - Keeps desktop labels from 768px upward on non-touch layouts.
   ========================================================= */
@media (max-width: 767px) {
  #homePage .governorates-centers-grid,
  #homePage .specialized-centers-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (min-width: 768px) {
  #homePage .center-btn .desktop-department-label {
    display: inline !important;
  }

  #homePage .center-btn .mobile-department-label {
    display: none !important;
  }
}

@media (max-width: 900px) and (hover: none) and (pointer: coarse),
       (max-width: 900px) and (any-pointer: coarse) {
  #homePage .governorates-centers-grid,
  #homePage .specialized-centers-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #homePage .center-btn {
    min-width: 0 !important;
    width: 100% !important;
  }

  #homePage .center-btn .desktop-department-label {
    display: none !important;
  }

  #homePage .center-btn .mobile-department-label {
    display: inline !important;
  }
}

/* === original style block 118 | id: assistantMobileBoxesMatchReferenceFinal === */
/* الموبايل فقط: مطابقة خانات الصفحة الرئيسية مع الملف المرجعي المرفق */
@media (max-width: 767px) {
  #homePage .home-centers-sections,
  html.kff-phone-layout #homePage .home-centers-sections {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 10px !important;
  }

  #homePage .governorates-centers-grid,
  #homePage .specialized-centers-grid,
  html.kff-phone-layout #homePage .governorates-centers-grid,
  html.kff-phone-layout #homePage .specialized-centers-grid {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin: 18px auto 0 !important;
    padding: 0 !important;
  }

  #homePage .governorates-centers-grid .center-btn,
  #homePage .specialized-centers-grid .center-btn,
  html.kff-phone-layout #homePage .governorates-centers-grid .center-btn,
  html.kff-phone-layout #homePage .specialized-centers-grid .center-btn {
    min-height: 54px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 10px !important;
    border-radius: 16px !important;
    font-size: clamp(11px, 3.05vw, 14px) !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  #homePage .center-btn .desktop-department-label {
    display: none !important;
  }

  #homePage .center-btn .mobile-department-label {
    display: inline !important;
    font-size: inherit !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
  }

  #homePage button.center-btn.alert-red::after,
  #homePage button.center-btn.alert-cyan::after,
  #homePage button.center-btn.alert-dual::after {
    border-top-width: 28px !important;
    border-left-width: 28px !important;
  }

  #homePage button.center-btn.alert-dual::before {
    border-bottom-width: 28px !important;
    border-left-width: 28px !important;
  }
}

@media (max-width: 380px) {
  #homePage .governorates-centers-grid,
  #homePage .specialized-centers-grid,
  html.kff-phone-layout #homePage .governorates-centers-grid,
  html.kff-phone-layout #homePage .specialized-centers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }

  #homePage .governorates-centers-grid .center-btn,
  #homePage .specialized-centers-grid .center-btn,
  html.kff-phone-layout #homePage .governorates-centers-grid .center-btn,
  html.kff-phone-layout #homePage .specialized-centers-grid .center-btn {
    min-height: 50px !important;
    padding: 9px 8px !important;
    font-size: 10.8px !important;
    border-radius: 14px !important;
  }
}

/* === original style block 119 | id: assistantHomeBrandSilver === */
/* تحويل هوية هيدر الصفحة الرئيسية من الذهبي إلى الفضي */
#homePage .hero-logo-frame .page-brand-ar.decorated-fire-title img,
#homePage img[alt="قوة الإطفاء العام مزخرفة بالتشكيل"] {
  filter:
    grayscale(1)
    brightness(1.36)
    contrast(1.04)
    drop-shadow(0 1px 0 rgba(255,255,255,.34))
    drop-shadow(0 3px 8px rgba(66, 84, 108, .34))
    drop-shadow(0 10px 18px rgba(0,0,0,.24)) !important;
}

#homePage .hero-logo-frame .page-brand-en,
#homePage .page-brand-en {
  color: #e2e8f0 !important;
  background: linear-gradient(180deg,
    #ffffff 0%,
    #eff4fa 18%,
    #d9e0ea 42%,
    #bcc6d3 62%,
    #f2f6fb 82%,
    #aeb8c6 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,.28),
    0 2px 4px rgba(79,97,122,.22),
    0 8px 16px rgba(0,0,0,.20) !important;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  #homePage .hero-logo-frame .page-brand-en,
  #homePage .page-brand-en {
    background: none !important;
    color: #dfe6ef !important;
    -webkit-text-fill-color: currentColor !important;
  }
}

#homePage .decorated-fire-title::after,
#homePage .page-brand-ar.decorated-fire-title::after {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(233,239,246,.1) 8%,
    #f7fbff 24%,
    #cad3de 50%,
    #eef3f8 76%,
    rgba(224,232,240,.14) 92%,
    transparent 100%) !important;
  box-shadow:
    0 0 10px rgba(202,211,222,.30),
    0 0 18px rgba(255,255,255,.08) !important;
}

#homePage .hero-logo-frame {
  border-color: rgba(198, 208, 221, .34) !important;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

/* === original style block 120 | id: assistantTickerStatusColorsFinal === */
/* شريط الأخبار فقط: جاري = أحمر، انتهى = أخضر */
#homePage .home-news-item.news-status-ongoing .home-news-badge,
#homePage .home-news-badge.news-status-ongoing {
  color: #ffffff !important;
  background: linear-gradient(180deg, #ff676f 0%, #d92e3e 55%, #9e1728 100%) !important;
  border-color: rgba(255, 170, 176, .42) !important;
  box-shadow: 0 0 0 1px rgba(255, 160, 168, .24), 0 0 16px rgba(220, 46, 62, .42) !important;
}
#homePage .home-news-item.news-status-done .home-news-badge,
#homePage .home-news-badge.news-status-done {
  color: #062315 !important;
  background: linear-gradient(180deg, #69f3a4 0%, #24c56f 55%, #0f8d4c 100%) !important;
  border-color: rgba(143, 255, 190, .42) !important;
  box-shadow: 0 0 0 1px rgba(120, 255, 178, .24), 0 0 16px rgba(26, 210, 111, .38) !important;
}

/* === original style block 121 | id: assistantPhoneTwoColumnsFinal === */
/* الهاتف فقط: تثبيت خانات الصفحة الرئيسية على عمودين متجاورين */
@media (max-width: 767px) {
  #homePage .governorates-centers-grid,
  #homePage .specialized-centers-grid,
  html.kff-phone-layout #homePage .governorates-centers-grid,
  html.kff-phone-layout #homePage .specialized-centers-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  #homePage .governorates-centers-grid .center-btn,
  #homePage .specialized-centers-grid .center-btn,
  html.kff-phone-layout #homePage .governorates-centers-grid .center-btn,
  html.kff-phone-layout #homePage .specialized-centers-grid .center-btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* === original style block 122 | id: assistantForceMobileTwoColumnsFinal === */
/* تثبيت خانات الصفحة الرئيسية على الهاتف في عمودين */
@media (max-width: 767px) {
  #homePage .centers-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin: 18px auto 0 !important;
  }
  #homePage .center-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    padding: 10px 8px !important;
    font-size: clamp(11px, 3.4vw, 15px) !important;
    line-height: 1.35 !important;
    border-radius: 16px !important;
    white-space: normal !important;
  }
}
@media (max-width: 380px) {
  #homePage .centers-grid {
    gap: 10px !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }
  #homePage .center-btn {
    min-height: 50px !important;
    padding: 9px 6px !important;
    font-size: 10.8px !important;
    border-radius: 14px !important;
  }
}

/* === original style block 123 | id: assistantEnglishBrandSilverGradientFinal === */
/* KUWAIT FIRE FORCE: تدرج فضي نهائي */
#homePage .page-brand-en,
#homePage .hero-logo-frame .page-brand-en {
  color: #dce3ec !important;
  background-image: linear-gradient(180deg,
    #ffffff 0%,
    #f7f9fc 16%,
    #dfe5ed 34%,
    #aeb9c8 54%,
    #eef2f7 72%,
    #c3ccd8 86%,
    #ffffff 100%) !important;
  background-color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,.34),
    0 2px 3px rgba(80,94,114,.22),
    0 7px 14px rgba(0,0,0,.24) !important;
  filter: drop-shadow(0 1px 1px rgba(255,255,255,.10)) !important;
}
@supports not ((-webkit-background-clip:text) or (background-clip:text)) {
  #homePage .page-brand-en,
  #homePage .hero-logo-frame .page-brand-en {
    background: none !important;
    color: #dce3ec !important;
    -webkit-text-fill-color: currentColor !important;
  }
}

/* === original style block 124 | id: assistantCompactNewsManagerCards === */
/* تصميم نهائي مرتب لبطاقات الأخبار داخل نافذة إدارة الأخبار */
#homeNewsEditor .home-news-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 9px !important;
  max-height: 246px !important;
  margin: 12px 0 16px !important;
  padding: 8px !important;
  overflow-y: auto !important;
  border: 1px solid rgba(197,207,220,.12) !important;
  border-radius: 18px !important;
  background: rgba(2,14,28,.34) !important;
  scrollbar-width: thin;
}

#homeNewsEditor .home-news-list-item.home-news-list-item-compact {
  position: relative !important;
  isolation: isolate !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 82px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  overflow: hidden !important;
  direction: rtl !important;
  text-align: right !important;
  border: 1px solid rgba(194,204,216,.20) !important;
  border-radius: 16px !important;
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    linear-gradient(180deg, rgba(18,39,61,.96), rgba(10,27,45,.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 7px 16px rgba(0,0,0,.13) !important;
  transition: border-color .16s ease, background .16s ease, transform .16s ease !important;
}

#homeNewsEditor .home-news-list-item.home-news-list-item-compact::before {
  content: "" !important;
  position: absolute !important;
  top: 10px !important;
  bottom: 10px !important;
  right: 0 !important;
  width: 3px !important;
  border-radius: 999px 0 0 999px !important;
  background: rgba(193,203,216,.52) !important;
  opacity: .75 !important;
  pointer-events: none !important;
}

#homeNewsEditor .home-news-list-item.home-news-list-item-compact:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(210,220,232,.36) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.018)),
    linear-gradient(180deg, rgba(21,45,69,.98), rgba(11,29,48,.99)) !important;
}

#homeNewsEditor .home-news-list-item.home-news-list-item-compact.is-active {
  border-color: rgba(218,226,236,.58) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.045),
    0 0 0 1px rgba(178,190,206,.12),
    0 9px 22px rgba(0,0,0,.19) !important;
}

#homeNewsEditor .home-news-list-item.home-news-list-item-compact.is-active::before {
  width: 4px !important;
  background: linear-gradient(180deg,#f5f8fc,#aeb9c7) !important;
  opacity: 1 !important;
}

#homeNewsEditor .home-news-list-main {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  gap: 5px !important;
  align-content: center !important;
}

#homeNewsEditor .home-news-list-title {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #f7f9fc !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
}

#homeNewsEditor .home-news-list-place,
#homeNewsEditor .home-news-list-stamp {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

#homeNewsEditor .home-news-list-place {
  color: #b8c5d4 !important;
}
#homeNewsEditor .home-news-list-place::before {
  content: "⌖" !important;
  margin-left: 5px !important;
  color: #d6dee8 !important;
  font-size: 10px !important;
}

#homeNewsEditor .home-news-list-stamp {
  color: #9eafc1 !important;
  direction: ltr !important;
  text-align: right !important;
}
#homeNewsEditor .home-news-list-stamp::before {
  content: "◷" !important;
  margin-right: 5px !important;
  color: #cbd5e1 !important;
}

#homeNewsEditor .home-news-list-status {
  justify-self: start !important;
  align-self: center !important;
  width: auto !important;
  min-width: 66px !important;
  max-width: 82px !important;
  min-height: 30px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
}

#homeNewsEditor .home-news-list-item.status-ongoing .home-news-list-status {
  color: #fff !important;
  background: linear-gradient(180deg,#e53b50,#b91831) !important;
  border-color: rgba(255,125,142,.34) !important;
}
#homeNewsEditor .home-news-list-item.status-done .home-news-list-status {
  color: #062315 !important;
  background: linear-gradient(180deg,#62efa0,#19b666) !important;
  border-color: rgba(140,255,188,.38) !important;
}
#homeNewsEditor .home-news-list-item.status-off .home-news-list-status {
  color: #d9e1ea !important;
  background: rgba(132,148,168,.20) !important;
  border-color: rgba(180,193,209,.25) !important;
}

@media (max-width: 700px) {
  #homeNewsEditor .home-news-list {
    max-height: 220px !important;
    gap: 7px !important;
    padding: 7px !important;
    margin: 10px 0 14px !important;
    border-radius: 16px !important;
  }
  #homeNewsEditor .home-news-list-item.home-news-list-item-compact {
    min-height: 76px !important;
    gap: 8px !important;
    padding: 10px 11px !important;
    border-radius: 14px !important;
  }
  #homeNewsEditor .home-news-list-title {
    font-size: 14px !important;
  }
  #homeNewsEditor .home-news-list-place,
  #homeNewsEditor .home-news-list-stamp {
    font-size: 9.5px !important;
  }
  #homeNewsEditor .home-news-list-status {
    min-width: 58px !important;
    max-width: 68px !important;
    min-height: 28px !important;
    padding: 5px 8px !important;
    font-size: 10.5px !important;
  }
}

/* === original style block 125 | id: assistantGovernorateSearchCardRelayoutFinal === */
/* بطاقة بحث مستقلة تحت تبويبات القطاعات وقبل جميع الأخبار */
#governorateActivityPage .gov-news-search {
  width: min(1120px, calc(100% - 34px));
  margin: 14px auto 16px !important;
  padding: 16px 17px !important;
  border: 1px solid rgba(204, 214, 226, .22) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.01)),
    linear-gradient(180deg, rgba(7,25,47,.94), rgba(5,18,35,.96)) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.04) !important;
}
#governorateActivityPage .gov-news-search-head {
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px;
}
#governorateActivityPage .gov-news-search-eyebrow {
  display:block; margin-bottom:2px; color:#93a5b9; font-size:10px; font-weight:800;
}
#governorateActivityPage .gov-news-search-title {
  margin:0 !important; color:#e4eaf1 !important; font-size:17px !important; font-weight:900 !important;
}
#governorateActivityPage .gov-news-search-icon {
  width:38px; height:38px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  color:#dbe3ed; font-size:24px; background:rgba(255,255,255,.055); border:1px solid rgba(211,220,231,.13);
}
#governorateActivityPage .gov-news-search-grid {
  display:grid !important; grid-template-columns:minmax(260px,1.25fr) minmax(320px,1fr) auto !important;
  gap:11px !important; align-items:end !important;
}
#governorateActivityPage .gov-news-search-dates {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; min-width:0;
}
#governorateActivityPage .gov-news-search-field-title { grid-column:auto !important; }
#governorateActivityPage .gov-news-search-field > span {
  color:#bdc9d6 !important; font-size:11px !important; font-weight:900 !important;
}
#governorateActivityPage .gov-news-search-field input {
  min-height:44px !important; border-radius:12px !important; padding:9px 12px !important;
  border:1px solid rgba(205,215,227,.19) !important; background:rgba(255,255,255,.05) !important; color:#fff !important;
}
#governorateActivityPage .gov-news-search-field input:focus {
  border-color:rgba(218,226,236,.55) !important; box-shadow:0 0 0 3px rgba(213,222,232,.07) !important;
}
#governorateActivityPage .gov-news-search-actions {
  display:grid; grid-template-columns:1fr 1fr; gap:8px; min-width:170px;
}
#governorateActivityPage .gov-news-search-submit,
#governorateActivityPage .gov-news-search-clear {
  min-height:44px !important; padding:9px 15px !important; border-radius:12px !important; cursor:pointer; font-weight:900 !important;
}
#governorateActivityPage .gov-news-search-submit {
  color:#071727; border:1px solid rgba(235,240,246,.40);
  background:linear-gradient(180deg,#eef3f8,#bcc7d4);
  box-shadow:0 7px 16px rgba(0,0,0,.14);
}
#governorateActivityPage .gov-news-search-clear {
  width:auto !important; color:#dfe6ee !important; border:1px solid rgba(201,212,224,.18) !important;
  background:linear-gradient(180deg,rgba(74,91,111,.60),rgba(38,51,66,.72)) !important;
}
#governorateActivityPage .gov-news-search-summary {
  min-height:0 !important; margin:10px 1px 0 !important; color:#95a8bb !important; font-size:11px !important;
}
#governorateActivityPage .gov-news-search-results { margin-top:10px !important; }

@media (max-width:767px) {
  #governorateActivityPage .gov-news-search {
    width:calc(100% - 28px) !important; margin:12px auto 14px !important; padding:13px !important; border-radius:16px !important;
  }
  #governorateActivityPage .gov-news-search-head { margin-bottom:11px; }
  #governorateActivityPage .gov-news-search-title { font-size:15px !important; }
  #governorateActivityPage .gov-news-search-icon { width:34px; height:34px; font-size:21px; border-radius:10px; }
  #governorateActivityPage .gov-news-search-grid { grid-template-columns:1fr !important; gap:9px !important; }
  #governorateActivityPage .gov-news-search-field-title { grid-column:1 !important; }
  #governorateActivityPage .gov-news-search-dates { grid-template-columns:1fr 1fr; gap:8px; }
  #governorateActivityPage .gov-news-search-actions { grid-template-columns:1fr 1fr; min-width:0; }
  #governorateActivityPage .gov-news-search-submit,
  #governorateActivityPage .gov-news-search-clear { width:100% !important; min-height:42px !important; }
  #governorateActivityPage .gov-news-search-results { grid-template-columns:1fr !important; }
}
@media (max-width:390px) {
  #governorateActivityPage .gov-news-search { width:calc(100% - 20px) !important; padding:11px !important; }
  #governorateActivityPage .gov-news-search-dates { gap:6px; }
  #governorateActivityPage .gov-news-search-field input { padding-inline:8px !important; font-size:12px !important; }
}

/* === original style block 126 | id: assistantPreviousIncidentsHomeArchive === */
.previous-incidents-home-entry{width:min(980px,calc(100vw - 48px));margin:10px auto 4px;padding:0 18px;}
.previous-incidents-open-btn{width:100%;min-height:54px;border:1px solid rgba(205,215,226,.34);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.025)),linear-gradient(145deg,rgba(10,35,62,.98),rgba(14,27,43,.98));color:#eef3f8;font-size:16px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;box-shadow:0 12px 26px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.06);}
.previous-incidents-open-icon{font-size:22px;color:#d8e0e9;}
.previous-incidents-modal{position:fixed;inset:0;z-index:1000012;background:rgba(0,0,0,.58);backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:18px;}
.previous-incidents-modal.hidden{display:none!important;}
.previous-incidents-card{position:relative;width:min(860px,calc(100vw - 28px));max-height:min(86vh,820px);overflow:auto;direction:rtl;padding:22px;border-radius:24px;border:1px solid rgba(205,215,226,.28);background:linear-gradient(180deg,rgba(9,29,53,.99),rgba(5,18,34,.99));box-shadow:0 28px 70px rgba(0,0,0,.48);}
.previous-incidents-close{position:absolute;top:12px;left:12px;width:38px;height:38px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff;font-size:24px;cursor:pointer;}
.previous-incidents-heading{text-align:center;padding:4px 48px 16px;}
.previous-incidents-kicker{color:#aebdcc;font-size:11px;font-weight:900;letter-spacing:.4px;}
.previous-incidents-heading h2{margin:4px 0 6px;color:#e2e8f0;font-size:28px;font-weight:900;}
.previous-incidents-heading p{margin:0;color:#aebdcc;font-size:13px;line-height:1.8;}
.previous-incidents-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:10px;padding:14px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.035);}
.previous-incidents-field{display:flex;flex-direction:column;gap:6px;min-width:0;}
.previous-incidents-field>span{color:#cbd5df;font-size:11px;font-weight:900;}
.previous-incidents-field input,.previous-incidents-field select{width:100%;min-height:44px;border:1px solid rgba(202,212,224,.18);border-radius:12px;background:#132840;color:#fff;padding:9px 10px;font-size:13px;outline:none;}
.previous-incidents-field input:focus,.previous-incidents-field select:focus{border-color:rgba(220,228,238,.55);box-shadow:0 0 0 3px rgba(207,217,229,.08);}
.previous-incidents-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px;}
.previous-incidents-search-btn,.previous-incidents-clear-btn{min-height:44px;border-radius:12px;font-weight:900;cursor:pointer;}
.previous-incidents-search-btn{border:1px solid rgba(230,236,244,.36);background:linear-gradient(180deg,#edf2f7,#aeb9c7);color:#102237;}
.previous-incidents-clear-btn{border:1px solid rgba(255,255,255,.12);background:#142b43;color:#eef3f8;}
.previous-incidents-summary{min-height:24px;margin:12px 2px 4px;color:#aebdcc;font-size:12px;font-weight:800;}
.previous-incidents-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.previous-incidents-result{width:100%;text-align:right;border:1px solid rgba(255,255,255,.09);border-radius:15px;background:rgba(255,255,255,.045);color:#fff;padding:12px;cursor:pointer;display:grid;gap:7px;}
.previous-incidents-result:hover{border-color:rgba(205,215,226,.38);background:rgba(255,255,255,.07);}
.previous-incidents-result-head{display:flex;justify-content:space-between;gap:10px;align-items:center;}
.previous-incidents-result-title{font-size:14px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.previous-incidents-status{flex:0 0 auto;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:900;}
.previous-incidents-status.ongoing{background:#c92f42;color:#fff;}
.previous-incidents-status.done{background:#39c977;color:#082416;}
.previous-incidents-result-meta{color:#aebdcc;font-size:11px;font-weight:700;line-height:1.7;}
.previous-incidents-result-sector{color:#d9e1ea;font-size:11px;font-weight:800;}
.previous-incidents-empty{grid-column:1/-1;padding:28px 14px;border:1px dashed rgba(255,255,255,.14);border-radius:15px;color:#9eafc0;text-align:center;font-size:13px;font-weight:800;}
@media(max-width:767px){.previous-incidents-home-entry{width:calc(100vw - 24px);padding:0;margin:10px auto 6px}.previous-incidents-open-btn{min-height:48px;font-size:14px;border-radius:14px}.previous-incidents-modal{padding:10px}.previous-incidents-card{width:calc(100vw - 20px);max-height:88vh;padding:16px;border-radius:20px}.previous-incidents-heading{padding:3px 38px 12px}.previous-incidents-heading h2{font-size:22px}.previous-incidents-heading p{font-size:12px}.previous-incidents-filters{grid-template-columns:1fr 1fr;gap:8px;padding:11px}.previous-incidents-title-field{grid-column:1/-1}.previous-incidents-field:first-of-type+label{grid-column:auto}.previous-incidents-results{grid-template-columns:1fr}.previous-incidents-result{padding:11px}}

/* === original style block 127 | id: assistantPreviousIncidentsFullPage === */
/* الحوادث السابقة كصفحة مستقلة فوق الصفحة الرئيسية */
.previous-incidents-modal{position:fixed!important;inset:0!important;z-index:1000012!important;display:block!important;padding:0!important;overflow:auto!important;overscroll-behavior:contain!important;background:radial-gradient(circle at top right,rgba(255,255,255,.045),transparent 24%),linear-gradient(180deg,#0b2137 0%,#102c48 45%,#173956 100%)!important;backdrop-filter:none!important;}

.previous-incidents-card{position:relative!important;width:100%!important;max-width:1180px!important;min-height:100vh!important;max-height:none!important;margin:0 auto!important;overflow:visible!important;padding:calc(env(safe-area-inset-top,0px) + 24px) 24px calc(env(safe-area-inset-bottom,0px) + 36px)!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
.previous-incidents-close{position:fixed!important;top:calc(env(safe-area-inset-top,0px) + 14px)!important;left:16px!important;width:44px!important;height:44px!important;z-index:3!important;border-radius:13px!important;border:1px solid rgba(207,218,230,.26)!important;background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.045))!important;color:#eef3f8!important;font-size:25px!important;line-height:1!important;box-shadow:0 8px 20px rgba(0,0,0,.18)!important;}
.previous-incidents-heading{padding:8px 64px 22px!important;border-bottom:1px solid rgba(210,220,232,.12);margin-bottom:18px;}
.previous-incidents-heading h2{font-size:clamp(26px,3vw,36px)!important;}
.previous-incidents-filters{background:rgba(5,19,34,.48)!important;border-color:rgba(205,215,226,.18)!important;box-shadow:0 12px 28px rgba(0,0,0,.14)!important;}
.previous-incidents-results{margin-top:4px!important;}
@media(max-width:767px){.previous-incidents-card{padding:calc(env(safe-area-inset-top,0px) + 18px) 12px calc(env(safe-area-inset-bottom,0px) + 24px)!important}.previous-incidents-close{top:calc(env(safe-area-inset-top,0px) + 10px)!important;left:10px!important;width:40px!important;height:40px!important;font-size:23px!important}.previous-incidents-heading{padding:6px 48px 16px!important;margin-bottom:12px!important}.previous-incidents-heading h2{font-size:24px!important}.previous-incidents-filters{border-radius:16px!important}}

/* === original style block 128 | id: assistantTickerRotatingLogo === */
#homeNewsTicker.home-news-ticker {
  grid-template-columns: 96px minmax(0, 1fr) auto !important;
}
#homeNewsTicker .home-news-label {
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  min-width: 74px !important;
}
#homeNewsTicker .news-label-two-lines,
#homeNewsTicker .home-news-label span {
  display: none !important;
}
#homeNewsTicker .home-news-label-logo {
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  transform-origin: 50% 50% !important;
}
@media (max-width: 700px) {
  #homeNewsTicker.home-news-ticker {
    grid-template-columns: 74px minmax(0, 1fr) auto !important;
  }
  #homeNewsTicker .home-news-label-logo {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }
  #homeNewsTicker .home-news-label {
    min-width: 54px !important;
  }
}

/* === original style block 129 | id: ASSISTANT_TICKER_LOGO_VISIBILITY_FIX === */
#homeNewsTicker .home-news-label-logo {
  flex: 0 0 auto !important;
}

/* === original style block 130 | id: assistantTickerLogoStaticWhiteFix === */
#homeNewsTicker .home-news-label-logo {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.22)) !important;
  margin-inline: auto !important;
}

/* === original style block 131 | id: assistantFinalResponsiveGovernorateSupport === */
/* تسجيل الخروج: تباين واضح */
#logoutBtn, #logoutBtnCenter, #logoutBtnActivity, #adminHeaderLogoutBtn,
button[onclick="logout()"], .admin-access-logout {
  color:#07101c !important;
  text-shadow:none !important;
  font-weight:900 !important;
}

.quick-news-support-block { min-width:0; }
.quick-news-support-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}

/* Fit حقيقي لكل المقاسات */
html, body { max-width:100%; overflow-x:hidden; }
*, *::before, *::after { box-sizing:border-box; }
img, video, canvas, svg { max-width:100%; }
input, select, textarea, button { max-width:100%; min-width:0; }
.page, .container, .unified-header-inner, .gov-dashboard-shell,
.governorate-activity-shell, .quick-news-box, .modal-box {
  max-width:100%;
}
#homePage .centers-grid, #homePage .governorates-centers-grid, #homePage .specialized-centers-grid {
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
.center-btn { min-width:0 !important; width:100% !important; overflow:hidden; text-overflow:ellipsis; }

@media (max-width: 900px) {
  #homePage .centers-grid, #homePage .governorates-centers-grid, #homePage .specialized-centers-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .quick-news-grid { grid-template-columns:1fr !important; }
  .quick-news-support-grid { grid-template-columns:1fr 1fr; }
  .quick-news-box { width:min(96vw,760px) !important; max-height:92dvh !important; overflow:auto !important; }
  .gov-dashboard-shell, .governorate-activity-shell { width:calc(100% - 16px) !important; }
}
@media (max-width: 560px) {
  #homePage .centers-grid, #homePage .governorates-centers-grid, #homePage .specialized-centers-grid {
    grid-template-columns:1fr !important;
  }
  .quick-news-support-grid { grid-template-columns:1fr; }
  .quick-news-box { width:calc(100vw - 12px) !important; border-radius:18px !important; padding:14px !important; }
  .quick-news-actions { display:grid !important; grid-template-columns:1fr 1fr; gap:8px; }
  .quick-news-actions .btn { width:100% !important; }
  .home-news-detail-card { width:calc(100vw - 12px) !important; max-width:none !important; }
  .home-news-detail-summary { grid-template-columns:1fr !important; }
  .gov-dashboard-title { font-size:clamp(20px,7vw,28px) !important; }
}

/* === original style block 132 | id: assistantFinalRequestedFixes === */
/* تسجيل الخروج: النص أسود وواضح في كل أزرار الخروج */
#homePage .mobile-header-admin-btn.is-danger,
#homePage button[onclick="logout()"],
#homePage #adminHeaderLogoutBtn,
#homePage #logoutBtn,
#governorateActivityPage #logoutBtnActivity,
#centerPage #logoutBtnCenter {
  color:#050505 !important;
  -webkit-text-fill-color:#050505 !important;
  text-shadow:none !important;
}
/* تحسين النقر على أخبار الشريط في اللمس */
#homeNewsTrack .home-news-item {
  cursor:pointer !important;
  touch-action:manipulation !important;
  -webkit-tap-highlight-color:rgba(212,175,55,.16);
  user-select:none;
  -webkit-user-select:none;
}

/* === original style block 133 | id: kff-media-fix-style === */
.kff-media-added-alert{grid-column:1/-1;padding:11px 13px;border:1px solid rgba(238,195,91,.45);border-radius:13px;background:rgba(238,195,91,.12);color:#ffe39a;font-weight:900;font-size:13px;line-height:1.7;text-align:right}
.kff-media-update-time{color:#fff2c8;font-weight:700;font-size:12px}

/* === original style block 134 | id: kff-final-mobile-silver-brand-fix === */
/* تثبيت Kuwait Fire Force باللون السلفر على جميع أحجام الهاتف */
#homePage .mobile-sector-brand-text {
  color: #dce3ec !important;
  background: linear-gradient(180deg,
    #ffffff 0%,
    #f5f8fb 18%,
    #dce3eb 38%,
    #aeb9c8 56%,
    #eef2f7 74%,
    #bcc6d2 88%,
    #ffffff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,.32),
    0 2px 3px rgba(79,97,122,.26),
    0 6px 12px rgba(0,0,0,.20) !important;
  filter: drop-shadow(0 1px 1px rgba(255,255,255,.08)) !important;
}

@supports not ((-webkit-background-clip:text) or (background-clip:text)) {
  #homePage .mobile-sector-brand-text {
    background: none !important;
    color: #dce3ec !important;
    -webkit-text-fill-color: currentColor !important;
  }
}

/* نفس المقاس الحالي بدون تغييره؛ فقط يمنع أي قاعدة أصغر من إعادة اللون الذهبي */
@media (max-width: 390px) {
  #homePage .mobile-sector-brand-text {
    color: #dce3ec !important;
  }
}
