@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=Source+Sans+3:wght@400;600&display=swap");

:root {
  /* Lillio brand palette */
  --yellow: #FFCE34;
  --yellow-deep: #F0BE1C;
  --teal: #00A3A1;
  --teal-deep: #007D8A;
  --coral: #EF5D60;
  --ink: #333333;
  --muted: #6B7280;
  --bg: #FFFCFA;
  --surface: #F6F4F1;
  --surface-2: #EEEBE7;
  --border: #E5E1DC;
  --ok: #007D8A;
  --danger: #EF5D60;
  --accent: var(--teal);
  --accent-ink: #333333;
  --fg: var(--ink);
  --radius: 14px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

/* Author display rules (.panel, .tabs, .row) must not override the hidden attribute. */
[hidden],
.panel[hidden],
.tabs[hidden],
.row[hidden],
.header-actions[hidden],
.settings-menu[hidden],
.menu-dropdown[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(0, 163, 161, 0.08) 0%, transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(255, 206, 52, 0.12) 0%, transparent 50%),
    var(--bg);
}

.app {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}
.app.wide {
  max-width: 960px;
}

.tabs:not([hidden]) {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.15rem;
}
.tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  padding: 0.65rem 0.8rem 0.7rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tab[aria-selected="true"] {
  color: var(--teal-deep);
  border-bottom-color: var(--teal);
  background: transparent;
}

.ops-filters {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.65rem;
  align-items: end;
}
.ops-filters select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font: inherit;
  appearance: auto;
}
.ops-filters button.secondary {
  flex: 0;
  width: auto;
  white-space: nowrap;
  padding: 0.7rem 1rem;
}
@media (max-width: 560px) {
  .ops-filters {
    grid-template-columns: 1fr 1fr;
  }
  .ops-filters button.secondary {
    grid-column: 1 / -1;
  }
}
.ops-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.55rem;
  margin: 0.75rem 0;
}
.ops-card {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--ink);
}
.ops-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--teal-deep);
}
.ops-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.ops-table th,
.ops-table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ops-table th { color: var(--muted); font-weight: 600; }
.ops-table tr.ops-row { cursor: pointer; }
.ops-table tr.ops-row:hover { background: var(--surface); }
.ops-table tr.ops-row.is-open { background: var(--surface); }
.ops-table .ok { color: var(--teal-deep); font-weight: 600; }
.ops-table .bad { color: var(--coral); font-weight: 600; }
.ops-expand-col,
.ops-expand-cell {
  width: 2rem;
  padding-left: 0.35rem;
  padding-right: 0.15rem;
  white-space: nowrap;
}
.ops-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--teal-deep);
  cursor: pointer;
}
.ops-expand-btn:hover {
  background: var(--surface-2);
  border-color: var(--teal);
}
.ops-chevron {
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  margin-top: -1px;
}
.ops-row.is-open .ops-chevron {
  transform: rotate(45deg);
  margin-top: -2px;
}
.ops-detail-row td {
  padding: 0;
  white-space: normal;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.ops-detail-row[hidden] {
  display: none !important;
}
.ops-expanded {
  padding: 0.75rem 0.85rem 0.9rem;
  display: grid;
  gap: 0.75rem;
}
.ops-detail-section h4 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.ops-kv-list {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.ops-kv-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.45rem 0.75rem;
}
.ops-kv {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.ops-kv dt {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}
.ops-kv dd {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink);
  word-break: break-word;
}
.ops-kv dd.muted { color: var(--muted); }
.ops-kv dd.mono,
.ops-mono-block {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.78rem;
}
.ops-mono-block {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
}
.ops-transcript {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.ops-detail-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  word-break: break-word;
}
.ops-error .ops-detail-text {
  color: var(--coral);
  font-weight: 600;
}
.ops-intent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}
.ops-intent-card {
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.ops-intent-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.35rem;
}
@media (max-width: 560px) {
  .ops-kv-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ops-intent-grid {
    grid-template-columns: 1fr;
  }
}

