

.quests-page, .qb-drawer {
  
  --qb-ink: #2c2014;
  --qb-ink-2: #4e3d28;
  --qb-ink-3: #6e5a40;
  --qb-rule: rgba(60, 40, 18, .26);
  --qb-past: #a8431b;
  --qb-present: #75590d;
  --qb-future: #17707f;
  --qb-red: #9c2f28;
  --qb-slate: #3d5864;
  --qb-brass: #8a5a14;
  --qb-thread: #a3281b;
  
  --qb-cork: #b48c5c;
  --qb-cork-deep: rgba(58, 34, 12, .34);
  --qb-frame-hi: #b98c5a;
  --qb-frame: #93683d;
  --qb-frame-lo: #6c4827;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .quests-page, :root:not([data-theme="light"]) .qb-drawer {
    --qb-cork: #5b4230;
    --qb-cork-deep: rgba(8, 5, 2, .5);
    --qb-frame-hi: #4d3827;
    --qb-frame: #34261b;
    --qb-frame-lo: #211810;
  }
}
:root[data-theme="dark"] .quests-page, :root[data-theme="dark"] .qb-drawer {
  --qb-cork: #5b4230;
  --qb-cork-deep: rgba(8, 5, 2, .5);
  --qb-frame-hi: #4d3827;
  --qb-frame: #34261b;
  --qb-frame-lo: #211810;
}

.qb-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5) var(--s-6); flex-wrap: wrap; margin-bottom: var(--s-2); }
.qb-hero h1 { font-size: var(--t-3xl); margin: 6px 0 10px; }
.qb-hero .lede { color: var(--ink-2); font-size: var(--t-md); max-width: 62ch; }
.qb-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

.qb-statline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0; margin: var(--s-4) 0 var(--s-5); font-family: var(--f-ui); font-size: var(--t-sm); color: var(--ink-3); }
.qb-statline > span { padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line-2); }
.qb-statline > span:last-child { border-right: 0; }
.qb-statline b { font-size: 1.3rem; color: var(--ink); margin-right: 3px; }
.qb-statline a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.qb-statline a:hover { color: var(--brass-hi); }

.qb-frame {
  position: relative; padding: 16px; border-radius: 9px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='160'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='.006 .42' numOctaves='3' seed='11'/><feColorMatrix values='0 0 0 0 .12  0 0 0 0 .07  0 0 0 0 .02  0 0 0 1.6 -.45'/></filter><rect width='100%' height='100%' filter='url(%23w)'/></svg>"),
    linear-gradient(180deg, var(--qb-frame-hi), var(--qb-frame) 38%, var(--qb-frame-lo));
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, .18), inset 0 -2px 0 rgba(0, 0, 0, .35), var(--shadow-3);
}
.qb-corner {
  position: absolute; z-index: 2; width: 38px; height: 38px; pointer-events: none;
  background:
    radial-gradient(circle at 12px 12px, #fff1c8 0 1.2px, #6d4712 1.6px 3.2px, transparent 3.6px),
    linear-gradient(135deg, #f2d58f, #c28a33 46%, #7a4f14);
  clip-path: polygon(0 0, 100% 0, 100% 34%, 34% 34%, 34% 100%, 0 100%);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5));
}
.qb-corner.c-tl { top: 5px; left: 5px; }
.qb-corner.c-tr { top: 5px; right: 5px; transform: scaleX(-1); }
.qb-corner.c-bl { bottom: 5px; left: 5px; transform: scaleY(-1); }
.qb-corner.c-br { bottom: 5px; right: 5px; transform: scale(-1, -1); }

.qb-board {
  position: relative; min-height: 320px; padding: 54px clamp(20px, 3vw, 46px) 58px; border-radius: 3px;
  background:
    radial-gradient(130% 100% at 50% 35%, transparent 55%, var(--qb-cork-deep) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='.62' numOctaves='3' seed='7'/><feColorMatrix values='0 0 0 0 .14  0 0 0 0 .08  0 0 0 0 .02  0 0 0 2.4 -1.12'/></filter><rect width='100%' height='100%' filter='url(%23c)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .9  0 0 0 0 .7  0 0 0 2.6 -1.55'/></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>"),
    var(--qb-cork);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .4);
}

