/* Optional help and update review. Reuses the compact HUD control and house typography. */
#helpBtn { position:relative; border-radius:50%; font:600 17px/1 var(--sans); }
#helpBtn[data-unread="true"]::after { content:"";position:absolute;top:5px;right:5px;width:5px;height:5px;border-radius:50%;background:var(--bone,#ece4d8);box-shadow:0 0 5px #fff3; }
/* Keep all three statistics readable when the third HUD control is present. */
@media (max-width:600px) {
  .hud { position:relative; }
  .hud .hud-acts { position:absolute;right:0;top:-54px;height:42px;border:1px solid var(--line);border-radius:12px;background:var(--surface); }
  .hud .hud-stat { flex:1 1 0;min-width:0; }
  .hud .hud-hours { flex:1.15 1 0; }
}
.update-guide { position:fixed;inset:0;z-index:72;display:grid;place-items:center;padding:24px;color:var(--bone,#ece4d8);font:15px/1.5 var(--sans,system-ui); }
.ug-veil { position:absolute;inset:0;background:#050405b8;backdrop-filter:blur(7px); }
.ug-box { position:relative;width:min(620px,100%);max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain;border:1px solid #d2bba32e;border-radius:16px;background:#151114;box-shadow:0 25px 90px #0008;animation:ug-enter .18s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ug-enter { from {opacity:0;transform:translateY(6px)} to {opacity:1;transform:translateY(0)} }
.ug-box header { display:flex;align-items:center;justify-content:space-between;padding:16px 22px 10px; }
.ug-box h2 { margin:0;font:400 27px/1.2 var(--serif,Georgia); }
.ug-close { width:44px;height:44px;border:0;border-radius:50%;background:#fff1;color:inherit;font-size:26px;cursor:pointer; }
.ug-tabs { display:flex;gap:4px;flex-wrap:wrap;padding:0 18px 12px;border-bottom:1px solid #fff1; }
.ug-tabs button { min-height:42px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#bfb4ad;font:600 14px var(--sans,system-ui);cursor:pointer; }
.ug-tabs button[aria-pressed="true"] { background:#ece4d818;color:#fff3e5; }
.ug-tabs .ug-guide-link { margin-left:auto;color:#eee4db; }
.ug-guide-link span { margin-left:5px;color:#a89c94; }
.ug-detail,.ug-intro { padding:22px 26px; }
.ug-detail h3,.ug-intro h3 { margin:0 0 10px;font:400 25px/1.2 var(--serif,Georgia); }
.ug-detail p,.ug-intro p { color:#c0b5ae;margin:0 0 14px; }
.ug-detail .ug-date { font-size:12px;margin:0 0 8px;color:#a99b93; }
.ug-version { display:grid;gap:5px;margin:0 0 20px;color:#bfb3ac;font-size:12px; }
.ug-version select { width:100%;min-height:44px;padding:8px 12px;border:1px solid #d2bba335;border-radius:8px;color:#eee4db;background:#211b1e;font:500 14px var(--sans,system-ui); }
.ug-actions { display:flex;gap:9px;flex-wrap:wrap;margin-top:20px; }
.ug-actions .btn { min-height:44px; }
.ug-checklist { margin-top:22px;border-top:1px solid #fff1;padding-top:5px; }
.ug-checklist summary { display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;font-size:14px;color:#d6c9bf;list-style:none; }
.ug-checklist summary::-webkit-details-marker { display:none; }
.ug-checklist summary::before { content:'›';display:inline-block;font-size:22px;transition:transform .16s ease; }
.ug-checklist[open] summary::before { transform:rotate(90deg); }
.ug-checklist summary span { margin-left:auto;font-size:12px;color:#a99b93; }
.ug-checks { display:grid;gap:15px;padding:8px 0 14px; }
.ug-check { display:flex;align-items:flex-start;gap:11px;cursor:pointer; }
.ug-check input { flex:none;width:18px;height:18px;margin-top:3px;accent-color:var(--red,#b3141d); }
.ug-check>span { display:grid;gap:3px; }.ug-check b { font-size:14px;color:#eee4db; }.ug-check span span { font-size:14px;color:#bfb3ac; }
.ug-history { display:block;min-height:44px;padding:0;background:none;border:0;color:#bfb3ac;font:500 13px var(--sans,system-ui);text-decoration:underline;text-underline-offset:4px;cursor:pointer;margin-top:8px; }
.ug-note { font-size:12px!important;color:#a99b93!important;margin-top:20px!important; }
.update-guide :is(button,input,a,select,summary):focus-visible { outline:2px solid #e9cfb3;outline-offset:3px; }
@media(max-width:640px) { .update-guide{padding:12px}.ug-box{max-height:calc(100dvh - 24px)}.ug-detail,.ug-intro{padding:20px}.ug-box header{padding:14px 18px 8px}.ug-tabs{padding-inline:12px}.ug-actions .btn{flex:1} }
@media(prefers-reduced-motion:reduce) { .ug-box{animation:none}.ug-checklist summary::before{transition:none} }

/* Two choices and a short change list. No checklists or maintenance feed. */
.ug-box{width:min(520px,100%)}.ug-tabs button{flex:1}.ug-changes{margin:18px 0 22px;padding-left:19px;color:#ddd0c4;display:grid;gap:8px;font-size:14px}.ug-intro>.btn,.ug-detail>.btn{width:100%;min-height:44px}.ug-detail h3{font-size:23px}
