/* Mon dashboard — feuille de style principale (thème sombre par défaut) */
:root {
  --bg: #1f252c;
  --bg2: #262e36;
  --card: #2a333c;
  --card-h: #313b45;
  --line: #3a4550;
  --text: #effbff;
  --muted: #9aa9b5;
  --accent: #6ee2ff;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --on-accent: #0d1b22;
  --line-soft: rgba(58, 69, 80, .55);
  --border-h: #4b5966;
  --dim: #66737e;
  --accent-soft: rgba(110, 226, 255, .1);
  --overlay: rgba(8, 12, 16, .72);
  --shadow: rgba(0, 0, 0, .45);
  --wx-cloud: #e8f1fb;
  --radius: 12px;
  --font: 'Roboto', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: 12.5px; }

/* ---------- En-tête ---------- */
.app { max-width: 1500px; margin: 0 auto; padding: 28px 28px 60px; }
header.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.greet .date { color: var(--muted); font-size: 14px; letter-spacing: .3px; }
.greet h1 { margin: 2px 0 0; font-size: 34px; font-weight: 600; letter-spacing: -.3px; }
.greet h1 .accent { color: var(--accent); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.btn {
  background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 7px 13px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: .15s; white-space: nowrap;
}
.btn:hover { background: var(--card-h); border-color: var(--border-h); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 3px 9px; font-size: 13px; border-radius: 7px; }
.btn.on { border-color: var(--accent); color: var(--accent); }
.iconbtn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 3px 6px; border-radius: 6px; }
.iconbtn:hover { color: var(--text); background: var(--card-h); }

/* ---------- Onglets ---------- */
nav.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tab {
  padding: 9px 16px; cursor: pointer; border: 0; background: none; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 7px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab.drop-target { background: var(--accent-soft); border-radius: 8px 8px 0 0; }
.tab .tab-edit { opacity: .6; font-size: 12px; }
.tab-add { color: var(--accent); }

/* ---------- Grille de widgets ---------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: start; }
.widget {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 0; display: flex; flex-direction: column;
}
.widget.bare { background: none; border-color: transparent; }
.widget.fixed-h { overflow: hidden; }
.widget.fixed-h .w-body { flex: 1; min-height: 0; overflow-y: auto; }
.editing .widget { position: relative; }
.rz { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; cursor: ns-resize; touch-action: none; }
.rz::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line); }
.rz:hover::after, .resizing .rz::after { background: var(--accent); }
.widget.resizing { outline: 1px solid var(--accent); }
.editing .widget .w-body { flex: 1; min-height: 0; overflow-y: auto; }
.w-body::-webkit-scrollbar { width: 8px; } .w-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.editing .widget { border-style: dashed; border-color: var(--border-h); }
.editing .widget.bare { border-color: var(--border-h); }
.widget.dragging { opacity: .4; }
.widget.drop-before { box-shadow: -4px 0 0 var(--accent); }
.w-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; min-height: 34px; }
.w-title { font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 600; flex: 1; }
.w-tools { display: none; gap: 2px; align-items: center; }
.editing .w-tools { display: flex; }
.w-tools select { background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; padding: 1px 4px; }
.handle { cursor: grab; }
.w-body { padding: 12px 16px 16px; min-width: 0; }
.w-err { color: var(--bad); font-size: 13px; padding: 4px 0; overflow-wrap: anywhere; }
.w-warn { color: var(--warn); font-size: 12.5px; margin-top: 8px; overflow-wrap: anywhere; }
.empty { color: var(--muted); font-size: 14px; text-align: center; padding: 22px 8px; }
.add-widget {
  border: 2px dashed var(--line); border-radius: var(--radius); min-height: 120px; grid-column: span 12;
  display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; background: none;
}
.add-widget:hover { color: var(--accent); border-color: var(--accent); }
.skeleton { height: 60px; border-radius: 8px; background: linear-gradient(90deg, var(--bg2), var(--card-h), var(--bg2)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

@media (max-width: 700px) { .app { padding: 18px 14px 40px; } .greet h1 { font-size: 26px; } }

/* ---------- Favoris ---------- */
.bm-section + .bm-section { margin-top: 26px; }
.bm-cat { font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--accent); font-weight: 700; margin: 0 0 12px; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.app-tile {
  display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 10px; position: relative;
  background: var(--card); border: 1px solid var(--line); transition: .15s;
}
.app-tile:hover { background: var(--card-h); transform: translateY(-1px); border-color: var(--border-h); }
.app-ico { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; }
.app-ico img { width: 34px; height: 34px; object-fit: contain; }
.letter { width: 34px; height: 34px; border-radius: 9px; background: var(--bg2); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.app-txt { min-width: 0; flex: 1; }
.app-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-url { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.up { background: var(--ok); box-shadow: 0 0 8px rgba(74, 222, 128, .6); }
.dot.down { background: var(--bad); box-shadow: 0 0 8px rgba(248, 113, 113, .6); }
.app-tile .dot { position: absolute; top: 9px; right: 9px; }
.app-tile.is-down { opacity: .72; }
.bm-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.bm-link { display: flex; align-items: center; gap: 9px; padding: 4px 0; }
.bm-link:hover .app-name { color: var(--accent); }
.bm-link img, .bm-link .letter { width: 20px; height: 20px; font-size: 11px; border-radius: 5px; }

/* ---------- Barres et chiffres ---------- */
.m-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.m-name { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 52px 1fr 60px; align-items: center; gap: 10px; margin: 7px 0; font-size: 13px; }
.bar-row .lbl { color: var(--muted); }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 7px; background: var(--bg2); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .6s; }
.bar > i.warn { background: var(--warn); } .bar > i.bad { background: var(--bad); }
.kv { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin-top: 10px; }
.kv b { font-weight: 600; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); display: inline-flex; gap: 5px; align-items: center; }
.chip.ok { border-color: rgba(74, 222, 128, .45); }
.chip.warn { border-color: var(--warn); color: var(--warn); }
.chip.fail { border-color: var(--bad); color: var(--bad); }
.section-lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 14px 0 4px; }
details.upd summary { cursor: pointer; font-size: 13px; margin-top: 12px; color: var(--warn); }
details.upd ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12.5px; }
.badge { background: var(--accent); color: var(--on-accent); border-radius: 99px; padding: 0 7px; font-size: 11.5px; font-weight: 700; }

