/* Shared navigation shell. Renderer and chat layouts keep their own identities. */
.theoria-modebar { position: relative; flex-shrink: 0; z-index: 4; display: flex; justify-content: center; padding: 14px 24px 10px; }
.theoria-modes { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-22, #ccc5b4); background: var(--ink-1, #ede8dd); border-radius: 8px; font-family: Arial, sans-serif; }
.theoria-modes a { display: grid; grid-template-columns: 22px 1fr; column-gap: 9px; align-items: center; min-width: 168px; padding: 9px 16px; border: 1px solid transparent; border-radius: 5px; color: var(--bone-dim, #505448); text-decoration: none; text-align: left; line-height: 1.4; }
.theoria-modes a::after { display: none !important; }
.theoria-modes svg { width: 19px; height: 19px; grid-row: 1 / 3; fill: none; stroke: currentColor; stroke-width: 1.5; }
.theoria-modes strong { font-size: 12px; font-weight: 600; white-space: nowrap; }
.theoria-modes small { font-size: 10px; font-weight: 400; margin-top: 2px; }
.theoria-modes a[aria-current="page"] { color: var(--bone-bright, #343c30); background: var(--wash-08, #fffdf6); border-color: var(--line-35, #c0b69d); box-shadow: 0 1px 4px #0001; }
.theoria-modes a:hover { color: var(--bone-bright, #343c30); background: var(--wash-05, #f6f2e8); }
.theoria-modes a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.t-main > .t-header { height: 50px; }
.chronicle-top { position: sticky; top: 0; z-index: 30; background: #f8f5ed; box-shadow: 0 5px 16px #251b1210; }
.chronicle-top .topbar { height: 56px; min-height: 0; padding: 0 3.6%; }
.chronicle-top .theoria-modebar { border-bottom: 1px solid #dedace; padding-top: 12px; padding-bottom: 14px; }
body.embed .chronicle-top { display: none; }
.chronicle-reading { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 11px Arial, sans-serif; color: #505448; }
.chronicle-reading select { padding: 6px 8px; background: #fffdf6; border: 1px solid #c0b69d; color: #343c30; font: inherit; }
.chronicle-reading small { font-size: 10px; }
@media (max-width: 600px) {
  .theoria-modebar { padding: 10px 16px 4px; }
  .theoria-modes { width: 100%; }
  .theoria-modes a { flex: 1; min-width: 0; padding: 8px 10px; column-gap: 7px; grid-template-columns: 18px 1fr; }
  .theoria-modes strong { font-size: 11px; }
  .theoria-modes small { font-size: 9px; }
  .theoria-modes svg { width: 17px; }
  .chronicle-top .topbar { height: 52px; padding: 0 16px; }
  .chronicle-top .brand { font-size: 12px; }
  .chronicle-top .theoria-modebar { padding-top: 10px; padding-bottom: 12px; }
}
@media (max-width: 360px) { .theoria-modes a { padding: 8px 7px; } }
