/* "Inbox Beast" (/posteingang-biest/, /en/inbox-beast/, /it/bestia-della-posta/): controls, node pipeline, the beast with hunger meter,
   three triage columns, Nextcloud receipts drawn in HTML/CSS (Deck, Talk, Files). Fixed colours inside the cards: same look in light and dark. */
.bsc { --bs-card: #14201a; --bs-card2: #1b2b22; --bs-ink: #e8f1ea; --bs-soft: #9db3a4; --bs-line2: #2c4136; --bs-moss: #6ec878; --bs-amber: #f0b44c; --bs-red: #ec5a5a; --bs-nc: #0082c9; }
.bsc [hidden] { display: none !important; }
.bsc .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bsc-fun { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 4px; font: 700 13px var(--font-m); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #2d8a4e, #0082c9); }
.bsc-hero .h2 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -.01em; }
.bsc-start { margin: 22px 0 10px; display: grid; gap: 14px; max-width: 760px; }
.bsc-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.bsc-ctl label, .bsc-ctl .bsc-lbl { display: block; font: 600 13px var(--font-m); color: var(--muted); letter-spacing: .02em; margin-bottom: 6px; }
.bsc-ctl output { color: var(--text); font-weight: 700; }
.bsc-ctl input[type=range] { width: 100%; accent-color: #2d8a4e; min-height: 32px; }
.bsc-skin { display: flex; gap: 8px; }
.bsc-skin button { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; }
.bsc-skin button[data-skin=moss] { background: #6ec878; } .bsc-skin button[data-skin=ember] { background: #f59650; } .bsc-skin button[data-skin=ice] { background: #82c8f5; }
.bsc-skin button[aria-pressed=true] { border-color: var(--text, #fff); box-shadow: 0 0 0 2px #2d8a4e; }
.bsc-go { justify-self: start; min-height: 60px; padding: 0 30px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; font: 700 19px var(--font-b);
  background: linear-gradient(180deg, #3aa25d, #277a45); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 0 #1a5430, 0 12px 24px rgba(0, 0, 0, .3); transition: transform .12s, box-shadow .12s, filter .2s; }
.bsc-go:hover { filter: brightness(1.08); } .bsc-go:active, .bsc-go[disabled] { transform: translateY(4px); box-shadow: 0 2px 0 #1a5430; } .bsc-go[disabled] { cursor: wait; filter: saturate(.6); }
.bsc-go:focus-visible, .bsc-skin button:focus-visible, .bsx-share a:focus-visible, .bsx-share button:focus-visible, .bsx-dl button:focus-visible { outline: 3px solid #ffb454; outline-offset: 3px; }
.bsc-note { margin: 0; max-width: 70ch; font-size: 14.5px; color: var(--muted); }
.bsc-msg { margin: 0; min-height: 1.4em; color: var(--muted); font-size: 15px; max-width: 64ch; } .bsc-msg.ok { color: var(--ok); font-weight: 600; } .bsc-msg.warn { color: var(--accent); font-weight: 500; }
/* pipeline */
.bss { list-style: none; margin: 18px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bss li { position: relative; padding: 9px 10px 9px 28px; border-radius: 10px; background: var(--panel, #12161d); border: 1px solid var(--line, #232a36); font-size: 12px; line-height: 1.3; color: var(--muted); min-width: 0; transition: border-color .3s, background .3s, color .3s; }
.bss li b { display: block; color: var(--text); font-size: 12.5px; } .bss li span { display: block; overflow-wrap: anywhere; }
.bss li::before { content: ""; position: absolute; left: 10px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: #3a4452; }
.bss li.run { border-color: #3aa25d; } .bss li.run::before { background: #3aa25d; animation: bsc-pulse 1s infinite; } .bss li.done { border-color: #2d8a4e; background: rgba(45, 138, 78, .12); } .bss li.done::before { background: #5ce8a0; }
@keyframes bsc-pulse { 50% { box-shadow: 0 0 0 6px rgba(58, 162, 93, .25); } }
/* the beast */
.bsd { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 22px; align-items: center; margin: 20px 0; padding: 22px; border-radius: 16px; background: linear-gradient(160deg, var(--bs-card), var(--bs-card2)); color: var(--bs-ink); border: 1px solid var(--bs-line2); }
.bsd-artbox { position: relative; }
.bsd-art svg { width: 100%; height: auto; display: block; border-radius: 12px; background: #0e1e18; }
.bsd-art.grow svg { animation: bsd-grow .9s cubic-bezier(.2, 1.4, .4, 1); } @keyframes bsd-grow { from { transform: scale(.55); opacity: .2; } to { transform: scale(1); opacity: 1; } }
.bsd-line { position: relative; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff; color: #1b2230; font: 600 15px/1.35 var(--font-b); }
.bsd-line::before { content: ""; position: absolute; left: 28px; top: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: #fff; }
.bsd-name { margin: 0; font: 700 14px var(--font-m); letter-spacing: .08em; text-transform: uppercase; color: var(--bs-soft); }
.bsd-stage { margin: 2px 0 8px; font: 800 clamp(30px, 5vw, 48px)/1.05 var(--font-b); }
.bsd-ladder { list-style: none; display: flex; gap: 6px; margin: 0 0 16px; padding: 0; }
.bsd-ladder li { flex: 1; height: 8px; border-radius: 4px; background: #2c4136; } .bsd-ladder li.past { background: #3c8250; } .bsd-ladder li.on { background: var(--bs-moss); box-shadow: 0 0 12px var(--bs-moss); }
.bsd-row { display: flex; justify-content: space-between; gap: 10px; font: 700 14px var(--font-m); margin: 10px 0 5px; } .bsd-row span:last-child { color: var(--bs-soft); font-weight: 500; }
.bsd-bar { height: 16px; border-radius: 8px; background: #2c4136; overflow: hidden; } .bsd-bar i { display: block; height: 100%; width: var(--w, 0); border-radius: 8px; background: var(--bs-moss); transition: width 1.1s ease; }
.bsd-bar i.low { background: #e4cd5c; } .bsd-bar i.mid { background: var(--bs-amber); } .bsd-bar i.hi { background: var(--bs-red); }
.bsd-nums { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 6px; font-size: 14px; color: var(--bs-soft); } .bsd-nums b { color: var(--bs-ink); font: 800 22px var(--font-b); margin-right: 4px; }
.bsd-after { margin: 10px 0 0; font-size: 14px; color: var(--bs-soft); } .bsd-sim { margin: 8px 0 0; font: 600 13px var(--font-m); color: var(--bs-amber); }
/* columns */
.bsm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.bsm-col { padding: 14px; border-radius: 14px; background: var(--panel, #12161d); border: 1px solid var(--line, #232a36); border-top: 4px solid var(--bs-moss); min-width: 0; }
.bsm-col.dl { border-top-color: var(--bs-nc); } .bsm-col.ig { border-top-color: #6b7783; }
.bsm-col h3 { margin: 0 0 10px; font: 700 15px var(--font-b); display: flex; justify-content: space-between; } .bsm-col h3 em { font-style: normal; color: var(--muted); font-weight: 500; }
.bsm ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bsm-i { padding: 9px 11px; border-radius: 10px; background: rgba(127, 140, 150, .1); font-size: 13px; line-height: 1.35; } .bsm-i.old { box-shadow: inset 3px 0 0 var(--bs-red); } .bsm-i.sim { opacity: .55; }
.bsm.fly .bsm-i { animation: bsm-fly .6s both; animation-delay: calc(var(--i) * 90ms); } @keyframes bsm-fly { from { opacity: 0; transform: translate(-60px, -20px) scale(.8); } to { opacity: 1; transform: none; } }
.bsm-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .bsm-sub { font-weight: 700; overflow-wrap: anywhere; } .bsm-own { font: 700 12px var(--font-m); color: var(--bs-nc); } .bsm-ok { color: #3aa25d; font-weight: 800; }
.bsm-meta { color: var(--muted); font-size: 12px; margin-top: 2px; } .bsm-why { font-size: 12px; margin-top: 3px; color: var(--text); opacity: .85; }
/* report */
.bsr { margin: 6px 0 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line, #232a36); background: var(--panel, #12161d); }
.bsr-h { margin: 0 0 6px; font: 800 20px var(--font-b); } .bsr-t { margin: 0 0 10px; max-width: 70ch; } .bsr-tip { margin: 0; font-weight: 600; } .bsr-tip::before { content: "💡 "; }
.bsr-fb { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
/* receipts */
.bsx h2 { margin: 18px 0 10px; font-size: 22px; } .bsx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bsx-ok { margin: 0 0 8px; font: 700 14px var(--font-b); } .bsx-ok.yes::before { content: "✓ "; color: #3aa25d; } .bsx-ok.no::before { content: "✗ "; color: var(--bs-red); }
.nc-deck, .nc-talk, .nc-files { border-radius: 10px; overflow: hidden; background: #fff; color: #1f262d; font: 13px/1.35 var(--font-b); border: 1px solid #d6dce2; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.nc-h { padding: 8px 12px; background: var(--bs-nc); color: #fff; font: 700 12px var(--font-b); }
.nc-card { margin: 8px; padding: 8px 10px; border-radius: 8px; background: #f4f6f8; border-left: 4px solid #3aa25d; animation: bsm-fly .5s both; animation-delay: calc(var(--i) * 120ms); } .nc-card.dl { border-left-color: var(--bs-nc); }
.nc-card b { display: block; font-weight: 700; } .nc-card small { color: #6b7783; }
.nc-bub { margin: 10px; padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: #e8f3fa; } .nc-bub small { display: block; color: #6b7783; font-weight: 700; margin-bottom: 2px; } .nc-bub div + div { margin-top: 2px; }
.nc-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; } .nc-row b { flex: 1; overflow-wrap: anywhere; } .nc-row small { color: #6b7783; }
.bsx-clean { margin: 12px 0; } .bsx-share, .bsx-dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.bsx-share a, .bsx-share button, .bsx-dl a, .bsx-dl button { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line, #30363d); background: var(--panel, #12161d); color: var(--text); font: 600 14px var(--font-b); display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.cth h2 { font-size: 24px; } .cth-steps { padding-left: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; margin: 14px 0; }
.cth-steps li { position: relative; padding: 12px 14px 12px 46px; border-radius: 12px; background: var(--panel, #12161d); border: 1px solid var(--line, #232a36); counter-increment: s; }
.cth-steps li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: #2d8a4e; color: #fff; font: 700 13px/24px var(--font-m); text-align: center; }
.cth-steps b { display: block; } .cth-steps span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .bss { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bsd { grid-template-columns: 1fr; } .bsm, .bsx-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bsd-art.grow svg, .bsm.fly .bsm-i, .nc-card, .bss li.run::before { animation: none; } .bsd-bar i { transition: none; } }