.qb-plaque {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; margin: 56px 0 0; padding: 6px 22px 5px;
  font-family: var(--f-ui-sc); font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: .18em; color: #3b2507;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .45);
  background: linear-gradient(180deg, #f4d895, #cf9d45 52%, #a06f25);
  border-radius: 2px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .25);
}
.qb-plaque::before, .qb-plaque::after {
  content: ""; position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4d2, #7a4f14 70%); box-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}
.qb-plaque::before { left: 7px; }
.qb-plaque::after { right: 7px; }
.qb-plaque .num { font-family: var(--f-ui); letter-spacing: 0; opacity: .72; }
.qb-plaque.p-hold { background: linear-gradient(180deg, #c9cdc8, #8f9690 52%, #676d68); color: #1f2724; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.qb-plaque.p-done { background: linear-gradient(180deg, #e2c893, #b08a4b 52%, #86652f); opacity: .85; }

.qb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 46px 34px; align-items: start; margin-top: 30px; }

.qb-lower { display: flex; flex-wrap: wrap; gap: 0 34px; }
.qb-part { flex: var(--n, 1) 1 calc(var(--n, 1) * 290px + (var(--n, 1) - 1) * 34px); min-width: 0; }

.qb-threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.qb-threads-hot { z-index: 5; }
.qb-thread { fill: none; stroke: var(--qb-thread); stroke-width: 1.9; stroke-linecap: round; filter: drop-shadow(0 2px 1.2px rgba(0, 0, 0, .45)); }
.qb-threads-hot .qb-thread { opacity: 0; transition: opacity var(--dur-2); }
.qb-threads-hot .qb-thread.on { opacity: 1; }
.qb-thread-tag { opacity: 0; transition: opacity var(--dur-2); }
.qb-thread-tag.on { opacity: 1; }
.qb-thread-tag rect { fill: #efe2c2; stroke: rgba(60, 40, 18, .45); stroke-width: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.qb-thread-tag text { fill: var(--qb-ink); font-family: var(--f-ui); font-weight: 700; font-size: 11.5px; letter-spacing: .02em; }

.qb-note {
  position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0;
  border: 26px solid transparent;
  border-image: url("../assets/img/ui/parchment.webp") 58 fill / 26px stretch;
  background: #e6d3ab padding-box; 
  padding: 6px 10px 2px;
  color: var(--qb-ink); cursor: pointer;
  transform: rotate(var(--tilt, 0deg));
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, .26));
  transition: transform var(--dur-2) var(--ease), filter var(--dur-2);
  scroll-margin-top: calc(var(--bar-h) + 80px);
}
.qb-note:hover, .qb-note:focus-within { transform: rotate(0deg) translateY(-3px); filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .34)); z-index: 3; }
.qb-note.is-open { filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 3px rgba(240, 196, 110, .95)) drop-shadow(0 12px 14px rgba(0, 0, 0, .34)); }
.qb-note.is-linked { filter: drop-shadow(0 0 2px rgba(163, 40, 27, .7)) drop-shadow(0 9px 10px rgba(0, 0, 0, .3)); }
.qb-note.flash { animation: qb-flash 1.8s var(--ease); }
@keyframes qb-flash { 0%, 35% { filter: drop-shadow(0 0 4px rgba(240, 196, 110, 1)) drop-shadow(0 12px 14px rgba(0, 0, 0, .34)); } }

