/* «לסדר» (7.11.2026, Achiya chose א׳ of dash-flex.onimli.pages.dev; arrange.js): the key by the title of «שיחות» and
   «נתונים», the parts as cards of paper on the table while arranging (8.11.2026, «על השולחן», א׳ of
   arrange-feel.onimli.pages.dev), the drawer at the foot with «סיום», and the tabs as keys you pick up. Only the
   dashboard's own tokens, so night follows. */

/* what the business hid */
.ar-off { display: none !important; }

/* the key */
.ar-open { float: left; float: inline-end; position: relative; z-index: 1; gap: 4px; margin-top: 2px; }
.ar-open[hidden] { display: none; }
.ar-ic { display: inline-grid; place-items: center; }
.ar-ic svg { width: 18px; height: 18px; }

/* the tabs while arranging: raised keys you pick up, each with its ✕; «היום» stays first, pinned, and can't go */
#tabbar > .ar-tab-edit { background: var(--sheet); border-radius: 14px; box-shadow: 0 0 0 1px var(--hair), 0 6px 12px -6px rgba(27, 26, 23, 0.34); cursor: grab; touch-action: none; -webkit-touch-callout: none; }
#tabbar > .ar-tab-home { position: relative; }
#tabbar .ar-tabpin { position: absolute; z-index: 3; top: 0; inset-inline-start: 6px; width: 16px; height: 19px; color: var(--ink); pointer-events: none; }
/* by the bar's id: `.tabbar button` (and its glass and simple-mode versions) would make the ✕ a tab in the row */
#tabbar > .ar-tabx { position: absolute; z-index: 3; display: grid; width: 24px; min-width: 0; height: 24px; min-height: 0; place-items: center; padding: 0; color: var(--sheet); background: var(--ink); border: 2px solid var(--sheet); border-radius: 50%; box-shadow: none; transform: none; cursor: pointer; }
#tabbar > .ar-tabx::before { content: ""; position: absolute; inset: -10px; }
#tabbar > .ar-tabx svg { width: 12px; height: 12px; }
#tabbar:has(> .ar-off[aria-current]) .sd-tabdot { display: none; }   /* the open room's tab is hidden: no dot under nothing */

/* a part or a tab on its way (8.11.2026, «כמו השיטה של אפל שהכל מרגיש מוחשי», as the bot's dashboard): picked up a touch
   bigger with a spring and a deep shadow (--lift: arrange.js liftOf, less for a wide one), carried above the rest, and put
   down the same way (.ar-drop: putDown, its flight into place) */
:root { --ar-spring: cubic-bezier(0.34, 1.56, 0.64, 1); --ar-shadow: 0 24px 50px rgba(27, 26, 23, 0.22), 0 6px 14px rgba(27, 26, 23, 0.1); }
.ar-lift, .ar-drop { position: relative; z-index: 30; transition: scale 0.32s var(--ar-spring), rotate 0.32s var(--ar-spring), box-shadow 0.32s ease; }
.ar-lift { scale: var(--lift, 1.03); box-shadow: var(--ar-shadow); }
html.ar-dragging, html.ar-dragging body { overflow-x: clip; }   /* a card past the edge doesn't widen the page (a phone zooms out) */
html[data-ar-edit] .ar-b { transform-origin: 50% 0; }        /* a card rises from its top edge; in the hand, arrange.js drag holds it where the finger is */
html.ar-dragging, html.ar-dragging * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }

/* «על השולחן»: every part is a card of paper on the table, the whole card is what you hold */
/* !important: a part that is a strip of the page (the calls' filter bar: sticky, edge to edge) is a card like the others while
   arranged, in the flow and inside the screen (its ✕ past the edge widened the page by 24px on a phone) */
html[data-ar-edit] .ar-b {
  position: relative !important; inset: auto !important; margin: 18px 10px !important; border-radius: var(--leaf-sm);
  box-shadow: 0 0 0 10px var(--sheet), 0 0 0 11px var(--hair), 0 18px 30px -16px rgba(27, 26, 23, 0.34);
  cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: box-shadow 0.3s ease, scale 0.32s var(--ar-spring), rotate 0.32s var(--ar-spring), opacity 0.2s;
}   /* they rise one after the other as the mode opens: arrange.js setEditing (in CSS it would start again whenever a card moves) */
html[data-ar-edit] :is(.ar-b.ar-bare, #calls-toolbar.ar-b) { background: var(--sheet) !important; }   /* the filter bar's own is the page's */
html[data-ar-edit] .ar-b > :not(.ar-mark) { pointer-events: none; }   /* nothing in a card is pressed while it is arranged */
html[data-ar-edit] .ar-b:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 13px; }
/* in the hand it is above everything, the drawer and the tabs too (!important: the filter bar's own z-index, 6, outranks a class);
   over the drawer it goes small around the finger, about to go in */
