/* Pedidos MDE — estilos. Móvil primero; barra lateral en pantallas anchas. */
:root {
  --bg: #f7f1e8; --surface: #ffffff; --surface-2: #fbf7f1; --line: #e7dccd;
  --text: #2b1d14; --muted: #7a6a5c; --primary: #6b3f22; --primary-2: #8a5530; --on-primary: #fff;
  --accent: #c0833f; --danger: #b3261e; --ok: #2e7d4f; --warn: #b26a00; --wa: #1f9e55;
  --radius: 14px; --shadow: 0 1px 2px rgba(60, 35, 15, .06), 0 4px 14px rgba(60, 35, 15, .06);
  --nav-h: 64px; --top-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
  --top-bg: #6b3f22; --top-fg: #fff;
  --al-bg: #fdecea; --al-fg: #8c1d18; --al-info-bg: #fff4e0; --al-info-fg: #6b4300; --al-ok-bg: #e6f4ea; --al-ok-fg: #1e5b35; --badge-filter: none;
  --al-warn-bg: #fff1d6; --al-warn-fg: #6b4300; --al-warn-line: #d9a441;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1410; --surface: #261c16; --surface-2: #2e231c; --line: #3d2f25;
    --text: #f3e9dd; --muted: #b3a290; --primary: #d39a62; --primary-2: #e2ae7a; --on-primary: #1b1410;
    --accent: #e0a45f; --danger: #ff8a80; --ok: #7fd3a0; --warn: #ffc266; --wa: #3fcf7c;
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
    --top-bg: #2a1c13; --top-fg: #f3e9dd;
    --al-bg: #3a1d1b; --al-fg: #ffb4ab; --al-info-bg: #3a2c14; --al-info-fg: #ffd591; --al-ok-bg: #16301f; --al-ok-fg: #a8e2bb; --badge-filter: saturate(.9) brightness(.92); --al-warn-bg: #3a2c14; --al-warn-fg: #ffd591; --al-warn-line: #a87a2a;
  }
}
:root[data-theme="dark"] {
    --bg: #1b1410; --surface: #261c16; --surface-2: #2e231c; --line: #3d2f25;
    --text: #f3e9dd; --muted: #b3a290; --primary: #d39a62; --primary-2: #e2ae7a; --on-primary: #1b1410;
    --accent: #e0a45f; --danger: #ff8a80; --ok: #7fd3a0; --warn: #ffc266; --wa: #3fcf7c;
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
    --top-bg: #2a1c13; --top-fg: #f3e9dd;
    --al-bg: #3a1d1b; --al-fg: #ffb4ab; --al-info-bg: #3a2c14; --al-info-fg: #ffd591; --al-ok-bg: #16301f; --al-ok-fg: #a8e2bb; --badge-filter: saturate(.9) brightness(.92); --al-warn-bg: #3a2c14; --al-warn-fg: #ffd591; --al-warn-line: #a87a2a;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
body { font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
body.noscroll { overflow: hidden; }
a { color: var(--primary); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
h3 { font-size: 1.02rem; margin-bottom: 10px; }
h4 { font-size: .92rem; margin: 12px 0 6px; color: var(--muted); }
small { font-size: .82rem; }
.muted { color: var(--muted); }
.tiny { font-size: .8rem; }
.pre { white-space: pre-wrap; margin: 0 0 8px; }
.internal { background: var(--surface-2); padding: 8px 10px; border-radius: 8px; border-left: 3px solid var(--accent); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -4px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ok, dd.ok, dt.ok { color: var(--ok); }
.warn-t { color: var(--warn); }
.late { color: var(--danger); font-weight: 600; }
.soon { color: var(--warn); font-weight: 600; }

/* Pantalla de inicio */
#splash { position: fixed; inset: 0; z-index: 100; background: #6b3f22; color: #f6e9d2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; transition: opacity .35s; }
#splash img { border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: pop .5s ease-out; }
#splash.hide { opacity: 0; pointer-events: none; }
.splash-title { font-size: 1.5rem; font-weight: 700; margin-top: 10px; }
.splash-sub { opacity: .8; font-size: .95rem; }
.splash-bar { width: 120px; height: 3px; background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; margin-top: 14px; }
.splash-bar span { display: block; width: 40%; height: 100%; background: #e6c48c; animation: slide 1s infinite ease-in-out; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Estructura */
.app { min-height: 100vh; min-height: 100dvh; }
.sidebar { display: none; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 12px 0 16px; background: var(--top-bg); color: var(--top-fg); }
.topbar h1 { font-size: 1.12rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .icon-btn { color: inherit; margin-left: -8px; }
.net.off { font-size: .75rem; background: #fff3; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.btn-install { background: #fff; color: #6b3f22; border: 0; font-size: .85rem; padding: 7px 10px; }
.btn-install svg { width: 18px; height: 18px; }
.update-bar { background: var(--accent); color: #1b1410; padding: 8px 16px; display: flex; gap: 10px; align-items: center; justify-content: center; font-size: .9rem; }
.view { padding: 14px 14px calc(var(--nav-h) + var(--safe-b) + 90px); max-width: 1180px; margin: 0 auto; outline: none; }

.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-around; align-items: center; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--surface); border-top: 1px solid var(--line); }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--muted); text-decoration: none; padding: 6px 0; }
.bottomnav a.active { color: var(--primary); font-weight: 600; }
.bottomnav .nav-fab { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: var(--on-primary); justify-content: center; margin-top: -26px; box-shadow: 0 6px 16px rgba(107,63,34,.35); }
.bottomnav .nav-fab svg { width: 28px; height: 28px; }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 240px 1fr; }
  .sidebar { align-self: start; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; padding: 14px 10px; background: var(--surface); border-right: 1px solid var(--line); }
  .sidebar a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
  .sidebar a:hover { background: var(--surface-2); }
  .sidebar a.active { background: var(--primary); color: var(--on-primary); }
  .brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 16px; }
  .brand img { width: 42px; height: 42px; border-radius: 10px; }
  .brand small { display: block; color: var(--muted); }
  .side-foot { margin-top: auto; font-size: .75rem; color: var(--muted); padding: 8px 12px; }
  .bottomnav { display: none; }
  .view { padding: 22px 28px 60px; }
  .save-bar, .actions-bar { bottom: 0 !important; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-danger-ghost { color: var(--danger); }
.btn-lg { min-height: 50px; padding: 10px 18px; font-size: 1rem; }
.btn-small { min-height: 34px; padding: 5px 10px; font-size: .85rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.sm svg { width: 18px; height: 18px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.row-btns.end { justify-content: flex-end; }

/* Tarjetas */
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); color: inherit; text-decoration: none; }
a.card:active { background: var(--surface-2); }
.grid-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid-cards .card { margin: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin: 18px 2px 10px; gap: 10px; }
.sec-head h3 { margin: 0; }
.count { margin: 4px 2px 8px; font-size: .85rem; }

.hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 2px 14px; }
.hero h2 { font-size: 1.35rem; }
.hero p { margin: 2px 0 0; }
.install-card > div:first-child { display: flex; gap: 12px; align-items: flex-start; }
.install-card svg { color: var(--primary); width: 28px; height: 28px; margin-top: 2px; }
.install-card p { margin: 2px 0 0; font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.35rem; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat.warn b { color: var(--warn); }
.alert { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--al-bg); color: var(--al-fg); margin-bottom: 12px; font-size: .92rem; }
.alert.info { background: var(--al-info-bg); color: var(--al-info-fg); }
.alert.ok { background: var(--al-ok-bg); color: var(--al-ok-fg); }
.storage-note { color: var(--muted); font-size: .82rem; margin: 18px 4px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.empty svg { width: 40px; height: 40px; opacity: .6; }
.empty p { margin: 8px 0 14px; }

/* Pedidos */
.order-card { display: flex; flex-direction: column; gap: 6px; }
.oc-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.oc-desc { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-bot { display: flex; gap: 12px; align-items: center; font-size: .85rem; flex-wrap: wrap; }
.oc-bot .ico { width: 16px; height: 16px; }
.oc-money { margin-left: auto; text-align: right; display: flex; flex-direction: column; line-height: 1.15; }
.oc-money small { color: var(--warn); }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; filter: var(--badge-filter); }
.b-gray { background: #ece6de; color: #5b4c40; } .b-blue { background: #e1ecfb; color: #1c4f94; }
.b-purple { background: #eee4f8; color: #5e3591; } .b-orange { background: #fdebd6; color: #8a4b00; }
.b-teal { background: #dcf1ee; color: #11645a; } .b-green { background: #dff2e5; color: #1c6b3c; } .b-red { background: #fbe1df; color: #9c2b22; }
.b-pay-sin-pago { background: #f6e3e1; color: #9c2b22; } .b-pay-senal { background: #fff0cf; color: #7a5200; } .b-pay-pagado { background: #dff2e5; color: #1c6b3c; }

.toolbar { display: flex; gap: 8px; margin-bottom: 10px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; min-height: 46px; color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; flex: 1; font: inherit; color: var(--text); min-width: 0; padding: 10px 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 99px; padding: 7px 13px; font: inherit; font-size: .87rem; cursor: pointer; }
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }

/* Detalle */
.detail { max-width: 820px; margin: 0 auto; }
.d-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.d-head h2 { font-size: 1.2rem; }
.d-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.d-contact { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 8px 0 0; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.lines { list-style: none; padding: 0; margin: 0 0 8px; }
.line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.l-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--primary); }
.l-ico.t-objeto { color: #8a4b00; background: #fdebd6; } .l-ico.t-encargo { color: #5e3591; background: #eee4f8; } .l-ico.t-servicio { color: #11645a; background: #dcf1ee; }
.l-ico svg { width: 19px; height: 19px; }
.l-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.l-main small { color: var(--muted); }
.l-main .l-type { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.l-tot { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.l-btns { display: flex; }
.empty-lines { padding: 10px 0; font-size: .9rem; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin: 6px 0 10px; font-size: .95rem; }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .tt { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 6px; }
.totals .sub { color: var(--muted); font-size: .84rem; }
.totals .pend { color: var(--danger); font-weight: 700; }
.totals dt.ok, .totals dd.ok { font-weight: 700; }
.pays, .hist { list-style: none; padding: 0; margin: 0 0 10px; font-size: .9rem; }
.pays li { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.pays li span { flex: 1; }
.hist li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.hist span { color: var(--muted); margin-right: 6px; }
.actions-bar, .save-bar { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 10; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding: 10px; margin: 0 -4px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 14px; }
.actions-bar .btn { flex: 1 1 auto; }
.save-bar .btn-primary { flex: 1; max-width: 360px; }

/* Formularios */
.field-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .field-grid { grid-template-columns: 1fr 1fr; } .span2 { grid-column: span 2; } }
.field-grid h3 { margin: 0; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; font-weight: 400; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%; }
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field input[readonly] { opacity: .75; }
.inline { display: flex; gap: 6px; }
.inline select { width: 70px; flex: none; }
.inline input { flex: 1; }
.check { display: flex; gap: 10px; align-items: center; font-size: .93rem; padding: 6px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.line-total b { font-size: 1.2rem; color: var(--text); padding: 10px 0; }
.suggest { display: flex; flex-direction: column; gap: 4px; margin-top: -6px; }
.suggest:empty { display: none; }
.sug { display: flex; justify-content: space-between; gap: 10px; text-align: left; padding: 10px 12px; border: 1px dashed var(--accent); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.sug small { color: var(--muted); }
.sel-client { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sel-client small { display: block; }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
@media (min-width: 700px) { .add-grid { grid-template-columns: repeat(4, 1fr); } }
.add-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--surface-2); color: var(--primary); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-align: center; }
.add-btn:active { background: var(--line); }

/* Hoja inferior */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 10, 5, .45); opacity: 0; transition: opacity .2s; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 18px 18px 0 0; transform: translateY(100%); transition: transform .22s ease-out; padding-bottom: var(--safe-b); }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 6px 18px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.05rem; }
.sheet-body { overflow-y: auto; padding: 14px 16px 20px; -webkit-overflow-scrolling: touch; }
@media (min-width: 700px) {
  .sheet-panel { left: 50%; right: auto; bottom: auto; top: 50%; width: min(640px, 92vw); border-radius: 18px; transform: translate(-50%, -46%); opacity: 0; transition: transform .2s, opacity .2s; }
  .sheet.open .sheet-panel { transform: translate(-50%, -50%); opacity: 1; }
}
.pick-list { list-style: none; padding: 0; margin: 10px 0 0; }
.pick-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; cursor: pointer; }
.pick-list small { display: block; color: var(--muted); }
.pick-list span { font-weight: 700; white-space: nowrap; }

/* Clientes / catálogo */
.cli-card { display: flex; gap: 12px; align-items: center; }
.cli-card > div:nth-child(2) { flex: 1; min-width: 0; }
.cli-card small { display: block; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.pill { font-size: .78rem; color: var(--muted); background: var(--surface-2); padding: 3px 8px; border-radius: 99px; }
.prod-card { display: flex; justify-content: space-between; gap: 10px; }
.prod-card small { display: block; }
.prod-card.inactive { opacity: .55; }
.pc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.menu-list { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.menu-list a { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.menu-list a span { flex: 1; }
.menu-list small { display: block; color: var(--muted); }
.menu-list a.disabled { opacity: .5; }
.steps { padding-left: 22px; margin: 6px 0 16px; }
.steps li { margin-bottom: 6px; }
.wa-view { max-width: 720px; margin: 0 auto; }
#waText { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.4; }
code { font-size: .85em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

/* Aviso flotante */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 18px); transform: translate(-50%, 20px); background: #2b1d14; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .92rem; opacity: 0; pointer-events: none; transition: all .2s; z-index: 90; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: #1e5b35; } .toast.err { background: #9c2b22; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
.ask { position: fixed; inset: 0; z-index: 95; background: rgba(20, 10, 5, .5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ask-box { background: var(--surface); color: var(--text); border-radius: 16px; padding: 18px; width: min(420px, 100%); box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.ask-box p { margin: 0 0 12px; }
.ask-input { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.oc-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.b-test { background: #fff0cf; color: #7a5200; border: 1px dashed #c99a3c; }
.diag { list-style: none; padding: 0; margin: 0 0 10px; }
.diag li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.diag li b { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; font-size: .8rem; color: #fff; background: var(--muted); }
.diag li.d-ok b { background: var(--ok); } .diag li.d-bad b { background: var(--danger); }
.diag small { display: block; color: var(--muted); word-break: break-word; }
.table-wrap { overflow-x: auto; margin: 8px 0; }
.imp { border-collapse: collapse; font-size: .85rem; width: 100%; font-variant-numeric: tabular-nums; }
.imp th, .imp td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.imp th:first-child { text-align: left; }
.imp thead th { font-weight: 600; color: var(--muted); font-size: .76rem; vertical-align: bottom; }
.alert.warn { background: var(--al-warn-bg); color: var(--al-warn-fg); border: 1px solid var(--al-warn-line); }
.backup-warning { align-items: flex-start; flex-wrap: nowrap; }
.backup-warning > svg { flex: none; margin-top: 2px; }
.backup-warning p { margin: 6px 0 0; }
[hidden] { display: none !important; }