.brand-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
/* Left: logo on top, Welcome underneath. Hamburger sits top-right with logo row. */
.brand-stack {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
/* Wordmark sits on warm page bg (transparent PNG; no chip). */
.brand-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  height: 44px;
}
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(168px, 52vw);
  object-fit: contain;
  object-position: left center;
}
.session-welcome:not([hidden]) {
  display: block;
  margin: 0;
  max-width: 100%;
  /* System UI stack only - avoid variable/display fonts that look stretched. */
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  font-stretch: 100%;
  font-style: normal;
  font-optical-sizing: none;
  font-variation-settings: normal;
  font-synthesis: none;
  letter-spacing: 0;
  transform: none;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-welcome[hidden] {
  display: none !important;
}

.header-actions:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  height: 44px; /* match logo row so hamburger aligns with wordmark */
}
.menu-wrap {
  position: relative;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  line-height: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.icon-btn svg.icon-hamburger {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  overflow: visible;
}
.icon-btn:hover,
.icon-btn[aria-expanded="true"],
.icon-btn[aria-pressed="true"] {
  color: var(--teal-deep);
  border-color: var(--teal);
  background: rgba(0, 163, 161, 0.1);
}
.settings-menu:not([hidden]),
.menu-dropdown:not([hidden]) {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 40;
  min-width: 220px;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 10px 28px rgba(51, 51, 51, 0.12);
}
.settings-menu-item,
.menu-dropdown [role="menuitem"] {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
}
.settings-menu-item:hover,
.settings-menu-item:focus-visible,
.menu-dropdown [role="menuitem"]:hover,
.menu-dropdown [role="menuitem"]:focus-visible {
  background: rgba(0, 163, 161, 0.1);
  color: var(--teal-deep);
  outline: none;
}
.menu-dropdown .menu-danger {
  color: var(--coral);
  margin-top: 0.15rem;
  border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
}
.menu-dropdown .menu-danger:hover,
.menu-dropdown .menu-danger:focus-visible {
  background: rgba(239, 93, 96, 0.1);
  color: var(--coral);
}

.talk {
  display: grid;
  gap: 0.85rem;
}

/* Thumb-friendly hold-to-talk: compact rounded rect, Lillio yellow CTA. */
.talk-control {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0 0.1rem;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.talk-btn {
  width: min(168px, 48vw);
  height: 56px;
  min-height: 48px;
  max-width: 180px;
  border: 0;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 4px 14px rgba(255, 206, 52, 0.45);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.talk-btn[aria-pressed="true"] {
  transform: scale(0.97);
  filter: none;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 4px 12px rgba(0, 163, 161, 0.35);
}
.talk-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.status { min-height: 1.25rem; color: var(--muted); margin: 0; }
textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  padding: 0.9rem 1rem;
  font: inherit;
  resize: vertical;
}

/* Cursor-like diary composer: shell with textarea + trailing action row */
.composer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0.75rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(51, 51, 51, 0.04), 0 6px 18px rgba(51, 51, 51, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.composer:focus-within {
  border-color: var(--teal);
  box-shadow:
    0 0 0 3px rgba(0, 163, 161, 0.18),
    0 6px 18px rgba(51, 51, 51, 0.06);
}
.composer textarea {
  flex: 1 1 auto;
  width: 100%;
  min-height: 3.25rem;
  max-height: 9.5rem;
  margin: 0;
  padding: 0.35rem 0.4rem 0.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: none;
  overflow-y: auto;
  outline: none;
  box-shadow: none;
}
.composer textarea:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}
.composer textarea::placeholder {
  color: var(--muted);
  opacity: 0.9;
}
.composer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 44px;
  padding: 0 0.1rem 0.1rem;
}
.composer-action {
  position: static;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(255, 206, 52, 0.4);
  cursor: pointer;
  flex: none;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.12s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.composer-action[data-mode="mic"] {
  background: rgba(0, 163, 161, 0.12);
  color: var(--teal-deep);
  box-shadow: none;
}
.composer-action[data-mode="mic"]:hover:not(:disabled) {
  background: rgba(0, 163, 161, 0.2);
}
.composer-action[data-mode="mic"][aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 163, 161, 0.35);
  transform: scale(0.96);
}
.composer-action[data-mode="send"] {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(255, 206, 52, 0.4);
}
.composer-action[data-mode="send"]:hover:not(:disabled) {
  background: var(--yellow-deep);
}
.composer-action[data-mode="send"]:active:not(:disabled) {
  transform: scale(0.96);
}
.composer-action:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  background: var(--surface-2);
  color: var(--muted);
}
.composer-action .icon-send,
.composer-action .icon-mic {
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
/* Author display:block would override UA [hidden]; force hide via attribute. */
.composer-action .icon-send[hidden],
.composer-action .icon-mic[hidden] {
  display: none !important;
}
.composer-action[data-mode="send"] .icon-send {
  margin-left: 2px;
}

textarea:focus,
input:focus,
select:focus {
  outline: 2px solid rgba(0, 163, 161, 0.35);
  outline-offset: 1px;
  border-color: var(--teal);
}
.row:not([hidden]) { display: flex; gap: 0.6rem; }
button.secondary, button.ghost {
  flex: 1;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button.secondary {
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(255, 206, 52, 0.35);
}
button.secondary:hover {
  background: var(--yellow-deep);
}
button.ghost {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--teal-deep);
}
button.ghost:hover {
  border-color: var(--teal);
  background: rgba(0, 163, 161, 0.06);
}
button:disabled { opacity: 0.4; cursor: not-allowed; }

.result, .feed {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.result h2, .feed h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
#confirmation { color: var(--teal-deep); margin: 0; font-weight: 600; }

#feedList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
#feedList li {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
#feedList li:hover,
#feedList li:focus-visible {
  border-color: var(--teal);
  background: rgba(0, 163, 161, 0.08);
  outline: none;
}
#feedList li.editing {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(0, 163, 161, 0.2);
}
#feedList .meta {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}
#feedList .edit-hint {
  display: block;
  color: var(--teal-deep);
  font-size: 0.72rem;
  margin-top: 0.25rem;
  font-weight: 600;
}

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

