/* Extrait tel quel du monocode V1 — parité totale. */
      #settings-back {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        z-index: 9500;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 24px;
      }
      #settings-back.open {
        display: flex;
      }
      #settings-modal {
        background: var(--white, #fff);
        border-radius: 16px;
        width: 560px;
        max-width: 96vw;
        max-height: 88vh;
        overflow-y: auto;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
        font-family: inherit;
      }
      .stg-head {
        padding: 18px 22px;
        border-bottom: 1px solid var(--gray-200);
        display: flex;
        align-items: center;
        gap: 12px;
      }
      .stg-head h2 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: var(--navy);
      }
      .stg-x {
        margin-left: auto;
        background: none;
        border: none;
        color: var(--gray-500);
        cursor: pointer;
        font-size: 22px;
        line-height: 1;
        padding: 4px 8px;
      }
      .stg-x:hover {
        color: var(--gray-900);
      }
      .stg-section {
        padding: 18px 22px;
        border-bottom: 1px solid var(--gray-200);
      }
      .stg-section:last-child {
        border-bottom: none;
      }
      .stg-section h3 {
        margin: 0 0 10px;
        font-size: 11.5px;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        color: var(--gray-500);
        font-weight: 700;
      }
      .stg-storage {
        background: var(--gray-50);
        border-radius: 10px;
        padding: 12px 14px;
        display: flex;
        align-items: center;
        gap: 14px;
      }
      .stg-storage-num {
        font-size: 18px;
        font-weight: 700;
        color: var(--navy);
        min-width: 90px;
      }
      .stg-storage-bar {
        flex: 1;
        height: 8px;
        border-radius: 5px;
        background: var(--gray-200);
        overflow: hidden;
        position: relative;
      }
      .stg-storage-bar-fill {
        height: 100%;
        background: var(--navy);
        transition: width 0.3s;
      }
      .stg-storage-bar-fill.warning {
        background: #f59e0b;
      }
      .stg-storage-bar-fill.danger {
        background: #dc2626;
      }
      .stg-storage-pct {
        font-size: 13px;
        font-weight: 600;
        color: var(--gray-700);
        min-width: 42px;
        text-align: right;
      }
      .stg-action {
        display: flex;
        gap: 14px;
        align-items: flex-start;
        padding: 12px 0;
      }
      .stg-action + .stg-action {
        border-top: 1px solid var(--gray-100);
      }
      .stg-action-icon {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(15, 118, 110, 0.1);
        color: var(--navy);
      }
      .stg-action-icon svg {
        width: 18px;
        height: 18px;
      }
      .stg-action-body {
        flex: 1;
        min-width: 0;
      }
      .stg-action-title {
        font-size: 13px;
        font-weight: 700;
        color: var(--gray-900);
        margin-bottom: 2px;
      }
      .stg-action-desc {
        font-size: 12px;
        color: var(--gray-600);
        line-height: 1.5;
      }
      .stg-action-btn {
        flex: 0 0 auto;
        padding: 7px 14px;
        font-size: 12.5px;
        font-weight: 600;
        border-radius: 8px;
        background: var(--navy);
        color: #fff;
        border: none;
        cursor: pointer;
        align-self: center;
        white-space: nowrap;
      }
      .stg-action-btn:hover {
        background: var(--navy-dark, #0d5f6a);
      }
      .stg-action-btn.ghost {
        background: var(--white, #fff);
        color: var(--navy);
        border: 1px solid var(--navy);
      }
      .stg-action-btn.ghost:hover {
        background: rgba(15, 118, 110, 0.08);
      }
      .stg-foot {
        padding: 12px 22px;
        font-size: 11px;
        color: var(--gray-500);
        text-align: center;
        background: var(--bg, #f5f4ee);
      }