/* ---------- Tableaux ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.iconbtn:disabled { opacity: .35; cursor: default; }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .ellip { max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.input, .toolbar input, .toolbar select {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; outline: none;
}
.input:focus { border-color: var(--accent); }
.host-pill { font-size: 11.5px; padding: 1px 8px; border-radius: 99px; background: var(--bg2); color: var(--accent); white-space: nowrap; }
.st-running { color: var(--ok); } .st-exited, .st-dead { color: var(--bad); } .st-paused, .st-restarting, .st-created { color: var(--warn); }

/* ---------- Médias / torrents ---------- */
.sess { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.sess:last-child { border-bottom: 0; }
.srv { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.srv.plex { background: #e5a00d; color: #1b1b1b; } .srv.jellyfin { background: linear-gradient(135deg, #aa5cc3, #00a4dc); color: #fff; }
.sess .meta { flex: 1; min-width: 0; }
.sess .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sess .bar { margin-top: 5px; height: 5px; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 5px; background: var(--bg2); color: var(--muted); }
.tag.tc { color: var(--warn); }
.speeds { display: flex; gap: 18px; font-size: 14px; margin-bottom: 10px; flex-wrap: wrap; align-items: center; }
.speeds b { font-variant-numeric: tabular-nums; }
.add-row { display: flex; gap: 8px; margin-bottom: 12px; }
.add-row input { flex: 1; }

/* ---------- Agenda ---------- */
.day { margin-bottom: 12px; }
.day-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.ev { display: flex; gap: 10px; padding: 5px 0 5px 10px; border-left: 3px solid var(--accent); margin: 4px 0; font-size: 13.5px; }
.ev .h { color: var(--muted); width: 82px; flex: none; font-variant-numeric: tabular-nums; }

/* ---------- RSS ---------- */
.rss-item { display: block; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.rss-item:last-child { border-bottom: 0; }
.rss-item:hover .t { color: var(--accent); }
.rss-item .t { font-weight: 500; }
.rss-item .s { font-size: 12px; color: var(--muted); }

/* ---------- Météo ---------- */
.wx-now { display: flex; align-items: center; gap: 16px; }
.wx-ico { font-size: 52px; line-height: 1; }
.wx-temp { font-size: 40px; font-weight: 300; }
.wx-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; text-align: center; font-size: 12.5px; }
.wx-days div { background: var(--bg2); border-radius: 8px; padding: 7px 2px; }
.wx-days .i { font-size: 22px; }

/* ---------- Modales et formulaires ---------- */
.overlay { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: flex-start; justify-content: center; padding: 50px 16px; z-index: 50; overflow-y: auto; backdrop-filter: blur(3px); }
.modal { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; width: 100%; max-width: 760px; box-shadow: 0 20px 60px var(--shadow); }
.modal.wide { max-width: 980px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-h h2 { margin: 0; font-size: 18px; }
.modal-b { padding: 18px 20px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.form { display: grid; gap: 13px; }
.form label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.form label.chk { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
.form input:not([type=checkbox]):not([type=color]), .form select, .form textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; outline: none; color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form textarea { min-height: 80px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help { font-size: 12.5px; color: var(--muted); background: var(--bg); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 0 8px 8px 0; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.type-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; text-align: left; }
.type-card:hover { border-color: var(--accent); }
.type-card .e { font-size: 24px; }
.int-list { display: grid; gap: 8px; }
.int-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.int-row .n { flex: 1; } .int-row .n b { display: block; }
.pills { display: flex; gap: 6px; margin-bottom: 16px; }
.test-msg { font-size: 13px; padding: 6px 0; }
.test-msg.ok { color: var(--ok); } .test-msg.ko { color: var(--bad); }
.cat-box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.cat-box .cat-h { display: flex; gap: 8px; margin-bottom: 8px; }
.cat-box .cat-h input { flex: 1; font-weight: 600; }
.link-row { display: grid; grid-template-columns: 30px 1.1fr 2fr 1fr 1fr auto; gap: 6px; margin-bottom: 6px; align-items: center; }
.ico-prev { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.ico-prev img, .ico-prev .letter { width: 24px; height: 24px; font-size: 12px; border-radius: 6px; object-fit: contain; }
.link-row input { padding: 6px 8px !important; font-size: 13px; }
.geo-res { display: grid; gap: 4px; }
.geo-res button { text-align: left; }
.int-pick { display: grid; gap: 6px; }

/* ---------- Connexion ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.auth h1 { margin: 0 0 4px; font-size: 24px; } .auth h1 span { color: var(--accent); }
.auth .form { margin-top: 18px; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--card-h); border: 1px solid var(--line); padding: 10px 18px; border-radius: 10px; z-index: 99; box-shadow: 0 8px 30px var(--shadow); }
.toast.ko { border-color: var(--bad); color: var(--bad); }

/* ---------- Agent ---------- */
.cmd-box { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; margin: 6px 0; }
.cmd-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.cmd-box pre { margin: 0; padding: 10px; white-space: pre-wrap; word-break: break-all; max-height: 260px; overflow: auto; }
.chip.sleep { opacity: .7; }
details.store summary { color: var(--muted); }

/* ---------- Notes Markdown ---------- */
.note-view { position: relative; }
.note-edit { float: right; margin: -6px -6px 4px 8px; font-size: 15px; }
.md { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md h1, .md h2, .md h3, .md h4 { margin: 14px 0 6px; line-height: 1.25; }
.md h1 { font-size: 21px; } .md h2 { font-size: 18px; } .md h3 { font-size: 16px; } .md h4, .md h5, .md h6 { font-size: 14px; color: var(--muted); }
.md p { margin: 6px 0; }
.md a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.md code { background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: 12.5px; font-family: ui-monospace, monospace; }
.md pre { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; }
.md pre code { border: 0; padding: 0; background: none; }
.md ul, .md ol { margin: 6px 0; padding-left: 22px; }
.md li { margin: 2px 0; }
.md li.task { list-style: none; margin-left: -20px; display: flex; gap: 7px; align-items: baseline; }
.md li.task input { accent-color: var(--accent); transform: translateY(1px); cursor: pointer; }
.md li.task .done { color: var(--muted); text-decoration: line-through; }
.md blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--accent); color: var(--muted); background: var(--accent-soft); border-radius: 0 6px 6px 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.md table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 8px 0; }
.md th, .md td { border: 1px solid var(--line); padding: 4px 8px; }
.md th { background: var(--bg2); }
.md mark { background: rgba(251,191,36,.3); color: inherit; border-radius: 3px; padding: 0 2px; }
.note-bar { margin-bottom: 8px; }
.note-src { width: 100%; min-height: 220px; resize: vertical; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px; line-height: 1.5; outline: none; }
.note-src:focus { border-color: var(--accent); }
.fixed-h .note-src, .editing .note-src { height: calc(100% - 44px); }
.w-body.editing-note { display: flex; flex-direction: column; }
.w-body.editing-note .note-editor { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.w-body.editing-note .note-src { flex: 1; }

/* ---------- Grille libre (gridstack) ---------- */
.grid-stack { margin: 0 -9px; }
.grid-stack-item-content { overflow: visible !important; }
.grid-stack-item .widget { height: auto; }
.grid-stack-item .widget.fixed-h { height: 100%; }
.grid-stack-item .widget.fixed-h .w-body { flex: 1; min-height: 0; overflow-y: auto; }
.editing .handle { cursor: grab; }
.grid-stack-placeholder > .placeholder-content { border: 2px dashed var(--accent) !important; background: var(--accent-soft) !important; border-radius: var(--radius); }
.grid-stack > .grid-stack-item > .ui-resizable-se { width: 16px; height: 16px; right: 12px; bottom: 12px; }
.editing .grid-stack-item > .ui-resizable-handle { opacity: .9; }
.add-widget { width: 100%; margin-top: 18px; }

/* ---------- Calendrier mensuel ---------- */
.cal-switch { display: flex; gap: 4px; justify-content: flex-end; margin: -6px 0 8px; }
.app:not(.editing) .cal-switch { margin: -40px 0 14px auto; width: max-content; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cal-title { font-weight: 600; font-size: 15px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-wd { font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-day { background: none; border: 0; cursor: pointer; padding: 3px 0 2px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 38px; }
.cal-day .n { width: 28px; height: 28px; line-height: 28px; border-radius: 50%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cal-day:hover .n { background: var(--card-h); }
.cal-day.out .n { color: var(--dim); }
.cal-day.today .n { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.cal-day.sel:not(.today) .n { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-day .dots { display: flex; gap: 2px; height: 5px; }
.cal-day .dots i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.cal-sel { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.cal-sel .day-lbl { text-transform: capitalize; }

/* ---------- Torrents ---------- */
.tor-list { display: flex; flex-direction: column; }
.tor { border-bottom: 1px solid var(--line-soft); }
.tor:last-child { border-bottom: 0; }
.tor-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 52px minmax(60px, 22%) auto 26px; gap: 8px; align-items: center; padding: 7px 2px; cursor: pointer; border-radius: 6px; font-size: 13.5px; }
.tor-row:hover { background: var(--card-h); }
.tor-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tor-bar { display: block; } .tor-bar .bar { display: block; }
.tor-btn { display: flex; align-items: center; justify-content: center; }
.tor-pct { text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); }
.tor-right { white-space: nowrap; text-align: right; color: var(--muted); }
.tor.open .tor-row { background: var(--card-h); }
.tor-det { display: flex; gap: 16px; align-items: flex-start; padding: 10px 6px 14px; }
.tor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; flex: 1; min-width: 0; font-size: 13px; }
.tor-grid span { display: block; color: var(--muted); font-size: 11.5px; }
.tor-grid b { font-weight: 500; overflow-wrap: anywhere; }
.tor-grid .wide { grid-column: 1 / -1; }
.ring { width: 64px; height: 64px; flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring .bg { stroke: var(--bg2); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 32px 32px; }
.ring.done .fg, .ring.seed .fg { stroke: var(--ok); } .ring.pause .fg { stroke: var(--warn); } .ring.err .fg { stroke: var(--bad); }
.ring text { fill: var(--text); font-size: 13px; font-weight: 600; text-anchor: middle; }
.tor.st-pause .tor-name { color: var(--muted); }
@media (max-width: 700px) { .tor-row { grid-template-columns: 20px minmax(0, 1fr) 48px 26px; } .tor-bar, .tor-right { display: none; } }

/* ---------- Flux RSS ---------- */
.rss-meta { margin-bottom: 4px; }
.rss-list { max-height: 460px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.fixed-h .rss-list { max-height: none; }
.fixed-h .w-dyn:has(.rss-list) { display: flex; flex-direction: column; height: 100%; }
.fixed-h .w-dyn .rss-list { flex: 1; min-height: 0; }
.rss-item.read .t { color: var(--muted); font-weight: 400; }
.unread-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 2px; }
.rss-more, .rss-end { text-align: center; padding: 10px 0; }
.rss-list::-webkit-scrollbar { width: 8px; } .rss-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.reader h1 { font-size: 22px; margin: 0 0 6px; line-height: 1.3; }
.reader-body { margin-top: 14px; font-size: 15px; line-height: 1.65; }
.reader-body img { max-width: 100%; height: auto; border-radius: 8px; }
.reader-body figure { margin: 12px 0; }
.reader-body figcaption { color: var(--muted); font-size: 12.5px; }

/* ---------- Météo ---------- */
.wx-top { display: flex; align-items: center; gap: 14px; }
.wx-big .wxi { width: 104px; height: 104px; }
.wx-info { flex: 1; min-width: 0; text-align: right; }
.wx-line { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; font-size: 15px; }
.wx-t { font-weight: 500; }
.wx-clock { font-size: 54px; font-weight: 300; line-height: 1.05; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.wx-date { font-size: 15px; }
.wx-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.wx-hours { display: flex; gap: 4px; overflow-x: auto; padding: 10px 2px 8px; margin-top: 10px; border-top: 1px solid var(--line); scrollbar-width: thin; }
.wx-hours::-webkit-scrollbar { height: 6px; } .wx-hours::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.wx-h { flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; }
.wx-ht { color: var(--muted); font-size: 12.5px; }
.wx-h b { font-size: 14px; }
.wx-hr { font-size: 10.5px; color: #7fb6f5; min-height: 14px; }
.wx-days2 { border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 4px; }
.wx-d { display: grid; grid-template-columns: 44px 26px 44px 1fr 48px; gap: 8px; align-items: center; font-size: 14px; }
.wx-dn { font-weight: 500; }
.wx-mn { text-align: right; } .wx-mx { text-align: right; font-weight: 500; }
.wx-track { position: relative; height: 18px; background: var(--bg2); border-radius: 9px; }
.wx-range { position: absolute; top: 0; bottom: 0; border-radius: 9px; }
.wx-mark { position: absolute; top: -2px; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--text); background: var(--card); box-shadow: 0 0 0 2px rgba(0,0,0,.25); }

/* ---------- Téléphone : favoris sur deux colonnes ---------- */
.w-badge { white-space: nowrap; display: inline-block; vertical-align: 1px; font-size: 10px; letter-spacing: .4px; text-transform: none; font-weight: 500; color: var(--warn, #fbbf24); border: 1px solid currentColor; border-radius: 6px; padding: 1px 6px; margin-left: 6px; opacity: .85; }
@media (max-width: 759px) {
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app-tile { gap: 9px; padding: 9px 10px; }
  .app-ico { width: 30px; height: 30px; }
  .app-ico img { width: 28px; height: 28px; }
  .app-ico .letter { width: 28px; height: 28px; font-size: 14px; }
  .app-name { font-size: 14px; padding-right: 10px; }
  .app-url { font-size: 11px; }
  .app-tile .dot { top: 8px; right: 8px; width: 8px; height: 8px; }
  .bm-cols { grid-template-columns: 1fr; gap: 18px; }
  .bm-cols > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .bm-cols .bm-cat { grid-column: 1 / -1; }
  .bm-link { min-width: 0; }
}
@media (max-width: 759px) {
  .form .row2 { grid-template-columns: 1fr; }
  .form .row2 .row2 { grid-template-columns: 1fr 1fr; }
  .form input, .form select, .form textarea { min-width: 0; max-width: 100%; }
}

/* ---------- Météo : présentations compactes ---------- */
.wx-mini-deg { font-size: 34px; font-weight: 300; line-height: 1; }
.wx-clock.wx-clock-s { font-size: 22px; font-weight: 300; line-height: 1.1; }
.wx-mm { font-size: 12.5px; }
.wx-mini { display: flex; align-items: center; gap: 12px; }
.wx-mini-t { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.wx-mini-txt { display: flex; flex-direction: column; font-size: 13px; min-width: 0; }
.wx-mini-txt > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-cols { display: flex; justify-content: space-between; gap: 4px; flex: 1; min-width: 0; }
.wx-col { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 13px; flex: 1; min-width: 0; }
.wx-hours-s .wx-h { flex: 0 0 44px; gap: 2px; font-size: 13px; }
.wx-band { display: flex; align-items: center; gap: 18px; }
.wx-band-now { display: flex; align-items: center; gap: 10px; flex: none; padding-right: 16px; border-right: 1px solid var(--line); }
.wx-cmp { display: flex; flex-direction: column; gap: 12px; }
.wx-cmp-head { display: flex; align-items: center; gap: 12px; }
.wx-cmp-main { flex: 1; min-width: 0; }
.wx-cmp-main .wx-sub { margin-top: 4px; text-align: left; }
.wx-cmp-clock { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.wx-cmp .wx-hours { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 759px) { .wx-band { flex-direction: column; align-items: stretch; gap: 10px; } .wx-band-now { border-right: 0; padding-right: 0; } }

/* ---------- Mot de passe affichable ---------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye.on { color: var(--accent); }
.pw-eye .pw-slash { display: none; }
.pw-eye.on .pw-slash { display: inline; }

/* ---------- Torrents : suppression ---------- */
.tor-actions { display: flex; justify-content: flex-end; padding: 0 6px 12px; }
.tor-del { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 6px 12px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--bad, #f87171) 45%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--bad, #f87171) 8%, transparent); font-size: 13px; }
.tor-del span { flex: 1 1 100%; font-weight: 500; }

/* ---------- Administration sur téléphone ---------- */
@media (max-width: 640px) {
  .int-row { flex-wrap: wrap; }
  .int-row .n { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
}
.int-row .n { min-width: 0; overflow-wrap: anywhere; }
/* ---------- Apparence ---------- */
.mode-btn { width: 40px; padding-left: 0; padding-right: 0; display: inline-flex; align-items: center; justify-content: center; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.theme-sw { border: 2px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; cursor: pointer; background: none; text-align: left; }
.theme-sw.on { border-color: var(--accent); }
.theme-sw .pv { height: 46px; display: flex; gap: 5px; padding: 8px; }
.theme-sw .pv i { flex: 1; border-radius: 5px; }
.theme-sw .nm { display: block; padding: 5px 8px; font-size: 12.5px; background: var(--card); }
.css-edit { width: 100%; min-height: 220px; font: 12.5px/1.5 ui-monospace, 'JetBrains Mono', monospace; tab-size: 2; }
.accent-row { display: flex; align-items: center; gap: 10px; }
.accent-row input[type=color] { width: 46px; height: 34px; padding: 2px; border-radius: 8px; }
.pills { flex-wrap: wrap; }

/* ---------- Mises à jour installables ---------- */
.upd li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.upd li:last-child { border-bottom: 0; }
.upd li .upd-txt { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.upd-btn, .upd-busy { flex: none; }
.upd li a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.upd-btn { padding: 1px 9px; font-size: 12px; }
.upd-busy { font-size: 12px; color: var(--accent); white-space: nowrap; }
.upd-ask { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg2); font-size: 13px; }
.upd-ask span { flex: 1 1 100%; }

.upd-all-bar { display: flex; justify-content: flex-end; margin: 6px 0 2px; }
.upd-all { margin-top: 6px; }
.upd-all label.chk { flex: 1 1 100%; margin: 0; font-size: 13px; }
.upd-all .chip.warn { border-color: var(--warn); color: var(--warn); font-size: 11px; padding: 0 6px; }

/* ---------- Torrents : bouton + ---------- */
.add-row .add-plus { flex: none; width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.add-row .input { min-width: 0; }
.add-row label.btn { flex: none; width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Barre de titre ---------- */
.title-w .w-body { padding-top: 6px; padding-bottom: 6px; }
.title-w .w-head { display: none; }
.editing .title-w .w-head { display: flex; }
.tbar { padding: 4px 2px; }
.tbar-line { border-bottom: 2px solid var(--line); padding-bottom: 10px; }
.tbar-t { font-weight: 650; letter-spacing: .2px; display: inline-flex; align-items: center; gap: 10px; font-size: 22px; }
.tbar-s { color: var(--muted); margin-top: 4px; font-size: 14px; }
.tsz-s .tbar-t { font-size: 17px; }
.tsz-l .tbar-t { font-size: 30px; }
.tsz-l .tbar-s { font-size: 15px; }
.tsz-l.tbar-line { border-bottom-width: 3px; }

/* ---------- Placement compact / libre ---------- */
.place-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; padding: 0 2px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg .btn { border: 0; border-radius: 0; }
.seg .btn.on { background: var(--accent-soft); color: var(--accent); }

/* ---------- Umami ---------- */
.um-sum { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; margin-bottom: 12px; }
.um-sum > div { display: flex; flex-direction: column; }
.um-sum b { font-size: 24px; font-weight: 600; line-height: 1.1; display: inline-flex; align-items: center; gap: 7px; }
.um-sum span { font-size: 12px; color: var(--muted); }
.um-sum .um-per { margin-left: auto; align-self: flex-end; }
.um-live i, .um-on i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 0 var(--ok); animation: umPulse 2s infinite; }
@keyframes umPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.um-d { font-size: 11px; margin-left: 4px; color: var(--muted); white-space: nowrap; }
.um-d.up { color: var(--ok); } .um-d.down { color: var(--bad); }
.um-head, .um-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px 92px 64px 58px; gap: 10px; align-items: center; }
.widget:not(:has(.um-spark)) .um-head, .widget:not(:has(.um-spark)) .um-row { grid-template-columns: minmax(0, 1fr) 92px 64px 58px; }
.um-head { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 0 6px 6px; border-bottom: 1px solid var(--line); }
.um-row { padding: 8px 6px; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; border-radius: 8px; font-size: 13px; }
.um-row:last-child { border-bottom: 0; }
.um-row:hover { background: var(--card-h); }
.um-row .num, .um-head .num { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.um-site { display: flex; align-items: center; gap: 10px; min-width: 0; }
.um-ava { width: 28px; height: 28px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 13px; }
.um-nm { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.um-nm b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.um-nm small { flex: 1 1 100%; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.um-on { font-size: 11px; color: var(--ok); display: inline-flex; align-items: center; gap: 4px; }
.um-spark { width: 100px; height: 26px; display: block; }
@media (max-width: 759px) {
  .um-spark, .um-c-sp, .um-c-b { display: none !important; }
  .um-head, .um-row, .widget:not(:has(.um-spark)) .um-head, .widget:not(:has(.um-spark)) .um-row { grid-template-columns: minmax(0, 1fr) 84px 60px; }
}

/* ---------- apt ---------- */
.apt-job summary { color: var(--accent); }
.apt-job.ok summary { color: var(--ok); }
.apt-job.ko summary { color: var(--bad); }
.apt-last { display: block; margin: 2px 0 0 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, monospace; }
.apt-log { max-height: 220px; overflow: auto; margin: 6px 0 0; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: 11px; line-height: 1.45; white-space: pre-wrap; word-break: break-all; }
.upd-all-bar { gap: 8px; flex-wrap: wrap; }

/* ---------- lecteur RSS (FreshRSS) ---------- */
.rd-w .w-head { display: none; }
.editing .rd-w .w-head { display: flex; padding-bottom: 8px; }
.rd-w .w-body { padding: 0; display: flex; flex-direction: column; }
.rd-w .w-dyn { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rd-w.fixed-h .w-body { overflow: hidden; }
.rd { flex: 1; min-height: 0; display: flex; flex-direction: column; container: rd / inline-size; position: relative; }
.rd-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rd-title { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 140px; }
.rd-title span { white-space: nowrap; }
.rd-title b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-q { width: 230px; max-width: 100%; }
.rd-burger { display: none; }
.rd-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px minmax(300px, 400px) 1fr; }
.rd-side, .rd-list, .rd-scroll { overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rd-side { border-right: 1px solid var(--line); padding: 8px 6px 16px; background: var(--bg2); }
.rd-s { display: flex; align-items: center; gap: 9px; width: 100%; background: none; border: 0; color: var(--text); padding: 6px 8px; border-radius: 7px; cursor: pointer; font: inherit; font-size: 13.5px; text-align: left; }
.rd-s:hover { background: var(--card-h); }
.rd-s.on { background: var(--accent-soft); color: var(--accent); }
.rd-s .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-s.feed { padding-left: 30px; font-size: 13px; }
.rd-s.feed.zero { color: var(--muted); }
.rd-s.cat { font-weight: 600; padding-left: 4px; }
.rd-ico { width: 18px; text-align: center; color: var(--muted); font-size: 15px; }
.rd-ico.star { color: #f5c542; }
.rd-n { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--card); border-radius: 99px; padding: 0 7px; min-width: 22px; text-align: center; }
.rd-s.on .rd-n { color: var(--accent); }
.rd-sep { font-size: 11px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--muted); margin: 14px 8px 4px; }
.rd-crow { display: flex; align-items: center; }
.rd-tw { background: none; border: 0; color: var(--muted); cursor: pointer; width: 22px; padding: 4px 0; font-size: 12px; transition: transform .15s; }
.rd-cat.closed .rd-tw { transform: rotate(-90deg); }
.rd-cat.closed .rd-feeds { display: none; }
.rd-fav { width: 16px; height: 16px; border-radius: 4px; flex: none; object-fit: contain; }
.rd-fav.l { display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; background: hsl(var(--h) 45% 42%); }
.rd-list { border-right: 1px solid var(--line); }
.rd-item { position: relative; display: flex; gap: 12px; padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--line-soft); cursor: pointer; outline: none; }
.rd-item:hover { background: var(--card-h); }
.rd-item.sel { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.rd-im { flex: 1; min-width: 0; }
.rd-src { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); min-width: 0; }
.rd-src > span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-src.big { font-size: 13px; margin-bottom: 8px; color: var(--accent); }
.rd-dt { margin-left: auto; white-space: nowrap; padding-right: 18px; }
.rd-t { font-weight: 600; font-size: 14.5px; line-height: 1.35; margin: 4px 0 3px; }
.rd-ex { font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-item.read .rd-t { font-weight: 500; color: var(--muted); }
.rd-item.read .rd-ex, .rd-item.read .rd-th { opacity: .6; }
.rd-th { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; align-self: center; background: var(--bg2); }
.rd-star { position: absolute; top: 9px; right: 8px; background: none; border: 0; cursor: pointer; color: var(--line); font-size: 15px; padding: 0 3px; opacity: 0; }
.rd-item:hover .rd-star, .rd-star.on { opacity: 1; }
.rd-star.on { color: #f5c542; }
.rd-star:hover { color: #f5c542; }
.rd-more, .rd-end { text-align: center; padding: 16px; }
.rd-pad { padding: 14px; }
.rd-none, .rd-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; padding: 40px 20px; height: 100%; box-sizing: border-box; }
.rd-none .e, .rd-empty .e { font-size: 40px; }
.rd-keys { max-width: 360px; line-height: 2; }
kbd { font: 11.5px ui-monospace, monospace; background: var(--bg2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--text); }
.rd-view { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--card); }
.rd-vbar { display: flex; gap: 6px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.rd-back { display: none; }
.rd-scroll { flex: 1; }
.rd-art { max-width: 720px; margin: 0 auto; padding: 26px 30px 40px; }
.rd-art h1 { font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
.rd-hero { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 10px; margin: 18px 0 4px; }
.rd-art .reader-body { font-size: 16px; line-height: 1.7; }
.rd-art .reader-body table { display: block; overflow-x: auto; }
.rd-foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.rd-errs:empty { display: none; }
.rd-errs { padding: 6px 14px; }

/* largeur moyenne : la lecture recouvre la liste */
@container rd (max-width: 1050px) {
  .rd-main { grid-template-columns: 230px 1fr; }
  .rd-view { grid-column: 2; grid-row: 1; display: none; }
  .rd.reading .rd-view { display: flex; }
  .rd.reading .rd-list { display: none; }
  .rd-back { display: inline-flex; }
  .rd-list { border-right: 0; }
}
/* étroit (téléphone) : les abonnements passent dans un volet */
@container rd (max-width: 700px) {
  .rd-main { grid-template-columns: 1fr; position: relative; }
  .rd-view { grid-column: 1; }
  .rd-burger { display: inline-flex; }
  .rd-side { position: absolute; inset: 0 25% 0 0; z-index: 5; display: none; box-shadow: 8px 0 30px var(--shadow); }
  .rd.side-open .rd-side { display: block; }
  .rd-q { display: none; }
  .rd-bar { flex-wrap: nowrap; gap: 6px; padding: 8px 10px; }
  .rd-title { min-width: 0; flex-direction: column; gap: 0; }
  .rd-title b { font-size: 15px; max-width: 100%; }
  .rd-title span { white-space: nowrap; font-size: 11.5px; }
  .rd .lbl { display: none; }
  .rd-vbar { flex-wrap: nowrap; padding: 8px 10px; }
  .rd-art { padding: 18px 16px 32px; }
  .rd-art h1 { font-size: 22px; }
  .rd-th { width: 68px; height: 54px; }
}

/* partage sur les réseaux */
.rd-share { position: absolute; bottom: 9px; right: 8px; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 14px; padding: 0 4px; opacity: 0; border-radius: 5px; }
.rd-item:hover .rd-share { opacity: 1; }
.rd-share:hover { color: var(--accent); background: var(--card); }
.share { display: flex; flex-direction: column; gap: 12px; }
.share-art { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.share-art img { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.share-art b { display: block; line-height: 1.3; }
.share-main { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.share textarea { width: 100%; box-sizing: border-box; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font: 14.5px/1.5 var(--font); resize: vertical; outline: none; }
.share textarea:focus { border-color: var(--accent); }
.share-nets { display: grid; gap: 8px; }
.share-net { border: 1px solid var(--line); border-left: 3px solid var(--nc); border-radius: 9px; padding: 9px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--card); }
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-name { font-weight: 700; min-width: 80px; }
.share-cnt { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: auto; }
.share-cnt.near { color: #f0b44c; }
.share-cnt.over { color: #ff6b6b; font-weight: 700; }
.share-go.disabled { opacity: .45; cursor: not-allowed; }
.share-inst { display: flex; align-items: center; gap: 10px; }
.share-inst .input { flex: 1; max-width: 280px; }
.btn.sm.primary { color: var(--on-accent); }

/* ---------- Docker : tri et mise à jour ---------- */
.tbl th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.tbl th.sortable:hover, .tbl th.sortable.on { color: var(--accent); }
.dk-sum { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.chip-btn { cursor: pointer; margin-right: 6px; font: inherit; font-size: 11px; background: transparent; }
.chip-btn:hover { background: color-mix(in srgb, var(--warn) 18%, transparent); }
