/* Shared chrome for pages outside the captured app (see lib/site-header.ts). */
html, body { background: var(--background); color: var(--foreground); }
body.site-search-open { overflow: hidden; }
.site-header [hidden] { display: none !important; }
.site-header [data-site-menu].is-open { font-weight: 600; color: var(--accent-strong); }
.site-header [data-site-menu].is-open svg { transform: rotate(180deg); }

/* Search dialog */
.site-search { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / 0.55); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 1rem 1rem; }
.site-search[hidden] { display: none; }
.site-search__panel { width: min(40rem, 100%); max-height: 75vh; display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--foreground); box-shadow: 0 20px 60px rgb(0 0 0 / 0.4); overflow: hidden; }
.site-search__input { width: 100%; padding: 0.9rem 1rem; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: inherit; font: inherit; font-size: 1rem; outline: none; }
.site-search__results { list-style: none; margin: 0; padding: 0.35rem; overflow-y: auto; }
.site-search__results a { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.6rem; padding: 0.5rem 0.65rem; border-radius: 8px; text-decoration: none; color: inherit; }
.site-search__results li.is-selected a, .site-search__results a:hover { background: var(--surface-muted); }
.site-search__kind { grid-row: span 2; align-self: center; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.1rem 0.45rem; border-radius: 999px; border: 1px solid var(--border); color: var(--foreground-muted); }
.site-search__title { font-weight: 600; font-size: 0.93rem; }
.site-search__detail { font-size: 0.8rem; color: var(--foreground-muted); }
.site-search__empty { padding: 0.9rem; color: var(--foreground-muted); font-size: 0.9rem; }
.site-search__hint { margin: 0; padding: 0.45rem 0.9rem; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--foreground-muted); }

/* Account menu */
.site-account { position: relative; display: inline-flex; }
.site-account__button { width: 2rem; height: 2rem; border-radius: 999px; overflow: hidden; display: grid; place-items: center; background: var(--accent-strong); color: var(--accent-foreground); font-weight: 700; border: 0; cursor: pointer; }
.site-account__button img { width: 100%; height: 100%; object-fit: cover; }
.site-account__menu { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 70; min-width: 13rem; display: grid; padding: 0.35rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--foreground); box-shadow: 0 12px 40px rgb(0 0 0 / 0.35); }
.site-account__menu[hidden] { display: none; }
.site-account__name { display: grid; padding: 0.45rem 0.6rem 0.55rem; border-bottom: 1px solid var(--border); margin-bottom: 0.25rem; font-weight: 600; font-size: 0.9rem; }
.site-account__name small { font-weight: 400; color: var(--foreground-muted); font-size: 0.78rem; }
.site-account__menu a, .site-account__menu button { text-align: left; padding: 0.45rem 0.6rem; border-radius: 6px; font-size: 0.9rem; text-decoration: none; color: inherit; background: none; border: 0; cursor: pointer; font: inherit; }
.site-account__menu a:hover, .site-account__menu button:hover { background: var(--surface-muted); }
