/* QSO Journey Programming Workbench (prefix qwb) */
.qwb {
	--bark: #231B14; --bark2: #2B2118; --terra: #A24E2A; --terra2: #8A4122; --cream: #FBF8F1; --tan: #E2D6C2; --tan2: #CDBEA0; --muted: #5E5040; --body: #3A2E22; --ok: #2f6b2a; --warn: #7a4d00;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color-scheme: light;
	background: var(--cream); color: var(--bark); border-radius: 16px; padding: 14px; box-sizing: border-box; font-size: 16px; line-height: 1.5;
}
.qwb.qwb { max-width: 1000px; width: 100%; margin: 24px auto 40px !important; }
.qwb *, .qwb *::before, .qwb *::after { box-sizing: border-box; }
.qwb h2, .qwb h3, .qwb h4 { padding: 0; border: 0; letter-spacing: normal; text-transform: none; }
.qwb a { color: var(--terra); }
.qwb .qwb-loading { padding: 30px 10px; text-align: center; color: var(--muted); }
.qwb .qwb-head { background: var(--bark2); color: #FFF8EC; border-radius: 14px; padding: 20px 20px 16px; margin-bottom: 12px; }
.qwb .qwb-eye { font: 700 11px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: #F4B48E; }
.qwb .qwb-title { font: 700 32px/1.1 Georgia, Cambria, serif; margin: 8px 0 6px; color: #FFF8EC; }
.qwb .qwb-lede { margin: 0; color: #EDE3D2; max-width: 780px; font-size: 15px; }
.qwb .qwb-msg { background: #E3EFDC; color: #24521f; border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; font-size: 15px; }
.qwb .qwb-card { background: #fff; border: 1px solid var(--tan); border-radius: 12px; padding: 14px; margin: 0 0 12px; }
.qwb .qwb-card h3 { display: flex; align-items: center; gap: 10px; font: 700 19px/1.2 Georgia, Cambria, serif; margin: 0 0 10px; color: var(--bark); }
.qwb .qwb-card h3 > span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--bark2); color: #FFF8EC; font: 700 14px/1 system-ui, sans-serif; }
.qwb .qwb-card h3 small { font: 400 13px/1 system-ui, sans-serif; color: var(--muted); }
.qwb .qwb-ctop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.qwb .qwb-tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--tan); border-radius: 10px; margin: 4px 0 10px; }
.qwb .qwb-tbl { width: 100%; min-width: 820px; border-collapse: collapse; margin: 0 !important; font-size: 14px; }
.qwb .qwb-tbl th { background: var(--bark2); color: #FBF8F1; font: 700 11px/1.2 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 8px 6px; border: 0; }
.qwb .qwb-tbl td { padding: 5px 4px; border: 0; border-bottom: 1px solid #EFE7D8; vertical-align: top; }
.qwb .qwb-tbl tr:last-child td { border-bottom: 0; }
.qwb .qwb-tbl input, .qwb .qwb-tbl select { width: 100%; min-width: 0; font: 400 14px/1.3 system-ui, sans-serif; color: var(--bark); background: #fff; border: 1px solid var(--tan2); border-radius: 7px; padding: 6px 7px; margin: 0; min-height: 34px; box-shadow: none; }
.qwb .qwb-tbl input:disabled { background: #F3EEE5; color: #8A7B68; }
.qwb .qwb-tbl input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--terra); margin-top: 8px; }
.qwb .qwb-tbl td:nth-child(1) { width: 15%; } .qwb .qwb-tbl td:nth-child(2) { width: 13%; } .qwb .qwb-tbl td:nth-child(3) { width: 12%; } .qwb .qwb-tbl td:nth-child(4) { width: 9%; } .qwb .qwb-tbl td:nth-child(5) { width: 11%; }
.qwb .qwb-c { text-align: center; white-space: nowrap; }
.qwb .qwb-fix { font-size: 13px; margin-right: 6px; line-height: 34px; }
.qwb .qwb-x { border: 0; background: none; color: #8A4122; font-size: 22px; line-height: 1; padding: 4px 6px; cursor: pointer; min-height: 0; box-shadow: none; }
.qwb .qwb-flag { display: block; color: var(--warn); font-size: 12px; margin-top: 3px; }
.qwb .qwb-empty { text-align: center; color: var(--muted); padding: 18px 10px !important; }
.qwb .qwb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 8px; }
.qwb .qwb-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--body); }
.qwb .qwb-chip { border: 1px solid var(--tan2); background: #FBF8F1; color: var(--bark); border-radius: 999px; padding: 6px 11px; font: 600 13px/1.2 system-ui, sans-serif; cursor: pointer; margin: 0; min-height: 32px; }
.qwb .qwb-chip:hover { background: #F2E9DB; }
.qwb .qwb-clear { margin-left: auto; }
.qwb .qwb-fine { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.qwb .qwbb { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--terra); background: var(--terra); color: #fff !important; font: 700 15px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-decoration: none; cursor: pointer; margin: 0; }
.qwb .qwbb:hover { background: var(--terra2); border-color: var(--terra2); }
.qwb .qwbb.ghost { background: #fff; color: var(--terra2) !important; }
.qwb .qwbb.ghost:hover { background: #F6EEE2; }
.qwb .qwbb.sm { min-height: 36px; padding: 7px 13px; font-size: 14px; }
.qwb .qwbb[disabled] { opacity: .5; cursor: not-allowed; }
.qwb .qwb-file { position: relative; overflow: hidden; }
.qwb .qwb-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.qwb .qwb-outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qwb .qwb-out { border: 1px solid var(--tan); border-radius: 10px; padding: 12px; background: #FBF8F1; display: flex; flex-direction: column; gap: 8px; }
.qwb .qwb-out h4 { font: 700 17px/1.2 Georgia, Cambria, serif; margin: 0; color: var(--bark); }
.qwb .qwb-out p { margin: 0; font-size: 14px; color: var(--body); }
.qwb .qwb-out .qwbb { margin-top: auto; }
.qwb .qwb-f { display: grid; gap: 3px; font-size: 13px; font-weight: 700; color: var(--muted); }
.qwb .qwb-f select { font: 400 14px/1.3 system-ui, sans-serif; border: 1px solid var(--tan2); border-radius: 7px; padding: 6px; min-height: 36px; color: var(--bark); background: #fff; }
.qwb button:focus-visible, .qwb a:focus-visible, .qwb input:focus-visible, .qwb select:focus-visible { outline: 3px solid #E08A5E; outline-offset: 2px; }
@media (max-width: 820px) { .qwb .qwb-outs { grid-template-columns: 1fr; } .qwb .qwb-title { font-size: 26px; } }
/* DMR rows (1.2.0) */
.qwb .qwb-dmr { display: flex; gap: 4px; }
.qwb .qwb-dmr label { display: grid; gap: 1px; font: 700 10px/1 system-ui, sans-serif; color: var(--muted); flex: 1 1 0; min-width: 0; }
.qwb .qwb-dmr input, .qwb .qwb-dmr select { padding: 4px; min-height: 26px; font-size: 13px; }
.qwb .qwb-badge { display: inline-block; margin-top: 8px; font: 700 11px/1 system-ui, sans-serif; letter-spacing: .05em; padding: 4px 6px; border-radius: 6px; background: #2B2118; color: #FBF8F1; }
