/* ─────────────────────────────────────────────────────────────────────
   HOMEi «الجروث الذكي» on the house design system (GROWTH-DS-1, v2
   mockups approved by Kamal 1-10-2026: «مش عايز اسكرول… اغلب الداتا
   ظاهره… من غير تابات جوا الصفحه»):
     اعتماد الإرسال · تقرير الأسبوع · سجل الجروث · سلّم البروكرز ·
     نسخ الرسايل · سياسات الجروث الذكي · صفوف رقم.
   Every page fits one 1600×900 screen; no tabs or view pills inside a
   page — filters are chips, lists show everything.

   Prefix `gq`. Colours: the house tokens (--lm-d-* in tokens.css, with
   their dark mirror) — no colour literal here, the ratchet holds this
   sheet at zero. Text never under 12px. Logical properties only (RTL/LTR).
   Sections 1–13 are the house base (as construction-companies.css).

   Registered as a Filament asset: a change here ships nothing until
   `php artisan filament:assets` is run and public/css/app/ is committed.
   ──────────────────────────────────────────────────────────────────── */

/* ── 1. the page head (Filament) ── */
body .gq-page .fi-header-heading { font-size: 28px; font-weight: 700; line-height: 1.25; color: var(--lm-d-ink); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
body .gq-page .fi-header-subheading { margin-block-start: 4px; font-size: 14px; color: var(--lm-d-muted); }
body .gq-page .fi-header-actions-ctn .fi-btn {
    min-block-size: 44px;
    border-radius: 12px;
    padding-inline: 16px;
    background: var(--lm-d-surface);
    color: var(--lm-d-ink);
    box-shadow: inset 0 0 0 1px var(--lm-d-control-edge);
    font-weight: 700;
}
body .gq-page .fi-header-actions-ctn .fi-btn .fi-icon { color: currentColor; }
body .gq-page .fi-header-actions-ctn .fi-btn:is(.fi-color-primary, .fi-color-success) { background: var(--lm-d-accent); color: var(--lm-d-on-accent); box-shadow: 0 4px 12px var(--lm-d-accent-soft); }
body .gq-page .fi-header-actions-ctn .fi-btn.fi-color-danger { color: var(--lm-d-danger); box-shadow: inset 0 0 0 1px var(--lm-d-gap-edge); }

.gq { display: flex; flex-direction: column; gap: 14px; color: var(--lm-d-ink); }
.gq :focus-visible { outline: 2px solid var(--lm-d-info); outline-offset: 2px; }
.gq-num, .gq .gq-num { font-variant-numeric: tabular-nums; }
.gq bdi { unicode-bidi: isolate; }
.gq-ic { inline-size: 18px; block-size: 18px; flex: none; }
.gq-dim { color: var(--lm-d-muted); font-size: 12.5px; }

/* text tones (words and figures only) */
:is(.gq, .gq-page) .is-ink { color: var(--lm-d-ink); }
:is(.gq, .gq-page) .is-muted { color: var(--lm-d-muted); }
:is(.gq, .gq-page) .is-dim { color: var(--lm-d-muted); }
:is(.gq, .gq-page) .is-ok { color: var(--lm-d-ok); }
:is(.gq, .gq-page) .is-warn { color: var(--lm-d-warn); }
:is(.gq, .gq-page) .is-danger { color: var(--lm-d-danger); }
:is(.gq, .gq-page) .is-accent { color: var(--lm-d-accent-ink); }
:is(.gq, .gq-page) .is-info { color: var(--lm-d-info); }

/* ── 2. the numbers strip ── */
.gq-strip {
    display: grid;
    grid-template-columns: repeat(var(--gq-cols, 6), minmax(0, 1fr));
    background: var(--lm-d-surface);
    border: 1px solid var(--lm-d-border);
    border-radius: 16px;
    box-shadow: 0 1px 2px var(--lm-d-shadow);
}
.gq-strip-c { padding: 12px 18px; border-inline-start: 1px solid var(--lm-d-divider); min-inline-size: 0; }
.gq-strip-c:first-child { border-inline-start: 0; }
.gq-k-l { font-size: 13px; color: var(--lm-d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gq-k-v { font-size: 26px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lm-d-ink); }
.gq-k-v.is-text { font-size: 20px; line-height: 1.6; }
.gq-k-s { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lm-d-muted); }

/* ── 3. the ruled card (the page's main surface) ── */
.gq-card {
    background: var(--lm-d-surface);
    border: 1px solid var(--lm-d-border);
    border-block-start: 3px solid var(--lm-d-info);
    border-radius: 16px;
    box-shadow: 0 1px 2px var(--lm-d-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-inline-size: 0;
}
.gq-card.is-plain { border-block-start-width: 1px; border-block-start-color: var(--lm-d-border); }
.gq-card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 18px; border-block-end: 1px solid var(--lm-d-divider); }
.gq-card-t { font-size: 20px; font-weight: 700; margin: 0; color: var(--lm-d-ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.gq-card-t span { font-size: 14px; font-weight: 500; color: var(--lm-d-muted); }
.gq-card-b { padding: 14px 18px; display: flex; flex-direction: column; gap: 14px; }

/* ── 5. status chips with counts ── */
.gq-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gq-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-block-size: 34px;
    padding-inline: 12px;
    border: 1px solid var(--lm-d-border);
    border-radius: 10px;
    background: var(--lm-d-page);
    color: var(--lm-d-muted);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}
.gq-chip b { color: var(--lm-d-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.gq-chip .gq-ic { inline-size: 14px; block-size: 14px; }
.gq-chip:hover { background: var(--lm-d-chip-bg); }
.gq-chip.is-on { background: var(--lm-d-info-soft); border-color: var(--lm-d-info-soft); color: var(--lm-d-info); }
.gq-chip.is-on b { color: var(--lm-d-info); }

/* ── 6. segmented switch ── */
.gq-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--lm-d-border); border-radius: 10px; background: var(--lm-d-surface); flex: none; }
.gq-seg button { block-size: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--lm-d-muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gq-seg button:hover { color: var(--lm-d-ink); }
.gq-seg button.is-on { background: var(--lm-d-chip-bg); color: var(--lm-d-ink); font-weight: 700; }
.gq-seg button .gq-ic { inline-size: 16px; block-size: 16px; }

/* ── 7. the split: the list (start) and the item opened beside it (end) ── */
.gq-split { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.gq-split.has-open { grid-template-columns: minmax(0, 1fr) 340px; }
.gq-split:not(.has-open) .gq-panel { display: none; }
body .gq-list { min-inline-size: 0; }
.gq-split.has-open .gq-list { border-inline-end: 1px solid var(--lm-d-divider); }


/* ── 8. the panel (the opened item) ── */
.gq-panel { position: sticky; inset-block-start: 12px; display: flex; flex-direction: column; background: var(--lm-d-surface); max-block-size: calc(100dvh - 120px); min-block-size: 420px; }
.gq-p { display: flex; flex-direction: column; min-block-size: 0; flex: 1 1 auto; }
.gq-p-h { padding: 14px 18px 12px; border-block-end: 1px solid var(--lm-d-divider); }
.gq-p-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--lm-d-ink); }
.gq-p-x { margin-inline-start: auto; inline-size: 32px; block-size: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--lm-d-border); background: var(--lm-d-surface); color: var(--lm-d-muted); cursor: pointer; }
.gq-p-x .gq-ic { inline-size: 16px; block-size: 16px; }
.gq-p-s { margin-block-start: 2px; font-size: 13px; color: var(--lm-d-muted); }
.gq-p-b { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px; display: flex; flex-direction: column; gap: 14px; }
.gq-p-f { padding: 12px 18px; border-block-start: 1px solid var(--lm-d-divider); display: flex; flex-wrap: wrap; gap: 8px; }
.gq-p-f > .gq-btn { flex: 1 1 0; justify-content: center; }

/* ── 9. status tag (a dot + a word) ── */
.gq-tag { display: inline-flex; align-items: center; gap: 6px; min-block-size: 26px; padding-inline: 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; line-height: 1.4; }
.gq-tag::before { content: ''; inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; flex: none; }
.gq-tag.is-info { background: var(--lm-d-info-soft); color: var(--lm-d-info); }
.gq-tag.is-ok { background: var(--lm-d-ok-soft); color: var(--lm-d-ok); }
.gq-tag.is-warn { background: var(--lm-d-warn-soft); color: var(--lm-d-warn); }
.gq-tag.is-danger { background: var(--lm-d-danger-soft); color: var(--lm-d-danger); }
.gq-tag.is-accent { background: var(--lm-d-accent-soft); color: var(--lm-d-accent-ink); }
.gq-tag.is-quiet { background: var(--lm-d-quiet-bg); color: var(--lm-d-muted); }
body .gq-page .fi-header-heading .gq-tag { font-size: 13px; min-block-size: 28px; }
.gq-mini { display: flex; flex-wrap: wrap; gap: 4px; }
.gq-mini .gq-tag { min-block-size: 24px; font-size: 12px; padding-inline: 8px; }

/* ── 10. a person in a row / a card ── */
.gq-av { display: inline-grid; place-items: center; flex: none; inline-size: 40px; block-size: 40px; border-radius: 10px; font-weight: 700; font-size: 15px; background: var(--lm-d-info-soft); color: var(--lm-d-info); }
.gq-av.is-lg { inline-size: 52px; block-size: 52px; border-radius: 14px; font-size: 18px; }
.gq-av.is-warn { background: var(--lm-d-warn-soft); color: var(--lm-d-warn); }
.gq-av.is-accent { background: var(--lm-d-accent-soft); color: var(--lm-d-accent-ink); }
.gq-person { display: flex; align-items: center; gap: 10px; min-inline-size: 0; }
.gq-person-t { min-inline-size: 0; display: flex; flex-direction: column; }
.gq-person-t b { font-weight: 700; line-height: 1.35; color: var(--lm-d-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gq-person-t small { font-size: 12.5px; color: var(--lm-d-muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ── 12. figures and lines ── */
.gq-sec { font-size: 14px; font-weight: 700; margin-block-end: 6px; color: var(--lm-d-ink); display: flex; align-items: center; gap: 6px; }
.gq-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-block-end: 1px solid var(--lm-d-divider); font-size: 13.5px; color: var(--lm-d-ink); }
.gq-line:last-child { border-block-end: 0; }
.gq-line > span { color: var(--lm-d-muted); }
.gq-line b { font-variant-numeric: tabular-nums; text-align: end; }
.gq-note { border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.6; border: 1px solid var(--lm-d-divider); display: flex; flex-direction: column; gap: 4px; }
.gq-note.is-info { background: var(--lm-d-info-soft); color: var(--lm-d-info); }
.gq-note.is-warn { background: var(--lm-d-warn-soft); color: var(--lm-d-warn); }
.gq-note.is-danger { background: var(--lm-d-danger-soft); color: var(--lm-d-danger); }
.gq-note.is-ok { background: var(--lm-d-ok-soft); color: var(--lm-d-ok); }
.gq-note.is-quiet { background: var(--lm-d-hover); color: var(--lm-d-muted); }
.gq-note.is-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.gq-money b { font-size: 15px; font-weight: 700; }
.gq-money { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gq-money > div { border: 1px solid var(--lm-d-border); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; min-inline-size: 0; }
.gq-money span { font-size: 12px; color: var(--lm-d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gq-money b { font-size: 15px; font-weight: 700; color: var(--lm-d-ink); }
.gq-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gq-facts > div { border: 1px solid var(--lm-d-border); border-radius: 10px; padding: 8px 10px; min-inline-size: 0; }
.gq-facts span { display: block; font-size: 12px; color: var(--lm-d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gq-facts b { display: block; font-size: 14px; color: var(--lm-d-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gq-link { color: var(--lm-d-accent-ink); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.gq-link:hover { text-decoration: underline; }

/* ── 13. buttons: one orange primary per area, the rest outline ── */
.gq-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-block-size: 42px;
    padding-inline: 16px;
    border-radius: 10px;
    border: 1px solid var(--lm-d-control-edge);
    background: var(--lm-d-surface);
    color: var(--lm-d-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.gq-btn:hover { background: var(--lm-d-hover); }
.gq-btn.is-primary { background: var(--lm-d-accent); border-color: var(--lm-d-accent); color: var(--lm-d-on-accent); }
.gq-btn.is-primary:hover { filter: brightness(0.96); }
.gq-btn.is-danger { color: var(--lm-d-danger); border-color: var(--lm-d-gap-edge); }
.gq-btn.is-sm { min-block-size: 36px; padding-inline: 14px; font-size: 13.5px; }
.gq-btn:disabled { opacity: .6; cursor: default; }
.gq-stack { display: flex; flex-direction: column; gap: 8px; }
.gq-stack > .gq-btn { justify-content: center; }

/* ── 14. record pages: main card + aside ── */
.gq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.gq-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; inset-block-start: 12px; min-inline-size: 0; }
.gq-who { display: flex; align-items: center; gap: 12px; }
.gq-who b { display: block; font-size: 16px; line-height: 1.3; color: var(--lm-d-ink); }
.gq-who small { display: block; font-size: 12.5px; color: var(--lm-d-muted); }

/* ── 15. the page: one screen, less air (Kamal 1-10) ── */
body .gq-page .fi-page-content { gap: 12px; }
.gq-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; color: var(--lm-d-ink); }
.gq-head-t { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--lm-d-ink); }
.gq-lead { margin-block-start: 2px; font-size: 13px; color: var(--lm-d-muted); max-inline-size: 110ch; }
.gq-head-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.gq-ah { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 9px 14px; border-block-end: 1px solid var(--lm-d-divider); }
.gq-ah b { font-size: 14.5px; font-weight: 700; color: var(--lm-d-ink); display: inline-flex; align-items: center; gap: 6px; }
.gq-ah b .gq-ic { inline-size: 16px; block-size: 16px; color: var(--lm-d-info); }
.gq-ah small { font-size: 12px; color: var(--lm-d-muted); }
.gq-ah .end { margin-inline-start: auto; }
.gq-link { display: inline-flex; align-items: center; gap: 4px; color: var(--lm-d-info); font-weight: 700; font-size: 13px; text-decoration: none; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.gq-link:hover { text-decoration: underline; }
.gq-link .gq-ic { inline-size: 14px; block-size: 14px; }
.gq-sub { font-size: 12px; color: var(--lm-d-muted); }
.gq-btn.is-sm { min-block-size: 34px; padding-inline: 12px; font-size: 13px; border-radius: 9px; }
.gq-btn .gq-ic { inline-size: 16px; block-size: 16px; }
.gq-in, .gq-select { block-size: 38px; border: 1px solid var(--lm-d-control-edge); border-radius: 10px; background: var(--lm-d-surface); color: var(--lm-d-ink); font: inherit; font-size: 13.5px; padding-inline: 10px; min-inline-size: 0; }
.gq-in:focus, .gq-select:focus { outline: 2px solid var(--lm-d-info); outline-offset: 0; }
.gq-search { display: flex; align-items: center; gap: 6px; block-size: 38px; border: 1px solid var(--lm-d-control-edge); border-radius: 10px; background: var(--lm-d-surface); padding-inline: 10px; color: var(--lm-d-subtle); min-inline-size: 260px; }
.gq-search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--lm-d-ink); outline: 0; min-inline-size: 0; }
.gq-search .gq-ic { inline-size: 16px; block-size: 16px; }
.gq-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; font-size: 13px; color: var(--lm-d-muted); border-block-start: 1px solid var(--lm-d-divider); }
.gq-pages { display: flex; gap: 4px; }
.gq-pages button { min-inline-size: 34px; block-size: 34px; border: 1px solid var(--lm-d-border); border-radius: 8px; background: var(--lm-d-surface); color: var(--lm-d-ink); font: inherit; font-size: 13px; cursor: pointer; }
.gq-pages button.is-on { border-color: var(--lm-d-accent); color: var(--lm-d-accent-ink); font-weight: 700; }
.gq-pages button:disabled { opacity: .45; cursor: default; }
.gq-table { inline-size: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.gq-table th { text-align: start; padding: 8px 12px; color: var(--lm-d-ink); font-weight: 700; font-size: 13px; border-block-end: 1px solid var(--lm-d-border); white-space: nowrap; background: var(--lm-d-surface); }
.gq-table td { padding: 6px 12px; border-block-end: 1px solid var(--lm-d-divider); color: var(--lm-d-ink); vertical-align: middle; }
.gq-table tbody tr:last-child td { border-block-end: 0; }
.gq-table tbody tr.is-click { cursor: pointer; }
.gq-table tbody tr.is-click:hover > td { background: var(--lm-d-hover); }
.gq-table tbody tr.is-open > td { background: var(--lm-d-row-hl); }
.gq-table tbody tr.is-open > td:first-child { box-shadow: inset -3px 0 0 var(--lm-d-accent); }
[dir='ltr'] .gq-table tbody tr.is-open > td:first-child { box-shadow: inset 3px 0 0 var(--lm-d-accent); }
.gq-table .gq-tag { min-block-size: 24px; font-size: 12px; padding-inline: 8px; }
.gq-ph { unicode-bidi: isolate; display: inline-block; padding-inline: 5px; border-radius: 6px; background: var(--lm-d-info-soft); color: var(--lm-d-info); font-size: 13px; font-weight: 700; }

/* ── 16. the journey strip: thirteen figures in one row, each opens its rows ── */
.gq-jr { display: flex; background: var(--lm-d-surface); border: 1px solid var(--lm-d-border); border-radius: 14px; box-shadow: 0 1px 2px var(--lm-d-shadow); overflow: hidden; }
.gq-jr-g { display: flex; flex-direction: column; gap: 2px; padding: 7px 8px 8px; border-inline-start: 1px solid var(--lm-d-divider); min-inline-size: 0; }
.gq-jr-g:first-child { border-inline-start: 0; }
.gq-jr-cap { font-size: 12px; font-weight: 700; color: var(--lm-d-info); padding-inline: 6px; white-space: nowrap; }
.gq-jr-g.is-quiet .gq-jr-cap { color: var(--lm-d-muted); }
.gq-jr-cells { display: flex; gap: 2px; }
.gq-jr-c { flex: 1 1 0; display: flex; flex-direction: column; padding: 2px 6px; border-radius: 8px; min-inline-size: 0; color: var(--lm-d-ink); text-decoration: none; }
a.gq-jr-c:hover { background: var(--lm-d-hover); }
.gq-jr-c b { font-size: 18px; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gq-jr-c b.is-ok { color: var(--lm-d-ok); }
.gq-jr-c b.is-na { color: var(--lm-d-subtle); }
.gq-jr-c span { font-size: 12px; color: var(--lm-d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gq-jr-g.is-n1 { flex: 1 1 0; } .gq-jr-g.is-n2 { flex: 2 1 0; } .gq-jr-g.is-n3 { flex: 3 1 0; } .gq-jr-g.is-n4 { flex: 4 1 0; } .gq-jr-g.is-n5 { flex: 5 1 0; }
.gq-empty { padding: 14px; text-align: center; color: var(--lm-d-muted); font-size: 13px; }

/* ── 17. «اعتماد الإرسال»: the batch beside the list of batches ── */
.gq-work { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; align-items: start; }
.gq-side { display: flex; flex-direction: column; gap: 12px; min-inline-size: 0; }
.gq-bl { display: flex; flex-direction: column; gap: 3px; inline-size: 100%; padding: 8px 14px; border: 0; border-block-end: 1px solid var(--lm-d-divider); background: var(--lm-d-surface); color: var(--lm-d-ink); font: inherit; text-align: start; cursor: pointer; }
.gq-bl:last-child { border-block-end: 0; }
.gq-bl:hover { background: var(--lm-d-hover); }
.gq-bl.is-on { background: var(--lm-d-row-hl); box-shadow: inset -3px 0 0 var(--lm-d-accent); }
[dir='ltr'] .gq-bl.is-on { box-shadow: inset 3px 0 0 var(--lm-d-accent); }
.gq-bl-t { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; }
.gq-bl-t .n { margin-inline-start: auto; font-size: 12.5px; font-weight: 500; color: var(--lm-d-muted); white-space: nowrap; }
.gq-bl-t .n b { color: var(--lm-d-ink); }
.gq-bl-m { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--lm-d-warn); }
.gq-bl-m.is-quiet { color: var(--lm-d-muted); }
.gq-bl-m .gq-ic, .gq-auto .gq-ic { inline-size: 14px; block-size: 14px; }
.gq-ch { display: inline-flex; align-items: center; gap: 5px; min-block-size: 28px; padding-inline: 10px; border-radius: 999px; border: 1px solid transparent; background: var(--lm-d-info-soft); color: var(--lm-d-info); font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
button.gq-ch { cursor: pointer; }
.gq-ch.is-add { background: transparent; border: 1px dashed var(--lm-d-control-edge); color: var(--lm-d-muted); }
.gq-bl .gq-ch { min-block-size: 22px; font-size: 12px; padding-inline: 8px; }
.gq-auto { display: inline-flex; align-items: center; gap: 6px; min-block-size: 30px; padding-inline: 12px; border-radius: 999px; background: var(--lm-d-warn-soft); color: var(--lm-d-warn); font-size: 12.5px; font-weight: 700; }
.gq-auto.is-quiet { background: var(--lm-d-quiet-bg); color: var(--lm-d-muted); }
.gq-bh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 16px; }
.gq-bh-t { font-size: 16px; font-weight: 700; color: var(--lm-d-ink); }
.gq-bh .end { margin-inline-start: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gq-bh .n { font-size: 13px; color: var(--lm-d-muted); display: inline-flex; align-items: center; gap: 5px; }
.gq-bh .n b { color: var(--lm-d-ink); }
.gq-bh .n .gq-ic { inline-size: 16px; block-size: 16px; }
.gq-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-block-start: 1px solid var(--lm-d-divider); }
.gq-col { padding: 10px 16px; display: flex; flex-direction: column; gap: 8px; min-inline-size: 0; }
.gq-col + .gq-col { border-inline-start: 1px solid var(--lm-d-divider); background: var(--lm-d-page); }
.gq-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--lm-d-ink); background: none; border: 0; padding: 0; font-family: inherit; text-align: start; }
.gq-h small { font-weight: 500; font-size: 12.5px; color: var(--lm-d-muted); }
button.gq-h { cursor: pointer; }
.gq-msg { border: 1px solid var(--lm-d-border); border-radius: 12px; background: var(--lm-d-surface); overflow: hidden; }
.gq-msg-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 12px; border-block-end: 1px solid var(--lm-d-divider); font-size: 13.5px; font-weight: 700; }
.gq-msg-h .gq-ic { inline-size: 16px; block-size: 16px; color: var(--lm-d-ok); }
.gq-msg-h .end { margin-inline-start: auto; font-size: 12.5px; font-weight: 500; color: var(--lm-d-muted); }
.gq-msg-h .end b { color: var(--lm-d-ink); }
.gq-msg-b { padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.gq-bub { background: var(--lm-d-page); border: 1px solid var(--lm-d-divider); border-radius: 14px 14px 14px 4px; padding: 7px 11px; font-size: 13.5px; line-height: 1.65; white-space: pre-line; color: var(--lm-d-ink); }
[dir='rtl'] .gq-bub { border-radius: 14px 14px 4px 14px; }
.gq-bub b { display: block; }
.gq-bub-l { font-size: 12px; color: var(--lm-d-muted); }
.gq-tpl { font-size: 12px; color: var(--lm-d-muted); }
.gq-base { font-size: 12.5px; color: var(--lm-d-muted); }
.gq-base summary { cursor: pointer; font-weight: 600; }
.gq-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 7px 10px; border-block-start: 1px solid var(--lm-d-divider); background: var(--lm-d-page); }
.gq-acts .gq-btn { min-block-size: 32px; font-size: 12.5px; padding-inline: 10px; border-radius: 9px; }
.gq-ai { display: inline-flex; align-items: center; gap: 5px; min-block-size: 32px; padding-inline: 10px; border-radius: 9px; border: 0; background: var(--lm-d-ai-bg); color: var(--lm-d-ai-ink); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.gq-ai .gq-ic { inline-size: 14px; block-size: 14px; }
.gq-ask { flex: 1 1 170px; display: flex; align-items: center; gap: 4px; block-size: 32px; border: 1px solid var(--lm-d-control-edge); border-radius: 9px; background: var(--lm-d-surface); padding-inline: 8px 3px; }
.gq-ask input { flex: 1; min-inline-size: 0; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--lm-d-ink); outline: 0; }
.gq-ask .gq-ai { min-block-size: 26px; padding-inline: 8px; }
.gq-prop { border: 1px solid var(--lm-d-ai); background: var(--lm-d-ai-bg); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.gq-prop-h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--lm-d-ai-ink); }
.gq-prop .gq-bub { background: var(--lm-d-surface); }
.gq-prop-x { display: flex; flex-wrap: wrap; gap: 6px; }
.gq-prop-x .gq-btn { min-block-size: 32px; font-size: 12.5px; }
.gq-fix { font-size: 12.5px; color: var(--lm-d-danger); }
.gq-edit { display: flex; flex-direction: column; gap: 4px; }
.gq-edit label { font-size: 12.5px; font-weight: 700; color: var(--lm-d-muted); }
.gq-edit textarea { inline-size: 100%; border: 1px solid var(--lm-d-control-edge); border-radius: 10px; background: var(--lm-d-surface); color: var(--lm-d-ink); font: inherit; font-size: 13.5px; line-height: 1.6; padding: 6px 10px; resize: vertical; }
.gq-chl { display: flex; align-items: center; gap: 8px; border: 1px solid var(--lm-d-border); border-radius: 12px; padding: 6px 12px; font-size: 13px; background: var(--lm-d-surface); min-inline-size: 0; }
.gq-chl b { font-size: 13.5px; white-space: nowrap; }
.gq-chl .gq-ic { inline-size: 16px; block-size: 16px; color: var(--lm-d-ok); flex: none; }
.gq-chl p { margin: 0; flex: 1; min-inline-size: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lm-d-muted); }
.gq-off { font-size: 12.5px; color: var(--lm-d-muted); }
.gq-reasons { display: flex; flex-wrap: wrap; gap: 5px; }
.gq-rs { display: inline-flex; align-items: center; min-block-size: 28px; border-radius: 999px; background: var(--lm-d-surface); border: 1px solid var(--lm-d-border); font-size: 12px; font-weight: 600; color: var(--lm-d-ink); }
.gq-rs button { border: 0; background: none; color: inherit; font: inherit; padding-inline: 10px 4px; cursor: pointer; min-block-size: 26px; }
.gq-rs a { color: inherit; opacity: .75; padding-inline: 2px 9px; text-decoration: none; display: inline-flex; }
.gq-rs a .gq-ic { inline-size: 13px; block-size: 13px; }
.gq-rs b { font-variant-numeric: tabular-nums; }
.gq-rs.is-on { background: var(--lm-d-tab-on-bg); border-color: var(--lm-d-tab-on-bg); color: var(--lm-d-tab-on-ink); }
.gq-rs.is-hot { background: var(--lm-d-danger-soft); border-color: var(--lm-d-danger-soft); color: var(--lm-d-danger); }
.gq-one { display: flex; flex-direction: column; gap: 4px; background: var(--lm-d-surface); border: 1px solid var(--lm-d-border); border-radius: 12px; padding: 7px 12px; }
.gq-one-w { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--lm-d-muted); }
.gq-one-w b { font-size: 13px; color: var(--lm-d-ink); }
.gq-one-w .end { margin-inline-start: auto; }
.gq-one p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--lm-d-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gq-one .gq-tag, .gq-li .gq-tag { min-block-size: 22px; font-size: 12px; padding-inline: 8px; }
.gq-more { display: flex; align-items: center; justify-content: center; gap: 6px; min-block-size: 38px; border: 1px dashed var(--lm-d-control-edge); border-radius: 10px; background: var(--lm-d-surface); color: var(--lm-d-info); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.gq-more .gq-ic { inline-size: 16px; block-size: 16px; }
.gq-note-l { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--lm-d-muted); line-height: 1.6; }
.gq-note-l .gq-ic { inline-size: 15px; block-size: 15px; flex: none; margin-block-start: 2px; }
.gq-list { border: 1px solid var(--lm-d-border); border-radius: 12px; background: var(--lm-d-surface); overflow: hidden; }
.gq-list-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 12px; font-size: 12.5px; color: var(--lm-d-muted); border-block-end: 1px solid var(--lm-d-divider); }
.gq-list-h .end { margin-inline-start: auto; }
.gq-list-b { max-block-size: 268px; overflow-y: auto; overscroll-behavior: contain; }
.gq-li { border-block-end: 1px solid var(--lm-d-divider); }
.gq-li:last-child { border-block-end: 0; }
.gq-li > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 12px; font-size: 12.5px; color: var(--lm-d-muted); cursor: pointer; }
.gq-li > summary::-webkit-details-marker { display: none; }
.gq-li > summary b { font-size: 13px; color: var(--lm-d-ink); }
.gq-li > summary a { color: inherit; }
.gq-li > summary .end { margin-inline-start: auto; }
.gq-li input[type='checkbox'] { inline-size: 17px; block-size: 17px; accent-color: var(--lm-d-tab-on-bg); cursor: pointer; flex: none; }
.gq-li.is-out { background: var(--lm-d-page); }
.gq-li.is-out > summary b { text-decoration: line-through; color: var(--lm-d-muted); }
.gq-li-why { padding: 0 12px 8px; padding-inline-start: 37px; font-size: 12.5px; color: var(--lm-d-danger); }
.gq-li-box { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px 8px; padding-inline-start: 37px; background: var(--lm-d-danger-soft); }
.gq-li-box .gq-in { flex: 1 1 180px; block-size: 34px; font-size: 13px; }
.gq-li-box .gq-btn { min-block-size: 34px; font-size: 13px; }
.gq-li-msg { padding: 0 12px 8px; padding-inline-start: 37px; display: flex; flex-direction: column; gap: 4px; }
.gq-li-msg .gq-bub { font-size: 13px; }
.gq-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-block-start: 1px solid var(--lm-d-divider); }
.gq-foot .sp { margin-inline-start: auto; display: flex; gap: 8px; }
.gq-foot .hint { font-size: 12.5px; color: var(--lm-d-muted); }
.gq-st { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 0 8px; align-items: center; padding: 5px 14px; font-size: 12.5px; color: var(--lm-d-ink); text-decoration: none; border-block-end: 1px solid var(--lm-d-divider); }
.gq-st:last-child { border-block-end: 0; }
.gq-st:hover { background: var(--lm-d-hover); }
.gq-st .v { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gq-st .w { font-size: 12px; font-weight: 700; color: var(--lm-d-muted); white-space: nowrap; }
.gq-st .w.is-us { color: var(--lm-d-accent-ink); }
.gq-st.is-hot { background: var(--lm-d-danger-soft); }
.gq-st.is-hot .v, .gq-st.is-hot .l { color: var(--lm-d-danger); font-weight: 700; }
.gq-recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-block-start: 10px; padding: 7px 16px; background: var(--lm-d-surface); border: 1px solid var(--lm-d-border); border-radius: 14px; font-size: 12.5px; }
.gq-recent > b { font-size: 13.5px; }
.gq-recent-i { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.gq-recent-i span { color: var(--lm-d-muted); }
.gq-recent .gq-tag { min-block-size: 22px; font-size: 12px; }
.gq-recent .end { margin-inline-start: auto; }

/* ── 18. «تقرير الأسبوع» ── */
.gq-sum { display: flex; gap: 10px; align-items: center; background: var(--lm-d-info-soft); border-radius: 12px; padding: 8px 14px; font-size: 13.5px; line-height: 1.7; color: var(--lm-d-ink); margin: 0; }
.gq-sum .gq-ic { color: var(--lm-d-info); }
.gq-strip.is-tight .gq-strip-c { padding: 8px 16px; }
.gq-strip.is-tight .gq-k-v { font-size: 22px; }
.gq-strip.is-tight .gq-k-v small { font-size: 13px; font-weight: 600; }
.gq-strip.is-tight .gq-k-l, .gq-strip.is-tight .gq-k-s { font-size: 12px; }
.gq-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.gq-mini { inline-size: 100%; border-collapse: collapse; font-size: 13px; }
.gq-mini th { font-size: 12px; color: var(--lm-d-muted); font-weight: 600; text-align: start; padding: 5px 14px; border-block-end: 1px solid var(--lm-d-divider); }
.gq-mini td { padding: 5px 14px; border-block-end: 1px solid var(--lm-d-divider); font-variant-numeric: tabular-nums; color: var(--lm-d-ink); }
.gq-mini tr:last-child td { border-block-end: 0; }
.gq-mini td.now { font-weight: 700; }
.gq-mini td.prev { color: var(--lm-d-muted); }
.gq-mini a { color: inherit; }
.gq-d { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 12.5px; color: var(--lm-d-subtle); }
.gq-d .gq-ic { inline-size: 13px; block-size: 13px; }
.gq-d.is-up { color: var(--lm-d-ok); }
.gq-d.is-dn { color: var(--lm-d-danger); }
.gq-src { font-size: 12px; color: var(--lm-d-subtle); padding: 4px 14px 8px; overflow-wrap: anywhere; }
.gq-word { display: flex; gap: 10px; align-items: flex-start; padding: 7px 14px; border-block-end: 1px solid var(--lm-d-divider); font-size: 13px; color: var(--lm-d-ink); text-decoration: none; }
.gq-word i { inline-size: 26px; block-size: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.gq-word i .gq-ic { inline-size: 15px; block-size: 15px; }
.gq-word i.is-ok { background: var(--lm-d-ok-soft); color: var(--lm-d-ok); }
.gq-word i.is-danger { background: var(--lm-d-danger-soft); color: var(--lm-d-danger); }
.gq-word i.is-quiet { background: var(--lm-d-quiet-bg); color: var(--lm-d-muted); }
.gq-word b { display: block; }
.gq-word small { font-size: 12.5px; color: var(--lm-d-muted); }
.gq-less { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gq-lesson { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 10px 16px; border-block-end: 1px solid var(--lm-d-divider); }
.gq-less .gq-lesson:nth-child(odd) { border-inline-end: 1px solid var(--lm-d-divider); }
.gq-lesson-s { font-size: 13.5px; font-weight: 600; line-height: 1.7; color: var(--lm-d-ink); }
.gq-lesson-m { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12.5px; color: var(--lm-d-muted); }
.gq-lesson-b { grid-row: 1 / 3; grid-column: 2; display: flex; gap: 6px; }
.gq-lesson-b .gq-btn { min-block-size: 36px; font-size: 13px; }

/* ── 19. «سجل الجروث»: chips + filters + one-line rows, the story beside them ── */
.gq-tb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 16px; border-block-end: 1px solid var(--lm-d-divider); }
.gq-tb .gq-search { margin-inline-start: auto; }
.gq-sep { inline-size: 1px; block-size: 24px; background: var(--lm-d-divider); margin-inline: 4px; }
.gq-flt { display: inline-flex; align-items: center; gap: 4px; block-size: 34px; padding-inline: 10px 4px; border: 1px solid var(--lm-d-border); border-radius: 10px; background: var(--lm-d-surface); font-size: 13px; color: var(--lm-d-muted); }
.gq-flt select { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--lm-d-ink); padding-inline: 2px 22px; block-size: 32px; cursor: pointer; }
.gq-flt.is-on { background: var(--lm-d-info-soft); border-color: var(--lm-d-info-soft); color: var(--lm-d-info); }
.gq-flt-x { border: 0; background: none; color: inherit; cursor: pointer; display: inline-flex; padding: 0 6px; }
.gq-flt-x .gq-ic { inline-size: 14px; block-size: 14px; }
.gq-who b { display: block; font-size: 13px; white-space: nowrap; }
.gq-who small, .gq-why small { display: block; font-size: 12px; color: var(--lm-d-muted); white-space: nowrap; }
.gq-why { white-space: nowrap; }
.gq-why small { color: var(--lm-d-warn); font-weight: 600; max-inline-size: 210px; overflow: hidden; text-overflow: ellipsis; }
.gq-why small.is-danger { color: var(--lm-d-danger); }
.gq-why button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.gq-aft { font-size: 12.5px; white-space: nowrap; }
.gq-aft span { color: var(--lm-d-muted); }
.gq-aft em { font-style: normal; color: var(--lm-d-info); font-weight: 700; margin-inline-start: 4px; }
.gq-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gq-tl li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 4px 0; font-size: 13px; position: relative; }
.gq-tl li::before { content: ''; position: absolute; inset-inline-start: 7px; inset-block: 20px -4px; border-inline-start: 2px solid var(--lm-d-divider); }
.gq-tl li:last-child::before { display: none; }
.gq-tl li i { inline-size: 14px; block-size: 14px; border-radius: 50%; background: var(--lm-d-surface); border: 2px solid var(--lm-d-control-edge); margin-block-start: 3px; position: relative; }
.gq-tl li.is-ok i { background: var(--lm-d-ok); border-color: var(--lm-d-ok); }
.gq-tl li.is-info i { background: var(--lm-d-info); border-color: var(--lm-d-info); }
.gq-tl li.is-accent i { background: var(--lm-d-accent); border-color: var(--lm-d-accent); }
.gq-tl li small { font-size: 12px; color: var(--lm-d-muted); white-space: nowrap; }
.gq-log .gq-panel { min-block-size: 0; max-block-size: none; position: static; }

/* ── 20. «نسخ الرسايل» ── */
.gq-inl { display: flex; background: var(--lm-d-surface); border: 1px solid var(--lm-d-border); border-radius: 14px; box-shadow: 0 1px 2px var(--lm-d-shadow); overflow: hidden; }
.gq-inl > div { flex: 1 1 0; display: flex; align-items: baseline; gap: 8px; padding: 7px 16px; border-inline-start: 1px solid var(--lm-d-divider); min-inline-size: 0; white-space: nowrap; }
.gq-inl > div:first-child { border-inline-start: 0; }
.gq-inl span { font-size: 12px; color: var(--lm-d-muted); overflow: hidden; text-overflow: ellipsis; }
.gq-inl b { font-size: 19px; font-variant-numeric: tabular-nums; }
.gq-inl small { font-size: 12px; color: var(--lm-d-muted); overflow: hidden; text-overflow: ellipsis; }
.gq-props { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 6px 14px 8px; }
.gq-pc { border: 1px solid var(--lm-d-border); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; min-inline-size: 0; }
.gq-pc.is-flag { border-color: var(--lm-d-warn); }
.gq-pc-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 7px 12px 3px; font-size: 13.5px; }
.gq-pc-h small { color: var(--lm-d-muted); font-size: 12px; }
.gq-pc-h .gq-tag { margin-inline-start: auto; min-block-size: 22px; font-size: 12px; }
.gq-pc-why { display: flex; gap: 5px; font-size: 12px; color: var(--lm-d-ai-ink); padding: 0 12px 4px; }
.gq-pc-why .gq-ic { inline-size: 13px; block-size: 13px; flex: none; margin-block-start: 3px; }
.gq-pc-x { margin: 0 12px 6px; background: var(--lm-d-page); border: 1px solid var(--lm-d-divider); border-radius: 12px; padding: 5px 10px; font-size: 12.5px; line-height: 1.6; color: var(--lm-d-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gq-pc .gq-edit { padding: 0 12px 6px; }
.gq-pc-v { padding: 0 12px 4px; font-size: 12px; color: var(--lm-d-danger); }
.gq-pc-f { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px 12px; border-block-start: 1px solid var(--lm-d-divider); background: var(--lm-d-page); margin-block-start: auto; }
.gq-pc-f .gq-btn { min-block-size: 32px; font-size: 12.5px; padding-inline: 11px; }
.gq-pc-f .gq-btn.is-primary { margin-inline-end: auto; }
.gq-pr { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.gq-pr b { font-size: 14px; font-variant-numeric: tabular-nums; min-inline-size: 30px; }
.gq-pr .bar { block-size: 5px; border-radius: 3px; background: var(--lm-d-divider); overflow: hidden; inline-size: 64px; }
.gq-pr .bar i { display: block; block-size: 100%; background: var(--lm-d-info); }
.gq-pr small { font-size: 12px; color: var(--lm-d-muted); }
.gq-pr.is-ok .bar i { background: var(--lm-d-ok); }
.gq-pr.is-danger b { color: var(--lm-d-danger); }
.gq-pr.is-danger .bar i { background: var(--lm-d-danger); }
.gq-ver b { display: block; font-size: 13.5px; }
.gq-ver small { font-size: 12px; color: var(--lm-d-muted); }
.gq-ver details { font-size: 12.5px; }
.gq-ver summary { cursor: pointer; color: var(--lm-d-info); font-weight: 700; display: inline; }
.gq-ver .gq-bub { margin-block-start: 4px; font-size: 12.5px; max-inline-size: 420px; }
.gq-small { display: block; font-size: 12px; color: var(--lm-d-warn); font-weight: 600; }
.gq-table tbody tr.is-paused > td { background: var(--lm-d-danger-soft); }
.gq-why-p { display: block; font-size: 12px; color: var(--lm-d-muted); max-inline-size: 220px; white-space: normal; }

/* ── 21. «سلّم البروكرز» ── */
.gq-warn { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--lm-d-warn); font-weight: 600; background: var(--lm-d-warn-soft); border-radius: 999px; padding: 5px 12px; }
.gq-warn .gq-ic { inline-size: 15px; block-size: 15px; }
.gq-ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 16px minmax(0, 1fr); background: var(--lm-d-surface); border: 1px solid var(--lm-d-border); border-radius: 16px; box-shadow: 0 1px 2px var(--lm-d-shadow); overflow: hidden; }
.gq-rung { display: flex; flex-direction: column; padding: 9px 16px; border: 0; border-inline-start: 1px solid var(--lm-d-divider); background: var(--lm-d-surface); color: var(--lm-d-ink); font: inherit; text-align: start; cursor: pointer; min-inline-size: 0; }
.gq-rung:first-child { border-inline-start: 0; }
.gq-rung:hover { background: var(--lm-d-hover); }
.gq-rung-l { font-size: 12.5px; color: var(--lm-d-muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.gq-rung-l em { font-style: normal; inline-size: 20px; block-size: 20px; border-radius: 50%; background: var(--lm-d-chip-bg); display: grid; place-items: center; font-size: 12px; color: var(--lm-d-ink); font-weight: 700; }
.gq-rung-v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.35; }
.gq-rung-s { font-size: 12px; color: var(--lm-d-muted); min-block-size: 18px; }
.gq-rung-bar { block-size: 4px; border-radius: 2px; background: var(--lm-d-divider); margin-block-start: 6px; overflow: hidden; }
.gq-rung-bar i { display: block; block-size: 100%; background: var(--lm-d-info); }
.gq-rung.is-on { background: var(--lm-d-row-hl); box-shadow: inset 0 -3px 0 var(--lm-d-accent); }
.gq-rung.is-quiet .gq-rung-v { color: var(--lm-d-muted); }
.gq-rung.is-quiet .gq-rung-bar i { background: var(--lm-d-subtle); }
.gq-gap { background: var(--lm-d-page); border-inline-start: 1px solid var(--lm-d-divider); }
.gq-table .gq-av { inline-size: 32px; block-size: 32px; border-radius: 9px; font-size: 13px; }

/* ── 22. «سياسات الجروث الذكي»: the steps as switches, then three columns of one-line fields ── */
body .gq-pol .fi-sc-section > .fi-section, body .gq-pol .fi-section { border-radius: 16px; box-shadow: 0 1px 2px var(--lm-d-shadow); }
body .gq-pol .fi-section-header { padding-block: 9px; }
body .gq-pol .fi-section-header-heading { font-size: 14.5px; }
body .gq-pol .fi-section-content { padding-block: 8px; }
body .gq-pol .gq-pol-steps .fi-section-content .fi-fo-field { border: 1px solid var(--lm-d-border); border-radius: 10px; padding: 6px 10px; }
body .gq-pol .fi-fo-field-label-content { font-size: 13px; }
body .gq-pol .gq-pol-col .fi-section-content { gap: 0; }
body .gq-pol .gq-pol-col .fi-fo-field { padding-block: 3px; border-block-end: 1px solid var(--lm-d-divider); }
body .gq-pol .gq-pol-col .fi-input-wrp { min-block-size: 32px; }
body .gq-pol .gq-pol-col .fi-input { padding-block: 4px; font-size: 13px; }
body .gq-pol .fi-sc-text, body .gq-pol .fi-fo-field-wrp-helper-text { font-size: 12px; }
.gq-ver-line { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--lm-d-muted); border: 1px solid var(--lm-d-border); border-radius: 12px; padding-inline: 12px; min-block-size: 40px; background: var(--lm-d-surface); }
.gq-ver-line b { color: var(--lm-d-ink); }

/* ── 23. empty states, the rows behind a number ── */
.gq-empty-card { border: 1px dashed var(--lm-d-control-edge); border-radius: 14px; padding: 22px; text-align: center; color: var(--lm-d-muted); font-size: 13.5px; background: var(--lm-d-surface); }
.gq-row-meta { font-size: 12.5px; color: var(--lm-d-muted); }
.gq-row-meta b { color: var(--lm-d-ink); font-weight: 600; }

/* ── 24. under 1024px: the page scrolls, columns stack, the story becomes a bottom sheet ── */
@media (max-width: 1023.98px) {
    .gq-jr { flex-wrap: wrap; }
    .gq-jr-g { flex: 1 1 100% !important; border-inline-start: 0; border-block-start: 1px solid var(--lm-d-divider); }
    .gq-jr-g:first-child { border-block-start: 0; }
    .gq-jr-cells { overflow-x: auto; scrollbar-width: none; }
    .gq-jr-c { flex: 0 0 auto; min-inline-size: 92px; }
    .gq-work, .gq-cols, .gq-3, .gq-less, .gq-props { grid-template-columns: minmax(0, 1fr); }
    .gq-col + .gq-col { border-inline-start: 0; border-block-start: 1px solid var(--lm-d-divider); }
    .gq-less .gq-lesson:nth-child(odd) { border-inline-end: 0; }
    .gq-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gq-strip-c:nth-child(3n + 1) { border-inline-start: 0; }
    .gq-strip-c:nth-child(n + 4) { border-block-start: 1px solid var(--lm-d-divider); }
    .gq-inl { flex-wrap: wrap; }
    .gq-inl > div { flex: 1 1 45%; border-block-start: 1px solid var(--lm-d-divider); }
    .gq-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gq-gap { display: none; }
    .gq-split, .gq-split.has-open { grid-template-columns: minmax(0, 1fr); }
    .gq-split.has-open .gq-list { border-inline-end: 0; }
    .gq-split.has-open .gq-panel { display: flex; position: fixed; inset-inline: 0; inset-block: auto 0; z-index: 45; max-block-size: 82dvh; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px var(--lm-d-sheet-shadow); }
    .gq-scroll-x { overflow-x: auto; }
    .gq-tb .gq-search { inline-size: 100%; min-inline-size: 0; }
    .gq-foot { position: sticky; inset-block-end: 0; background: var(--lm-d-surface); z-index: 5; }
    .gq-foot .gq-btn.is-primary { flex: 1 1 100%; justify-content: center; }
    .gq-foot .sp { margin-inline-start: 0; flex: 1 1 100%; }
    .gq-foot .sp .gq-btn { flex: 1 1 0; justify-content: center; }
    .gq-foot .hint { display: none; }
    .gq-head-t { font-size: 20px; }
}
@media (max-width: 640px) {
    .gq-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gq-strip-c:nth-child(n) { border-inline-start: 0; border-block-start: 1px solid var(--lm-d-divider); }
    .gq-strip-c:nth-child(-n + 2) { border-block-start: 0; }
    .gq-strip-c:nth-child(2n) { border-inline-start: 1px solid var(--lm-d-divider); }
    .gq-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gq-rung { padding: 8px 10px; }
    .gq-rung-v { font-size: 20px; }
    .gq-btn, .gq-ai, .gq-ch, .gq-rs button, .gq-pages button { min-block-size: 44px; }
    .gq-lesson { grid-template-columns: minmax(0, 1fr); }
    .gq-lesson-b { grid-row: auto; grid-column: auto; }
}

/* ── 25. small helpers ── */
.gq-strip.is-5 { --gq-cols: 5; }
.gq-strip.is-6 { --gq-cols: 6; }
.gq-reasons.is-pad { padding: 8px 14px 10px; }
.gq-rs a.is-full { opacity: 1; padding-inline: 10px; }
[dir='rtl'] .gq-flip { transform: none; }
[dir='ltr'] .gq-flip { transform: scaleX(-1); }

/* ── 26. the screenshots' pass (1-10): one line per row, one screen per page ── */
.gq-log .gq-table td:first-child { white-space: nowrap; }
.gq-ver details > summary { display: flex; align-items: baseline; gap: 4px; max-inline-size: 440px; white-space: nowrap; list-style: none; }
.gq-ver details > summary::-webkit-details-marker { display: none; }
.gq-ver details > summary small { overflow: hidden; text-overflow: ellipsis; min-inline-size: 0; color: var(--lm-d-muted); font-weight: 500; }
.gq-ver details > summary span { color: var(--lm-d-info); font-weight: 700; flex: none; }
.gq-sent { white-space: nowrap; }
.gq-sent .gq-small { display: inline; margin-inline-start: 6px; }
.gq-pc-why span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gq-small { white-space: nowrap; }
.gq-inl > div:first-child { flex-grow: 1.5; }
body .gq-pol .fi-fo-field.fi-fo-field-has-inline-label { grid-template-columns: minmax(0, 1fr) 128px; align-items: center; column-gap: 10px; }
body .gq-pol .fi-fo-field.fi-fo-field-has-inline-label .fi-fo-field-content-col { grid-column: auto; }
body .gq-pol .gq-pol-col .fi-section-content { padding-block: 4px; }
body .gq-pol .gq-pol-col .fi-fo-field-label-content { font-size: 13px; font-weight: 600; }
body .gq-pol .gq-pol-steps .fi-section-content .fi-fo-field { padding-block: 4px; }
body .gq-pol .fi-section-header-description { font-size: 12.5px; }
@media (max-width: 1023.98px) {
    .gq-head { grid-template-columns: minmax(0, 1fr); }
    .gq-head-acts { justify-content: flex-start; }
}

/* the story beside the log is a bottom sheet on a phone — only once a row is picked */
.gq-phone-x { display: none; }
@media (max-width: 1023.98px) {
    .gq-log .gq-split.has-open:not(.is-picked) .gq-panel { display: none; }
    .gq-phone-x { display: grid; }
}
.gq-pc-x { -webkit-line-clamp: 2; margin-block-end: 4px; }

/* ── 27. the phone pass (Kamal 1-10 «راجع الموبايل في كل الصفحات») ── */
@media (max-width: 1023.98px) {
    /* «اعتماد الإرسال»: the waiting batches first (pick one), then the batch, the last decisions, the choosing journey */
    .gq-work { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
    .gq-side { display: contents; }
    .gq-side-batches { order: -1; }
    .gq-main { order: 0; min-inline-size: 0; }
    .gq-side > :not(.gq-side-batches) { order: 1; }
    /* the one-line strip wraps: the label above its figure */
    .gq-inl > div { flex: 1 1 45%; flex-wrap: wrap; row-gap: 0; }
    .gq-inl > div > span:first-child { flex: 1 1 100%; white-space: normal; }
}
@media (max-width: 640px) {
    /* every list reads as cards: the main cell on top, each figure under its column's name */
    .gq-scroll-x { overflow: visible; }
    .gq-table thead { display: none; }
    .gq-table, .gq-table tbody { display: block; inline-size: 100%; }
    .gq-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding: 10px 14px; border-block-end: 1px solid var(--lm-d-divider); }
    .gq-table tbody tr:last-child { border-block-end: 0; }
    .gq-table td { display: block; padding: 0; border: 0; min-inline-size: 0; white-space: normal; }
    .gq-table td.is-main, .gq-table td.is-wide { grid-column: 1 / -1; }
    .gq-table td.is-at { grid-column: 3; grid-row: 1; text-align: end; }
    .gq-table td.is-at + td.is-main { grid-column: 1 / 3; grid-row: 1; }
    .gq-table td.is-act:has(.gq-btn) { grid-column: 1 / -1; }
    .gq-table td.is-act { align-self: end; }
    .gq-table td.is-act .gq-btn { inline-size: 100%; justify-content: center; min-block-size: 44px; }
    .gq-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--lm-d-muted); margin-block-end: 2px; }
    .gq-table tbody tr.is-open { background: var(--lm-d-row-hl); box-shadow: inset -3px 0 0 var(--lm-d-accent); }
    [dir='ltr'] .gq-table tbody tr.is-open { box-shadow: inset 3px 0 0 var(--lm-d-accent); }
    .gq-table tbody tr.is-open > td, .gq-table tbody tr.is-open > td:first-child, .gq-table tbody tr.is-paused > td { background: transparent; box-shadow: none; }
    .gq-log .gq-split:not(.is-picked) .gq-table tbody tr.is-open { background: transparent; box-shadow: none; }
    .gq-table tbody tr.is-paused { background: var(--lm-d-danger-soft); }
    .gq-who b, .gq-who small, .gq-why, .gq-why small, .gq-aft { white-space: normal; }
    .gq-ver details > summary { max-inline-size: 100%; flex-wrap: wrap; white-space: normal; }
    .gq-pr .bar { inline-size: 48px; }
    .gq-tb { padding: 8px 12px; }
    .gq-pager { flex-wrap: wrap; padding: 8px 12px; }
    .gq-recent { padding: 8px 12px; }
    .gq-recent-i { white-space: normal; flex-wrap: wrap; }
    .gq-bh .end { inline-size: 100%; margin-inline-start: 0; }
    .gq-auto { white-space: normal; }
    .gq-props { padding: 8px 12px; }
    .gq-ah { padding: 9px 12px; }
    .gq-lesson { padding: 10px 12px; }
    body .gq-pol .gq-pol-steps .fi-section-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
