/* Standalone shell for agent.hoq.app. The server-rendered plane gets its top bar + design tokens
   from tiko-app Chrome::page + Hoq\Shell\Design::css; here we supply the same Hoq family look
   (sea-glass surfaces, teal accent) self-contained, plus the 52px top bar agents.css assumes. */
:root {
  --bg: #0b1114;
  --surface: #0f171b;
  --panel: #0f171b;
  --line: #1e2b30;
  --text: #e7eef0;
  --muted: #8fa3a8;
  --hover: rgba(47, 212, 190, .08);
  --accent: #0f9d8f;
  --accent-bright: #2fd4be;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.topbar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.topbar .spacer { flex: 1; }
.topbar .who { font-size: 12.5px; color: var(--muted); max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font: inherit; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--text); cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }

/* App switcher (ported from Hoq\Apps\AppRegistry::styles) */
.app-switch { position: relative; display: inline-block; }
.brand-btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .5rem; margin: -.3rem -.5rem;
  border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text);
  font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: -.01em; cursor: pointer;
}
.brand-btn:hover { border-color: var(--line); background: var(--surface); }
.brand-mark { line-height: 1; }
.brand-caret { width: 11px; height: 11px; opacity: .55; flex: none; }
.app-menu-head {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .62rem;
  text-transform: uppercase; letter-spacing: .15em; color: var(--muted); padding: .4rem .55rem .5rem;
}
.app-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: min(21rem, 86vw); padding: .4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.app-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: .15rem .7rem; align-items: center;
  padding: .55rem .6rem; border-radius: 10px; text-decoration: none; color: var(--text);
}
.app-item:hover { background: var(--hover); }
.app-item svg { grid-row: span 2; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .8; }
.app-item.current { background: var(--hover); }
.app-item.current .app-name:after { content: " ·"; opacity: .6; }
.app-item.soon { opacity: .5; cursor: default; }
.app-name { font-weight: 600; font-size: .9rem; }
.app-tag { grid-column: 2; font-size: .75rem; color: var(--muted); line-height: 1.3; }
.app-soon { grid-row: span 2; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); margin-right: 7px; vertical-align: middle; }

/* Sign-in screen (shown until Hoq ID resolves) */
.signin {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(47,212,190,.10), transparent 60%), var(--bg);
}
.signin-card { text-align: center; max-width: 420px; padding: 32px; }
.signin-card .mark { font-size: 40px; }
.signin-card h1 { margin: 14px 0 6px; font-size: 22px; letter-spacing: -.01em; }
.signin-card p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.signin-card .btn { font-size: 15px; padding: 11px 20px; }
.boot { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
[hidden] { display: none !important; }
