/* The demo bar and the "Make it yours" sheet. Shed's own type, so it reads as Shed, not as part of the app. */
@font-face { font-family: "BarSans"; src: url("/_shed/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap }
@font-face { font-family: "BarMono"; src: url("/_shed/fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap }
.demo-bar, .demo-sheet, .demo-toast { --sans: "BarSans", ui-sans-serif, system-ui, sans-serif; --mono: "BarMono", ui-monospace, Menlo, monospace; box-sizing: border-box; letter-spacing: normal; text-transform: none; line-height: 1.4 }
.demo-bar *, .demo-sheet * { box-sizing: border-box }
/* Each demo styles its own buttons boldly: none of that may leak into the bar or the sheet. */
body .demo-bar button, body .demo-sheet button, body .demo-bar button:is(:hover, :active, :focus-visible), body .demo-sheet button:is(:hover, :active, :focus-visible) { box-shadow: none; transform: none; text-transform: none; letter-spacing: normal; text-shadow: none; min-height: 0; min-width: 0; margin: 0; outline-offset: 2px; transition: background .15s }
body.has-bar { padding-bottom: 96px }

.demo-bar { position: fixed; z-index: 50; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(860px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 14px; background: #15140f; color: #f4f2ec; font: 400 14px/1.35 var(--sans);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.06) }
.demo-bar .b-home { display: flex; align-items: center; gap: 8px; color: #f4f2ec; text-decoration: none; font-weight: 700; white-space: nowrap; font-size: 13px; opacity: .85 }
.demo-bar .b-home:hover { opacity: 1 }
.demo-bar .b-home svg { width: 22px; height: 20px; flex: none }
.demo-bar .b-hint { margin: 0; flex: 1; min-width: 0; padding-left: 14px; border-left: 1px solid #3a3830; color: #cfcbc0 }
.demo-bar .b-hint b { color: #fff; font-weight: 700; margin-right: 4px }
.demo-bar .b-in { color: #f2c200; font-weight: 600; white-space: nowrap }
.demo-bar .b-go { flex: none; font: 700 14px/1 var(--sans); padding: 12px 16px; border: 0; border-radius: 9px; background: #f2c200; color: #15140f; cursor: pointer }
.demo-bar .b-go:hover { background: #ffd633 }
@media (max-width: 640px) {
  body.has-bar { padding-bottom: 150px }
  .demo-bar { flex-wrap: wrap; justify-content: space-between; bottom: 10px; gap: 10px; padding: 12px }
  .demo-bar .b-hint { order: -1; flex-basis: 100%; padding-left: 0; border-left: 0 }
  .demo-bar .b-home span { display: inline }
}

.demo-sheet { width: min(540px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; border: 0; border-radius: 18px; padding: 30px 30px 26px; background: #fbfaf6; color: #15140f; font: 400 15px/1.5 var(--sans); box-shadow: 0 30px 80px rgba(0,0,0,.35) }
.demo-sheet::backdrop { background: rgba(21,20,15,.55); backdrop-filter: blur(2px) }
.demo-sheet .s-x { position: absolute; top: 12px; right: 12px; margin: 0; padding: 0; border: 0; background: none }
.demo-sheet .s-x button { font: 400 26px/1 var(--sans); width: 38px; height: 38px; border: 0; background: none; color: #6f6a5f; cursor: pointer; border-radius: 8px }
.demo-sheet .s-x button:hover { background: #eeebe3; color: #15140f }
.demo-sheet h2 { font: 800 30px/1.05 var(--sans); font-stretch: 112%; letter-spacing: -.02em; margin: 0 0 8px }
.demo-sheet .s-sub { margin: 0 0 20px; color: #4a463e }
.demo-sheet .s-tabs { display: flex; gap: 4px; padding: 4px; background: #eeebe3; border-radius: 10px; margin-bottom: 20px }
.demo-sheet .s-tabs button { flex: 1; text-align: center; font: 600 14px/1 var(--sans); padding: 11px 8px; border: 0; border-radius: 7px; background: none; color: #4a463e; cursor: pointer }
.demo-sheet .s-tabs button:hover { background: rgba(255,255,255,.55); color: #15140f; border: 0 }
.demo-sheet .s-tabs button[aria-selected=true], .demo-sheet .s-tabs button[aria-selected=true]:hover { background: #fff; color: #15140f; box-shadow: 0 1px 3px rgba(0,0,0,.12) }
.demo-sheet ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px }
.demo-sheet li { counter-increment: s; display: flex; align-items: center; gap: 12px }
.demo-sheet li::before { content: counter(s); flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #15140f; color: #f2c200; font: 700 13px/1 var(--sans) }
.demo-sheet li span { flex: 1 }
.demo-sheet q { font-weight: 700 }
.demo-sheet a { color: inherit; font-weight: 600 }
.demo-sheet .s-btn { flex: none; font: 700 13px/1 var(--sans); padding: 10px 14px; border: 0; border-radius: 8px; background: #f2c200; color: #15140f; cursor: pointer }
.demo-sheet .s-btn:hover { background: #ffd633 }
.demo-sheet .s-say { display: flex; align-items: center; gap: 12px; margin: 10px 0 0 40px; padding: 14px 14px 14px 16px; background: #fff; border: 1.5px solid #e2ddd1; border-radius: 10px }
.demo-sheet .s-say q { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; quotes: '“' '”' }
@media (max-width: 640px) { .demo-sheet { padding: 26px 20px 22px } .demo-sheet .s-say { margin-left: 0; flex-direction: column; align-items: stretch } }
.demo-sheet .s-note { margin: 16px 0 0; font-size: 14px; color: #6f6a5f }
.demo-sheet .s-lab { margin: 0 0 8px; font-weight: 600 }
.demo-sheet .s-head + .s-code + .s-note + .s-head { margin-top: 22px }
.demo-sheet .s-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 8px }
.demo-sheet .s-head .s-lab { margin: 0 }
.demo-sheet .s-code { background: #15140f; border-radius: 10px }
.demo-sheet .s-code pre { margin: 0; padding: 14px 16px; color: #f4f2ec; font: 400 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all }

.demo-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #15140f; color: #f4f4f0; font: 500 14px/1.3 var(--mono); padding: 12px 16px; z-index: 60; box-shadow: 0 0 0 2px #f2c200; max-width: calc(100vw - 32px); border-radius: 8px }
@media (max-width: 640px) { .demo-toast { bottom: 150px } }

/* The style lab's dock sits at the bottom too: lift it above the bar. */
body.has-bar .dock { bottom: 84px }
@media (max-width: 640px) { body.has-bar .dock { bottom: 138px } }
