/* INTERFACE SIZE (js/uiscale.js).

   Simon, 22 Oct 2026: "can we add a control somewhere so we can adjust the
   overall scale of the ui for the app, finding on my laptop as screen
   smaller everything is too big". The row in Settings, the toast the
   shortcuts show, and the one-time tip on a small window. */

#settings .uiscale-row { display: block; margin-top: 12px; }
#settings .uiscale-head { display: flex; align-items: baseline; gap: 6px; }
#settings .uiscale-now { font-size: 11px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
#settings .uiscale-reset {
  margin-left: auto; background: none; border: 0; padding: 0 2px; cursor: pointer;
  font: inherit; font-size: 10.5px; color: var(--text-dim);
}
#settings .uiscale-reset:hover, #settings .uiscale-reset:focus-visible { color: var(--accent); outline: none; }
#settings .uiscale-reset[disabled] { opacity: .35; cursor: default; color: var(--text-dim); }
.uiscale-seg {
  display: flex; margin-top: 6px; padding: 2px; gap: 2px;
  background: var(--surface-sunk, rgba(0, 0, 0, .25)); border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
}
.uiscale-seg button {
  flex: 1 1 0; min-width: 0; height: 24px; padding: 0; border: 0; cursor: pointer;
  background: transparent; color: var(--text-dim); border-radius: 4px;
  font: inherit; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.uiscale-seg button:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.uiscale-seg button:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.uiscale-seg button.on { background: var(--accent); color: #fff; }
#settings .uiscale-hint { margin-top: 5px; }

/* "Interface 90%" -- shown by the shortcuts and the View menu, gone in a
   second. Not a button and never in the way of one. */
#uiscale-toast {
  position: fixed; left: 50%; top: 18%; transform: translateX(-50%);
  z-index: 2147483000; pointer-events: none;
  padding: 8px 14px; border-radius: 8px;
  background: rgba(16, 16, 20, .92); border: 1px solid var(--border, #2a2a31);
  color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  opacity: 0; transition: opacity .14s ease;
}
#uiscale-toast.show { opacity: 1; }

/* The one-time tip on a small window. Bottom left, small, and it goes. */
#uiscale-tip {
  position: fixed; left: 16px; bottom: 16px; z-index: 939; max-width: 300px;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px 9px 12px; border-radius: 8px;
  background: var(--card, #141417); border: 1px solid var(--border, #2a2a31);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
  color: var(--text, #eee); font-size: 12px; line-height: 1.35;
}
#uiscale-tip b { font-weight: 700; }
#uiscale-tip .uit-open {
  flex: none; height: 24px; padding: 0 9px; border-radius: 5px; cursor: pointer;
  border: 1px solid var(--accent); background: transparent; color: #fff; font: inherit; font-size: 11px; font-weight: 600;
}
#uiscale-tip .uit-open:hover { background: rgba(229, 10, 78, .14); }
#uiscale-tip .uit-x {
  flex: none; width: 20px; height: 20px; border: 0; padding: 0; cursor: pointer;
  background: none; color: var(--text-faint, #888); font-size: 15px; line-height: 1;
}
#uiscale-tip .uit-x:hover { color: var(--text, #fff); }
