/* Gestor de webs — estil del panell. Colors i mides a :root. */
:root {
  --brand: #7a447a; --brand-ink: #fff; --brand-soft: #f4ecf4; --accent: #f3b523;
  --bg: #f6f5f7; --panel: #fff; --ink: #1d1b20; --muted: #5f5b66; --line: #dcd8e0;
  --ok: #1b6e1b; --ok-bg: #e5f4e5; --warn: #8a5a00; --warn-bg: #fff1d1; --danger: #b00020;
  --radius: 8px; --side: 17rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --brand: #c58ac5; --brand-ink: #1d1b20; --brand-soft: #2c222d; --bg: #151317; --panel: #1f1c22; --ink: #ece9ef; --muted: #aaa4b2; --line: #38333d; --ok: #7fd17f; --ok-bg: #1f3320; --warn: #f0c36a; --warn-bg: #3a2e12; --danger: #ff8a9b; }
}
*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font); font-size: 16px; color: var(--ink); background: var(--bg); }
body { margin: 0; line-height: 1.5; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
a { color: var(--brand); }
code { font-size: .9em; background: var(--brand-soft); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.muted { color: var(--muted); } small.muted { display: block; margin-top: .25rem; }
.grow { flex: 1; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 200; background: var(--brand); color: var(--brand-ink); padding: .5rem 1rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Botons i camps */
.btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 600; font-size: .9rem; padding: .55rem .95rem; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn[disabled], .icon-btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn { font: inherit; border: 1px solid var(--line); background: var(--panel); color: var(--ink); width: 2rem; height: 2rem; border-radius: 6px; cursor: pointer; display: inline-grid; place-items: center; }
.icon-btn:hover:not([disabled]) { border-color: var(--brand); }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; padding: 0; text-align: left; text-decoration: underline; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=time], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--panel); border: 1.5px solid var(--line); border-radius: 6px; padding: .5rem .65rem; }
textarea { resize: vertical; min-height: 5rem; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--brand); }
input[type=color] { width: 3rem; height: 2.4rem; padding: 0; border: 1.5px solid var(--line); border-radius: 6px; background: none; }
.field { margin: 0 0 1rem; }
.field > label, .field > .label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field.ft-bool { display: flex; gap: .6rem; align-items: center; } .field.ft-bool label { margin: 0; font-weight: 500; }
.form-error { color: var(--danger); font-weight: 600; min-height: 1.4em; margin: .25rem 0; }
fieldset.group { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem .2rem; margin: 0 0 1rem; }
fieldset.group legend { font-weight: 700; padding: 0 .4rem; font-size: 1.05rem; }
.stack > * + * { margin-top: .6rem; }
.narrow { max-width: 28rem; }
.checks { display: grid; gap: .35rem; } .check { display: flex; gap: .5rem; align-items: center; }

/* Estructura */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.sidebar { background: var(--panel); border-right: 1px solid var(--line); padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand strong { display: block; font-size: 1.1rem; color: var(--brand); } .brand span { font-size: .85rem; }
.shop-switch { font-weight: 600; }
.side-nav { display: flex; flex-direction: column; gap: .15rem; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: .5rem .7rem; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; }
.side-nav a:hover { background: var(--brand-soft); } .side-nav a.on { background: var(--brand); color: var(--brand-ink); }
.nav-title { margin: .9rem .7rem .2rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.badge { background: var(--accent); color: #000; font-size: .75rem; font-weight: 700; border-radius: 99px; padding: 0 .5rem; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.who small { display: block; color: var(--muted); }
.menu-toggle { display: none; }
.content { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.6rem .4rem; }
.topbar h1 { margin: 0; } .crumbs { margin: 0 0 .2rem; color: var(--muted); font-size: .9rem; }
.page-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.main { padding: .8rem 1.6rem 3rem; outline: 0; max-width: 62rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 1.1rem; }
.panel > h2:first-child { margin-top: 0; }
.panel.admin-only { border-style: dashed; }
.toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .9rem; }
.chip { display: inline-block; font-size: .78rem; font-weight: 600; padding: .1rem .55rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand); margin-left: .35rem; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); }

