:root {
  color-scheme: light dark;
  --line: #8885;
  --soft: #8881;
  --soft2: #8882;
  --amber: #e8a317;
  --green: #2e9e6b;
  --blue: #5b8def;
  --violet: #6b5bd6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { font-family: system-ui, sans-serif; line-height: 1.45; max-width: 44rem; margin: 2rem auto 4rem; padding: 0 1rem; }
h1 { margin-bottom: 0.25rem; }
.lede { margin-top: 0; }
.nav { font-size: 14px; }
.mono, .name { font-family: ui-monospace, Menlo, monospace; }
.sub { font-size: 12px; opacity: 0.7; }
.note { font-size: 13px; opacity: 0.75; }
.caption { min-height: 2.9em; margin: 0.75rem 0 0.5rem; font-weight: 600; }
.mz { color: var(--violet); font-weight: 600; }

.console { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--soft); font-size: 13px; }
.bar { padding: 7px 12px; background: var(--soft2); font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.decl { padding: 6px 12px; background: #2e9e6b22; border-bottom: 1px solid #2e9e6b55; font-size: 12px; }
.decl b { color: var(--green); }
.banner { padding: 8px 12px; background: #e8a31722; border-bottom: 1px solid #e8a31766; font-size: 12px; }
.banner.ok { background: #2e9e6b22; border-color: #2e9e6b66; }
.body { padding: 12px; }

.tool { border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; margin: 5px 0; }
.tool.sel { border-color: var(--amber); background: #e8a3171a; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tool.sel .row { align-items: flex-start; }
.left { display: flex; flex-direction: column; }
button.name { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.desc { font-size: 11px; opacity: 0.6; }
.tags { display: flex; gap: 5px; }
.tag { font-size: 11px; border-radius: 4px; padding: 1px 7px; border: 1px solid var(--line); white-space: nowrap; }
.tag.free { border-color: var(--green); color: var(--green); }
.tag.pay { border-color: var(--blue); color: var(--blue); }
.tag.work { border-color: var(--amber); color: var(--amber); }
.stack { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.opt { font: inherit; font-size: 12px; color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; text-align: left; cursor: pointer; }
.opt.on { background: var(--amber); color: #000; border-color: var(--amber); font-weight: 600; }

.detail { margin-top: 9px; padding-top: 9px; border-top: 1px dashed #e8a31788; }
.detail .h { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.65; margin-bottom: 4px; }
.detail .ln { display: flex; justify-content: space-between; font-size: 12px; padding: 1px 0; }
.btnrow { display: flex; gap: 6px; margin-top: 9px; }
.btn { font: inherit; font-size: 12px; color: inherit; background: transparent; padding: 4px 12px; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; }
.btn.pri { background: var(--amber); color: #000; border-color: var(--amber); font-weight: 600; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.workspace h3 { font-size: 13px; margin: 12px 0 4px; }
.art { padding: 6px 0; border-bottom: 1px solid #8883; }
.art:last-child { border: 0; }
.art .t { font-weight: 600; }
.claim { padding: 6px 0; border-bottom: 1px solid #8883; }
.claim:last-of-type { border: 0; }
.verdict { font-size: 11px; border-radius: 4px; padding: 1px 6px; background: #8883; margin-left: 6px; }
.check { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: 12px; }
.check.later { opacity: 0.5; }
.done { color: var(--green); font-weight: 700; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--violet); border-top-color: transparent; display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rcpt { border: 1px solid #2e9e6b88; border-radius: 8px; padding: 8px 10px; background: #2e9e6b14; margin-top: 6px; }

.wallet { border-top: 1px solid var(--line); padding: 9px 12px; background: var(--soft2); }
.wallet .top { display: flex; justify-content: space-between; align-items: baseline; }
.bal { font-size: 20px; font-weight: 700; }
.delta { color: var(--green); font-weight: 700; font-size: 13px; margin-left: 6px; }

.prose h2 { margin-top: 2rem; }
table { border-collapse: collapse; margin: 0.75rem 0; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 4px 10px; text-align: left; }