html[data-ar-edit] .ar-b.ar-lift { z-index: 90 !important; box-shadow: 0 0 0 10px var(--sheet), 0 0 0 11px var(--hair), 0 34px 56px -14px rgba(27, 26, 23, 0.42), 0 8px 18px rgba(27, 26, 23, 0.12); cursor: grabbing; }
html[data-ar-edit] .ar-b.ar-into { scale: 0.42; opacity: 0.9; }
.ar-probe { position: absolute; width: 0; height: 0; pointer-events: none; }   /* arrange.js drag: the point the finger holds */
/* the handle at the card's top edge, and ✕ at its far corner (the title starts at the near one) */
.ar-grab { position: absolute; top: -7px; left: 50%; width: 38px; height: 5px; translate: -50% 0; background: color-mix(in srgb, var(--ink) 24%, transparent); border-radius: 3px; pointer-events: none; }
.ar-xb { position: absolute; z-index: 3; top: -17px; inset-inline-end: -17px; display: grid; width: 30px; height: 30px; place-items: center; padding: 0; color: var(--sheet); background: var(--ink); border: 2px solid var(--sheet); border-radius: 50%; box-shadow: 0 3px 8px rgba(27, 26, 23, 0.22); cursor: pointer; }
.ar-xb::before { content: ""; position: absolute; inset: -9px; }
.ar-xb svg { width: 13px; height: 13px; }
:is(.ar-xb, .ar-desk button, .ar-tabx):focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ar-tabpin svg { display: block; width: 100%; height: 100%; }
:is(.ar-tabpin, .ar-desk__drawer) svg :is(path, rect) { stroke-dasharray: 1; animation: ar-draw 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both, ar-ink 0.7s steps(1, end) 0.25s both; }
.ar-hint { margin: 2px 0 4px; color: var(--ink-2); font: 16px/1.5 var(--f-ui); text-align: center; text-wrap: balance; }
html[data-ar-edit] .room:not([hidden]) { padding-bottom: 120px; }
html[data-ar-edit] .toast { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 86px); }
html:has(.ar-desk.is-open) .toast { display: none; }   /* the open drawer shows what went in, and the toast would cover it */
html[data-ar-edit] .samplekey { display: none; }

/* the drawer at the foot, with «סיום», above the tabs */
.ar-desk { position: fixed; z-index: 45; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 14px); left: 50%; display: flex; align-items: center; gap: 4px; padding: 6px; background: var(--sheet); border-radius: 999px; box-shadow: 0 0 0 1px var(--hair), 0 14px 34px rgba(27, 26, 23, 0.2); translate: -50% 0; transition: scale 0.3s var(--ar-spring), box-shadow 0.25s ease; }
.ar-desk[hidden] { display: none; }
.ar-desk > button { display: inline-flex; min-height: 48px; align-items: center; gap: 8px; padding: 0 20px; color: var(--ink); background: none; border: 0; border-radius: 999px; font: 17px/1 var(--f-ui); white-space: nowrap; cursor: pointer; }
.ar-desk > button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ar-desk .ar-desk__end, .ar-desk .ar-desk__end:hover { color: #1b1a17; background: var(--yellow); }
.ar-desk__drawer .ar-ic svg { width: 24px; height: 24px; }
.ar-desk__n { min-width: 24px; height: 24px; padding: 0 7px; box-sizing: border-box; color: var(--sheet); background: var(--ink); border-radius: 12px; font: 14px/24px var(--f-ui); text-align: center; }
.ar-desk__n[hidden] { display: none; }
.ar-desk.is-over { scale: 1.1; box-shadow: 0 0 0 3px var(--yellow), 0 18px 40px rgba(27, 26, 23, 0.28); }
.ar-desk.is-over .ar-desk__drawer { background: color-mix(in srgb, var(--yellow) 40%, transparent); }
.ar-desk__open { position: absolute; bottom: calc(100% + 12px); left: 50%; width: min(calc(100vw - 32px), 420px); box-sizing: border-box; padding: 16px 16px 10px; background: var(--sheet); border-radius: 22px; box-shadow: 0 0 0 1px var(--hair), 0 22px 46px rgba(27, 26, 23, 0.24); translate: -50% 0; }
.ar-desk__open[hidden] { display: none; }
.ar-desk__title { margin: 0; color: var(--ink-2); font: 16px/1.45 var(--f-ui); }
.ar-folds { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; padding: 0; list-style: none; }
.ar-folds:empty { display: none; }
.ar-fold__back { margin-inline-end: 6px; font-size: 17px; }
.ar-reset { display: flex; margin: 8px auto 0; }   /* «לסדר הכל כמו בהתחלה», at the drawer's end */

@keyframes ar-draw { from { stroke-dashoffset: 1; } }
@keyframes ar-ink { from { fill-opacity: 0; } }
@media (prefers-color-scheme: dark) {
  html[data-ar-edit] .ar-b { box-shadow: 0 0 0 10px var(--sheet), 0 0 0 11px var(--hair), 0 18px 30px -14px rgba(0, 0, 0, 0.6); }
  html[data-ar-edit] .ar-b.ar-lift { box-shadow: 0 0 0 10px var(--sheet), 0 0 0 11px var(--hair), 0 34px 56px -12px rgba(0, 0, 0, 0.7); }
}
@media (prefers-reduced-motion: reduce) {
  .ar-lift, .ar-drop, html[data-ar-edit] .ar-b, .ar-desk { transition: none; }
  :is(.ar-tabpin, .ar-desk__drawer) svg :is(path, rect) { animation: none; }
}
