/* עונים לי · השלד של «מערכת» (16.11.2026, אחיה: «שירגיש כמו בקוד של מערכות ברמה», ובחר בגרסה ב׳ מהדמו
   onimli-system-demo.pages.dev: «תעשה את ההמלצה שלך»).
   המסגרת: סרגל צד צמוד לקצה במחשב, שורה עליונה אחת בטלפון, סרגל חדרים צמוד למטה, כותרת חדר קבועה עם הפעולה שלה,
   חיפוש מהיר (⌘K) וקיצורי מקלדת (shell.js). ודקדוק אחד לכל הלוח: גובה פקדים אחד, שורת כלים אחת, שורות צפופות ברשימה
   אחת, מסגרות דקות. אותם צבעים, אותן אותיות ואותם ציורים: כל ערך כאן בא ממשתני המשפחה (family.css), ולכן גם מצב לילה
   עובד בלי שורה נוספת.
   ⛔ אותו קובץ בדיוק בשני הלוחות: maane site/assets/shell.css ו-wa-bot-saas public/assets/css/shell.css (גם shell.js).
   <html data-sys data-sys-app="maane|bot"> מדליק אותו. לפני הכניסה לחשבון (סרגל הצד מוסתר) המחשב נשאר כמו שהיה. */

html[data-sys] {
  --sys-side: 256px;
  --sys-bar: 56px;
  --sys-top: 0px;                                                     /* פס «נתוני דוגמה» של הבוט (sys.js מודד) */
  --sys-side-bg: color-mix(in srgb, var(--ivory) 55%, var(--page));
  --sys-hover: color-mix(in srgb, var(--ink) 5%, transparent);
  --sys-band: color-mix(in srgb, var(--ivory) 45%, var(--sheet));
  --sys-ctl: 36px;                                                    /* גובה פקד במחשב */
  --sys-head-h: 64px;                                                 /* ראש חדר במחשב */
}
html[data-sys] ::selection { background: color-mix(in srgb, var(--yellow) 60%, transparent); color: var(--ink); }
html[data-sys] .sys-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[data-sys] kbd {
  display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px;
  color: var(--ink-soft); background: var(--page); border: 1px solid var(--hair); border-radius: 6px;
  font: 12px/1 var(--f-body); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate;
}

