/* =========================================================================
   TOOLBOX (views/toolbox/): the rules that drew #toolsScreen in workspace.css, in their order. Loaded right after
   workspace.css. The menu-editing switch of the drawer (#profileSidebar) stays in workspace.css.
   ========================================================================= */
/* Tools › Work day: the row holds its own Start my day / End my day button (the kit's) in place of the chevron. */
.tool-start-btn{flex:none}
/* ---- The rows: the kit's .vx-rows / .vx-row (index.html #toolsScreen and the Studio's rows, views/studio/view.js), with
   the hook classes .tool-card (row), .tool-icon and .tool-text (its parts) that this file and view.js read. A state line
   wraps whole (the kit's .vx-row-text[data-wrap]). The chevron reads
   the row's quiet ink and turns round in Arabic. ---- */
#toolsScreen .tool-chev{display:grid;place-items:center;flex:none;color:var(--vx-ink-3)}
#toolsScreen .tool-chev>svg{inline-size:18px;block-size:18px}
#toolsScreen .tool-chev:dir(rtl)>svg{transform:scaleX(-1)}
/* A tool not set up here (or not for this department): the icon steps back and the name takes the quiet ink, no
   chevron; the line that says what to do stays readable (an opacity on the name read 3:1). */
#toolsScreen .tool-card.is-off .tool-icon{opacity:.5}
#toolsScreen .tool-card.is-off .tool-text>b{color:var(--vx-ink-3)}
#toolsScreen .tool-card.is-off .tool-chev{visibility:hidden}
/* The state line leads with a dot when the server's words say something: green connected or working, amber waiting
   on the person, dim not set up (view.js, loadToolStates). */
#toolsScreen .tool-card:is([data-state="ok"],[data-state="warn"],[data-state="off"]) .tool-text>span::before{content:"";display:inline-block;inline-size:7px;block-size:7px;margin-block:0 1px;margin-inline:0 var(--vx-sp-1h);border-radius:var(--vx-r-round);vertical-align:middle;background:var(--vx-ink-3)}
#toolsScreen .tool-card[data-state="ok"] .tool-text>span::before{background:var(--vx-success)}
#toolsScreen .tool-card[data-state="warn"] .tool-text>span::before{background:var(--vx-warn)}
#toolsScreen .tool-card[data-state="off"] .tool-text>span::before{opacity:.6}
/* Hairlines: a row sits in its slot (.tool-slot, view.js) once the Toolbox has drawn it, where the kit's first-row rule
   cannot see it: the first row that shows draws its line unseen, every later one draws it. */
#toolsScreen .tool-list .tool-card{border-block-start-color:transparent}
#toolsScreen .tool-list>:not(.hidden)~:not(.hidden) .tool-card,#toolsScreen .tool-list>:not(.hidden)~.tool-card:not(.hidden){border-block-start-color:var(--vx-row-line)}
/* The title's Edit menu: the kit's small button in the page head's end slot (primary while editing: Done).
   Its note under the head starts on the page's edge with the title and the groups, a step under the head and a step
   before the search (it speaks of the tools, not of the search); the id lifts it over .screen>.note's margins. */
#toolsScreen>.tools-menu-note{margin:0 0 var(--vx-sp-3)}
/* ---- Groups, find and pins (deep review S3; workspace.js TOOLBOX FIND AND PINS). The kit's search field and filter
   chips over the groups; a group head is the panel's eyebrow as before; a group the search or a chip leaves empty is
   gone (.tools-out). Each row sits in the kit's row slot with its ☆ pin. ---- */
/* The kit's filter bar (.vx-filter-bar): the search, then the chips as one group, beside it while they fit, else under
   it whole (one line, scrolling sideways when even that is too narrow; a chip cut at the edge says there is more). */
.tools-find{margin-block:0 var(--vx-sp-3)}
.tools-filters{overflow-y:hidden}
.tools-filters::-webkit-scrollbar{display:none}
.tools-no-match{margin:0}
#toolsScreen .tools-group+.tools-group{margin-top:var(--vx-sp-3)}
#toolsScreen .tools-group-head{margin:0}
#toolsScreen .tools-out{display:none}
/* A row in its slot with its ☆ pin (view.js toolboxSlot: the kit's ghost icon button after the row's own button, never
   inside it). The pin sits just before the chevron, centred on the row by inset and auto margins (the kit's press
   scale then does not move it); the row's text keeps clear of it. Pinned: the star filled in ink. Edit menu: no pins. */
