/* SPDX-License-Identifier: MPL-2.0
 * Copyright (C) 2026 Styves Goupil
 * FRASIL SOURCE's SOURCE shards (card #260, save.js): SAVE in the head and its small panel under it (a name, SAVE, SAVE
 * AS; signed out, SIGN IN), in the head; CONNECT's SAVED, a row of them under the starts. The phone (under 760 px wide):
 * SAVE on the views' row, the panel across the head, the row along it. */

/* ------------------------------------------------------------ the head's SAVE */
.sv { height: 40px; padding: 0 16px; border: 1.5px solid var(--slate); border-radius: 10px; font: 600 13px/1 var(--f-ui); letter-spacing: .2em; color: var(--fog);
  white-space: nowrap; }
.sv:hover, .sv[aria-expanded="true"] { border-color: var(--fog); }
.sv.ok { border-color: var(--ice); color: var(--ice); }
.sv-pop { position: absolute; z-index: 40; display: grid; gap: 10px; width: 300px; padding: 14px; border: 1.5px solid var(--steel); border-radius: 12px;
  background: rgba(14, 19, 25, .97); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7); }
.sv-n { width: 100%; height: 42px; padding: 0 12px; border: 1.5px solid var(--steel); border-radius: 9px; background: var(--abyss);
  font: 600 16px/1 var(--f-ui); letter-spacing: .16em; color: var(--white); text-transform: uppercase; }
.sv-n:focus { border-color: var(--ice); outline: none; }
.sv-r { display: flex; gap: 8px; }
.sv-b, .sv-go { flex: 1; display: flex; align-items: center; justify-content: center; height: 38px; border: 1.5px solid var(--fog); border-radius: 9px;
  font: 600 12.5px/1 var(--f-ui); letter-spacing: .2em; color: var(--white); text-decoration: none; }
.sv-b.alt { border-color: var(--slate); color: var(--fog); }
.sv-b:hover, .sv-go:hover { box-shadow: 0 0 24px rgba(220, 227, 234, .18); }
.sv-b:disabled { border-color: var(--steel); color: var(--slate); box-shadow: none; cursor: default; }
.sv-say { min-height: 11px; font: 600 10.5px/1.3 var(--f-ui); letter-spacing: .16em; color: var(--rose); }
.sv-say.ok { color: var(--ice); }
.sv-tag { justify-self: center; font: 600 9.5px/1 var(--f-ui); letter-spacing: .3em; color: var(--slate); }
/* SAVED said, and where it is (card #284) */
.sv-pop.sv-said { border-color: var(--ice); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7), 0 0 26px -10px rgba(110, 208, 255, .45); }
.sv-done { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 8px 10px; }
.sv-done b { padding-top: 2px; font: 600 13px/1.25 var(--f-ui); letter-spacing: .18em; color: var(--ice); overflow-wrap: anywhere; }
.sv-done p { grid-column: 1 / -1; margin: 0; font: 400 13px/1.45 var(--f-ui); color: var(--fog); }
.sv-done a { color: var(--white); text-decoration: underline; text-decoration-color: var(--slate); text-underline-offset: 3px; }
.sv-done a:hover { text-decoration-color: var(--ice); }
.sv-x { width: 26px; height: 26px; margin: -4px -4px 0 0; border-radius: 7px; font: 400 18px/1 var(--f-ui); color: var(--mist); }
.sv-x:hover { color: var(--white); background: rgba(220, 227, 234, .08); }

/* ------------------------------------------------------------ CONNECT's SAVED */
.c-saved { display: flex; align-items: center; gap: 16px; max-width: 100%; margin-top: 26px; }
.c-saved .grp { flex: none; }
.sv-list { display: flex; gap: 10px; min-width: 0; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.sv-list::-webkit-scrollbar { display: none; }
.sv-it { flex: none; display: grid; gap: 7px; justify-items: start; padding: 11px 16px 10px; border: 1.5px solid var(--steel); border-radius: 12px;
  background: rgba(14, 19, 25, .72); }
.sv-it b { font: 600 13.5px/1 var(--f-ui); letter-spacing: .16em; color: var(--white); white-space: nowrap; }
.sv-it small { font: 600 9.5px/1 var(--f-ui); letter-spacing: .2em; color: var(--mist); white-space: nowrap; }
.sv-it:hover { border-color: var(--fog); }
.sv-it.on { border-color: var(--ice); box-shadow: 0 0 26px -6px rgba(110, 208, 255, .5); }
.sv-it:disabled { opacity: .5; cursor: default; }
.sv-sign { height: 34px; display: inline-flex; align-items: center; padding: 0 16px; border: 1.5px solid var(--fog); border-radius: 10px;
  font: 600 12px/1 var(--f-ui); letter-spacing: .2em; color: var(--white); text-decoration: none; }

@container scr (max-width: 760px) {
  .hd .vsw { min-width: 0; }   /* (SAVE on the views' row by REC, source.css: the first row the city's and the device's) */
  .sv { order: 8; align-self: stretch; height: auto; padding: 0 14px; font-size: 12px; }
  .sv-pop { left: 0; right: 0; width: auto; }
  .sv-pop.sv-said { position: static; order: 20; flex: 0 0 100%; }   /* (SAVED said under the head: nothing covered, card #284) */
  .c-saved { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; margin-top: 22px; }
  .c-saved .grp { text-align: center; }
  .sv-list { margin: 0 -16px; padding: 2px 16px; }
}
