/* teamasta base. Everything lives under the root class .aa; no bare element rules.
   Values come from tokens.css only. Import tokens.css and fonts.css alongside. */

.aa {
  font-family: var(--aa-font-words);
  font-size: 15px;
  line-height: 1.5;
  color: var(--aa-body);
  background: var(--aa-mist);
  -webkit-font-smoothing: antialiased;
}
.aa *, .aa *::before, .aa *::after { box-sizing: border-box; }

.aa :focus-visible {
  outline: 2px solid var(--aa-navy);
  outline-offset: 2px;
}

/* Buttons */
.aa .aa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font: 600 14px/1 var(--aa-font-words);
  color: var(--aa-ink);
  background: var(--aa-paper);
  border: 1px solid var(--aa-line-strong);
  border-radius: var(--aa-r-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--aa-dur-fast) var(--aa-ease), border-color var(--aa-dur-fast) var(--aa-ease);
}
.aa .aa-btn:hover { background: var(--aa-soft); }
.aa .aa-btn.is-primary { color: var(--aa-paper); background: var(--aa-navy); border-color: var(--aa-navy); }
.aa .aa-btn.is-primary:hover { background: var(--aa-deep); border-color: var(--aa-deep); }
.aa .aa-btn.is-ghost { background: transparent; border-color: transparent; }
.aa .aa-btn.is-ghost:hover { background: var(--aa-soft); }
.aa .aa-btn.is-small { padding: 0 12px; font-size: 13px; }
.aa .aa-btn.is-link {
  min-height: 44px;
  padding: 0 4px;
  color: var(--aa-navy);
  background: transparent;
  border-color: transparent;
  border-radius: var(--aa-r-inner);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.aa .aa-btn[disabled] { opacity: .5; cursor: default; }

/* Chips and dots: orange is an outline or dot, never a fill; mint marks done */
.aa .aa-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  font: 600 12px/1 var(--aa-font-words);
  color: var(--aa-slate);
  background: var(--aa-paper);
  border: 1px solid var(--aa-line-strong);
  border-radius: var(--aa-r-pill);
}
.aa .aa-chip.is-yours { color: var(--aa-orange-ink); background: transparent; border-color: var(--aa-orange); }
.aa .aa-chip.is-done { color: var(--aa-mint-ink); background: var(--aa-mint-tint); border-color: transparent; }
.aa .aa-chip.is-quiet { color: var(--aa-slate); background: transparent; border-color: var(--aa-line); }

.aa .aa-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--aa-r-pill);
  background: var(--aa-line-strong);
}
.aa .aa-dot.is-yours { background: var(--aa-orange); }
.aa .aa-dot.is-done { background: var(--aa-mint); }

/* The message bar: its box, the row in it, the field and the round presses. The frame's bar and the
   guest room stand on these (#727); where a bar sits and how it opens stays with the screen. */
.aa .aa-bar {
  padding: 6px;
  background: var(--aa-paper);
  border: 1px solid var(--aa-line-strong);
  border-radius: var(--aa-r-sheet);
  box-shadow: var(--aa-lift);
}
.aa .aa-bar-row { display: flex; align-items: flex-end; gap: 4px; }
.aa .aa-bar-field {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 160px;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--aa-r-inner);
  resize: none;
  background: transparent;
  color: var(--aa-ink);
  font: 400 16px/22px var(--aa-font-words);
}
.aa .aa-bar-field::placeholder { color: var(--aa-slate); }
.aa .aa-bar-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--aa-r-pill);
  color: var(--aa-navy);
  background: var(--aa-soft);
  cursor: pointer;
}
.aa .aa-bar-btn:disabled { opacity: .6; cursor: default; }
.aa .aa-bar-btn.is-on { box-shadow: inset 0 0 0 2px var(--aa-orange); }
/* the bar's one filled press; a call under way is night, with a mint dot once it is live. Its
   position stays with the screen: the frame's interview sheet stands it in a corner. */
.aa .aa-bar-btn.is-call { color: var(--aa-paper); background: var(--aa-navy); }
.aa .aa-bar-btn.is-call[aria-pressed="true"] { background: var(--aa-night); }
.aa .aa-bar-btn.is-call[aria-busy="true"] { opacity: .8; }
.aa .aa-bar-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: var(--aa-r-pill);
  background: var(--aa-mint);
}