#toolsScreen .tool-slot{position:relative;display:block;min-inline-size:0}
#toolsScreen .tool-slot>.tool-card{inline-size:100%}
#toolsScreen .tool-pin{position:absolute;inset-block:0;inset-inline-end:calc(18px + var(--vx-sp-2));margin-block:auto;color:var(--vx-ink-3)}
#toolsScreen .tool-pin[aria-pressed="true"]{color:var(--vx-ink)}
#toolsScreen .tool-pin[aria-pressed="true"] svg{fill:currentColor}
#toolsScreen .tool-slot:has(>.tool-pin)>.tool-card .tool-text{margin-inline-end:var(--vx-btn-h-sm)}
#toolsScreen.menu-editing .tool-pin{display:none}
#toolsScreen.menu-editing .tool-slot>.tool-card .tool-text{margin-inline-end:0}
/* These work areas use a persistent drawer tick, separate from the card's open action. */
#toolsScreen .tool-drawer-toggle{position:absolute;inset-block:0;inset-inline-end:var(--vx-sp-1);display:grid;place-items:center;inline-size:var(--vx-h);block-size:var(--vx-h);margin-block:auto;cursor:pointer}
#toolsScreen .tool-slot:has(>.tool-drawer-toggle)>.tool-card .tool-text{margin-inline-end:var(--vx-h)}
#toolsScreen .tool-slot:has(>.tool-drawer-toggle)>.tool-card .tool-chev{visibility:hidden}
/* The floating agent button (bottom left) and the + clear the last row on a phone: the kit's one reserve (ui/components/fab). */
body:not(.desk) .phone:has(#toolsScreen.active){padding-bottom:var(--verser-fab-reserve)}

/* ---- Menu editing (workspace.js, MENU EDITING): a row in edit mode is a switch (role=switch). The switch is the row's
   ::after: the field switch's track and knob (the kit's switch tokens) that slides, 200ms. In the drawer the rows are the
   kit's nav buttons, which draw it themselves (ui/components/button); the Toolbox's rows draw the same here. ---- */
#toolsScreen [role="switch"]::after{content:"";flex:none;width:38px;height:22px;margin-inline-start:auto;border-radius:var(--vx-r-pill);background:radial-gradient(circle,var(--vx-switch-knob) 0 7.5px,var(--vx-switch-knob-edge) 7.5px 8.5px,transparent 9px) no-repeat left 2px center/18px 18px,var(--vx-switch-off);transition:background-position var(--vx-dur-quick) var(--vx-ease),background-color var(--vx-dur-quick) var(--vx-ease)}
#toolsScreen [role="switch"][aria-checked="true"]::after{background:radial-gradient(circle,var(--vx-switch-knob) 0 7.5px,var(--vx-switch-knob-edge) 7.5px 8.5px,transparent 9px) no-repeat right 2px center/18px 18px,var(--vx-switch-on)}
/* A row that always stays (My Verser, My Agent, Toolbox) shows its switch on, dimmed. */
#toolsScreen [role="switch"].menu-fixed::after{opacity:.45}
/* Arabic: the track mirrors, the knob off at the right and on at the left. */
#toolsScreen [role="switch"]:dir(rtl)::after{background-position:right 2px center,0 0}
#toolsScreen [role="switch"][aria-checked="true"]:dir(rtl)::after{background-position:left 2px center,0 0}
@media (prefers-reduced-motion:reduce){#toolsScreen [role="switch"]::after{transition:none}}
/* The Toolbox while editing: the chevron makes room for the switch, and every row reads as one to flip. */
#toolsScreen [role="switch"] .tool-chev{display:none}
#toolsScreen.menu-editing .work-row{opacity:.55}
#toolsScreen.menu-editing .tool-start-btn{pointer-events:none}

/* ---- Toolbox on a desktop (body.desk): the tools are a grid of tiles in the middle, each a kit row laid out as a tile
   on the kit's card surface (glass in OG, paper in Light, graphite in Dark): icon top start, the name, the state line.
   The panels give up their glass so a tile is never glass on glass; their small title heads the grid. ---- */
body.desk #toolsScreen .basic-tools{padding:0;border:0;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
body.desk #toolsScreen .basic-tools>.tools-group-head{margin:var(--vx-sp-5h) 0 0}
body.desk #toolsScreen .basic-tools:first-of-type>.tools-group-head{margin-top:var(--vx-sp-1)}
/* Tiles --vx-tile-min or wider (the kit's tile size; the UI suite measures it), as many as fit, on one track rule for every group: a tile is the same
   width in Your day, Connections, Work areas and Your tools, and the columns line up from group to group. */
body.desk #toolsScreen .tool-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--vx-tile-min)),1fr));gap:var(--vx-sp-3);margin-block-start:var(--vx-sp-3)}
/* Special tools: Credit Underwriting and the Studio tools are two lists, laid out as one grid. */
body.desk #toolsScreen #studioToolsPanel:not(.hidden):not(.tools-out){display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--vx-tile-min)),1fr));gap:var(--vx-sp-3)}
body.desk #toolsScreen #studioToolsPanel>.tools-group-head{grid-column:1/-1;margin-bottom:0}
body.desk #toolsScreen #studioToolsPanel>.tool-list:not(.hidden){display:contents}
body.desk #toolsScreen .tool-list .tool-card{position:relative;flex-direction:column;align-items:flex-start;gap:var(--vx-sp-3);block-size:100%;padding:var(--vx-sp-4);border:0;border-radius:var(--vx-r-md);
  background:var(--vx-card-bg);box-shadow:var(--vx-card-shadow);-webkit-backdrop-filter:var(--vx-card-blur);backdrop-filter:var(--vx-card-blur);
  transition:transform var(--vx-dur-fast) var(--vx-ease),box-shadow var(--vx-dur-quick) var(--vx-ease-std)}
body.desk #toolsScreen .tool-list .tool-card .tool-text{flex:initial;align-self:stretch}
/* A tile's state line stops at three lines with an ellipsis (a live meeting's long title, a shared tool's long owner
   name): the tiles of a row keep one height instead of growing to the longest words; the kit's row watch gives the cut
   line its whole words in a title. A phone row keeps the whole line. */
body.desk #toolsScreen .tool-list .tool-card .tool-text>span{text-wrap:balance;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
/* A tile is the whole target: no chevron on it; its one corner action is the pin. */
body.desk #toolsScreen .tool-chev{display:none}
body.desk #toolsScreen [role="switch"]::after{position:absolute;inset-block-start:var(--vx-sp-4);inset-inline-end:var(--vx-sp-3h)}
body.desk #toolsScreen .tool-list button.tool-card:active:not(:disabled){transform:scale(.98)}
@media (hover:hover) and (pointer:fine){body.desk #toolsScreen .tool-list button.tool-card:hover{transform:translateY(-2px);box-shadow:var(--vx-card-shadow),inset 0 0 0 1px var(--vx-hair-2)}body.desk #toolsScreen .tool-list button.tool-card:hover:active{transform:scale(.98)}}
/* Reduced motion: a tile under the mouse lights up but does not lift. */
@media (prefers-reduced-motion:reduce) and (hover:hover) and (pointer:fine){body.desk #toolsScreen .tool-list button.tool-card:hover{transform:none}}
body.desk #toolsScreen .tool-list button.tool-card:focus-visible{border-radius:var(--vx-r-md)}
/* A tile in its slot: the slot is the grid cell, the tile fills it, and the pin sits in the tile's top end corner,
   quiet (.75) until pinned, hovered or focused. Search and chips sit in one row above the groups. */
body.desk #toolsScreen .tool-slot .tool-text{margin-inline-end:0}
body.desk #toolsScreen .tool-pin{inset-block:var(--vx-sp-2h) auto;inset-inline-end:var(--vx-sp-2h);margin:0}
body.desk #toolsScreen .tool-pin:not([aria-pressed="true"]):not(:hover):not(:focus-visible){opacity:.75}
body.desk #toolsScreen .tool-drawer-toggle{inset-block:var(--vx-sp-2h) auto;inset-inline-end:var(--vx-sp-2h);margin:0}
body.desk #toolsScreen .tool-slot:has(>.tool-drawer-toggle)>.tool-card .tool-text{margin-inline-end:0}
/* Your day: the work day is one tile among Attendance, My tasks and Meetings (the lead, round 4: the full-width bar
   matched nothing else), its Start my day at the tile's foot. Same order. */
body.desk #toolsScreen .tool-slot>.work-row .tool-start-btn{margin-block-start:auto}
body.desk #toolsScreen .tools-group+.tools-group{margin-top:0}

/* ---- One family (2026-10-21): on a phone the Toolbox reads like the Drive and Meetings: its section head on the
   backdrop, the tools under it in one kit card with hairlines. Still one card, no glass in glass. ---- */
body:not(.desk) #toolsScreen .basic-tools{padding:0;border:0;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
body:not(.desk) #toolsScreen .basic-tools>.tools-group-head{margin:var(--vx-sp-5) 0 0}
body:not(.desk) #toolsScreen .basic-tools:first-of-type>.tools-group-head{margin-top:var(--vx-sp-1h)}
body:not(.desk) #toolsScreen .tool-list:not(.hidden){margin-block-start:var(--vx-sp-1h);padding-inline:var(--vx-sp-3h);border-radius:var(--vx-r-lg);background:var(--vx-card-bg);box-shadow:var(--vx-card-shadow);-webkit-backdrop-filter:var(--vx-card-blur);backdrop-filter:var(--vx-card-blur)}
/* Credit Underwriting, then the Studio tools: two cards, one under the other. */
body:not(.desk) #toolsScreen .tool-list:not(.hidden)+.tool-list{margin-block-start:var(--vx-sp-3)}
/* A phone row answers the press (a slight scale, the kit's ease-out; none with reduced motion). */
body:not(.desk) #toolsScreen .tool-list button.tool-card{transition:transform var(--vx-dur-fast) var(--vx-ease)}
body:not(.desk) #toolsScreen .tool-list button.tool-card:active:not(:disabled){transform:scale(.98)}
@media (prefers-reduced-motion:reduce){body:not(.desk) #toolsScreen .tool-list button.tool-card{transition:none}body:not(.desk) #toolsScreen .tool-list button.tool-card:active:not(:disabled){transform:none}}