.panel:not([hidden]) {
  display: grid;
  gap: 0.75rem;
}
.panel h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.35rem;
  color: var(--ink);
}
.hint { color: var(--muted); margin: 0; font-size: 0.95rem; }
.settings-block h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0.85rem 0 0.35rem;
  color: var(--teal-deep);
}
.settings-block h3:first-child { margin-top: 0; }
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
.settings-actions .secondary,
.settings-actions .ghost {
  width: auto;
  flex: 0 1 auto;
}

.subpage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.subpage-heading h2 { margin: 0; }

.ops-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ops-heading h2 { margin: 0; }
.hint code {
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  color: var(--teal-deep);
}
label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
input[type="text"],
input[type="password"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  padding: 0.8rem 0.95rem;
  font: inherit;
}
.talk.compact .talk-btn {
  width: min(140px, 42vw);
  height: 48px;
  min-height: 44px;
  font-size: 0.85rem;
}
details.manual {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
details.manual summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
details.manual[open] summary { margin-bottom: 0.85rem; }
details.manual label { margin-top: 0.55rem; }

.diary-actions {
  flex-wrap: wrap;
  margin-top: 0.15rem;
}
.diary-actions .ghost {
  flex: 1 1 40%;
  min-width: 6.5rem;
}
.manual-entry {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.manual-entry[hidden] {
  display: none !important;
}
.manual-entry-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--teal-deep);
  font-weight: 600;
}
.manual-entry select,
.manual-entry input[type="time"],
.manual-entry input[type="number"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  font: inherit;
}
.manual-times:not([hidden]) {
  display: flex;
  gap: 0.6rem;
}
.manual-times label {
  flex: 1;
}
#manualEntryToggle[aria-expanded="true"] {
  border-color: var(--teal);
  color: var(--teal-deep);
  background: rgba(0, 163, 161, 0.08);
}
#feedList li[data-entry-id] {
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}
#feedList li[data-entry-id]:hover,
#feedList li[data-entry-id]:focus-visible {
  border-color: var(--teal);
  background: rgba(0, 163, 161, 0.06);
  outline: none;
}
#feedList li.editing {
  border-color: var(--teal);
  background: rgba(0, 163, 161, 0.1);
  box-shadow: inset 3px 0 0 var(--teal);
}
#feedList .edit-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--teal-deep);
  font-weight: 600;
  opacity: 0.75;
}
.draft {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
button.tiny {
  margin-top: 0;
  width: auto;
  flex: 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  white-space: nowrap;
}
#rosterList {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
#rosterList li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 163, 161, 0.1);
  color: var(--teal-deep);
  border: 1px solid rgba(0, 163, 161, 0.22);
  font-size: 0.85rem;
  font-weight: 600;
}
#rosterList li:nth-child(3n+2) {
  background: rgba(255, 206, 52, 0.22);
  color: var(--ink);
  border-color: rgba(240, 190, 28, 0.45);
}
#rosterList li:nth-child(3n) {
  background: rgba(239, 93, 96, 0.1);
  color: #C43B3E;
  border-color: rgba(239, 93, 96, 0.28);
}
