/* App shell: sidebar + top bar around every app page (Explore, Launch, $DAZZ, AI credit, My panel, Proofs).
   Same tokens and fonts as launchpad.css / credits.css, so it sits on either one. */
.sh { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; position: relative; z-index: 2; }
.sh-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px 18px; border-right: 1px solid var(--line-2, rgba(255,255,255,.12)); background: rgba(8,8,10,.94); backdrop-filter: blur(14px); z-index: 40; overflow-y: auto; }
.sh-logo { display: flex; align-items: center; gap: 10px; padding: 6px 10px 22px; font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--ink, #ededf0); }
.sh-logo img { width: 30px; height: 30px; }
.sh-sec { margin: 14px 12px 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint, #55555e); }
.sh-nav { display: flex; flex-direction: column; gap: 2px; }
.sh-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-family: var(--sans); font-size: 14.5px; color: var(--ink-2, #c4c4cb); transition: background .15s, color .15s; }
.sh-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.sh-nav a.on { color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.035)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.sh-nav svg, .sh-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sh-nav img.sh-ic { border-radius: 50%; }
.sh-nav .sh-ext { margin-left: auto; font-size: 11px; color: var(--faint, #55555e); }
.sh-spacer { flex: 1; min-height: 18px; }
.sh-tick { display: block; margin: 0 2px 10px; padding: 12px 14px; border: 1px solid var(--line-2, rgba(255,255,255,.12)); border-radius: 14px; background: rgba(255,255,255,.03); color: var(--ink, #ededf0); }
.sh-tick:hover { border-color: rgba(255,255,255,.24); }
.sh-tick span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #85858f); }
.sh-tick b { display: block; margin-top: 4px; font-family: var(--mono); font-size: 15px; font-weight: 500; }
.sh-tick em { font-style: normal; font-size: 12px; margin-left: 6px; }
.sh-tick em.up { color: #7ee2a8; } .sh-tick em.down { color: #ff6b5e; }
.sh-tick small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted, #85858f); }
.sh-soc { display: flex; gap: 8px; padding: 0 4px; }
.sh-soc a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2, rgba(255,255,255,.12)); border-radius: 50%; color: var(--ink-2, #c4c4cb); }
.sh-soc a:hover { color: #fff; border-color: rgba(255,255,255,.3); }

.sh-main { min-width: 0; display: flex; flex-direction: column; }
.sh-bar { position: sticky; top: 0; z-index: 35; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 28px; border-bottom: 1px solid var(--line, rgba(255,255,255,.07)); background: rgba(6,6,7,.84); backdrop-filter: blur(14px); }
.sh-bar .ca-wrap { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.sh-bar .ca-row { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.sh-bar-brand { display: none; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--ink, #ededf0); }
.sh-bar-brand img { width: 26px; height: 26px; }
.sh-menu { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2, rgba(255,255,255,.12)); border-radius: 12px; background: transparent; color: var(--ink, #ededf0); cursor: pointer; }
.sh-menu svg { width: 18px; height: 18px; }
.sh-search { display: flex; align-items: center; gap: 10px; width: 250px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2, rgba(255,255,255,.12)); border-radius: 12px; background: rgba(255,255,255,.03); color: var(--muted, #85858f); font: 13.5px var(--sans); cursor: pointer; }
.sh-search:hover { border-color: rgba(255,255,255,.24); color: var(--ink-2, #c4c4cb); }
.sh-search kbd { margin-left: auto; padding: 1px 6px; border: 1px solid var(--line-2, rgba(255,255,255,.12)); border-radius: 6px; font: 11px var(--mono); }
.sh-create { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 13px; border-radius: 999px; background: linear-gradient(180deg, #fff, #d4d4da 55%, #a3a3ac); color: #0a0a0b; font: 500 13.5px var(--mono); box-shadow: 0 8px 24px -10px rgba(255,255,255,.35); white-space: nowrap; }
.sh-create:hover { box-shadow: 0 0 0 5px rgba(255,255,255,.08), 0 10px 30px -10px rgba(255,255,255,.45); }
.sh-create svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sh-conn { position: relative; }
.sh-conn > button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; border: 1px solid var(--line-2, rgba(255,255,255,.12)); border-radius: 999px; background: rgba(255,255,255,.04); color: var(--ink, #ededf0); font: 500 13.5px var(--mono); cursor: pointer; white-space: nowrap; }
.sh-conn > button:hover { border-color: rgba(255,255,255,.3); }
.sh-conn > button i { width: 7px; height: 7px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 8px #7ee2a8; }
.sh-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; padding: 8px; border: 1px solid var(--line-2, rgba(255,255,255,.12)); border-radius: 16px; background: #0d0d10; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); z-index: 60; }
.sh-pop[hidden] { display: none; }
.sh-pop p { margin: 6px 10px 10px; font-size: 12.5px; color: var(--muted, #85858f); line-height: 1.5; }
.sh-pop button, .sh-pop a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink, #ededf0); font: 14px var(--sans); text-align: left; cursor: pointer; }
.sh-pop button:hover, .sh-pop a:hover { background: rgba(255,255,255,.06); }
.sh-pop img { width: 22px; height: 22px; border-radius: 6px; }
.sh-pop .sh-err { color: #ff6b5e; }

.sh-foot { margin-top: auto; padding: 28px 28px 34px; border-top: 1px solid var(--line, rgba(255,255,255,.07)); display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; font-size: 12.5px; color: var(--muted, #85858f); }
.sh-foot a:hover { color: #fff; }
.sh-foot p { margin: 0; flex-basis: 100%; color: var(--faint, #55555e); }
.sh-foot .verify-line { flex-basis: 100%; }

/* bottom tabs on phones */
.sh-tabs { display: none; }
.sh-scrim { display: none; }

@media (max-width: 1000px) {
  .sh { grid-template-columns: minmax(0, 1fr); }
  .sh-side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .25s; }
  .sh.open .sh-side { transform: none; }
  .sh.open .sh-scrim { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,.55); }
  .sh-menu { display: grid; place-items: center; }
  .sh-bar { padding: 10px 16px; gap: 10px; }
  .sh-bar-brand { display: flex; }
  .sh-bar .ca-row { display: none; }
  .sh-search { width: 40px; padding: 0; justify-content: center; }
  .sh-search span, .sh-search kbd { display: none; }
  .sh-create span { display: none; }
  .sh-create { width: 40px; padding: 0; justify-content: center; }
  .sh-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2, rgba(255,255,255,.12)); background: rgba(8,8,10,.96); backdrop-filter: blur(14px); }
  .sh-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 10px; font: 10.5px var(--sans); color: var(--muted, #85858f); }
  .sh-tabs a.on { color: #fff; background: rgba(255,255,255,.06); }
  .sh-tabs svg, .sh-tabs img { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .sh-tabs img { border-radius: 50%; }
  body.sh-on { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.sh-on .pc-fab { bottom: calc(78px + env(safe-area-inset-bottom)); }
  body.sh-on .pc-panel { bottom: calc(74px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .sh-conn > button { padding: 0 12px; font-size: 12.5px; }
  .sh-bar-brand span { display: none; }
}
.sh-bar svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sh-menu svg { width: 18px; height: 18px; }
.sh-foot .sh-built { margin-left: auto; padding: 5px 12px; border: 1px solid var(--line-2, rgba(255,255,255,.12)); border-radius: 999px; color: var(--ink-2, #c4c4cb); }
.sh-foot .sh-built b { color: #fff; font-weight: 600; }
@media (max-width: 1000px) { .sh-foot .sh-built { margin-left: 0; } }