/* ═════════ המחשב: מסגרת ═════════ */
@media (min-width: 1100px) {
  /* only once the side column is up: signed out (the bot's #roomnav[hidden], the phone product's #panel[hidden]) the page
     keeps its own top bar and its own width */
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) { --appbar-h: var(--sys-top); --roombar-h: 0px; }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(header.appbar, header.app-top) { display: none !important; }
  html[data-sys] .mock-badge { position: sticky; top: 0; z-index: 60; }

  /* the side column is the window's edge, not a card over it */
  html[data-sys] #roomnav:not([hidden]) {
    position: fixed !important; z-index: 40 !important;
    top: var(--sys-top) !important; bottom: 0 !important; inset-inline-start: 0 !important;
    display: flex !important; flex-direction: column !important; gap: 2px;
    width: var(--sys-side) !important; height: auto !important; margin: 0 !important; padding: 10px 10px 12px !important;
    overflow-y: auto; scrollbar-width: thin;
    background: var(--sys-side-bg) !important;
    border: 0 !important; border-inline-end: 1px solid var(--hair) !important; border-radius: 0 !important;
    box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  html[data-sys] #roomnav > .product-switch { display: none !important; }

  /* the business and the product: its logo (in the bot, the account's circle, where the helper sits: pal-view.js) and
     one key that opens the products' sheet as the pill did */
  html[data-sys] .sys-ws { display: flex; align-items: center; gap: 2px; margin: 0 0 6px; }
  html[data-sys] .sys-ws__seat { display: grid; flex: none; width: 42px; height: 48px; place-items: center; }
  html[data-sys] .sys-ws__seat > #switch-av { width: 34px !important; height: 34px !important; margin: 0 !important; border-width: 1.5px !important; font-size: 15px !important; }
  html[data-sys] .sys-ws__seat > #switch-av .sw-av__swap { transform: scale(0.85); }
  html[data-sys] :is(.sys-ws__seat > .appbar__brand:not([hidden]), .sys-ws__mark) {
    display: grid !important; width: 34px !important; height: 34px !important; place-items: center; margin: 0 !important; padding: 0 !important;
    background: var(--sheet) !important; border: 1px solid var(--hair) !important; border-radius: var(--leaf-xs) !important; box-shadow: none !important;
  }
  html[data-sys] :is(.sys-ws__seat > .appbar__brand, .sys-ws__mark) img { width: 24px !important; height: 24px !important; }
  html[data-sys] .sys-ws__seat > .appbar__brand .brand__txt { display: none !important; }
  html[data-sys] .sys-ws__btn {
    display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 4px 8px;
    color: var(--ink); background: none; border: 0; border-radius: var(--leaf-xs); text-align: start; cursor: pointer;
  }
  html[data-sys] .sys-ws__btn:hover { background: var(--sys-hover); }
  html[data-sys] .sys-ws__txt { display: grid; min-width: 0; flex: 1; }
  html[data-sys] .sys-ws__txt b { overflow: hidden; font: 15.5px/1.25 var(--f-ui); font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
  html[data-sys] .sys-ws__txt small { color: var(--ink-soft); font: 13px/1.3 var(--f-body); }
  html[data-sys] .sys-ws__btn > .sys-i { width: 16px; height: 16px; color: var(--ink-soft); }

  html[data-sys] .sys-find {
    display: flex; align-items: center; gap: 8px; width: 100%; height: var(--sys-ctl); margin: 0 0 10px; padding: 0 10px;
    color: var(--ink-soft); background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--leaf-xs);
    font: 15px/1 var(--f-body); cursor: text;
  }
  html[data-sys] .sys-find:hover { border-color: var(--line-strong); }
  html[data-sys] .sys-find > span { flex: 1; text-align: start; }
  html[data-sys] .sys-find > .sys-i { width: 17px; height: 17px; }

  /* the rooms, and the bell and the settings under them: one kind of line */
  html[data-sys] #roomnav :is(.roomtabs, .tabbar):not([hidden]) {
    position: static !important; display: flex !important; flex-direction: column !important; gap: 1px !important;
    width: auto !important; margin: 0 !important; padding: 0 !important;
    background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  html[data-sys] .sys-row { display: flex; }
  html[data-sys] #roomnav :is(.roomtabs a, .tabbar > button[data-room], .sd-icon, .sys-row) {
    align-items: center !important; justify-content: flex-start !important; gap: 10px !important;
    width: auto !important; min-height: 38px !important; height: auto !important; padding: 4px 8px !important;
    color: var(--ink-2) !important; background: none !important; border: 0 !important; border-radius: var(--leaf-xs) !important; box-shadow: none !important;
    font: 15.5px/1.2 var(--f-ui) !important; text-align: start; text-decoration: none !important;
  }
  html[data-sys] #roomnav :is(.roomtabs a, .tabbar > button[data-room], .sd-icon, .sys-row):hover { background: var(--sys-hover) !important; }
  html[data-sys] #roomnav :is(.roomtabs a[aria-current], .tabbar > button[aria-current="page"], .sd-icon[aria-current="page"]) {
    color: var(--ink) !important; background: var(--sheet) !important; box-shadow: 0 0 0 1px var(--hair), 0 1px 2px rgba(27, 26, 23, 0.06) !important;
  }
  html[data-sys] #roomnav :is(.roomtabs__ic, .tabbar__ic) { display: grid !important; flex: 0 0 30px !important; width: 30px !important; height: 26px !important; place-items: center; }
  html[data-sys] #roomnav :is(.roomtabs__ic, .tabbar__ic) svg { width: 20px !important; height: 20px !important; }
  html[data-sys] #roomnav .roomtabs__n { margin-inline-start: auto !important; transform: scale(0.9); }
  html[data-sys] #roomnav > :is(.sd-bar, .sd-top) {
    flex-direction: column !important; gap: 1px !important;
    margin: auto 0 0 !important; padding: 8px 0 0 !important; border-top: 1px solid var(--hair) !important;
  }
  html[data-sys] #roomnav :is(.sd-bar, .sd-top) .sd-icon > svg { flex: 0 0 30px !important; width: 30px !important; height: 20px !important; }
  html[data-sys] .sys-foot { display: flex; flex-direction: column; gap: 1px; }
  html[data-sys] .sys-row > .sys-i { flex: 0 0 30px; width: 30px; height: 19px; }

  /* the rooms take the whole width beside it */
  html[data-sys][data-sys-app="bot"]:has(#roomnav:not([hidden])) .page-app .app :is(.desk, .appfoot__in) {
    width: auto !important; max-width: none !important; margin: 0 !important;
    padding-inline: calc(var(--sys-side) + 40px) 40px !important;
  }
  html[data-sys][data-sys-app="maane"] #panel {
    --side-x: 0px; width: auto !important; max-width: none !important; margin: 0 !important;
    padding-inline: calc(var(--sys-side) + 40px) 40px !important;
  }
  html[data-sys][data-sys-app="maane"]:has(#panel:not([hidden])) main#main { padding-top: 0 !important; }

  /* each room's head: the name and its action, where they always are, a line under them as an app's view has. In the
     bot it is the room's own header; in the phone product it is the room's title, with «לסדר» laid over its far end.
     No wrapper round them: the phone product's arranging (arrange.js) moves every other child of the room */
  html[data-sys] :is(.page-app .room:not(#room-home) > .room__head, #panel section.room:not(#room-home) > h2.room__title) {
    position: sticky !important; top: var(--sys-top) !important; z-index: 20;
    display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important;
    min-height: var(--sys-head-h); margin: 0 -40px 18px !important; padding: 10px 40px !important;
    background: transparent; box-shadow: 0 1px 0 var(--hair);
  }
  html[data-sys].sys-scrolled :is(.page-app .room:not(#room-home) > .room__head, #panel section.room:not(#room-home) > h2.room__title) { background: var(--page); }
  html[data-sys] :is(.page-app .room > .room__head .room__title, #panel section.room:not(#room-home) > h2.room__title) { margin-block: 0 !important; font-size: 34px !important; line-height: 1.15 !important; }
  html[data-sys] .page-app .room > .room__head .room__keys { margin: 0 !important; flex: none; }
  /* «לסדר» comes before the title (arrange.js openKeys): it rides over the title's bar, at its far end */
  html[data-sys] #panel section.room:not(#room-home) > .ar-open:not([hidden]) {
    float: none !important; position: sticky !important; z-index: 21 !important; top: calc(var(--sys-top) + (var(--sys-head-h) - 36px) / 2) !important;
    display: flex !important; align-items: center; width: max-content; height: 36px; min-height: 0 !important;
    margin: calc((var(--sys-head-h) - 36px) / 2) 0 calc((var(--sys-head-h) + 36px) / -2) !important; margin-inline-start: auto !important;
  }
  /* the day's page has no tools under its name: no line, it scrolls with the page (left out of the rule above) */
  html[data-sys] .room__head .ar-rowkeys { position: static !important; }
  html[data-sys][data-sys-app="maane"] #panel > .demobar { margin-top: 12px; }
  html[data-sys] :is(.sys-key--find, .sys-bar__title) { display: none !important; }
}

/* ═════════ הטלפון והטאבלט: מסגרת ═════════ */
@media (max-width: 1099.98px) {
  /* one bar: the business, the product, and three keys of one size. Only once signed in: the sign-in page keeps its own header */
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(header.appbar, header.app-top) { position: sticky !important; top: 0 !important; z-index: 45 !important; background: var(--page) !important; }
  html[data-sys].sys-scrolled:has(#roomnav:not([hidden], [hidden] *)) :is(header.appbar, header.app-top) { box-shadow: 0 1px 0 var(--hair); }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(.appbar__in, .app-top__row) {
    position: relative; display: flex !important; align-items: center !important; gap: 2px !important;
    height: var(--sys-bar) !important; min-height: 0 !important; margin: 0 12px !important; padding: 0 !important;
  }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) #switch-av { width: 34px !important; height: 34px !important; margin-inline-end: 4px !important; border-width: 1.5px !important; font-size: 15px !important; }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) #switch-av .sw-av__swap { transform: scale(0.85); }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) .app-top__row > a.brand { width: 40px !important; height: 40px !important; padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) .app-top__row > a.brand img { width: 30px !important; height: 30px !important; }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(.appbar__in, .app-top__row) > #family {
    flex: none; margin: 0 !important; padding: 0 !important;
    background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(.appbar__in, .app-top__row) #family-pill {
    display: flex !important; align-items: center; gap: 5px !important; height: 40px !important; min-height: 0 !important; padding: 0 8px !important;
    color: var(--ink) !important; background: none !important; box-shadow: none !important; border: 0 !important; border-radius: var(--leaf-xs) !important;
    font: 18px/1 var(--f-ui) !important;
  }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(.appbar__in, .app-top__row) #family-pill svg { width: 14px !important; height: 14px !important; }
  /* the pill is the product here from the first frame: app.js folds the other keys away only once /api/family answers,
     and until then «בשיחות» and «בהודעות» stood beside it, two names for one product (live, 17.11.2026; maane #406) */
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(.appbar__in, .app-top__row) #family > a:not(#family-pill) { display: none !important; }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(.appbar__in, .app-top__row) > :is(.sd-bar, .sd-top) { gap: 4px !important; margin-inline-start: auto !important; }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(.appbar__in, .app-top__row) > .sys-key--find { margin-inline-start: auto !important; }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(.appbar__in, .app-top__row) > .sys-key--find + :is(.sd-bar, .sd-top) { margin-inline-start: 2px !important; }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(.appbar__in, .app-top__row) :is(.sd-icon, .sys-key):not([hidden]) {
    display: grid !important; width: 40px !important; height: 40px !important; min-width: 0 !important; place-items: center; padding: 0 !important;
    color: var(--ink) !important; background: none !important; border: 0 !important; border-radius: var(--leaf-xs) !important; box-shadow: none !important;
  }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(.appbar__in, .app-top__row) :is(.sd-icon, .sys-key):active { background: var(--sys-hover) !important; }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) .sys-key > .sys-i { width: 21px; height: 21px; }
  /* a finger's 44px on the bar's keys, and they look as they did: an unseen square over each (the keys side by side are
     4px apart for it), the product switch its full height */
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(.appbar__in, .app-top__row) :is(.sd-icon, .sys-key, .sw-av, #family-pill),
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) .app-top__row > a.brand { position: relative; }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(.appbar__in, .app-top__row) :is(.sd-icon, .sys-key, .sw-av)::after,
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) .app-top__row > a.brand::after { content: ""; position: absolute; inset: calc(50% - 22px); }
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) :is(.appbar__in, .app-top__row) #family-pill::after { content: ""; position: absolute; inset: -2px 0; }

  /* when the room's own name scrolls under the bar, the bar says it (as a phone's own apps do) */
  html[data-sys]:has(#roomnav:not([hidden], [hidden] *)) .sys-bar__title {
    position: absolute; inset-inline: 120px; top: 50%; overflow: hidden;
    color: var(--ink); font: 17px/1 var(--f-ui); text-align: center; white-space: nowrap; text-overflow: ellipsis;
    opacity: 0; transform: translateY(-50%); pointer-events: none;
  }
  html[data-sys].sys-titled:has(#roomnav:not([hidden], [hidden] *)) .sys-bar__title { opacity: 1; }
  html[data-sys].sys-titled:has(#roomnav:not([hidden], [hidden] *)) :is(.appbar__in, .app-top__row) > #family { opacity: 0; pointer-events: none; }

  /* the rooms' bar sits on the screen's edge, as the phone's own tab bar */
  html[data-sys][data-sys-app="bot"] #roomnav { inset: auto 0 0 0 !important; top: auto !important; height: auto !important; box-shadow: none !important; }
  html[data-sys] :is(#roomnav > .roomtabs, #tabbar) {
    position: relative; width: auto !important; height: auto !important; margin: 0 !important;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom)) !important;
    background: var(--sheet) !important; border: 0 !important; border-top: 1px solid var(--hair) !important; border-radius: 0 !important;
    box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  html[data-sys] #tabbar { position: fixed !important; inset: auto 0 0 0 !important; top: auto !important; }
  html[data-sys] :is(#roomnav > .roomtabs a, #tabbar > button) {
    height: 52px !important; min-height: 0 !important; background: none !important; box-shadow: none !important; border-radius: var(--leaf-xs) !important;
    font-size: 12px !important;
  }
  html[data-sys] .sys-foot, html[data-sys] .sys-ws, html[data-sys] .sys-find { display: none !important; }
}

