/* Admin integration pages (master goal V·D·21, page 32): Offsite Backup.
 * Strict CSP: a linked stylesheet instead of an injected one and no inline styles; every rule is scoped to the
 * integration pages so another page's messages and buttons keep their own look. */
.ig-page { max-width: 840px; margin: 0 auto; padding: 4px 2px 40px; }
.ig-hero { margin: 6px 2px 18px; }
.ig-hero h1 { font-size: 1.45rem; margin: 0 0 4px; font-weight: 700; }
.ig-hero p { margin: 0; color: var(--muted, #64748b); font-size: .9rem; line-height: 1.45; }
.ig-card { background: var(--panel); border: 1px solid var(--border, #e2e8f0); border-radius: 14px; padding: 20px 22px;
  margin: 0 0 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.ig-chead { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.ig-chead .ig-ico { font-size: 1.3rem; }
.ig-chead h3 { margin: 0; font-size: 1.05rem; font-weight: 650; flex: 1; }
.ig-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; }
.ig-field label { font-size: .82rem; font-weight: 600; color: var(--muted, #475569); }
.ig-field .hint { font-size: .76rem; color: var(--muted, #94a3b8); font-weight: 400; }
.ig-input, .ig-select { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--border, #cbd5e1);
  border-radius: 9px; background: var(--bg-2); color: inherit; font-size: .9rem; font-family: inherit; }
.ig-input:focus, .ig-select:focus { outline: 2px solid var(--accent, #6366f1); outline-offset: 0; border-color: transparent; }
.ig-input:disabled, .ig-select:disabled { opacity: .7; cursor: not-allowed; }
.ig-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ig-row .ig-field { flex: 1; min-width: 200px; }
.ig-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ig-actions.ig-spaced { margin-top: 14px; }
.ig-actions .msg { font-size: .83rem; }
.ig-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.ig-badge.ok { background: #dcfce7; color: #166534; }
.ig-badge.warn { background: #fef3c7; color: #92400e; }
.ig-badge.off { background: #f1f5f9; color: #475569; }
.ig-status { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--muted, #64748b); margin-top: 2px; }
.ig-status b { color: inherit; font-weight: 600; }
.ig-status.ig-summary { margin: 0 0 10px; }
.ig-page .msg.ok { color: var(--ok); }
.ig-page .msg.error { color: var(--danger); }
.ig-page .msg.info { color: var(--muted); }
.ig-btn { padding: 8px 16px; border-radius: 9px; border: 1px solid var(--accent, #6366f1); background: var(--accent-fill); color: #fff;
  font-weight: 600; font-size: .85rem; cursor: pointer; font-family: inherit; }
.ig-btn.ghost { background: transparent; color: var(--accent, #6366f1); }
.ig-btn:disabled { opacity: .55; cursor: not-allowed; }
.ig-hist { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 6px; }
.ig-hist.ig-spaced { margin-top: 12px; }
.ig-hist th, .ig-hist td { text-align: start; padding: 6px 8px; border-bottom: 1px solid var(--border, #eef2f7); }
.ig-hist th { color: var(--muted, #64748b); font-weight: 600; }
html[data-theme="dark"] .ig-card, :root[data-theme="dark"] .ig-card { background: #0f172a; border-color: #1e293b; }
html[data-theme="dark"] .ig-input, html[data-theme="dark"] .ig-select { background: #0b1220; border-color: #334155; }
html[data-theme="dark"] .ig-badge.off { background: #0b1220; }
html[data-theme="dark"] .ig-badge.off { color: #9aa8bb; }
html[data-theme="dark"] .ig-badge.ok { background: #052e1a; color: #4ade80; }
html[data-theme="dark"] .ig-badge.warn { background: #3a2a06; color: #fbbf24; }
@media (max-width: 600px) {
  .ig-card { padding: 16px 14px; }
  .ig-hist { display: block; overflow-x: auto; }
}
/* Off-site backup (admin-integ-offsite.js): the folded storage-target editor and its field grid. */
.ob-editor > summary { cursor: pointer; list-style: none; padding-block-end: 14px; }
.ob-editor > summary::-webkit-details-marker { display: none; }
.ob-editor > summary::after { content: "\25BE"; margin-inline-start: auto; color: var(--muted); }
.ob-editor[open] > summary::after { content: "\25B4"; }
.ob-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-block: 12px; }
.ig-msg { flex: 1 1 220px; min-width: 0; }
