:root {
  --bg0: #f3efe6;
  --bg1: #e7f0f2;
  --ink: #17212b;
  --muted: #3f4f5c;
  --line: rgba(23, 33, 43, 0.14);
  --accent: #0f7a72;
  --accent-ink: #073b37;
  --panel: #fffaf3;
  --shadow: 0 18px 40px rgba(23, 33, 43, 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(165deg, #efe8db 0%, #e4eef0 48%, #dce8ea 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
}

.shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem 3rem;
}

.stage {
  width: min(560px, 100%);
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 0.85rem;
}

.brand span {
  color: var(--accent);
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 34ch;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 0.95rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
  border-color: rgba(15, 122, 114, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 122, 114, 0.14);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

button,
.btn {
  appearance: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

button.primary,
.btn.primary {
  background: var(--accent);
  color: #f7fffe;
}

button.ghost,
.btn.ghost {
  background: transparent;
  color: var(--accent-ink);
  border: 1px solid rgba(15, 122, 114, 0.35);
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.status {
  min-height: 1.25rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.status.error {
  color: #9b2c2c;
}

.foot {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.foot a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Meeting shell */
body.meeting {
  background: #0e1418;
  color: #f4f7f8;
}

body.meeting .meeting-root {
  min-height: 100dvh;
}

body.meeting rtk-meeting {
  display: block;
  height: 100dvh;
  width: 100%;
}

.meeting-bar {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  pointer-events: none;
}

.meeting-bar .chip {
  pointer-events: auto;
  background: rgba(14, 20, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f7f8;
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
}

.meeting-bar button.copy {
  pointer-events: auto;
  background: #1aa39a;
  color: #041512;
  border: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.boot {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  font-family: var(--font-body);
}

.boot h1 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.boot p {
  margin: 0;
  color: #9db0b8;
}
