/**
 * @file        sg-storage.css
 * @description Account module styles: storage warning C-11, storage page T-21, consent dialog C-01 and onboarding A-06 (mobile first, light and dark via the sg.css variables)
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         3094f7ed-1740-42b2-8403-9566ded7caae
 * @version     0.0.0.1
 * @created     2026-12-02
 * @updated     2026-12-02
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* C-11 storage warning: icon, bold title, mono figure, one line of advice; the link wraps under it on narrow screens. */
.sg-storage-warn__body { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.sg-storage-warn__body .sg-icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.sg-storage-warn .sg-mono { white-space: nowrap; }
.sg-storage-warn__text { display: block; }
.sg-storage-warn--full .sg-icon { color: var(--accent); }

/* T-21 storage panel: tier chip and heading on the left, plan link on the right; big mono figure above the meter. */
.sg-storage__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sg-storage__head h2 { margin: 6px 0 0; }
.sg-storage__figure { font-size: 1.25rem; font-weight: 600; margin: 12px 0 0; }

/* T-21 backup form: the fields stack on phones and sit in one row with the buttons from 900 px. */
.sg-backup-form { display: grid; gap: 12px; margin-top: 12px; }
.sg-backup-form .sg-actions { margin: 0; }
@media (min-width: 900px) {
  .sg-backup-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .sg-backup-form .sg-field { margin: 0; }
  .sg-backup-form fieldset { grid-column: 1 / -1; }
}

/* T-21 requested backups: one card per backup. */
.sg-backups { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.sg-backup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.sg-backup__main { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.sg-backup__main .sg-icon { flex: 0 0 auto; width: 20px; height: 20px; color: var(--ink-muted); margin-top: 2px; }
.sg-backup__main strong, .sg-backup__main .sg-mono { display: block; overflow-wrap: anywhere; }
.sg-backup__main .sg-mono { font-size: 0.85rem; }
.sg-backup--ready .sg-backup__main .sg-icon { color: var(--ink); }
.sg-backup--expired { opacity: 0.75; }

/* C-01 consent dialog: scrolls inside itself on small screens and at 130 % text; three buttons of equal weight. */
.sg-consent { max-height: calc(100vh - 120px); overflow-y: auto; }
.sg-consent p { margin: 0 0 12px; }
.sg-consent__actions { display: grid; gap: 8px; }
.sg-consent__button { background: var(--ink); color: var(--surface); border: 1px solid var(--ink); justify-content: center; width: 100%; }
.sg-consent__choose { margin-top: 8px; }
.sg-consent__choose > summary { list-style: none; cursor: pointer; }
.sg-consent__choose > summary::-webkit-details-marker { display: none; }
.sg-consent__rows { display: grid; margin: 12px 0; border: 1px solid var(--border); border-radius: var(--radius); }
.sg-consent__row, .sg-consent__rows .sg-check { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--border); margin: 0; }
.sg-consent__rows > :first-child { border-top: 0; }
.sg-consent__row strong, .sg-consent__row .sg-muted { display: block; }
.sg-consent__row .sg-muted { font-size: 0.875rem; }
@media (min-width: 600px) {
  .sg-consent__actions { grid-template-columns: 1fr 1fr; }
}

/* A-06 onboarding: named step tabs, option cards, invite field with copy button; Skip and Continue at the foot. */
.sg-welcome__tabs { list-style: none; margin: 0 0 8px; padding: 0; display: none; gap: 8px; }
.sg-welcome__tab { padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink-muted); font-size: 0.875rem; }
.sg-welcome__tab--on { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.sg-welcome__tab--done { color: var(--ink); }
.sg-welcome__chips { list-style: none; padding: 0; }
.sg-welcome__options { display: grid; gap: 12px; margin: 12px 0; }
.sg-welcome__option { padding: 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.sg-welcome__option h2 { font-size: 1.05rem; margin: 8px 0 4px; }
.sg-welcome__invite { margin-top: 16px; }
.sg-welcome__copy { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-welcome__copy .sg-copy { flex: 1 1 200px; min-width: 0; }
.sg-welcome__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
@media (min-width: 600px) {
  .sg-welcome__tabs { display: flex; flex-wrap: wrap; }
  .sg-welcome .sg-dots { display: none; }
}
@media (min-width: 900px) {
  .sg-welcome__options { grid-template-columns: 1fr 1fr; }
}