/* Avatar */
.aa .aa-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  font: 700 12px/1 var(--aa-font-words);
  color: var(--aa-navy);
  background: var(--aa-soft);
  border-radius: var(--aa-r-pill);
}

/* Menu (the ··· menu) */
.aa .aa-menu {
  min-width: 180px;
  padding: 6px;
  background: var(--aa-paper);
  border: 1px solid var(--aa-line);
  border-radius: var(--aa-r-inner);
  box-shadow: var(--aa-lift);
}
.aa .aa-menu > * {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--aa-ink);
  border-radius: var(--aa-r-inner);
  cursor: pointer;
}
.aa .aa-menu > *:hover { background: var(--aa-soft); }

/* Segmented control */
.aa .aa-seg {
  display: inline-flex;
  padding: 3px;
  background: var(--aa-soft);
  border-radius: var(--aa-r-pill);
}
.aa .aa-seg > * {
  min-height: 44px;
  padding: 0 16px;
  font: 600 14px/1 var(--aa-font-words);
  color: var(--aa-slate);
  background: transparent;
  border: 0;
  border-radius: var(--aa-r-pill);
  cursor: pointer;
}
.aa .aa-seg > .is-on,
.aa .aa-seg > [aria-pressed="true"],
.aa .aa-seg > [aria-selected="true"] {
  color: var(--aa-navy);
  background: var(--aa-paper);
  box-shadow: var(--aa-lift);
}

/* Day header, empty state */
.aa .aa-day {
  padding: 16px 0 8px;
  font: 500 12px/1 var(--aa-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--aa-slate);
}
.aa .aa-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--aa-slate);
  border: 1px dashed var(--aa-line-strong);
  border-radius: var(--aa-r-card);
}

/* Type roles */
.aa .aa-mono { font-family: var(--aa-font-mono); font-variant-numeric: tabular-nums; }
.aa .aa-voice { font-family: var(--aa-font-voice); font-size: 22px; line-height: 1.35; color: var(--aa-ink); }

.aa .aa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Rendered markdown (#691): a release note, whatever renderMarkdown can emit */
.aa .aa-md { color: var(--aa-body); line-height: 1.6; }
.aa .aa-md > :first-child { margin-top: 0; }
.aa .aa-md > :last-child { margin-bottom: 0; }
.aa .aa-md p { margin: 0 0 8px; }
.aa .aa-md ul, .aa .aa-md ol { margin: 4px 0 8px; padding-left: 20px; }
.aa .aa-md a { color: var(--aa-navy); text-decoration: underline; text-underline-offset: 3px; }
.aa .aa-md h1, .aa .aa-md h2, .aa .aa-md h3, .aa .aa-md h4 { margin: 14px 0 6px; font-family: var(--aa-font-words); font-weight: 700; line-height: 1.3; color: var(--aa-ink); }
.aa .aa-md h1 { font-size: 1.35em; }
.aa .aa-md h2 { font-size: 1.2em; }
.aa .aa-md h3 { font-size: 1.1em; }
.aa .aa-md h4 { font-size: 1em; }
.aa .aa-md code { padding: 1px 5px; font-family: var(--aa-font-mono); font-size: .9em; background: var(--aa-mist); border-radius: var(--aa-r-inner); }
.aa .aa-md pre { margin: 8px 0; padding: 10px 12px; overflow-x: auto; background: var(--aa-mist); border: 1px solid var(--aa-line); border-radius: var(--aa-r-inner); }
.aa .aa-md pre code { padding: 0; background: none; border-radius: 0; }
.aa .aa-md table { display: block; max-width: 100%; margin: 8px 0; overflow-x: auto; border-collapse: collapse; }
.aa .aa-md th, .aa .aa-md td { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--aa-line); }
.aa .aa-md th { font-weight: 700; color: var(--aa-ink); background: var(--aa-mist); }
.aa .aa-md blockquote { margin: 8px 0; padding: 2px 0 2px 14px; color: var(--aa-slate); border-left: 2px solid var(--aa-line-strong); }
