/* ═══ THE APP'S OWN PANEL — laptop only ═══════════════════════════════════
   His call, 2026-09-14: "its ugly. so every single app deserves a side panel
   now." The second bar row is gone; everything it carried — the trail, the
   app's name, its sections and its own controls — stands in a panel beside
   the rail, the way Projects already had one.

   ⚠ IT CANNOT SCROLL. The Projects tree is position:sticky and still slid
   395px with the work panel, which is the thing he complained about. This
   panel is a flex child of the row: it is exactly as tall as the row, it
   hides its own overflow, and only the LIST inside it scrolls. Nothing can
   move it.
   ⚠ SAME FILL AS THE WORK PANEL. Rail dark, panel and work on the paper grey,
   the ground showing between them. A white panel here would make a third
   surface, which is what the 22-app survey says never to do.
   ⚠ The nodes in it are the module's OWN elements, moved — never redrawn.
   topbar.js owns the moving; this file only says how they look once here.
   ═════════════════════════════════════════════════════════════════════════ */
@media (min-width:761px){
  /* ⚠ THE WIDTH IS A NUMBER HE SETS. 214 is only where it starts; drag the right
     edge and it is remembered. Everything that needs the width reads the same
     variable, so there is no second copy of it to fall out of step. */
  :root{--as-w:214px}
  /* ⚠ JOINED TO THE WORK, NOT FLOATING BESIDE IT. His call: “i dont want that gap,
     you can see in the clickup the sidepanel and the main is connected together”.
     The panel and the work area are ONE panel with a rule down the middle; the rail
     is the only thing still standing on its own.
     ⚠ A NEGATIVE RIGHT MARGIN, not a change to the row’s gap. The gap is what holds
     the rail off the panel, and it is the same gap — zeroing it would push the rail
     against the panel too. The panel eats the gutter on its right side only.
     ⚠ Rounded on the LEFT only. Two rounded corners meeting is a notch, and this is
     one shape now, not two touching. */
  #appside{width:var(--as-w);flex-shrink:0;background:var(--paper);position:relative;
    border-radius:var(--r-panel) 0 0 var(--r-panel);
    border-right:1px solid var(--rule);
    margin-right:calc(-1 * var(--gutter));
    display:flex;flex-direction:column;overflow:hidden;
    box-shadow:0 1px 2px rgba(var(--shade-rgb),.05)}
  #appside[hidden]{display:none}
  /* the work area gives up the corners it shares with the panel — and takes them
     straight back on any screen that has no panel, and while one slides away. */
  body > .app > #appside:not([hidden]):not(.as-shut) + main{
    border-top-left-radius:0;border-bottom-left-radius:0}

  /* ── the switch, and the app changing ───────────────────────────────
     ⚠ MARGIN, NOT WIDTH. Shrinking the panel’s width reflows everything inside it
     on the way out — the rows re-wrap, the labels jump, and what should be a slide
     reads as a collapse. A negative left margin slides the whole 214px panel under
     the rail with its contents untouched, and the work panel takes the room.
     ⚠ visibility is held until the slide has finished, so a panel that is shut
     cannot be tabbed into — and so a check asking "is it on screen" gets the truth.
     ⚠ THE DRAWER CURVE, the app’s own: things that slide use --ease-drawer, things
     that arrive use --ease-out. */
  #appside{transition:margin-left .26s var(--ease-drawer),opacity .16s ease,visibility 0s}
  /* ⚠ JUST ITS OWN WIDTH NOW. It used to also slide the gutter, because there was a
     gutter on its right; that space is the work area’s, so sliding it too pushed the
     work 5px further than it should have gone. */
  #appside.as-shut{margin-left:calc(-1 * var(--as-w));opacity:0;visibility:hidden;
    pointer-events:none;
    transition:margin-left .26s var(--ease-drawer),opacity .16s ease .06s,visibility 0s .26s}
  /* the contents arrive when the app changes; the frame itself never moves */
  @keyframes asIn{from{opacity:0;transform:translateX(-9px)}to{opacity:1;transform:none}}
  #appside .as-in{animation:asIn .24s var(--ease-out) both}
  /* ── the edge you drag ───────────────────────────────────────────
     ⚠ INSIDE THE PANEL, because the panel hides its overflow — a handle hanging off
     the outside edge would be clipped away. It is 7px of nothing until the cursor
     reaches it, then a hairline in the accent so it is clear what is about to move.
     ⚠ It is NOT in the tab order and is hidden from a screen reader: dragging is not
     the only way to size this — a double-click puts it back to 214. */
  .as-grip{position:absolute;top:0;right:0;bottom:0;width:7px;z-index:3;
    cursor:col-resize;background:none;border:0;padding:0}
  .as-grip::after{content:"";position:absolute;top:8px;bottom:8px;right:2px;width:2px;
    border-radius:2px;background:var(--accent);opacity:0;
    transition:opacity .12s var(--ease-out)}
  .as-grip:hover::after,body.as-sizing .as-grip::after{opacity:1}
  /* ⚠ while a drag is running the whole page stops trying to select text, and every
     cursor is the resize one — without this the pointer flickers between arrow and
     I-beam the moment it leaves the 7px strip. */
  body.as-sizing{cursor:col-resize;user-select:none}
  body.as-sizing #appside{transition:none}

  /* ⚠ a person who has asked for less movement gets none of this */
  @media (prefers-reduced-motion:reduce){
    #appside,#appside .as-in{transition:none;animation:none}
  }


  /* ── the head: where you are, and the way back ── */
  /* ⚠ THE HEAD AND THE ROWS SHARE A LEFT EDGE. The head paid 11 and a row paid
     8 + its own 9 = 17, so the app’s name and its sections stood on two different
     lines. The body pays 3 and the row pays 9. */
  /* ⚠ z-index, and it is not decoration. The gear's menu is an absolutely positioned
     child of this head, and the body below is a scrolling box that paints over it —
     so the menu came up with the panel's own rows showing straight through it.
     "too big gear, and the bug". The head stands above the body; the menu stands
     above everything in the app. */
  .as-head{padding:15px 12px 10px;flex-shrink:0;position:relative;z-index:6}
  .as-crumb{display:flex;align-items:center;min-width:0}
  .as-crumb:empty{display:none}
  .as-crumb button{font-family:'Inter',sans-serif;font-size:12px;color:var(--ink-faint);
    background:none;border:0;padding:0;cursor:pointer;white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis}
  .as-crumb button:hover{color:var(--ink);text-decoration:underline}
  .as-crumb .sep{color:var(--ink-faint);opacity:.55;margin:0 5px;flex-shrink:0}
  /* ⚠ NO TOP MARGIN WHEN IT IS ALONE. The 3px existed to hold the name off the
     trail above it; on every screen but one there is no trail now, and 3px of air
     under nothing is what makes a head look like two pieces. */
  .as-title{display:flex;align-items:center;gap:8px;min-width:0}
  .as-crumb:not(:empty) + .as-title{margin-top:3px}
  /* ⚠ NO APP ICON, same call as the bar had: the rail already draws it and
     lights the one you are on. Kept as an element so the code has a place. */
  .as-mark{display:none}
  /* it carries the head on its own now, so it takes the size of one */
  .as-here{font-family:'Inter',sans-serif;font-size:17px;font-weight:600;
    letter-spacing:-.01em;color:var(--ink);white-space:nowrap;overflow:hidden;
    text-overflow:ellipsis;min-width:0}

  /* ── the body: the app's sections, one under the other ── */
  /* ── what the app lets you do, in the head’s right corner ─────────────────
     “can you make it like a gear? like settings? and put it on the right corner”.
     It is the shape his own ClickUp picture has: the name on the left of the head,
     the doing on the right.
     ⚠ THE WHOLE CLUSTER LIVES HERE, not just the button — the menu it opens is a
     sibling inside it, positioned against it. Move the button alone and the menu
     opens somewhere else entirely. */
  .as-tools{margin-left:auto;display:flex;align-items:center;gap:4px;flex-shrink:0;
    position:relative}
  .as-tools:empty{display:none}
  #appside .as-tools > .tb-borrowed{display:flex!important;align-items:center;gap:4px!important;
    margin:0!important;padding:0!important;border:0!important;background:none!important}
  /* one bell in the app, and it is in the top bar */
  #appside .as-tools [data-bellslot]{display:none}
  /* the floating "+ Add machine" is the phone's; on a laptop the plus in this corner is the one — his call, 17 Sep: "gone" */
  @media(min-width:761px){#maintFab{display:none!important}}
  /* ── the gear: a 28px square in the head's corner, the glyph and nothing else ──
     The same shape as the Projects "+" beside the workspace name. The button is still the
     app's own node — its word is folded away, the gear drawn in its place — so the menu it
     opens still works; the menu hangs off its right edge, downward. */
  #appside .as-tools .btn-line[onclick*="ManageMenu"]{
    width:28px!important;height:28px!important;min-height:0!important;padding:0!important;
    font-size:0!important;line-height:0!important;color:transparent!important;
    border:1px solid var(--rule)!important;border-radius:8px!important;background:var(--surface)!important;box-shadow:0 1px 2px rgba(var(--shade-rgb),.07)!important;
    background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%2362615c%27 stroke-width=%271.7%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%273%27/%3E%3Cpath d=%27M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33h0a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82v0a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z%27/%3E%3C/svg%3E")!important;
    background-repeat:no-repeat!important;background-position:center!important;background-size:15px 15px!important;
    cursor:pointer;flex-shrink:0}
  #appside .as-tools .btn-line[onclick*="ManageMenu"]:hover{background-color:var(--wash,var(--field))!important;border-color:var(--ink-faint)!important}
  /* Deliveries: "+ One ticket" as a word pushed the name to "D…" (his picture, 6 Oct) — in this
     corner the + asks which instead (shipNew in deliveries.js), so the word stays on the phone only */
  #appside .as-tools .btn-line[onclick^="openDelivery"]{display:none!important}
  #appside .as-tools #shipNewMenu,
  #appside .as-tools [id$="ManageMenu"]{left:auto;right:0;top:calc(100% + 6px)!important;bottom:auto!important;
    min-width:170px;z-index:120!important;background:var(--surface)!important;
    border-radius:var(--r-card)!important;box-shadow:0 14px 34px -14px rgba(var(--shade-rgb),.34)!important}
  /* ⚠ THE WORD BECOMES THE GEAR. The button is the app’s own — it is not redrawn,
     so its menu and everything in it still work. Its text is taken out of the flow
     and the gear is drawn in its place. */
  /* ⚠ THE WORD IS BACK. In the head the button had to shrink to a glyph or it fought
     the app's name; in the foot there is a whole row for it, so it says Manage and the
     gear is simply the mark in front of the word. Nothing about the button itself
     changed — it is still the app's own node, so its menu still works. */
  #appside .as-foot .btn-line[onclick*="ManageMenu"]{
    display:flex!important;align-items:center;width:100%!important;
    /* ⚠ the app's own .btn-line centres its text; in a row with a mark in front of it
       the word has to start where the mark does. */
    justify-content:flex-start!important;
    height:32px!important;min-height:0!important;
    padding:0 8px 0 28px!important;border:0!important;background:none!important;
    border-radius:var(--r-control)!important;
    font-family:'Inter',sans-serif!important;font-size:13px!important;font-weight:500!important;
    color:var(--ink-soft)!important;text-align:left!important;cursor:pointer;
    background-position:9px center!important;background-size:14px 14px!important;
    background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%2362615c%27 stroke-width=%271.7%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%273.2%27/%3E%3Cpath d=%27M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.6 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.6a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9c.14.5.6.87 1.14.9H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z%27/%3E%3C/svg%3E")!important;
    background-repeat:no-repeat!important;flex-shrink:0}
  #appside .as-foot .btn-line[onclick*="ManageMenu"]:hover{background-color:var(--field)!important;color:var(--ink)!important}
  /* ── the app's one action beside the gear: the same 28px square, a plus and nothing else ──
     With the word on it ("+ New delivery") it pushed the app's own name down to "D…". The
     Projects "+" beside the workspace name is the shape; the word lives in the title tip. */
  #appside .as-tools .btn-primary{width:28px!important;height:28px!important;min-height:0!important;padding:0!important;
    font-size:0!important;line-height:0!important;border-radius:8px!important;white-space:nowrap;position:relative;
    box-shadow:0 1px 2px rgba(var(--shade-rgb),.07)!important}
  #appside .as-tools .btn-primary::before{content:'+';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
    font-family:'Inter',sans-serif;font-size:18px;font-weight:500;line-height:1}
  /* the menu hangs off the corner it is in */
  /* ⚠ UPWARD. Hanging off the bottom of the panel it would open below the window. */
  #appside .as-foot [id$="ManageMenu"]{left:6px;right:6px;top:auto!important;bottom:calc(100% + 4px)!important;
    min-width:0;
    /* the inline z-index on these menus is 45, which is under the panel. */
    z-index:120!important;
    /* ⚠ an OPAQUE ground stated here as well. It is inline on the menu already, but
       a menu that can be seen through is the bug he photographed, and one place to
       state it is worth the repetition. */
    background:var(--surface)!important;
    border-radius:var(--r-card)!important;
    box-shadow:0 14px 34px -14px rgba(var(--shade-rgb),.34)!important}
  .as-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:2px 3px 12px}
  /* ── the foot: where the gear went ────────────────────────────────────────
     A row, not a lone icon in a corner. At the bottom of a 240px panel a bare
     15px glyph is a thing you have to hunt for; with the word beside it there is
     nothing to work out. A hairline above it, because it belongs to the app and
     not to the list it sits under. */
  .as-foot{flex-shrink:0;position:relative;padding:6px 6px 8px;
    border-top:1px solid var(--rule-soft)}
  .as-foot:empty{display:none}
  #appside .as-foot > .tb-borrowed{display:block!important;margin:0!important;padding:0!important;
    border:0!important;background:none!important}
  .as-tabs:empty{display:none}
  /* the strip arrives wearing the page's own layout — a row, with a gap and a
     rule under it. Here it is a column. ⚠ !important throughout: the pill row
     carries gap and display as INLINE styles. */
  #appside .as-tabs > .tb-borrowed{display:flex!important;flex-direction:column!important;
    align-items:stretch!important;flex-wrap:nowrap!important;gap:1px!important;
    padding:0!important;margin:0!important;border:0!important;background:none!important;
    overflow:visible!important;height:auto!important}
  #appside .as-tabs .dtab,#appside .as-tabs .tab{
    position:relative;display:flex!important;align-items:center;gap:8px;width:100%;
    justify-content:flex-start;text-align:left;
    background:none!important;border:0!important;border-radius:var(--r-control)!important;
    box-shadow:none!important;margin:0!important;padding:7px 9px!important;height:auto!important;
    font-family:'Inter',sans-serif;font-size:13px;font-weight:500;color:var(--ink-soft);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    transition:background .12s var(--ease-out),color .12s var(--ease-out)}
  #appside .as-tabs .dtab:hover,#appside .as-tabs .tab:hover{background:var(--wash,var(--field));color:var(--ink)}
  /* ⚠ !important ON THE LIT ROW TOO. The base rule above strips the pill’s own
     fill with background:none!important — which then beat this one, so the row you
     were on had the right ink and no tint at all. */
  #appside .as-tabs .dtab.on,#appside .as-tabs .tab.on{background:var(--accent-soft)!important;color:var(--ink);font-weight:600}
  /* the pill's tick and the bar's sliding underline both said "this one"; in a
     list the lit row says it, and a 2px line under a full-width row reads as a rule */
  #appside .as-tabs .dtab::before,#appside .as-tabs .dtab::after,
  #appside .as-tabs .tab::before,#appside .as-tabs .tab::after{display:none!important;content:none!important}
  /* the count goes to the far end of its row */
  #appside .as-tabs .dtab > span,#appside .as-tabs .tab .cnt{
    margin-left:auto;background:none!important;border:0!important;padding:0!important;
    font-family:var(--num);font-variant-numeric:tabular-nums;font-size:12px;font-weight:400;
    color:var(--ink-faint);flex-shrink:0}

  /* ── Projects lends its whole tree, not a row of tabs ──
     ⚠ It arrives dressed as a COLUMN OF THE WORK AREA: 248px wide, a border down
     its right edge, its own padding, position:sticky and a max-height worked out
     from the window. All of that was it trying to stand still inside a scrolling
     page — and failing, which is the 395px of drift he complained about. In here
     the panel already stands still, so the tree gives every one of them up.
     ⚠ .as-body carries class pj while Projects is open, or none of the tree's own
     rules reach it — they are all fenced behind that class. */
  #appside .as-body > #ptree{width:auto!important;max-width:none;flex:none;
    position:static!important;max-height:none!important;overflow:visible!important;
    border-right:0!important;background:none!important;padding:0!important;display:block}
  /* its own « is the rail's switch, said twice */
  #appside .as-body > #ptree .tl-hide{display:none}

  /* ── the app's own controls, as a list ───────────────────────────────────
     ⚠ NOT A FOOT ANY MORE. Pinned to the bottom, a screen with no sections drew
     an empty 900px column with its controls crushed together underneath it,
     which is what he called not user friendly. They start at the top, under the
     sections, and read downwards.
     ⚠ AND NOT A TOOLBAR EITHER. Everything here was laid out as a ROW on the
     page — a segmented switch, an eyebrow beside it, two buttons after it. Tipped
     on its side without being rebuilt, a segment becomes four centred words with
     a red line under one of them, which is what the Customers panel looked like.
     Every choice is a row; the chosen one is lit the same way a section is. */
  .as-end{display:flex;flex-direction:column;align-items:stretch;gap:1px}
  .as-end:empty{display:none}
  /* a rule only where there is something above to be separated from */
  .as-tabs:not(:empty) + .as-end{margin-top:11px;padding-top:10px;border-top:1px solid var(--rule)}
  /* the clusters arrive as rows and give that up */
  #appside .as-end > .tb-borrowed,
  #appside .as-end .mast-side,#appside .as-end .mtg-tools-r,#appside .as-end .fl-tools-r,
  #appside .as-end #custSortSeg,#appside .as-end .mtg-seg,#appside .as-end .fl-seg,
  /* ⚠ #curToggle IS A SEGMENT TOO and was missed, so Figures kept it as a ROW
     inside a 214px column: two buttons each asking for the full width, and USD
     was pushed out past the panel edge and clipped. "wheres the USD?" — there.
     Any wrapper holding .seglink belongs in this list. */
  #appside .as-end #curToggle,
  #appside .as-end .fl-kinds,#appside .as-end .fl-picks{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    justify-content:flex-start!important;flex-wrap:nowrap!important;gap:1px!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
    background:none!important;overflow:visible!important;width:auto!important;
    min-width:0!important;max-width:none!important;min-height:0!important}
  /* a group of buttons wants air above it, not between its own rows */
  #appside .as-end > .tb-borrowed + .tb-borrowed{margin-top:6px!important}

  /* ── a choice is a row ── */
  #appside .as-end .seglink,
  #appside .as-end .mtg-seg > button,
  #appside .as-end .fl-seg > button,
  #appside .as-end .fl-kind,
  /* ⚠ Meetings' "Follow-ups due" was the one pill left in a panel of rows — "do those 3",
     24 Sep 2026. It is a choice like the rows under it, so it is drawn as one. */
  #appside .as-end .mtg-chip{
    display:flex!important;align-items:center;gap:8px;width:100%;
    justify-content:flex-start!important;text-align:left;
    border:0!important;border-radius:var(--r-control)!important;background:none!important;
    box-shadow:none!important;margin:0!important;padding:7px 9px!important;
    min-height:0!important;height:auto!important;flex:none!important;
    font-family:'Inter',sans-serif;font-size:13px;font-weight:500;color:var(--ink-soft);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    transition:background .12s var(--ease-out),color .12s var(--ease-out)}
  #appside .as-end .seglink:hover,#appside .as-end .mtg-seg > button:hover,
  #appside .as-end .fl-seg > button:hover,#appside .as-end .fl-kind:hover,#appside .as-end .mtg-chip:hover{
    background:var(--wash,var(--field))!important;color:var(--ink)}
  #appside .as-end .seglink.on,#appside .as-end .mtg-seg > button.on,
  #appside .as-end .fl-seg > button.on,#appside .as-end .fl-kind.on,#appside .as-end .mtg-chip.on{
    background:var(--accent-soft)!important;color:var(--ink);font-weight:600}
  /* the underline said "this one" in a row; the lit row says it in a list */
  #appside .as-end .seglink,#appside .as-end .seglink.on{border-bottom:0!important}
  /* a count goes to the far end of its own row */
  #appside .as-end .fl-kind > b,#appside .as-end .mtg-chip > b{
    margin-left:auto;font-family:var(--num);font-variant-numeric:tabular-nums;
    font-weight:400;font-size:12px;color:var(--ink-faint)}

  /* ── a label over a group of choices ── */
  #appside .as-end .eyebrow{display:block;width:100%;padding:9px 9px 3px;
    font-size:12px;color:var(--ink-faint);white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis}
  #appside .as-end .ui{white-space:normal}

  /* ── an action stays a button, but a full-width one that reads left ──
     ⚠ THE BORDER HAD TO BE PUT BACK. The rule above flattens a borrowed CLUSTER
     with border:0!important — and Import Excel and Join duplicates are borrowed
     one at a time, so they are clusters by that rule and arrived as two bare bold
     words in a column, indistinguishable from the sort options above them. */
  /* ⚠ NOT A BOX. I had these stretched to the panel’s width, then shrunk to the
     width of their label, and he disliked both — rightly: a bordered lozenge sitting
     on its own under a column of plain rows is a third kind of thing on a panel that
     only has two. In his own ClickUp reference the actions at the foot of a panel are
     ROWS with the rest. So they are rows: same height, same left edge, same hover as
     the sections above them, and the hairline over the group is what separates an
     action from a section.
     ⚠ THEY KEEP THE FULL INK. A section you are not on is soft grey; an action is
     something you can do, so it reads at full strength. That is the only difference,
     and it is enough. */
  #appside .as-end .btn-line,#appside .as-end .btn-primary{
    border:0!important;background:none!important;box-shadow:none!important;
    border-radius:var(--r-control)!important;
    padding:7px 9px!important;font-family:'Inter',sans-serif;font-size:13px;
    font-weight:500;color:var(--ink)!important}
  #appside .as-end .btn-line:hover,#appside .as-end .btn-primary:hover{
    background:var(--wash,var(--field))!important}
  /* ⚠ A FILE PICKER DRESSED AS A BUTTON IS A <label>, and the panel stacks a label's contents top-down
     (a name over its box). That pushed "Load IXItask stock list" and Templates' "Import the sheet" to
     the top of their row — 7px over the words, 17px under, beside buttons at 12/12: "why is it very
     staggered", 29 Sep 2026. A label that IS a button lays out like one. */
  #appside .as-end label.btn-line,#appside .as-end label.btn-primary{
    flex-direction:row!important;align-items:center!important}
  /* ⚠ THE SIZE OF WHAT IS IN IT, NOT THE WIDTH OF THE PANEL. I had these stretched
     to 214px, and “Manage ▾” — eight characters and a tiny caret — became a wide empty
     pill with its content huddled in one corner: “the pill is wide but the manage and
     the arrow is small and not proportionate”. A button is the shape of its label
     everywhere else in this app, and it is here too. They still stack and still line
     up on the panel’s left edge; they simply stop pretending to be full-width rows.
     ⚠ align-self, because .as-end stretches its children by default. */
  #appside .as-end .btn-line,#appside .as-end .btn-primary,
  #appside .as-end .mtg-chip,#appside .as-end .fl-clear{
    width:100%!important;align-self:stretch;
    justify-content:flex-start!important;text-align:left;
    margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* ── a menu or a date belongs on its own line, under its name ── */
  #appside .as-end .fl-pick,#appside .as-end label{
    display:flex!important;flex-direction:column;align-items:stretch;gap:3px;
    width:100%;padding:6px 9px 2px;font-size:12px;color:var(--ink-faint)}
  #appside .as-end select,#appside .as-end input[type="date"],#appside .as-end .inp,
  #appside .as-end .dfw,#appside .as-end .dfw>input[type="text"]{
    width:100%!important;min-width:0!important;font-size:13px}
  #appside .as-end .m3s{width:100%!important;max-width:none!important;flex:none!important}
  /* ⚠ ONE BELL, NOT TWO — the same trap the bar had. Maintenance and Deliveries
     keep a bell in their own masthead for the phone and that whole cluster moves
     here, so the copy lands beside the real bell in row 1. Hidden, never removed:
     under 761px the masthead's bell is the only one there is. */
  #appside .as-end [data-bellslot]{display:none}
  /* ⚠ MOVED INTO THE USERNAME MENU — item 5 of his list. The footer kept six
     tiles that are all in the menu now; leaving them here would be the same door
     twice, two inches apart. The elements STAY in the page: the vault and the
     WhatsApp rows are painted by id and the menu reads what they say, and a
     button the menu clones an icon off has to exist to be cloned. */
  .sb-foot .rail-moved{display:none!important}

}
/* the phone has the capsule and no shell at all */
@media (max-width:760px){ #appside{display:none!important} }

/* ⚠ THE ROLE RULES WIN INSIDE THE PANEL TOO (review 26 Sep 2026, #12). A control borrowed
   into the panel gets display:flex/block !important from the rules above, and an id beats a
   class — so "Import Excel" and "Join duplicates", owner-only on purpose, showed in a
   salesperson's Customers panel and opened. The same hide rules as app.css, with the id. */
body.role-nonowner #appside .owner-only,
body.role-tech #appside .office-only,body.role-driver #appside .office-only,
body.role-sales #appside .mgr-ok,body.role-tech #appside .mgr-ok,
body.role-shipment #appside .mgr-ok,body.role-shipment #appside .card-salesonly,body.role-shipment #appside .mgr-hide,
body.role-narrow #appside .mgr-ok,body.role-narrow #appside .card-salesonly,body.role-narrow #appside .mgr-hide,
body.role-narrow #appside .owner-only,body.role-narrow #appside .sales-only{display:none!important}
