/*! supertwentyplus licence: (c) 2026 Supertwentyplus Pte. Ltd. All rights reserved. Proprietary, not open source.
   Use only as provided on supertwentyplus.com (free or by subscription, under its Terms). Copying, reuse or hosting elsewhere,
   in whole or in part, needs a written licence: supertwentyplus@gmail.com. See LICENSE.txt at the site root. */
/* STP Script Builder */
.sb { --sb-ed: #0f1726; --sb-text: #dbe4f3; --sb-com: #7fa88a; --sb-blue: #2563eb; display: flex; flex-direction: column; gap: 16px; padding: 14px; }
.sb-h { display: block; font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.sb-h3 { font-size: 16px; margin: 0 0 6px; }
.sb-descrow { display: flex; gap: 8px; align-items: stretch; }
.sb-descrow textarea { flex: 1; min-width: 0; min-height: 56px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }
.sb-descrow textarea:focus { border-color: var(--sb-blue); outline: none; }
.sb-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.sb-examples, .sb-matches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 0; }
.sb-example, .sb-chip, .sb-opt { min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.sb-example:hover, .sb-chip:hover, .sb-opt:hover { border-color: var(--sb-blue); }
.sb-chip-top, .sb-chip.on, .sb-opt.on { background: var(--sb-blue); border-color: var(--sb-blue); color: #fff; }
.sb-none { margin: 0; color: var(--ink-2); }
.sb-blocked { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #7a1c12; border: 1px solid #f3b4ac; }
.sb-browse { margin-top: 10px; min-height: 44px; width: 100%; max-width: 420px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.sb-work { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.sb-pro-box { grid-column: 1 / -1; }
.sb-chat { display: flex; flex-direction: column; gap: 8px; }
.sb-bot { margin: 0; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: color-mix(in srgb, var(--sb-blue) 10%, var(--surface)); }
.sb-qa { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.sb-q { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sb-a { align-self: flex-start; border: 0; background: none; padding: 2px 0; color: var(--sb-blue); font: inherit; font-weight: 600; cursor: pointer; text-align: left; word-break: break-all; }
.sb-ask { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 2px solid var(--sb-blue); border-radius: 12px; background: var(--surface); }
.sb-ask .sb-q { color: var(--ink); font-size: 15px; }
.sb-inrow { display: flex; align-items: center; gap: 8px; }
.sb-ask input[type=text], .sb-ask input[type=number], .sb-ask textarea { flex: 1; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.sb-ask input[type=number] { max-width: 140px; }
.sb-ask textarea { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.sb-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-quick .sb-opt { min-height: 30px; font-size: 13px; }
.sb-hint, .sb-unit { color: var(--ink-2); font-size: 13px; }
.sb-ask-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sb-link { border: 0; background: none; color: var(--sb-blue); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; padding: 4px; }
.sb-out { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sb-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.sb-risk { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.sb-risk-safe { background: #dcf5e3; color: #11602c; }
.sb-risk-change { background: #fff1c9; color: #7a5300; }
.sb-risk-danger { background: #c62828; color: #fff; }
.sb-risk-txt { color: var(--ink-2); }
.sb-admin { padding: 2px 10px; border-radius: 999px; background: #e7ecff; color: #1d3a9a; font-weight: 600; font-size: 13px; }
.sb-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sb-tab { min-height: 38px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 10px 10px 0 0; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.sb-tab.on { background: var(--sb-ed); color: #fff; border-color: var(--sb-ed); }
.sb-tab:disabled { opacity: .45; cursor: not-allowed; }
.sb-dry { margin-left: auto; font-size: 14px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.sb-only { margin: 0; font-size: 14px; color: var(--ink-2); }
.sb-code { margin: 0; padding: 14px; max-height: 460px; overflow: auto; border-radius: 0 10px 10px 10px; background: var(--sb-ed); color: var(--sb-text); font: 13px/1.5 ui-monospace, "JetBrains Mono", Consolas, monospace; white-space: pre; }
.sb-c { color: var(--sb-com); }
.sb-confirm { display: block; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #7a1c12; border: 1px solid #f3b4ac; font-size: 14px; }
.sb-confirm input { vertical-align: -3px; margin-right: 6px; width: 18px; height: 18px; }
.sb-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sb-acts .btn:disabled { opacity: .5; cursor: not-allowed; }
.sb-ghost a { color: inherit; }
.sb-msg { font-size: 14px; color: #11602c; font-weight: 600; }
.sb-how { margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; }
.sb-warn { margin: 0; font-size: 13px; color: var(--ink-2); }
.sb-pro-box { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.sb-pro-note { margin: 0; font-size: 14px; }
.sb-pro { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #6d28d9; color: #fff; font-size: 12px; font-weight: 700; }
.sb-logl { font-size: 14px; display: flex; gap: 6px; align-items: center; }
.sb-chain ol, .sb-lib ul { margin: 0; padding-left: 22px; }
.sb-chain li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.sb-chain .sb-risk { font-size: 12px; padding: 0 6px; }
.sb-muted { margin: 0; color: var(--ink-2); font-size: 14px; }
[data-theme=dark] .sb-blocked, [data-theme=dark] .sb-confirm { background: #3a1512; color: #ffd2cc; border-color: #7a2a22; }
[data-theme=dark] .sb-risk-safe { background: #12391f; color: #b6f0c6; }
[data-theme=dark] .sb-risk-change { background: #3d2f05; color: #ffe08a; }
[data-theme=dark] .sb-admin { background: #1b2550; color: #c8d4ff; }
[data-theme=dark] .sb-msg { color: #8fe0a5; }
@media (max-width: 860px) { .sb-work { grid-template-columns: 1fr; } .sb { padding: 10px 0; } }
@media (max-width: 520px) { .sb-descrow { flex-direction: column; } .sb-dry { margin-left: 0; width: 100%; } }
/* v2040b: rubber-stamp warning + wide desktop */
.sb-page .app-intro { position: relative; max-width: none; }
.sb-page .app-intro .lead { max-width: 620px; }
.sb-stamp { position: absolute; right: 0; top: 0; width: 360px; transform: rotate(-12deg); color: #d0021b; border: 6px double #d0021b; border-radius: 6px; padding: 10px 14px; font-family: "Courier New", Courier, monospace; font-weight: 900; text-transform: uppercase; text-align: center; opacity: .9; pointer-events: none; z-index: 2; }
.sb-stamp b { display: block; font-family: Impact, "Arial Black", sans-serif; font-size: 56px; letter-spacing: 6px; line-height: 1; }
.sb-stamp span { display: block; font-size: 14px; letter-spacing: 1px; margin-top: 6px; line-height: 1.3; }
.sb-stamp-calm { color: #b26a00; border-color: #b26a00; transform: rotate(-6deg); opacity: .8; }
.sb-stamp-calm b { font-size: 44px; }
[data-theme=dark] .sb-stamp { color: #ff5a5f; border-color: #ff5a5f; }
[data-theme=dark] .sb-stamp-calm { color: #ffb648; border-color: #ffb648; }
@media (min-width: 1200px) { .sb-work { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .sb-code { max-height: 560px; } }
@media (max-width: 1100px) { .sb-stamp { position: static; transform: rotate(-3deg); width: auto; max-width: 520px; margin: 16px 6px 8px; } .sb-stamp b { font-size: 40px; } }

/* v2150: sticky warning bar (follows the stamp) */
.sb-sticky { position: fixed; left: 0; right: 0; top: 0; z-index: 39; display: none; padding: 8px 16px; text-align: center; font: 600 14px/1.35 system-ui, sans-serif; color: #fff; background: #b00016; box-shadow: 0 6px 14px -8px rgba(0,0,0,.5); }
.sb-sticky b { font-family: Impact, "Arial Black", sans-serif; letter-spacing: 2px; margin-right: 6px; font-weight: 400; }
.sb-sticky.on { display: block; }
.sb-sticky-calm { background: #f5a623; color: #1d1300; }
@media (max-width: 600px) { .sb-sticky { font-size: 13px; padding: 7px 12px; } }
@media print { .sb-sticky { display: none !important; } }