html[data-sys] #panel section.room > h2.room__title ~ * { clear: both; }

html[data-sys]:not(:has(#roomnav:not([hidden], [hidden] *))) :is(.sys-key--find, .sys-bar__title) { display: none !important; }

/* ═════════ החיפוש המהיר (⌘K במחשב, הזכוכית המגדלת בטלפון) ═════════ */
.sys-pal[hidden] { display: none !important; }
.sys-pal { position: fixed; inset: 0; z-index: 3000; display: grid; align-items: start; justify-items: center; padding-top: 12vh; }
.sys-pal__scrim { position: absolute; inset: 0; background: rgba(48, 38, 18, 0.36); }   /* the dashboards' own sheets' veil */
@media (prefers-color-scheme: dark) { .sys-pal__scrim { background: rgba(0, 0, 0, 0.55); } }
.sys-pal__box {
  position: relative; display: flex; width: min(600px, calc(100vw - 32px)); max-height: min(580px, 76vh); flex-direction: column; overflow: hidden;
  color: var(--ink); background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--leaf-sm); box-shadow: var(--card-shadow);
}
.sys-pal__field { display: flex; flex: none; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--hair); }
.sys-pal__field > .sys-i { width: 20px; height: 20px; color: var(--ink-soft); }
.sys-pal__field input {   /* the dashboards' own fields have a frame of their own: not here */
  flex: 1; min-width: 0; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
  color: var(--ink); background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: none !important;
  font: 17px/1 var(--f-body) !important;
}
/* its field has no ring: the row shows where typing goes, inside the box (the box clips what is outside, 16.11.2026 audit) */
.sys-pal__field:focus-within { outline: 3px solid var(--ink); outline-offset: -6px; border-top-left-radius: inherit; border-top-right-radius: inherit; }
.sys-pal__field input::placeholder { color: var(--placeholder, var(--ink-soft)); }
.sys-pal__x { display: none; height: 40px; padding: 0 6px; color: var(--ink); background: none; border: 0; font: 16px/1 var(--f-ui); cursor: pointer; }
.sys-pal__list { flex: 1; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.sys-pal__group { padding: 10px 10px 4px; color: var(--ink-soft); font: 12.5px/1.2 var(--f-ui); }
.sys-pal__opt {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 10px;
  border-radius: var(--leaf-xs); cursor: pointer; font: 15.5px/1.25 var(--f-ui);
}
.sys-pal__opt[aria-selected="true"] { background: var(--ivory); }
.sys-pal__opt > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-2); }
.sys-pal__t { display: grid; min-width: 0; flex: 1; }
.sys-pal__t small { overflow: hidden; color: var(--ink-soft); font: 13px/1.35 var(--f-body); white-space: nowrap; text-overflow: ellipsis; }
.sys-pal__h { display: flex; flex: none; gap: 4px; color: var(--ink-soft); font: 13px/1 var(--f-body); }
.sys-pal__none { padding: 22px 12px; color: var(--ink-soft); font: 15px/1.4 var(--f-body); text-align: center; }
.sys-pal__foot { display: flex; flex: none; flex-wrap: wrap; gap: 6px 18px; padding: 9px 14px; color: var(--ink-soft); border-top: 1px solid var(--hair); font: 12.5px/1 var(--f-body); }
.sys-pal__foot > span { display: inline-flex; align-items: center; gap: 4px; }
.sys-pal kbd {
  display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px;
  color: var(--ink-soft); background: var(--page); border: 1px solid var(--hair); border-radius: 6px; font: 12px/1 var(--f-body);
  direction: ltr; unicode-bidi: isolate;
}
html.sys-pal-open { overflow: hidden; }
@media (max-width: 1099.98px) {
  .sys-pal { padding: 0; align-items: stretch; justify-items: stretch; }
  .sys-pal__box { width: 100%; max-height: none; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .sys-pal__field { padding-top: env(safe-area-inset-top); }
  .sys-pal__x { display: block; }
  .sys-pal :is(.sys-pal__esc, .sys-pal__foot, .sys-pal__h kbd) { display: none; }
  .sys-pal__opt { min-height: 48px; }
}

/* ═════════ ב׳ · מערכת: דקדוק אחד ═════════ */

/* the room's name is a view's name, not a poster */
html[data-sys] .room__title { font-size: 26px !important; line-height: 1.2 !important; }
html[data-sys] #room-home .room__title, html[data-sys] .sd-hi { font-size: 28px !important; }
@media (min-width: 1100px) {
  html[data-sys] { --sys-head-h: 58px; }
  html[data-sys] :is(.page-app .room > .room__head .room__title, #panel section.room:not(#room-home) > h2.room__title) { font-size: 28px !important; }
}

/* keys: one height. The yellow key stays the yellow key; the others are quiet, a thin line round them */
html[data-sys] :is(.room .room__keys :is(.btn, .room__more-btn, .linkbtn), #panel section.room > .ar-open) {
  min-height: var(--sys-ctl) !important; height: var(--sys-ctl) !important; padding-block: 0 !important; padding-inline: 14px !important; font-size: 15px !important;
}
html[data-sys] :is(.room .room__keys :is(.room__more-btn, .linkbtn, .btn--quiet, .btn--ghost), #panel section.room > .ar-open) {
  color: var(--ink) !important; background: var(--sheet) !important; border: 1px solid var(--hair) !important; box-shadow: none !important; border-radius: var(--leaf-xs) !important;
}
html[data-sys] :is(.room .room__keys :is(.room__more-btn, .linkbtn), #panel section.room > .ar-open):hover { border-color: var(--line-strong) !important; }

/* the state of a list: one quiet track, the chosen part raised */
html[data-sys] :is(.qtabs, .callchips):not([hidden]) {
  display: inline-flex !important; flex-wrap: nowrap !important; gap: 2px !important; padding: 3px !important;
  background: color-mix(in srgb, var(--ivory) 80%, var(--page)) !important; border: 0 !important; border-radius: var(--leaf-xs) !important;
  box-shadow: inset 0 0 0 1px var(--hair) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html[data-sys] :is(.qtabs, .callchips) .chip:not([hidden]) {
  display: inline-flex !important; align-items: center !important; justify-content: center;
  min-height: 30px !important; height: 30px; padding: 0 12px !important; gap: 6px !important;
  color: var(--ink-soft) !important; background: none !important; border: 0 !important; border-radius: 9px 3px 9px 3px !important; box-shadow: none !important;
  font: 14.5px/1 var(--f-ui) !important;
}
html[data-sys] :is(.qtabs, .callchips) .chip:hover { color: var(--ink) !important; }
html[data-sys] :is(.qtabs, .callchips) .chip[aria-pressed="true"] {
  color: var(--ink) !important; background: var(--sheet) !important; box-shadow: 0 0 0 1px var(--hair), 0 1px 3px rgba(27, 26, 23, 0.1) !important;
}
html[data-sys] :is(.qtabs, .callchips) .chip :is(.qtab__n, .callchips__n) {
  display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; margin: 0 !important;
  color: var(--page) !important; background: var(--ink) !important; border-radius: 999px; font: 12px/1 var(--f-body) !important; font-variant-numeric: tabular-nums;
}
html[data-sys] :is(.qtabs, .callchips) .chip :is(.qtab__n, .callchips__n):empty { display: none; }
html[data-sys] :is(.qtabs, .callchips) .chip :is(.qtab__n, .callchips__n)::before { content: none !important; }

/* search and filters: the same height as everything else in the row */
html[data-sys] #room-chats .queue__search input {
  height: var(--sys-ctl) !important; min-height: 0 !important; padding-block: 0 !important;
  background-color: var(--field-white) !important; border: 1px solid var(--ink-soft) !important; border-radius: var(--leaf-xs) !important; box-shadow: none !important;
  font-size: 15px !important;
}
html[data-sys] #room-chats .queue__filter select {
  height: var(--sys-ctl) !important; min-height: 0 !important; padding-block: 0 !important; padding-inline: 12px 30px !important;
  background-color: var(--sheet) !important; border: 1px solid var(--hair) !important; border-radius: var(--leaf-xs) !important; box-shadow: none !important;
  font: 14.5px/1 var(--f-ui) !important;
}
html[data-sys] #calls-toolbar .datepick { flex: none; width: var(--sys-ctl) !important; height: var(--sys-ctl) !important; border-radius: var(--leaf-xs) !important; box-shadow: inset 0 0 0 1px var(--hair) !important; }
html[data-sys] #calls-toolbar .datepick .pick { border-radius: var(--leaf-xs) !important; }
html[data-sys] #calls-toolbar .datepick .i { width: 18px !important; height: 18px !important; }

/* the lists: one sheet, a thin line between lines (not a card for every line) */
html[data-sys] #room-chats .queue__box,
html[data-sys] #calls-list:has(.callday) {
  background: var(--sheet) !important; border: 1px solid var(--hair) !important; border-radius: var(--leaf-sm) !important; box-shadow: none !important; overflow: hidden;
}
html[data-sys] #qlines .qday,
html[data-sys] #calls-list .callday__head {
  display: flex; align-items: center; gap: 10px; min-height: 34px !important; margin: 0 !important; padding: 4px 14px !important;
  background: var(--sys-band) !important; border-bottom: 1px solid var(--hair); box-shadow: none !important;
}
html[data-sys] :is(#qlines .qday__label, #calls-list .callday__label) { margin: 0 !important; font: 13.5px/1.2 var(--f-ui) !important; }
html[data-sys] :is(#qlines .qday__count, #calls-list .callday__count) { color: var(--ink-soft) !important; background: none !important; font: 13px/1.2 var(--f-body) !important; padding: 0 !important; }
html[data-sys] #calls-list .callday__seen { min-height: 28px !important; margin-inline-start: auto; padding: 0 8px !important; font-size: 13px !important; border: 0 !important; box-shadow: none !important; background: none !important; text-decoration: underline; text-underline-offset: 3px; }
html[data-sys] #calls-list .callday { margin: 0 !important; }
html[data-sys] #calls-list .callday + .callday { border-top: 1px solid var(--hair); }
html[data-sys] #calls-list .rowlist { gap: 0 !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }

html[data-sys] #qlines .qrow,
html[data-sys] #calls-list .callline {
  align-items: center !important; gap: 6px !important; margin: 0 !important; padding: 0 !important; padding-inline-end: 10px !important;
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
html[data-sys] #qlines .qrow + .qrow,
html[data-sys] #calls-list .callline + .callline { border-top: 1px solid var(--hair) !important; }
html[data-sys] #qlines .qrow:hover,
html[data-sys] #calls-list .callline:hover { background: color-mix(in srgb, var(--ivory) 45%, transparent) !important; }
html[data-sys] #qlines .qrow:has(.qline[aria-current="true"]),
html[data-sys] #calls-list .callline:has([aria-current="true"], .is-open, .is-on) { background: var(--ivory) !important; }

html[data-sys] #qlines .qline {
  grid-template-columns: 32px minmax(0, 1fr) !important; column-gap: 10px !important; align-items: start;
  padding: 10px 14px !important; background: none !important; border-radius: 0 !important; box-shadow: none !important;
}
html[data-sys] #qlines .qline__av { width: 32px !important; height: 32px !important; font-size: 14px !important; box-shadow: 0 0 0 2px var(--sheet), 0 0 0 3.5px currentColor !important; }
html[data-sys] #qlines .qline__main { gap: 2px !important; }
html[data-sys] #qlines .qline__top { min-height: 0 !important; }
html[data-sys] #qlines .qline__name { font-size: 15.5px !important; }
html[data-sys] #qlines .qline__when { font-size: 13px !important; color: var(--ink-soft) !important; font-variant-numeric: tabular-nums; }
html[data-sys] #qlines .qline__ask {
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;
  margin: 0 !important; font-size: 15px !important; line-height: 1.4 !important;
}
html[data-sys] #qlines .qline__meta {
  display: flex !important; flex-wrap: wrap !important; align-items: center; gap: 2px 10px !important; margin: 2px 0 0 !important;
  color: var(--ink-soft); font-size: 13px !important; line-height: 1.35 !important;
}
html[data-sys] #qlines .qline__meta > * { margin: 0 !important; font-size: 13px !important; white-space: nowrap; }
html[data-sys] #calls-list .callrow { gap: 3px !important; padding: 10px 14px !important; }
html[data-sys] #calls-list .callrow__who { font-size: 15.5px !important; }
html[data-sys] #calls-list .callrow__what { font-size: 14.5px !important; }

