:root { --bg: #1B1B1F; --bg-card: #26262B; --bg-elevated: #2C2C32; --bg-input: #1A1A20; --border: #37373D; --text: #F2F2F2; --text-secondary: #A0A0A8; --accent: #3B82F6; --accent-hover: #2563EB; --installed: #16A34A; --installed-bg: #0E2A1B; --busy: #F59E0B; --busy-bg: #3A2A0E; --danger: #EF4444; --danger-bg: #2A1414; } * { box-sizing: border-box; } body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', Roboto, system-ui, sans-serif; font-size: 14px; line-height: 1.5; margin: 0; } nav { background: #202024; border-bottom: 1px solid var(--border); padding: 12px 24px; display: flex; gap: 8px; align-items: center; } nav .brand { color: #fff; font-weight: 700; margin-right: 16px; } nav a { color: var(--text-secondary); text-decoration: none; padding: 6px 14px; border-radius: 4px; font-size: 13px; } nav a:hover { background: var(--bg-elevated); color: var(--text); } nav a.active { background: var(--bg-elevated); color: var(--text); } nav .spacer { flex: 1; } nav a.logout { color: var(--text-secondary); } main { padding: 24px; max-width: 1200px; margin: 0 auto; } h1 { margin: 0 0 24px 0; font-size: 26px; font-weight: 600; } h2 { margin: 0 0 12px 0; font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; } .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 20px; margin-bottom: 16px; } .row { display: flex; gap: 16px; flex-wrap: wrap; } .row .col { flex: 1; min-width: 200px; } table { width: 100%; border-collapse: collapse; } th { text-align: left; color: var(--text-secondary); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 8px; border-bottom: 1px solid var(--border); font-weight: 600; } td { padding: 12px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; } tr:last-child td { border-bottom: none; } tr:hover td { background: var(--bg-elevated); } .btn { display: inline-block; padding: 8px 16px; border-radius: 4px; border: none; cursor: pointer; font-size: 13px; font-family: inherit; text-decoration: none; font-weight: 500; } .btn-primary { background: var(--accent); color: white; } .btn-primary:hover { background: var(--accent-hover); } .btn-success { background: var(--installed); color: white; } .btn-danger { background: var(--danger); color: white; } .btn-secondary { background: var(--bg-elevated); color: var(--text); } .btn-secondary:hover { background: #3A3A40; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } input[type=text], input[type=password], input[type=date], input[type=datetime-local], input[type=number], select, textarea { background: var(--bg-input); color: var(--text); border: 1px solid var(--border); padding: 8px 10px; border-radius: 4px; font-family: inherit; font-size: 13px; width: 100%; } input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); } label { display: block; margin-bottom: 4px; font-size: 12px; color: var(--text-secondary); font-weight: 500; } .field { margin-bottom: 16px; } .field input[type=checkbox] { width: auto; margin-right: 8px; } .flash { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; } .flash.error { background: var(--danger-bg); color: #FCA5A5; border: 1px solid var(--danger); } .flash.success { background: var(--installed-bg); color: #6EE7B7; border: 1px solid var(--installed); } .badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; color: white; line-height: 1.5; } .badge-success { background: var(--installed); } .badge-danger { background: var(--danger); } .badge-warning { background: var(--busy); } .badge-secondary { background: var(--bg-elevated); color: var(--text-secondary); } .muted { color: var(--text-secondary); } .toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; } code { background: var(--bg-input); padding: 2px 6px; border-radius: 3px; font-family: 'Cascadia Code', 'Consolas', monospace; font-size: 12px; color: #C5E1A5; } pre { background: var(--bg-input); padding: 12px; border-radius: 4px; font-family: 'Cascadia Code', 'Consolas', monospace; font-size: 12px; overflow: auto; white-space: pre-wrap; word-break: break-all; } .kpi { font-size: 36px; font-weight: 700; line-height: 1; } .kpi-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; font-weight: 600; } ol, ul { margin: 0; padding-left: 20px; } li { margin-bottom: 4px; } details summary { cursor: pointer; padding: 4px 0; } details[open] { background: var(--bg-elevated); padding: 8px; border-radius: 4px; margin: 4px 0; } a { color: var(--accent); } a:hover { text-decoration: underline; } /* ============================================================ Modal () — éditeur d'une entrée du manifest Remplace les
inline qui débordaient horizontalement ============================================================ */ /* Styles visuels appliqués au dialog OUVERT ([open] est posé par showModal() automatiquement). Sans le sélecteur [open], les règles `display: flex` etc. écrasaient le `display: none` du user-agent stylesheet → tous les dialogs apparaissaient inline au lieu d'être cachés tant que pas explicitement ouverts. */ dialog.edit-modal[open] { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 0; margin: auto; width: min(640px, 92vw); max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6); } dialog.edit-modal::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); } dialog.edit-modal > header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; background: var(--bg-elevated); } dialog.edit-modal > header h3 { margin: 0; font-size: 15px; font-weight: 600; flex: 1; color: var(--text); } dialog.edit-modal > header .close-x { background: transparent; border: none; color: var(--text-secondary); cursor: pointer; font-size: 20px; line-height: 1; padding: 4px 8px; border-radius: 4px; } dialog.edit-modal > header .close-x:hover { background: var(--bg-card); color: var(--text); } /* Onglets verticaux compacts en tête */ .modal-tabs { display: flex; gap: 4px; padding: 8px 12px 0 12px; border-bottom: 1px solid var(--border); background: var(--bg-card); flex-wrap: wrap; } .modal-tabs button { background: transparent; border: none; color: var(--text-secondary); cursor: pointer; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 4px 4px 0 0; border-bottom: 2px solid transparent; margin-bottom: -1px; } .modal-tabs button:hover { color: var(--text); background: var(--bg-elevated); } .modal-tabs button.active { color: var(--text); border-bottom-color: var(--accent); } .modal-body { flex: 1; overflow-y: auto; padding: 20px; } .modal-body > section[hidden] { display: none; } .modal-body > section { display: block; } .modal-body .field:last-child { margin-bottom: 0; } .modal-body .hint { color: var(--text-secondary); font-size: 11px; margin: 4px 0 0 0; line-height: 1.4; } .modal-body .warn { color: #FBBF24; font-size: 11px; margin: 4px 0 0 0; line-height: 1.4; } .modal-footer { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--bg-elevated); display: flex; justify-content: flex-end; gap: 8px; } /* Tooltip-style note in the modal sections explaining a section purpose */ .section-intro { background: var(--bg-input); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 4px; font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; } /* Liste de checkboxes verticale propre (pour Channels) */ .checkbox-list { display: flex; flex-direction: column; gap: 2px; } .checkbox-list label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; font-size: 13px; color: var(--text); font-weight: normal; cursor: pointer; margin-bottom: 0; } .checkbox-list label:hover { background: var(--bg-elevated); } .checkbox-list label code { flex: 0 0 auto; } .checkbox-list label .muted { margin-left: auto; } /* Actions inline d'une row de version : harmonise les hauteurs et l'espacement */ .row-actions { display: inline-flex; gap: 6px; align-items: center; flex-wrap: nowrap; justify-content: flex-end; } .row-actions .btn { white-space: nowrap; } /* ============================================================ Overlay blocant affiché pendant les opérations longues (re-hash d'un ZIP de 13 Go = 3-5 min côté serveur OVH). Visible tant que le browser n'a pas reçu la réponse POST, disparaît naturellement au reload de page suivant. ============================================================ */ .busy-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px); z-index: 9999; display: flex; align-items: center; justify-content: center; } .busy-overlay[hidden] { display: none; } .busy-content { background: var(--bg-card); border: 1px solid var(--border); padding: 40px 56px; border-radius: 12px; text-align: center; max-width: 480px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); } .busy-content h3 { margin: 0 0 10px; font-size: 18px; color: var(--text); text-transform: none; letter-spacing: 0; } .busy-content p { margin: 6px 0; color: var(--text-secondary); font-size: 13px; line-height: 1.6; } .busy-spinner { width: 56px; height: 56px; border: 4px solid var(--bg-elevated); border-top-color: var(--accent); border-radius: 50%; animation: busy-spin 1s linear infinite; margin: 0 auto 24px; } @keyframes busy-spin { to { transform: rotate(360deg); } }