/* Self-contained ?claim=<item_id> card on the project board page. */
.hbc{padding-top:8px;padding-bottom:36px}
.hbc-card{background:var(--hb-paper,#fff);border:2px solid var(--hb-ink,#111);border-radius:18px;padding:28px;display:flex;flex-direction:column;gap:20px}
.hbc-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 20px}
.hbc-head__main{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1 1 280px}
.hbc-title{margin:0;font-family:"Bricolage Grotesque",system-ui,sans-serif;font-weight:800;font-size:clamp(26px,3.6vw,38px);line-height:1.06;letter-spacing:-.025em;overflow-wrap:anywhere}
.hbc-meta-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:15px;color:var(--hb-muted,#5f5e5a)}
.hbc-effort{font-weight:600;color:var(--hb-ink,#111)}
.hbc-body{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.hbc-picture{flex:0 0 220px;max-width:100%;border-radius:12px;border:1px solid var(--hb-line,#e4e2dc);background:var(--hb-soft,#f7f7f5);overflow:hidden}
.hbc-picture img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
.hbc-needs{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:12px}
.hbc-needs h3{margin:0;font-size:15px;font-family:"IBM Plex Mono",ui-monospace,monospace;text-transform:uppercase;letter-spacing:.06em;color:var(--hb-muted,#5f5e5a)}
.hbc-needs p{margin:0;font-size:16px;line-height:1.55;color:var(--hb-ink-soft,#3a3935);white-space:pre-line;overflow-wrap:anywhere}

/* Identity & primary reserve action */
.hbc-reserve{border-top:1px solid var(--hb-line,#e4e2dc);padding-top:20px;display:flex;flex-direction:column;gap:14px}
.hbc-identity{display:flex;flex-direction:column;gap:10px}
.hbc-mode-row{display:flex;flex-wrap:wrap;gap:8px}
.hbc-mode-btn{font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:14px;font-weight:600;padding:7px 14px;border-radius:999px;border:1px solid var(--hb-line,#e4e2dc);background:var(--hb-soft,#f7f7f5);color:var(--hb-ink,#111);cursor:pointer}
.hbc-mode-btn[aria-pressed="true"]{background:var(--hb-ink,#111);color:var(--hb-on-dark,#fff);border-color:var(--hb-ink,#111)}
.hbc-input-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.hbc-label{font-size:14px;font-weight:600;color:var(--hb-ink,#111)}
.hbc-input{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:15px;padding:10px 14px;border:1px solid var(--hb-ink,#111);border-radius:10px;background:var(--hb-paper,#fff);color:var(--hb-ink,#111);min-width:220px;flex:0 1 280px}
.hbc-signed-line{margin:0;font-size:15px;color:var(--hb-ink-soft,#3a3935);display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.hbc-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.hbc-primary{font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:17px;font-weight:700;min-height:52px;padding:0 26px;border-radius:12px;border:2px solid var(--hb-accent,#E09B2D);background:var(--hb-accent,#E09B2D);color:var(--hb-ink,#111);cursor:pointer}
.hbc-primary:hover{background:#eaa944;border-color:#eaa944}
.hbc-primary:disabled{opacity:.6;cursor:not-allowed}
.hbc-secondary{font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:15px;font-weight:600;min-height:42px;padding:0 16px;border-radius:10px;border:1px solid var(--hb-ink,#111);background:var(--hb-paper,#fff);color:var(--hb-ink,#111);cursor:pointer}
.hbc-secondary:hover{background:var(--hb-soft,#f7f7f5)}
.hbc-link-btn{background:none;border:0;padding:0;font:inherit;font-size:14px;font-weight:600;color:var(--hb-ink,#111);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.hbc-world-link{font-weight:600;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}
.hbc-error{margin:0;font-size:15px;font-weight:600;color:#9b1c1c}
.hbc-error:empty{display:none}

/* Reserved state: one-line command, plain steps, live progress */
.hbc-command-box{background:var(--hb-ink,#111);color:var(--hb-on-dark,#fff);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:12px}
.hbc-command-box .hb-eyebrow{color:var(--hb-on-dark-muted,#c9c7c0)}
.hbc-command-line{margin:0;font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:clamp(14px,1.7vw,17px);line-height:1.45;padding:14px 16px;border:1px solid var(--hb-dark-line,#55534d);border-radius:10px;overflow-wrap:anywhere;flex:999 1 300px}
.hbc-steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:15px;color:var(--hb-ink-soft,#3a3935)}
.hbc-steps-wrap{background:var(--hb-soft,#f7f7f5);border-radius:12px;padding:16px 20px;display:flex;flex-direction:column;gap:8px}
.hbc-steps-wrap h3{margin:0;font-size:15px;font-weight:700}

/* Live tracker */
.hbc-tracker{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--hb-line,#e4e2dc);padding-top:18px}
.hbc-stages{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.hbc-stage{padding:10px 12px;border-radius:10px;border:1px solid var(--hb-line,#e4e2dc);background:var(--hb-soft,#f7f7f5);font-size:14px;font-weight:600;color:var(--hb-muted,#5f5e5a);text-align:center}
.hbc-stage--done{border-color:var(--hb-ink,#111);background:var(--hb-paper,#fff);color:var(--hb-ink,#111)}
.hbc-stage--current{border-color:var(--hb-accent,#E09B2D);background:var(--hb-accent,#E09B2D);color:var(--hb-ink,#111)}
.hbc-stage--ended{border-color:#9b1c1c;background:#fef2f2;color:#9b1c1c}
.hbc-live-note{margin:0;font-size:15px;color:var(--hb-ink-soft,#3a3935)}

/* Unavailable + nearest open suggestions */
.hbc-notice{margin:0;padding:14px 16px;border-radius:12px;background:var(--hb-soft,#f7f7f5);border-left:4px solid var(--hb-ink,#111);font-size:16px;font-weight:600;color:var(--hb-ink,#111)}
.hbc-nearest{display:flex;flex-direction:column;gap:10px}
.hbc-nearest h3{margin:0;font-size:16px;font-weight:700}
.hbc-nearest-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:10px}
.hbc-nearest-link{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:12px;border:1px solid var(--hb-line,#e4e2dc);background:var(--hb-paper,#fff);text-decoration:none;color:var(--hb-ink,#111)}
.hbc-nearest-link:hover{border-color:var(--hb-ink,#111);background:var(--hb-soft,#f7f7f5)}
.hbc-nearest-title{font-weight:600;font-size:15px}
.hbc-nearest-meta{font-size:13px;color:var(--hb-muted,#5f5e5a)}

.hbc-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 20px;border-top:1px solid var(--hb-line,#e4e2dc);padding-top:14px;font-size:14px}

@media(max-width:600px){
  .hbc-card{padding:20px}
  .hbc-picture{flex:1 1 100%}
  .hbc-stages{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hbc-primary{width:100%}
}
.hbc-more{border-top:1px solid var(--hb-line,#e4e2dc);padding-top:6px}
.hbc-more summary{cursor:pointer;font-weight:600;font-size:15px;color:var(--hb-ink,#121212);padding:12px 0;display:list-item}
.hbc-more h3{margin:6px 0 10px}
.hbc-more p{margin:0 0 10px;font-size:16px;line-height:1.55;color:var(--hb-ink-soft,#3a3935);white-space:pre-line;overflow-wrap:anywhere}