.qb-pin {
  position: absolute; z-index: 4; top: -21px; left: 50%; width: 17px; height: 17px; margin-left: -8.5px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff5d6 0 9%, #eab95c 22%, #a8741f 58%, #5a3a0e 100%);
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, .55), 3px 6px 5px -3px rgba(0, 0, 0, .4);
}
.qb-note.s-hold .qb-pin { background: radial-gradient(circle at 34% 30%, #f4f6f4 0 9%, #a9b1ad 24%, #5b6560 60%, #2d3431 100%); }
.qb-note.s-done .qb-pin { background: radial-gradient(circle at 34% 30%, #ffd9cf 0 9%, #c75a45 24%, #8a2c20 60%, #4a130c 100%); }

.qb-note-body { flex: 1; min-width: 0; }
.qb-kind { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-family: var(--f-ui-sc); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; color: var(--qb-ink-3); }
.qb-note.is-next .qb-kind, .qb-note.k-main .qb-kind { color: var(--qb-past); }
.qb-yours { display: inline-flex; align-items: center; gap: 4px; color: var(--qb-future); }
.qb-yours .ic { width: 13px; height: 13px; }
.qb-edited { font-family: var(--f-ui); font-weight: 500; font-style: italic; letter-spacing: 0; }
.qb-title { margin: 4px 0 8px; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1.12; letter-spacing: 0; color: var(--qb-ink); }
.qb-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-wrap: balance; }
.qb-open:hover { color: #7a4a0c; }
.qb-open:focus-visible { box-shadow: 0 0 0 2px #efe2c2, 0 0 0 4px var(--qb-brass); border-radius: 2px; }
.qb-hook { font-family: var(--f-body); font-size: 1.02rem; line-height: 1.5; color: var(--qb-ink-2); text-wrap: pretty; }
.qb-trail, .qb-done-note, .qb-mynote { display: flex; gap: 7px; align-items: baseline; margin-top: 10px; font-family: var(--f-ui); font-size: var(--t-sm); line-height: 1.4; color: var(--qb-ink); }
.qb-trail .ic, .qb-done-note .ic, .qb-mynote .ic { flex: none; width: 15px; height: 15px; transform: translateY(2px); color: var(--qb-brass); }
.qb-trail { font-weight: 500; }
.qb-trail-src { font-family: var(--f-ui); font-size: .88em; color: var(--qb-ink-3); }
.qb-done-note .ic { color: var(--qb-red); }
.qb-mynote { font-family: var(--f-body); font-style: italic; color: var(--qb-ink-2); }
.qb-mynote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qb-mynote .ic { color: var(--qb-future); }

.qb-note-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--qb-rule); }
.qb-from { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qb-from .portrait::after { box-shadow: 0 0 0 1.5px #a26b1a, 0 2px 5px -2px rgba(0, 0, 0, .45); }
.qb-from-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; color: var(--qb-brass); box-shadow: inset 0 0 0 1.5px rgba(138, 90, 20, .55); }
.qb-from-mark .ic { width: 17px; height: 17px; }
.qb-from-txt { display: grid; min-width: 0; font-family: var(--f-ui); font-size: var(--t-xs); line-height: 1.3; color: var(--qb-ink-2); }
.qb-from-who b { color: var(--qb-ink); font-weight: 700; }
.qb-from-where { display: inline-flex; align-items: center; gap: 3px; color: var(--qb-ink-3); }
.qb-from-where .ic { width: 12px; height: 12px; }
.qb-foot-end { display: flex; align-items: center; gap: 10px; flex: none; }
.qb-pcs { display: flex; }
.qb-pcs .portrait + .portrait { margin-left: -6px; }
.qb-pcs .portrait::after { box-shadow: 0 0 0 1.5px #efe2c2, 0 0 0 2.5px rgba(122, 79, 20, .6); }
.qb-note .chip.session { height: 22px; background: transparent; border-color: rgba(60, 40, 18, .38); color: var(--qb-ink); }
.qb-note .chip.session:hover { border-color: var(--qb-brass); color: #7a4a0c; }

.qb-stamp {
  position: absolute; z-index: 2; top: -4px; right: -8px; transform: rotate(9deg);
  padding: 5px 10px 4px; border: 2.5px solid currentColor; border-radius: 5px;
  font-family: var(--f-ui-sc); font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: .16em; white-space: nowrap;
  color: var(--qb-red); opacity: .8; mix-blend-mode: multiply; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='60'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 1.9'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>");
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='60'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 1.9'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>");
}
.qb-stamp.s-next { color: var(--qb-past); }
.qb-stamp.s-hold { color: var(--qb-slate); transform: rotate(-7deg); }
.qb-stamp.s-done { color: var(--qb-red); }
.qb-note.s-hold { filter: saturate(.8) drop-shadow(0 7px 7px rgba(0, 0, 0, .26)); }
.qb-grid-done .qb-note { filter: grayscale(.4) drop-shadow(0 5px 6px rgba(0, 0, 0, .22)); }
.qb-grid-done .qb-note:hover { filter: grayscale(.1) drop-shadow(0 12px 12px rgba(0, 0, 0, .3)); }
.qb-note.s-done .qb-title { color: var(--qb-ink-2); }

.qb-note.k-main {
  border-width: 34px; border-image-width: 34px; padding: 10px 26px 4px;
  max-width: 1080px; margin: 0 auto;
}
.qb-note.k-main .qb-pin { left: 12%; }
.qb-note.k-main .qb-pin-2 { left: 88%; }
.qb-note.k-main .qb-title { font-size: var(--t-2xl); margin: 6px 0 12px; max-width: 18ch; }
.qb-note.k-main .qb-hook { font-size: var(--t-md); max-width: 60ch; }
.qb-note.k-main .qb-trail { font-size: var(--t-md); }
.qb-wax {
  position: absolute; z-index: 2; top: -14px; right: 30px; width: 66px; height: 66px; display: grid; place-items: center;
  border-radius: 51% 47% 53% 46% / 48% 53% 47% 52%;
  background:
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(40, 4, 2, .22) 54%, transparent 60%),
    radial-gradient(circle at 34% 28%, #b95442, #8a2a20 46%, #521410 100%);
  box-shadow: 0 3px 5px rgba(0, 0, 0, .42), inset 0 -3px 6px rgba(0, 0, 0, .35), inset 0 2px 3px rgba(255, 180, 160, .18);
  color: rgba(40, 5, 3, .6);
}
.qb-wax .ic { width: 30px; height: 30px; stroke-width: 1.8; filter: drop-shadow(0 1px 0 rgba(255, 170, 150, .35)); }

.qb-track { list-style: none; margin: 22px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.qb-step { --c: var(--qb-ink-3); position: relative; display: grid; justify-items: center; align-content: start; gap: 3px; padding: 0 8px; text-align: center; }
.qb-step.t-past { --c: var(--qb-past); }
.qb-step.t-present { --c: var(--qb-present); }
.qb-step.t-future { --c: var(--qb-future); }
.qb-step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 0; top: 19px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 0;
  border-top: 2px dashed var(--qb-rule);
}
.qb-step.is-done:not(:last-child)::after { border-top-style: solid; border-top-color: var(--c); opacity: .6; }
.qb-node {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--c); background: var(--qb-node-bg, #efe2c2); box-shadow: inset 0 0 0 2px var(--c);
}
.qb-node .ic { width: 19px; height: 19px; }
.qb-step.is-done .qb-node { background: var(--c); color: #fff8e8; box-shadow: none; }
.qb-step.is-now .qb-node { box-shadow: inset 0 0 0 2px var(--c), 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); animation: qb-beat 2.4s ease-in-out infinite; }
@keyframes qb-beat { 50% { box-shadow: inset 0 0 0 2px var(--c), 0 0 0 9px color-mix(in srgb, var(--c) 8%, transparent); } }
.qb-step-lbl { margin-top: 4px; font-family: var(--f-ui-sc); font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--c); }
.qb-step-title { font-family: var(--f-body); font-size: var(--t-sm); line-height: 1.3; color: var(--qb-ink); text-wrap: balance; }
.qb-step-when { font-family: var(--f-ui); font-size: 12.5px; color: var(--qb-ink-3); }
.qb-step-when a { color: inherit; }

.qb-empty { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; padding: var(--s-7) 0; font-family: var(--f-ui); color: #f1e3c4; }

.qb-shelf { margin-top: var(--s-7); }
.qb-shelf summary { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); cursor: pointer; list-style: none; }
.qb-shelf summary::-webkit-details-marker { display: none; }
.qb-shelf summary h2 { font-size: var(--t-xl); color: var(--ink-3); }
.qb-shelf summary h2::before { content: "▸ "; font-size: .6em; vertical-align: .3em; }
.qb-shelf[open] summary h2::before { content: "▾ "; }
.qb-shelf summary h2 .num { font-size: .6em; color: var(--brass); vertical-align: .35em; }
.qb-shelf summary p { color: var(--ink-3); font-style: italic; }
.qb-shelf ul { list-style: none; margin: 10px 0 0; padding: 0; }
.qb-shelf li { display: flex; align-items: center; gap: 14px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.qb-shelf-title { flex: 1; min-width: 0; color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }

.qb-sheet { display: grid; gap: 20px; padding: 30px 28px 40px; --qb-node-bg: var(--ground-2); }
.qb-sheet h2 { font-size: var(--t-2xl); margin-top: -10px; padding-right: 40px; }
.qb-sheet-hook { margin-top: -8px; font-size: var(--t-md); line-height: 1.55; font-style: italic; color: var(--ink-2); }
.qb-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qb-done-in { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-size: var(--t-xs); color: var(--ink-3); }
.qb-sec h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--f-ui-sc); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; color: var(--ink-3); }
.qb-sec h3 .ic { width: 15px; height: 15px; color: var(--brass); }
.qb-sec p { line-height: 1.6; }
.qb-known { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; line-height: 1.55; }
.qb-known li::marker { color: var(--brass); }
.qb-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.qb-chip-lbl { margin-left: 6px; font-family: var(--f-ui); font-size: var(--t-xs); color: var(--ink-3); }
.qb-from-line { margin-top: 8px; font-family: var(--f-ui); font-size: var(--t-sm); color: var(--ink-2); }
.qb-penline { font-style: italic; color: var(--ink-2); box-shadow: inset 2px 0 0 var(--line-strong); padding-left: 12px; }
.qb-penline em { font-style: normal; font-family: var(--f-ui); font-size: .9em; color: var(--ink-3); }
.qb-sec-track .qb-track { margin: 6px 0 0; }
.qb-sheet .qb-step { --c: var(--ink-3); }
.qb-sheet .qb-step.t-past { --c: var(--past); }
.qb-sheet .qb-step.t-present { --c: var(--present); }
.qb-sheet .qb-step.t-future { --c: var(--future); }
.qb-sheet .qb-step-title { color: var(--ink); }
.qb-sheet .qb-step-when { color: var(--ink-3); }
.qb-sheet .qb-step:not(:last-child)::after { border-top-color: var(--line-2); }
.qb-sheet .qb-step.is-done .qb-node { color: var(--ground-2); }
.qb-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--f-ui); font-size: var(--t-sm); color: var(--ink-2); }
.qb-sources li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.qb-sources a, .qb-src-nos { font-weight: 700; font-variant-numeric: lining-nums tabular-nums; color: var(--ink-3); }
.qb-sources a:hover { color: var(--brass-hi); }
.qb-mynote-field { padding-top: var(--s-4); border-top: 1px dashed var(--line-2); }
.qb-mynote-field .textarea { min-height: 84px; }
.qb-sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qb-spacer { flex: 1; }

.qb-remind { display: grid; gap: 16px; padding: 30px 28px 40px; }
.qb-remind h2 { font-size: var(--t-2xl); margin-top: -8px; }
.qb-remind-lede { color: var(--ink-3); font-family: var(--f-ui); font-size: var(--t-sm); line-height: 1.5; }
.qb-remind-list {
  margin: 0; padding: 22px 24px 20px 46px; counter-reset: none; border-radius: 3px;
  background: var(--paper); color: var(--qb-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, var(--shadow-2);
}
.qb-remind-list li { padding: 12px 0; border-bottom: 1px dashed var(--qb-rule); }
.qb-remind-list li:last-child { border-bottom: 0; }
.qb-remind-list li::marker { font-family: var(--f-display); font-size: 1.1rem; color: var(--qb-brass); }
.qb-remind-list h3 { font-size: 1.3rem; color: var(--qb-ink); }
.qb-remind-list p { margin-top: 4px; font-size: var(--t-md); line-height: 1.5; color: var(--qb-ink-2); }
.qb-remind-list .is-hold h3 { color: var(--qb-ink-2); }
.qb-remind-hold { font-family: var(--f-ui-sc); font-weight: 700; font-size: 11px; letter-spacing: .14em; color: var(--qb-slate); vertical-align: .2em; }
.qb-remind-next { display: flex; gap: 6px; align-items: baseline; font-family: var(--f-ui); font-size: var(--t-sm) !important; color: var(--qb-ink) !important; }
.qb-remind-next .ic { flex: none; width: 14px; height: 14px; transform: translateY(2px); color: var(--qb-brass); }
.qb-remind-left { font-family: var(--f-ui); font-size: var(--t-xs); color: var(--ink-3); }
.qb-remind-actions { display: flex; gap: 8px; }

.qb-pin-form { display: grid; gap: 18px; padding: 30px 28px 36px; }
.qb-pin-form h2 { font-size: var(--t-2xl); margin-top: -8px; }
.qb-pin-lede { color: var(--ink-3); margin-top: -10px; }
.qb-pin-row { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 18px 28px; align-items: start; }
.qb-pin-row .select { width: auto; }
.qb-pin-actions { display: flex; gap: 10px; margin-top: 6px; }

@media (max-width: 900px) {
  .qb-note.k-main .qb-title { font-size: var(--t-xl); }
  .qb-wax { width: 60px; height: 60px; right: 16px; }
  .qb-wax .ic { width: 28px; height: 28px; }
}
@media (max-width: 640px) {
  .qb-frame { padding: 10px; margin: 0 -6px; }
  .qb-corner { width: 28px; height: 28px; }
  .qb-corner.c-tl, .qb-corner.c-tr { top: 3px; } .qb-corner.c-bl, .qb-corner.c-br { bottom: 3px; }
  .qb-corner.c-tl, .qb-corner.c-bl { left: 3px; } .qb-corner.c-tr, .qb-corner.c-br { right: 3px; }
  .qb-board { padding: 40px 12px 44px; }
  .qb-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 26px; }
  .qb-plaque { margin-top: 44px; }
  .qb-note { border-width: 22px; border-image-width: 22px; padding: 4px 4px 0; transform: rotate(calc(var(--tilt, 0deg) * .5)); }
  .qb-note.k-main { border-width: 24px; border-image-width: 24px; padding: 8px 8px 2px; }
  .qb-note.k-main .qb-pin { left: 18%; } .qb-note.k-main .qb-pin-2 { left: 82%; }
  .qb-title { font-size: 1.4rem; }
  .qb-wax { top: -14px; right: 6px; width: 50px; height: 50px; }
  .qb-wax .ic { width: 24px; height: 24px; }
  .qb-track { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
  .qb-step { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "node lbl" "node title" "node when"; justify-items: start; text-align: left; column-gap: 12px; row-gap: 0; }
  .qb-node { grid-area: node; align-self: center; }
  .qb-step-lbl { grid-area: lbl; margin-top: 0; }
  .qb-step-title { grid-area: title; }
  .qb-step-when { grid-area: when; }
  .qb-step:not(:last-child)::after { top: 40px; bottom: -10px; left: 19px; right: auto; height: auto; border-top: 0; border-left: 2px dashed var(--qb-rule); }
  .qb-step.is-done:not(:last-child)::after { border-left-style: solid; border-left-color: var(--c); }
  .qb-note-foot { flex-wrap: wrap; }
  .qb-statline > span { border-right: 0; padding-right: 0; margin-right: 16px; }
  .qb-hero-actions .btn { flex: 1 1 auto; }
  .qb-pin-row { grid-template-columns: minmax(0, 1fr); }
}