/* Llistes i taules */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.row:first-child { border-top: 0; }
.row .title { font-weight: 600; } .row-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table tr.inactive { opacity: .6; }

/* Editor de blocs */
.is-i18n .i18n { display: none; position: relative; }
.app[data-lang=ca] .i18n-ca, .app[data-lang=es] .i18n-es { display: block; }
.lang-chip { position: absolute; right: .5rem; top: .35rem; font-size: .68rem; font-weight: 700; color: var(--muted); pointer-events: none; z-index: 1; }
.i18n input, .i18n textarea { padding-right: 2.2rem; }
.seg { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.seg-label { font-size: .8rem; color: var(--muted); padding: 0 .6rem; }
.seg button { font: inherit; font-weight: 600; font-size: .85rem; border: 0; border-left: 1px solid var(--line); background: none; color: var(--ink); padding: .5rem .8rem; cursor: pointer; }
.seg button.on { background: var(--brand); color: var(--brand-ink); }
.blocks { display: grid; gap: .7rem; margin-bottom: 1rem; }
.block { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.block.is-hidden { opacity: .65; border-style: dashed; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .5rem .35rem .2rem; }
.block-toggle { flex: 1; text-align: left; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; padding: .5rem .6rem; display: flex; align-items: center; gap: .5rem; }
.chev { display: inline-block; transition: transform .15s; } .block-head.open .chev { transform: rotate(90deg); }
.block-actions { display: flex; gap: .3rem; }
.block-body { padding: 1rem 1.1rem .3rem; background: var(--panel); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.add-block { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; } .add-block select { width: auto; min-width: 16rem; }
.list-rows { display: grid; gap: .5rem; margin-bottom: .6rem; }
.list-row { border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.row-head { display: flex; align-items: center; gap: .4rem; padding: .35rem .5rem; border-bottom: 1px solid var(--line); }
.row-head .row-title { flex: 1; font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-head button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 5px; width: 1.8rem; height: 1.8rem; cursor: pointer; }
.row-body { padding: .8rem .8rem .1rem; }
.rich { border: 1.5px solid var(--line); border-radius: 6px; background: var(--panel); }
.rich:focus-within { border-color: var(--brand); }
.rich-bar { display: flex; gap: .25rem; flex-wrap: wrap; padding: .3rem; border-bottom: 1px solid var(--line); background: var(--bg); border-radius: 6px 6px 0 0; }
.tb { font: inherit; font-size: .8rem; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 5px; padding: .25rem .55rem; cursor: pointer; }
.tb:hover { border-color: var(--brand); }
.rich-editor { min-height: 8rem; padding: .7rem .8rem; outline: 0; max-height: 28rem; overflow: auto; }
.rich-editor h2 { font-size: 1.15rem; } .rich-editor h3 { font-size: 1rem; } .rich-editor p { margin: 0 0 .7em; } .rich-editor ul, .rich-editor ol { padding-left: 1.4rem; }
.img-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.img-preview { display: flex; align-items: center; gap: .7rem; min-height: 4.5rem; } .img-preview img { height: 4.5rem; width: 7rem; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.img-actions { display: flex; gap: .4rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .6rem; }
.thumb { position: relative; width: 8rem; } .thumb img { width: 8rem; height: 6rem; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.thumb-actions { display: flex; justify-content: space-between; margin-top: .25rem; } .thumb-actions button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 5px; width: 2.2rem; height: 1.8rem; cursor: pointer; }
.color-row { display: flex; gap: .5rem; align-items: center; } .color-row .hex { width: 8rem; font-family: ui-monospace, monospace; }
.days { display: flex; gap: .4rem; flex-wrap: wrap; } .day { display: inline-flex; gap: .3rem; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: .25rem .5rem; background: var(--bg); }

/* Imatges */
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.4rem; text-align: center; cursor: pointer; background: var(--panel); margin-bottom: 1.1rem; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .8rem; }
.media-item { display: flex; flex-direction: column; gap: .2rem; text-align: left; font: inherit; color: var(--ink); background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: .4rem; cursor: pointer; }
.media-item:hover, .media-item.on { border-color: var(--brand); } .media-item.on { box-shadow: 0 0 0 2px var(--brand); }
.media-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.media-item span { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .media-item small { color: var(--muted); font-size: .72rem; }
.picker { max-height: 55vh; overflow: auto; }
img.big { max-width: 100%; max-height: 18rem; display: block; margin: 0 auto 1rem; border-radius: 6px; }

/* Missatges */
.msg-head { width: 100%; display: flex; gap: .5rem; align-items: center; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; padding: .3rem 0; text-align: left; }
.msg-head.unread strong::before { content: "● "; color: var(--brand); }
.msg-body { padding: .4rem 0 .8rem 1rem; } .pre { white-space: pre-wrap; }
.msgs .msg { padding: .5rem 0; border-top: 1px solid var(--line); list-style: none; } .msgs .msg:first-child { border-top: 0; }

/* Modal, avisos, previsualització */
.overlay { position: fixed; inset: 0; background: rgb(0 0 0 / .5); display: grid; place-items: center; padding: 1rem; z-index: 100; }
.modal { background: var(--panel); border-radius: 10px; width: min(34rem, 100%); max-height: calc(100vh - 2rem); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgb(0 0 0 / .35); }
.modal.wide { width: min(70rem, 100%); }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem .6rem; } .modal header h2 { margin: 0; }
.modal-body { padding: .4rem 1.2rem 1rem; overflow: auto; }
.modal footer { display: flex; gap: .6rem; justify-content: flex-end; align-items: center; padding: .8rem 1.2rem 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.preview-box { background: #ddd; padding: .6rem; border-radius: 8px; display: grid; justify-items: center; }
.preview-frame { border: 0; background: #fff; height: 68vh; width: 100%; } .preview-frame.mobile { width: 390px; max-width: 100%; }
#toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 300; max-width: min(26rem, calc(100vw - 2rem)); }
.toast { background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: 8px; box-shadow: 0 6px 24px rgb(0 0 0 / .3); font-weight: 500; }
.toast.err { background: var(--danger); color: #fff; }

/* Entrada */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 2rem; width: min(24rem, 100%); box-shadow: 0 10px 40px rgb(0 0 0 / .08); }
.auth-card h1 { color: var(--brand); } .auth-card .btn { width: 100%; justify-content: center; margin: .3rem 0 .8rem; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .menu-toggle { display: block; margin: .6rem 1rem 0; font: inherit; font-weight: 600; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: .5rem .9rem; color: var(--ink); width: fit-content; }
  .sidebar { display: none; position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); } .sidebar.open { display: flex; }
  .topbar, .main { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }
.checklist { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }

/* Botó de desar sota les modificacions (el de dalt és a la barra) */
.save-bar { display: flex; justify-content: flex-end; margin: -.2rem 0 1.1rem; }
/* Pantalla d'alerta d'esborrat */
.panel.alert { border: 2px solid var(--danger); }
.panel.alert > h2:first-child { color: var(--danger); }
.panel.alert ul { margin: .25rem 0 .9rem; padding-left: 1.3rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-top: .6rem; }
/* Accions d'una fila de taula */
.table td.actions { white-space: nowrap; }
.table td.actions .btn + .btn { margin-left: .5rem; }

/* ===== Temes visuals ===== */
.btn.sm { padding: .25rem .6rem; font-size: .8rem; }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: .5rem .8rem; margin: .5rem 0; font-size: .9rem; }
.panel.alert-soft { background: var(--brand-soft); border-style: dashed; }
.theme-list { display: grid; gap: .7rem; }
.theme-card { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; background: var(--bg); }
.swatches { display: inline-flex; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.swatches i { display: block; width: 1.3rem; height: 2.4rem; }
.theme-info { display: grid; gap: .15rem; min-width: 0; }
.theme-info .chips { display: flex; flex-wrap: wrap; gap: .3rem; } .theme-info .chip { margin: 0; }
.theme-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
@media (max-width: 52rem) { .theme-card { grid-template-columns: auto 1fr; } .theme-actions { grid-column: 1 / -1; justify-content: flex-start; } }

.theme-editor { display: grid; grid-template-columns: minmax(18rem, 27rem) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.theme-controls .panel { margin-bottom: .9rem; }
.theme-preview { position: sticky; top: .8rem; display: grid; gap: .6rem; }
.theme-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.theme-toolbar select { font: inherit; padding: .45rem .6rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); }
.theme-frame-wrap { display: flex; justify-content: center; height: calc(100vh - 9rem); min-height: 28rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.theme-frame { width: 100%; height: 100%; border: 0; background: #fff; }
.theme-frame-wrap.mobile .theme-frame { width: 390px; max-width: 100%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.token-row { display: grid; gap: .25rem; margin-bottom: .8rem; }
.token-row > label { font-size: .88rem; font-weight: 600; }
.token-ctl { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.token-ctl.stack { flex-direction: column; align-items: stretch; }
.token-ctl input[type="color"] { width: 2.6rem; height: 2.3rem; padding: 0; border: 1.5px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.token-ctl .hex { width: 11rem; font-family: ui-monospace, monospace; }
.token-ctl input[type="range"] { flex: 1; min-width: 8rem; }
.token-ctl select, .token-ctl input[type="text"] { font: inherit; padding: .45rem .6rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); }
.token-ctl input[aria-invalid="true"] { border-color: var(--danger); }
.field.check { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: start; } .field.check small { grid-column: 2; }
.contrast-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: .88rem; }
.contrast-list .cr { display: inline-block; min-width: 4.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.contrast-list .lv-ok .cr { color: var(--ok); } .contrast-list .lv-warn .cr { color: var(--warn); } .contrast-list .lv-error .cr { color: var(--danger); }
@media (max-width: 64rem) { .theme-editor { grid-template-columns: minmax(0, 1fr); } .theme-preview { position: static; } .theme-frame-wrap { height: 32rem; } }
.main.wide { max-width: none; }

/* ===== Temes · nivell 2 (avançat) ===== */
.panel.adv { border-color: var(--warn); }
.alert-warn { background: var(--warn-bg); color: var(--ink); border: 1px solid var(--warn); border-left-width: 6px; border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; }
.alert-warn p { margin: 0 0 .5rem; }
.alert-warn ul { margin: 0 0 .8rem; padding-left: 1.2rem; display: grid; gap: .35rem; font-size: .9rem; }
.adv-body { border: 0; padding: 0; margin: 0; min-width: 0; }
.adv-body:disabled { opacity: .45; }
.adv-body h3 { font-size: 1rem; margin: 0 0 .5rem; }
.font-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.font-list li { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem .6rem; }
.font-list .font-name { font-size: 1.1rem; }
.font-list .btn { margin-left: auto; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

/* ===== Temes · nivells 3 i 4 (usuaris avançats) ===== */
.adv-entry { margin: 1.2rem 0 .6rem; }
.panel.adv-status { border-left: 6px solid var(--warn); }
.panel.adv-status.ok { border-left-color: var(--ok); }
.panel.adv-status p { margin: 0 0 .5rem; }
.adv-body .sub { margin-bottom: 1.4rem; }
.css-area { width: 100%; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.5; padding: .6rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); resize: vertical; tab-size: 2; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .4rem; margin: .6rem 0; }
.chip-color { display: grid; grid-template-columns: auto 1fr; gap: 0 .4rem; align-items: center; font-size: .75rem; border: 1px solid var(--line); border-radius: 6px; padding: .25rem .4rem; }
.chip-color i { grid-row: span 2; width: 1.4rem; height: 1.4rem; border-radius: 4px; border: 1px solid var(--line); }
.chip-color code { color: var(--muted); }
.alt-box { margin: .6rem 0; padding: .6rem .8rem; border: 1px dashed var(--warn); border-radius: var(--radius); }
.alt-box p { margin: 0 0 .4rem; }
.sw { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; border: 1px solid var(--line); vertical-align: -.1rem; }

/* ===== Còpies de seguretat descarregables ===== */
.plain { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .25rem; }
pre.code { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; overflow-x: auto; font-size: .85rem; }
details { margin-top: .6rem; }
