/**
 * @file        sg-security.css
 * @description Styles of K3-01 to K3-05: sessions, two-factor setup and step, recovery codes (K3-03 mockup), handle change
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         e41b9d27-6a0c-4f3e-8d15-b2c7f9a04e68
 * @version     0.1.0.1
 * @created     2026-12-01
 * @updated     2026-12-01
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* Mono overline above headings (Phase 3 views): IBM Plex Mono, small caps-like tracking. */
.sg-sec-overline { margin: 0 0 4px; font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--ink-muted); }
.sg-sec-mono { font-family: var(--font-mono); overflow-wrap: anywhere; }
.sg-sec-session > span { min-width: 0; overflow-wrap: anywhere; }
.sg-sec-details { margin: 16px 0 0; border-top: 1px solid var(--border); padding-top: 12px; }
.sg-sec-details summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.sg-sec-code-input { font-family: var(--font-mono); letter-spacing: 0.15em; max-width: 14em; }

/* K3-02 setup steps */
.sg-sec-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sg-sec-qr-wrap { display: flex; justify-content: center; margin: 16px 0; }
/* The QR code keeps its own white quiet zone in both themes, so phones read it in dark mode too. */
.sg-sec-qr { width: min(220px, 100%); height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.sg-sec-key { font: 500 1.05rem/1.6 var(--font-mono); letter-spacing: 0.06em; overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; }

/* K3-03 recovery codes */
.sg-sec-codes-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sg-sec-codes-head h1 { margin-bottom: 8px; }
.sg-sec-codes { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5em, 1fr)); gap: 8px; }
.sg-sec-codes li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.sg-sec-codes__n { font: 500 0.75rem var(--font-mono); color: var(--ink-muted); }
.sg-sec-codes__code { font: 500 1.05rem var(--font-mono); letter-spacing: 0.06em; color: var(--ink); }
.sg-sec-codes-actions { flex-wrap: wrap; align-items: center; }
.sg-sec-codes-actions [data-rc-status]:empty { display: none; }
.sg-button[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* K3-05 handle change */
.sg-sec-status { min-height: 1.6em; margin: 4px 0 0; }
.sg-sec-status[data-state="available"] { color: var(--ink); }
.sg-sec-status[data-state="taken"], .sg-sec-status[data-state="reserved"], .sg-sec-status[data-state="invalid"], .sg-sec-status[data-state="wait"] { color: var(--accent); }
.sg-sec-preview { margin: 16px 0; padding: 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.sg-sec-preview p { margin: 4px 0; }

/* Printing the recovery codes: only the codes panel. */
@media print {
  body.sg-sec-printing header, body.sg-sec-printing footer, body.sg-sec-printing nav, body.sg-sec-printing .sg-alert,
  body.sg-sec-printing .sg-sec-codes-actions, body.sg-sec-printing .sg-check, body.sg-sec-printing [data-rc-done] { display: none !important; }
  .sg-sec-codes li { border-color: #000; background: #fff; color: #000; }
}
