/* Guest Dashboard Shell 专属样式（docs/design/guest-dashboard-shell.md §6/§7）
   顶栏复用共享 site-nav（site-layout.js + pages.css）。
   v2.2 页面级融合：auth.css 的 body 规则（flex 居中 + 渐变背景，为登录卡片页设计）
   会把 #site-nav 压成收缩窄条并盖掉 pages.css 的页面背景——在此收口回
   pages.css 同构的页面骨架；auth.css 仅保留其 CSS 变量供 dashboard 系组件消费。 */

/* ── 页面骨架：与其它公开页（pages.css）同构 ── */
body.guest-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--bg-deep, #08090e);
    color: var(--text-primary);
}

body.guest-shell #site-nav {
    width: 100%;
}

/* ── 主内容：宽度/内距完全沿用 dashboard.css 的 .dashboard-container（登录前后
      一致）；仅补 flex 占满与视口高度基准，使 footer 落在首屏折叠线以下 ── */
body.guest-shell .dashboard-container {
    flex: 1;
    min-height: calc(100vh - 64px); /* 64px = site-nav 高度 */
}

body.guest-shell .main-content {
    /* 与登录态同构：grid 单元格 + 视口高度基准（扣除 64px site-nav），
       让 bar 态的 Chat 输入条锚在视口底部、桌面网格占满其余空间 */
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    position: relative;
    width: 100%;
    min-width: 0;
    height: calc(100vh - 64px - 32px); /* nav + container 上下距 */
}

/* ── Chat：访客壳固定 bar 态（body[data-chat="bar"]），尺寸由 dashboard-chat.css
      「Desktop-first layout」段决定；仅空桌面退化态需要视口高度基准 ── */
body.guest-shell .chat-panel {
    height: auto;
    max-height: none;
}
body.guest-shell.desktop--empty .chat-panel {
    height: calc(100vh - 64px - 32px);
    max-height: calc(100vh - 64px - 32px);
}

/* ── Apps 桌面：占满 grid 单元格。选择器需压过 dashboard-chat.css 的
      `body[data-chat] .main-content > .apps-view { height: calc(100vh - var(--shell-vpad)) }`
      （0,3,1），否则滚动区比 .main-content 高出 64px（site-nav）被 overflow:hidden 裁掉 ── */
body.guest-shell[data-chat] .main-content > .apps-view {
    height: 100%;
    max-height: 100%;
}

/* ── Chat landing tagline（D7） ── */
.guest-tagline {
    margin: 0 0 14px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary, rgba(232, 232, 236, 0.55));
}

/* ── 只读商店网格（D3）：item 是 <a>，复位链接样式并禁用编辑态视觉 ── */
.apps-view-item--guest,
a.anna-app-deck-item {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.apps-view-item--guest:hover,
a.anna-app-deck-item:hover {
    text-decoration: none;
}
