/* Pinned (pins.js, docs/CONSOLE-REDESIGN.md §1.6): one section for pins and views, its ＋ menu and "Pin something…".
   Items are the frame's (frame.css .s-item), dragging is the views' marks (views.css .vw-drag, .vw-over), the menu is
   the Create menu's (composer.css .cz-menu) and the picker the views' dialog (views.css .vw-dlg). Flat: hairlines. */

/* the section: a column of items under its heading, as the areas above it */
.nav .s-pinned { display: flex; flex-direction: column; gap: 2px; flex: none; }
.nav .s-pinned .s-item[draggable="true"] { cursor: pointer; }
.nav .s-pinned .s-item:focus-visible { outline-offset: -2px; }

/* the ＋ menu beside the heading */
.pin-menu { width: 320px; z-index: var(--z-menu); }
.pin-menu .cz-msub { overflow: hidden; text-overflow: ellipsis; max-width: 45%; }

/* "Pin something…" */
.pin-pick { display: flex; flex-direction: column; gap: 10px; width: min(560px, 100%); }
.pin-pick h2 { margin: 0; }
.pin-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pin-x { padding: 0 6px; border: 0; }
.pin-pick input[type="search"] { width: 100%; background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; padding: 9px 10px; color: var(--text); font: 14px var(--sans); }
.pin-hint { margin: 0; font-size: 12.5px; }
.pin-list { display: flex; flex-direction: column; max-height: min(52vh, 420px); overflow-y: auto; border-top: 1px solid var(--line); }
.pin-h { padding: 10px 4px 4px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.pin-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; color: var(--text); font: 14px/1.25 var(--sans); text-align: left; cursor: pointer; }
.pin-row svg { width: 17px; height: 17px; flex: none; color: var(--text-2); }
.pin-row .pin-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-row .pin-s { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-3); }
.pin-row:hover, .pin-row.hi { background: var(--raised); }
.pin-row[aria-disabled="true"] { color: var(--text-3); cursor: default; }
.pin-none { margin: 12px 4px; }

/* the phone: the picker is the whole screen, its rows a finger tall */
@media (max-width: 780px) {
  .pin-back { padding: 0; place-items: stretch; }
  .pin-pick { width: 100%; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .pin-list { max-height: none; flex: 1; }
  .pin-row { min-height: 46px; font-size: 15px; }
  .vw-more-mv .btn svg { display: block; }
  .vw-more-x0 { visibility: hidden; } /* a missing ×, invisible: its width keeps the arrows in their columns */
}
