html, body {
  height: 100%;
    overflow: hidden;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f8;
  color: #222;
}

.centered {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.centered.narrow {
  max-width: 420px;
  margin: auto;
}

.muted {
  color: #666;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.6rem;
}

.tagline {
  max-width: 480px;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 2rem;
  text-align: center;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #777;
}



.page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3rem;
  background: #f4f6f8;
}

.topbar-link {
  color: inherit;
  text-decoration: none;
}

.topbar-link:hover {
  text-decoration: underline;
}

.button.logout {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #777;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f8;
  color: #222;
}

.centered {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.centered.narrow {
  max-width: 420px;
  margin: auto;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.6rem;
}

/* Topbar button: fully self-contained */
/* Topbar action button (studio-style) */


.topbar button {
   padding: 0.7rem 1.4rem;
  background: #2c3e50;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.topbar button:hover {
  background: #1f2f3d;
}



.topbar button:focus {
  outline: none;
}


/* public.css - single-page public wireframe */

.topbar{
  background: #2c3e50;
  color: white;
  padding: 0.9rem 1.5rem;

  position: sticky;
  top: 0;
  z-index: 1000;
      display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}



.nav{
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:hover{
  text-decoration: underline;
}

.nav-link.active{
  text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,0.8);
  padding-bottom: 0.2rem;
}

.nav-cta{
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  text-decoration: none;
}

.nav-cta:hover{
  text-decoration: none;
  background: rgba(255,255,255,0.08);
}

#chat-container {
    flex: 1;
    min-height: 0;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    overflow-y: auto;
    margin-bottom: 1rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

#chat-container > * {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.composer {
  position: sticky;
  bottom: 0;
  background: #f6f7f8;
  padding: 10px;
  border-top: 1px solid rgba(0,0,0,0.1);
  z-index: 5;
}

.workspace {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px); /* subtract topbar */
  min-height: 0;
}

.app-header,
.composer {
  flex-shrink: 0;
}


.msg {
  margin: 6px 0;
  max-width: 80%;
  padding: 6px 8px;
  border-radius: 15px;
  font-size: 13px;

  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}

.topbar-logo {
  height: 1em;
  width: auto;
}