/* the line's one key («חזרתי»): small and quiet, a line round it */
html[data-sys] :is(#qlines .qrow, #calls-list .callline) > .btn {
  min-height: 32px !important; height: 32px; padding: 0 10px !important; gap: 5px !important; flex: none;
  color: var(--ink) !important; background: var(--sheet) !important; border: 1px solid var(--hair) !important; border-radius: var(--leaf-xs) !important; box-shadow: none !important;
  font-size: 14px !important;
}
html[data-sys] :is(#qlines .qrow, #calls-list .callline) > .btn svg { width: 16px !important; height: 16px !important; }
html[data-sys] :is(#qlines .qrow, #calls-list .callline) > .btn:hover { border-color: var(--line-strong) !important; }

/* the open one beside the list: the same thin edge */
html[data-sys] #room-chats .queue__pane,
html[data-sys] #call-pane { border: 1px solid var(--hair) !important; border-radius: var(--leaf-sm) !important; box-shadow: none !important; }
html[data-sys] #room-chats .inq-card { border: 0 !important; box-shadow: none !important; }
html[data-sys] #lead-reminder { min-height: 0 !important; padding: 9px 14px !important; border-radius: var(--leaf-xs) !important; font-size: 14.5px !important; }

@media (min-width: 1100px) {
  html[data-sys] { --sys-ctl: 36px; }
  /* one tools' row over the list and the open one: the state, the search, the filters */
  html[data-sys] #room-chats .queue {
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr) !important; grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 12px 20px !important;
  }
  html[data-sys] #room-chats .queue__head { grid-area: 1 / 1 / 2 / 3 !important; flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 10px !important; }
  html[data-sys] #room-chats .queue__tools { display: flex !important; flex: 1 1 auto !important; flex-wrap: nowrap !important; align-items: center !important; gap: 8px !important; min-width: 0; }
  html[data-sys] #room-chats .queue__search { flex: 1 1 auto !important; max-width: 440px; min-width: 200px; margin: 0 !important; }
  html[data-sys] #room-chats .queue__filters { flex: none !important; gap: 6px !important; margin: 0 !important; }
  html[data-sys] #room-chats .queue__list { grid-area: 2 / 1 / 3 / 2 !important; }
  /* the list is what scrolls here (app-rooms.css); the sheet's clip above took that away (17.11.2026, «אי אפשר לגלול») */
  html[data-sys] #room-chats .queue__box { overflow-y: auto; }
  html[data-sys] #room-chats .queue__pane { grid-area: 2 / 2 / 3 / 3 !important; }

  html[data-sys][data-sys-app="maane"] #room-calls { --col: 1400px; }
  html[data-sys] #calls-toolbar .callchips { flex: none !important; width: auto !important; }
  html[data-sys] #calls-toolbar .callchips .chip { flex: none !important; padding-inline: 14px !important; }
  html[data-sys] #room-calls .callsdesk {
    display: grid !important; grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr) !important; grid-template-rows: auto 1fr !important; gap: 12px 20px !important;
  }
  html[data-sys] #room-calls .callsdesk__list { display: contents !important; }
  html[data-sys] #calls-toolbar { grid-column: 1 / -1 !important; grid-row: 1 !important; position: static !important; margin: 0 !important; padding: 0 !important; justify-content: flex-start !important; background: none !important; }
  html[data-sys] #calls-list { grid-column: 1 !important; grid-row: 2 !important; align-self: start; }
  html[data-sys] #call-pane { grid-column: 2 !important; grid-row: 2 !important; margin: 0 !important; top: calc(var(--sys-top) + 72px) !important; }

  /* the day's page: what is waiting beside what is next, not one narrow column in the middle */
  html[data-sys][data-sys-app="maane"] #room-home:not([hidden]) {
    --col: 1080px; display: grid !important; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 28px; align-items: start;
  }
  html[data-sys][data-sys-app="maane"] #room-home > * { grid-column: 1; }
  html[data-sys][data-sys-app="maane"] #room-home > #home-next { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: 24px; margin: 0 !important; }
}
@media (max-width: 1099.98px) {
  html[data-sys] { --sys-ctl: 40px; }
  /* the phone: the state on its own row, then the search, then the filters as one sliding row */
  html[data-sys] #room-chats .queue__head { gap: 10px !important; }
  html[data-sys] #room-chats .qtabs { width: 100%; }
  html[data-sys] #room-chats .qtabs .chip { flex: 1 1 0; justify-content: center; }
  html[data-sys] #room-calls .callchips { flex: 1 1 auto; }
  html[data-sys] #room-calls .callchips .chip { flex: 1 1 0; justify-content: center; position: relative; }
  html[data-sys] #room-calls .callchips .chip::after { content: ""; position: absolute; inset: -7px 0; }   /* 30px chips (32 under hand.css), a 44px finger */
  html[data-sys] #panel section.room > .ar-open::after { content: ""; position: absolute; inset: -3px 0; }   /* 40px, and a line under it may cover one */
  html[data-sys] #calls-toolbar .datepick { width: 44px !important; height: 44px !important; }   /* it clips itself (Safari's select): no unseen edge */
  html[data-sys] #room-chats .queue__tools { display: grid !important; gap: 8px !important; width: 100%; }
  html[data-sys] #room-chats .queue__filters {
    display: flex !important; flex-wrap: nowrap !important; gap: 6px !important; margin: 0 -16px !important; padding: 0 16px 2px !important;
    overflow-x: auto; scrollbar-width: none;
  }
  html[data-sys] #room-chats .queue__filters::-webkit-scrollbar { display: none; }
  html[data-sys] #room-chats .queue__filter select { height: 34px !important; font-size: 14px !important; }
  html[data-sys] #qlines .qline__ask { -webkit-line-clamp: 2; }
  html[data-sys] #calls-toolbar { padding-block: 8px !important; }
}
