/* Administration : apparence (thèmes), synchronisations */

/* Page Apparence */
.theme-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }

.theme-field { margin-bottom: .7rem; }
.theme-field > label { display: block; font-size: .9rem; margin-bottom: .2rem; }
.theme-field .help { font-size: .8rem; color: var(--muted); }
.theme-thumb { max-height: 70px; max-width: 220px; border-radius: 6px; border: 1px solid var(--line); margin: .2rem 0; display: block; }
.theme-thumb.wall { max-height: 90px; object-fit: cover; }

/* Synchronisations */
.sync-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.sync-state.st-ok { border-color: var(--ok); color: var(--ok); }
.sync-state.st-error { border-color: var(--bad); color: var(--bad); }
.sync-state.st-running, .sync-state.st-queued { border-color: var(--accent); color: var(--accent); }
.sync-log { max-height: 16rem; overflow: auto; white-space: pre-wrap; font-size: .75rem; background: rgba(0,0,0,.25);
  padding: .5rem; border-radius: 6px; margin: .3rem 0 0; }
.nowrap { white-space: nowrap; }

/* ---- page Apparence : thèmes */
.theme-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.theme-card { display: flex; flex-direction: column; gap: .35rem; cursor: pointer; padding: .4rem; border-radius: 10px;
  border: 2px solid transparent; }
.theme-card:hover { border-color: var(--line); }
.theme-card.on, .theme-card:has(input:checked) { border-color: var(--accent); }
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tc-preview { display: grid; grid-template-rows: 14px 1fr 30px; gap: 4px; height: 96px; padding: 4px; border-radius: 7px; border: 1px solid; }
.tc-bar, .tc-panel { display: flex; align-items: center; gap: 4px; padding: 0 5px; border-radius: 3px; border: 1px solid; }
.tc-bar i, .tc-panel i { width: 14px; height: 6px; border-radius: 2px; }
.tc-bar b { width: 16px; height: 3px; border-radius: 2px; opacity: .7; }
.tc-panel { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; }
.tc-panel b { width: 80%; height: 3px; border-radius: 2px; }
.tc-panel i { width: 26px; }
.tc-chart { display: flex; align-items: center; justify-content: center; border-radius: 3px; }
.tc-chart svg { width: 55%; height: auto; }
.tc-name { font-size: .88rem; font-weight: 600; text-align: center; }
