/* ============================================================================
   keffals.gg chat — stylesheet
   Clean-room implementation. Written from scratch against the target design
   language: a dense, dark, IRC-style stream chat.
   ============================================================================ */

/* ── Design tokens ─────────────────────────────────────────────────────────
   Plain hex facts (a colour value is not protectable expression). Named the
   same way the design language thinks about them so the file stays legible. */
:root {
  --bg:                #080808;
  --input-bg:          #0a0a0a;

  --text-1:            #dedede;
  --text-2:            #b9b9b9;
  --text-3:            #838383;
  --text-muted:        #999999;
  --text-place:        #666666;
  --text-time:         #26383b;
  --text-disabled:     #494949;

  --surface-1:         #030303;
  --surface-2:         #121212;
  --surface-3:         #181818;
  --surface-4:         #333333;

  --sel:               #700000;
  --emphasize:         #151515;
  --tagged:            #232323;
  --highlight:         #002547;

  --link:              #02c2ff;
  --link-hover:        #0088cc;
  --link-visited:      #a66be5;
  --green:             #6ca528;

  --accent:            #4a8ecc;
  --accent-light:      #4fb1f4;
  --ok:                #6ca528;
  --warn:              #e9a631;
  --err:               #c11515;

  --chrome-font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
  --lines-font:  "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs: 14px;
  --line-h: 24px;
  --gutter: 6px;
}

/* ── Reset / base ──────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: inherit; }

html { box-sizing: border-box; height: 100%; }

::selection {
  color: #fff;
  /* Blink forces transparency on selections; an alpha value keeps browsers
     consistent with each other. */
  background: rgba(112, 0, 0, 0.99);
}

html,
body {
  height: 100%;
  margin: 0;
  position: relative;
  color: var(--text-muted);
  background: var(--bg);
  overflow: hidden;
}

body,
textarea,
input,
button {
  font-family: var(--chrome-font);
  font-size: var(--fs);
  line-height: 1.42857143;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern";
}

.hidden { display: none !important; }
.dim    { color: var(--text-3); }

/* ── Shell layout ──────────────────────────────────────────────────────── */
#chat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 300px;
  overflow: hidden;
  background: var(--bg);
}

/* Tab strip across the top (the design language's "windows" row). */
#chat-windows-select {
  display: flex;
  align-items: flex-end;
  background: var(--surface-3);
  white-space: nowrap;
  z-index: 100;
  user-select: none;
}

#chat-windows-select .tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 16px;
  margin-top: 5px;
  padding: 0 10px;
  border-radius: 6px 6px 0 0;
  color: var(--text-3);
  font-size: var(--fs);
  line-height: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#chat-windows-select .tab.win-main {
  color: var(--text-1);
  background: var(--surface-1);
}

#chat-windows-select .tab.win-main .hash {
  color: var(--accent-light);
  font-weight: 700;
}

#room-tabs { display: inline-flex; align-items: flex-end; }

/* A room the viewer can switch to. The active one is .win-main above. */
#chat-windows-select .tab[data-room] { cursor: pointer; }
#chat-windows-select .tab[data-room]:hover { color: var(--text-1); }
#chat-windows-select .tab[data-room].locked { cursor: default; opacity: 0.45; }
#chat-windows-select .tab[data-room].locked:hover { color: var(--text-3); }

#chat-windows-select .spacer { flex: 1; }

/* Connection indicator */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-place);
  flex: 0 0 auto;
}
.dot.ok         { background: var(--ok); }
.dot.err        { background: var(--err); }
.dot.connecting { background: var(--warn); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

#conn-label { font-size: 12px; color: var(--text-3); }

/* ── Output ────────────────────────────────────────────────────────────── */
#chat-output-frame {
  grid-row: 2;
  overflow: hidden;
  width: 100%;
}

#chat-output {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  font-family: var(--lines-font);
  font-size: var(--fs);
  font-weight: 400;
  line-height: var(--line-h);
  padding-bottom: 2px;
}

/* Scrollbar — dark, unobtrusive, same feel as the chrome. */
#chat-output::-webkit-scrollbar,
.scrollable::-webkit-scrollbar { width: 10px; }
#chat-output::-webkit-scrollbar-track,
.scrollable::-webkit-scrollbar-track { background: transparent; }
#chat-output::-webkit-scrollbar-thumb,
.scrollable::-webkit-scrollbar-thumb {
  background: var(--surface-4);
  border-radius: 5px;
}
#chat-output::-webkit-scrollbar-thumb:hover,
.scrollable::-webkit-scrollbar-thumb:hover { background: #4a4a4a; }
#chat-output { scrollbar-width: thin; scrollbar-color: var(--surface-4) transparent; }

/* ── Message lines ─────────────────────────────────────────────────────── */
.line {
  clear: both;
  padding: 3px 12px 3px 7px;
  margin-top: 1px;
  margin-bottom: 6px;
  color: var(--text-2);
  word-wrap: break-word;
  overflow-wrap: break-word;
  transition: background-color 120ms linear;
}
.line:hover { background: var(--emphasize); }

/* Subtle alternating-row tint, same as destiny.gg style chats. */
.line:nth-child(even) { background: rgba(255, 255, 255, 0.018); }
.line:nth-child(even):hover { background: var(--emphasize); }

.line .time {
  font-size: var(--fs);
  color: var(--text-time);
  margin-right: 5px;
  user-select: none;
}

.line .nick {
  display: inline-block;
  font-family: Roboto, Helvetica, "Trebuchet MS", Verdana, sans-serif;
  font-weight: 600;
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  border-radius: 14px;
  padding: 0 7px;
  margin-right: 3px;
  cursor: pointer;
  transition: background-color 200ms cubic-bezier(0.25, 0.8, 0.25, 1);
}
.line .nick:hover { color: #fff; background: #272727; text-decoration: none; }

.line .sep { color: var(--text-3); margin-right: 2px; }

.line .text { color: var(--text-2); letter-spacing: 0.35px; }

.line .text.greentext { color: var(--green); }

.line a { color: var(--link); text-decoration: none; }
.line a:visited { color: var(--link-visited); }
.line a:hover  { color: var(--link-hover); text-decoration: underline; }

/* /me actions read as italic body text with a leading role marker. */
.line.action .text { font-style: italic; }

/* No pill for action lines — the asterisk + nick reads as prose. */
.line.action .nick {
  background: none;
  border: none;
  padding: 0 2px;
  border-radius: 0;
  font-weight: 500;
}

/* Whispers — private, so they are tinted and never look like a room line. */
.line.whisper {
  background: rgba(160, 90, 220, 0.09);
  border-left: 2px solid #a05adc;
  padding-left: 6px;
}

.line.whisper .whisper-dir {
  color: #c79bf0;
  font-weight: 500;
}

.line.whisper .text { color: var(--text-1); }

/* System notices */
.line.system {
  color: var(--text-3);
  font-size: 12px;
  font-style: italic;
}

/* Flair chips */
.line .badge,
#userlist .badge {
  display: inline-block;
  margin-right: 4px;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 0.4px;
  vertical-align: 1px;
  color: #000;
  text-shadow: none;
  user-select: none;
}

/* The numbered Lifer flair, "🖤 LIFER #N" (web/badges.js): a black pill with a
   champagne border and text and a slow champagne shimmer; the Lifer's name
   gets a subtler one. No motion under prefers-reduced-motion. */
.badge.lifer-flair {
  background: #0b0b0b linear-gradient(110deg, transparent 35%, rgba(232, 213, 163, 0.35) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  border: 1px solid #E8D5A3;
  border-radius: 999px;
  color: #E8D5A3;
  padding: 0 6px;
  line-height: 13px;
  animation: lifer-flair-shimmer 6s ease-in-out infinite;
}
.nick.lifer-name {
  background: linear-gradient(110deg, #E8D5A3 40%, #fff6dc 50%, #E8D5A3 60%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lifer-flair-shimmer 9s ease-in-out infinite;
}
@keyframes lifer-flair-shimmer {
  0%, 60% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .badge.lifer-flair, .nick.lifer-name { animation: none; }
  .badge.lifer-flair { background-image: none; }
  .nick.lifer-name { background: none; -webkit-text-fill-color: currentColor; }
}

/* Source indicators (platform icon / Wiggler mark) */
.src-badge {
  display: inline-block;
  margin-right: 4px;
  line-height: 0;
  vertical-align: -1px;
}
.src-icon {
  width: 13px;
  height: 13px;
  display: block;
}
.src-icon.wiggler {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.badge.src {
  background: #333;
  color: #ccc;
  font-size: 9px;
  text-transform: uppercase;
}

/* ── Input ─────────────────────────────────────────────────────────────── */
#chat-input-frame {
  grid-row: 3;
  width: 100%;
  background: var(--input-bg);
  z-index: 230;
}

#chat-input-frame .container { width: 100%; }

#chat-input-frame .row {
  display: flex;
  align-items: flex-end;
  width: 100%;
}

#chat-input-frame .col { display: flex; align-items: flex-end; }
#chat-input-frame .col.grow { flex: 1 1 auto; min-width: 0; }

#chat-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 3.7em;
  max-height: 16em;
  display: flex;
}

#chat-input {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
  padding: 5px;
  border: 0;
  border-top: 1px solid #1e1e1e;
  outline: none;
  resize: none;
  background: var(--input-bg);
  color: var(--text-2);
  font-size: var(--fs);
  line-height: 1.42857143;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#chat-input::placeholder { color: var(--text-place); }
#chat-input:disabled { color: var(--text-disabled); cursor: not-allowed; }

#chat-tools-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px 6px 0;
  user-select: none;
}

.chat-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-3);
  font-size: 19px;
  cursor: pointer;
  transition: color 150ms linear, background-color 150ms linear;
}
.chat-tool-btn:hover { color: var(--text-1); background: var(--surface-3); }
.chat-tool-btn:disabled { color: var(--text-disabled); cursor: not-allowed; background: transparent; }

#auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 8px 0;
  white-space: nowrap;
}

#auth-area .pill {
  font-size: 12px;
  font-weight: 500;
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
button.primary,
button.ghost {
  font-family: var(--chrome-font);
  font-size: 13px;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms linear, color 150ms linear,
              border-color 150ms linear;
}

button.primary {
  background: var(--accent);
  color: #fff;
}
button.primary:hover { background: var(--accent-light); }

button.ghost {
  background: transparent;
  color: var(--text-3);
  border-color: var(--surface-4);
}
button.ghost:hover { color: var(--text-1); border-color: #4a4a4a; }

/* Floating tool buttons, top-right of the chat surface.
   Styled as a collapsed chip that mirrors the destiny.gg navBar. */
#chat-panel-tools {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 240;
  display: flex;
  padding: 4px 6px;
  background: rgba(30, 30, 30, 0.92);
  border-radius: 0 0 0 6px;
  backdrop-filter: blur(4px);
}

.fasfab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-3);
  font-size: 15px;
  cursor: pointer;
  transition: color 150ms linear, background-color 150ms linear;
}
.fasfab:hover { color: var(--text-1); background: var(--surface-3); }

/* ── Slide-in panels ───────────────────────────────────────────────────── */
.chat-menu {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  z-index: 220;
  background: var(--surface-3);
}
.chat-menu.right { right: 0; }
.chat-menu.left  { left: 0; }

#userlist-pane:not(.hidden) { animation: slide-in-right 160ms ease-out; }
#chat-settings:not(.hidden) { animation: slide-in-right 160ms ease-out; }
@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0.4; }
  to   { transform: translateX(0);    opacity: 1; }
}

.chat-menu .list-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-3);
}

.chat-menu .toolbar {
  position: relative;
  border-bottom: 1px solid var(--surface-4);
  flex: 0 0 auto;
}

.chat-menu .toolbar h5 {
  margin: 0;
  font-size: var(--fs);
  font-weight: normal;
  line-height: 35px;
  color: var(--text-muted);
  user-select: none;
}

.chat-menu .toolbar h5 span {
  display: inline-block;
  margin: 0 10px;
  line-height: 35px;
}

.chat-menu .menu-close {
  float: right;
  width: 35px;
  text-align: center;
  line-height: 35px;
  font-size: 16px;
  color: var(--text-3);
  cursor: pointer;
  background: none;
  border: 0;
}
.chat-menu .menu-close:hover { color: var(--text-1); }

.chat-menu .scrollable {
  flex: 1 1 auto;
  overflow-y: auto;
  outline: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-4) transparent;
}

.chat-menu .content { padding: 20px 0; }

/* User list */
#userlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

#userlist li {
  display: block;
  position: relative;
  margin: 0;
  padding: 0 32px;
  line-height: 22px;
  cursor: pointer;
}
#userlist li:hover { background: var(--emphasize); }

#userlist .nick {
  font-family: Roboto, Helvetica, "Trebuchet MS", Verdana, sans-serif;
  font-weight: 500;
}

/* ── Emotes ────────────────────────────────────────────────────────────── */
/* Emotes inside message lines. Capped against the line height so a tall emote
   stretches its own line instead of shunting the whole stream. */
img.emote,
video.emote {
  max-height: var(--line-h);
  max-width: 96px;
  margin: -2px 1px;
  vertical-align: middle;
  object-fit: contain;
}

/* ── Settings panel ────────────────────────────────────────────────────── */
#chat-settings-form { margin: 12px 20px 20px 20px; }

#chat-settings-form h4 {
  margin: 18px 0 8px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-3);
}
#chat-settings-form h4:first-child { margin-top: 0; }

#chat-settings-form .row {
  display: block;
  margin: 0 0 12px 0;
  font-size: 13px;
  color: var(--text-2);
}

#chat-settings-form .row input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px 11px;
  border: 1px solid var(--surface-4);
  border-radius: 4px;
  background: var(--surface-1);
  color: var(--text-2);
  font-size: 13px;
  outline: none;
}
#chat-settings-form .row input[type="text"]:focus { border-color: var(--accent); }

#chat-settings-form .check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px 0;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
#chat-settings-form .check input { accent-color: var(--accent); cursor: pointer; }

#chat-settings-form .hint {
  margin: 14px 0 16px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
}

#chat-settings-form button.primary { width: 100%; }

/* ── Loading ───────────────────────────────────────────────────────────── */
#chat-loading {
  position: absolute;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.pulse-container {
  width: 120px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.pulse-bubble {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d3d3d3;
}
.pulse-bubble-1 { animation: pulse 0.4s ease 0s   infinite alternate; }
.pulse-bubble-2 { animation: pulse 0.4s ease 0.2s infinite alternate; }
.pulse-bubble-3 { animation: pulse 0.4s ease 0.4s infinite alternate; }

@keyframes pulse {
  from { transform: scale(0.55); opacity: 0.35; }
  to   { transform: scale(1);    opacity: 1; }
}

.catch-feedback {
  width: 100%;
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  opacity: 0;
  animation: catch-feedback 12s linear forwards;
}
@keyframes catch-feedback { 0%, 98% { opacity: 0; } 100% { opacity: 1; } }

/* ── Overlays (auth / settings modals) ─────────────────────────────────── */
.modal {
  position: absolute;
  inset: 0;
  z-index: 260;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 3, 3, 0.75);
  overscroll-behavior: contain;
}

.modal-box {
  width: 100%;
  max-width: 340px;
  background: var(--surface-3);
  border: 1px solid var(--surface-4);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.modal-head {
  position: relative;
  border-bottom: 1px solid var(--surface-4);
}

.modal-head h3 {
  margin: 0;
  padding: 0 0 0 12px;
  font-size: var(--fs);
  font-weight: normal;
  line-height: 35px;
  color: var(--text-muted);
}

.modal-head .modal-close {
  float: right;
  width: 35px;
  height: 35px;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 20px;
  line-height: 35px;
  text-align: center;
  cursor: pointer;
}
.modal-head .modal-close:hover { color: var(--text-1); }

/* Auth tabs read as the chrome's tab strip. */
.modal-head .tabs { display: flex; align-items: flex-end; }

.modal-head .tab {
  min-width: 16px;
  margin-top: 5px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: var(--text-3);
  font-size: var(--fs);
  line-height: 32px;
  cursor: pointer;
  transition: color 150ms linear, background-color 150ms linear;
}
.modal-head .tab:hover { color: var(--text-1); }
.modal-head .tab.active {
  color: var(--text-1);
  background: var(--surface-1);
}

/* ── Auth / settings forms ─────────────────────────────────────────────── */
.auth-form,
.settings-body {
  margin: 0;
  padding: 18px 20px 20px 20px;
}

.auth-form label,
.settings-body label.row {
  display: block;
  margin: 0 0 13px 0;
  font-size: 13px;
  color: var(--text-2);
}

.auth-form label input,
.settings-body label.row input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px 11px;
  border: 1px solid var(--surface-4);
  border-radius: 4px;
  background: var(--surface-1);
  color: var(--text-2);
  font-size: 13px;
  outline: none;
  transition: border-color 150ms linear;
}
.auth-form label input:focus,
.settings-body label.row input[type="text"]:focus { border-color: var(--accent); }

.auth-form button.primary { width: 100%; margin-top: 4px; }

.oauth-login { margin-top: 14px; }
.oauth-or { text-align: center; font-size: 12px; margin-bottom: 8px; }
.oauth-btn {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px 11px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.oauth-btn.hidden { display: none; }
.oauth-twitch { background: #9146ff; }
.oauth-twitch:hover { background: #a970ff; }
.oauth-discord { background: #5865f2; }
.oauth-discord:hover { background: #7983f5; }
.oauth-note { font-size: 11px; margin: 8px 0 0 0; }

.form-err {
  min-height: 1em;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #e56b77;
}

.settings-body .check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px 0;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
.settings-body .check input { accent-color: var(--accent); cursor: pointer; }

.settings-body .hint {
  margin: 14px 0 16px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
}

.settings-body button.primary { width: 100%; }

/* ── Overlay mode (?t=overlay) ────────────────────────────────────────────
   obs.keffals.gg redirects to chat.keffals.gg/?t=overlay for an OBS browser
   source. Messages only: no tab strip, no composer, no tool buttons, no panels,
   and a transparent background so the chat sits directly on the scene.

   This is pure chrome removal — app.js adds `overlay` to <body> and nothing
   else changes, so the socket, backlog replay and auto-scroll behave exactly as
   in the normal view. Keep it that way: hiding is a CSS concern. */
body.overlay #chat-windows-select,
body.overlay #chat-input-frame,
body.overlay #chat-panel-tools,
body.overlay #userlist-pane,
body.overlay #chat-settings,
body.overlay #auth-modal,
body.overlay #chat-loading {
  display: none !important;
}

/* 🔴 <html> paints the viewport canvas. `html, body { background: var(--bg) }`
   above sets it on BOTH, so clearing only <body> leaves the canvas opaque and a
   browser source renders a solid #080808 box instead of a transparent overlay.
   app.js adds `overlay` to documentElement as well as body for this rule. */
html.overlay,
body.overlay,
body.overlay #chat,
body.overlay #chat-output-frame {
  background: transparent;
}

/* The normal view tints the hovered line. On a stream that paints an opaque bar
   across the video, so drop it too. */
body.overlay .line:hover { background: transparent; }

/* Streams are layered over arbitrary video, so give each line its own halo
   rather than putting a panel behind the whole stream (which would hide the
   video). */
body.overlay #chat-output .line {
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.85);
}

/* A scrollbar on a stream overlay is just noise. */
body.overlay #chat-output { scrollbar-width: none; }
body.overlay #chat-output::-webkit-scrollbar { width: 0; }

/* ── Small screens ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #auth-area .pill { max-width: 10ch; }
  .line { padding-right: 7px; }
}

/* ── Signal Install Prompt ─────────────────────────────────────────────── */
.signal-prompt-box {
  max-width: 380px;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #3a76f0;
  text-align: center;
}

.signal-prompt-content {
  padding: 32px 24px;
}

.signal-prompt-content .signal-icon {
  margin-bottom: 16px;
}

.signal-prompt-content h3 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 1.5rem;
}

.signal-prompt-content p {
  color: #a0a0b0;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.signal-install-btn {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  background: #3a76f0;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.signal-install-btn:hover {
  background: #5283e3;
}

#signal-dismiss {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: transparent;
  color: #808090;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

#signal-dismiss:hover {
  color: #a0a0b0;
}

/* ── Alerts mode (?t=alerts) ────────────────────────────────────────────
   Same transparent-canvas trick as overlay mode, but instead of chat lines it
   shows animated alert popups (donation / subscription). #chat is hidden and
   #alerts-overlay becomes the visible surface. */
html.alerts,
body.alerts {
  background: transparent;
}
body.alerts #chat {
  display: none !important;
}

/* The alert surface: a full-window layer, cards stacked at the top centre. A
   takeover card positions itself absolutely over the whole window. */
#alerts-overlay {
  display: none;
  position: fixed;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2vw;
  padding-top: 6vh;
  pointer-events: none;
  overflow: hidden;
}
body.alerts #alerts-overlay { display: flex; }

/*
 * The alert card. Identical to keffals-console's src/keffals/streaming/alert.css (the
 * live preview), so OBS and the preview animate the same way. Only transform/opacity/filter are animated (compositor-only → 60fps).
 *
 * Structure:
 *   .ka-card[data-phase=in|idle|out].ka-enter-X.ka-idle-X.ka-exit-X
 *     .ka-glow  .ka-media  .ka-head  .ka-body (.ka-tok)  .ka-msg  .ka-p* particles
 *
 * Custom properties set inline: --ka-accent --ka-text --ka-bg --ka-font --ka-size
 * --ka-outline --ka-shadow --ka-scale --ka-glow (0–1) --ka-shake (0–1)
 */
.ka-card {
  --ka-size: 36px;
  position: relative;
  box-sizing: border-box;
  max-width: min(92%, 900px);
  padding: 0.55em 0.9em 0.65em;
  border-radius: 0.5em;
  border: 0.08em solid var(--ka-accent);
  background: color-mix(in srgb, var(--ka-bg) 92%, transparent);
  color: var(--ka-text);
  font-family: var(--ka-font), system-ui, sans-serif;
  font-size: calc(var(--ka-size) * var(--ka-scale, 1));
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 0.05em calc(var(--ka-shadow) * 0.1em) rgba(0, 0, 0, 0.7);
  -webkit-text-stroke: calc(var(--ka-outline) * 0.03em) rgba(0, 0, 0, 0.85);
  paint-order: stroke fill;
  will-change: transform, opacity;
}
.ka-glow {
  position: absolute; inset: -0.1em; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 calc(var(--ka-glow, 0) * 0.9em) calc(var(--ka-glow, 0) * 0.2em) var(--ka-accent);
  opacity: calc(var(--ka-glow, 0) * 1.2);
}
.ka-glow-pulse .ka-glow { animation: ka-glow-breathe 1.8s ease-in-out infinite; }
.ka-head { font-size: 0.55em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ka-accent); font-weight: 800; -webkit-text-stroke: 0; }
.ka-body { font-weight: 800; overflow-wrap: anywhere; }
.ka-tok { color: var(--ka-accent); }
.ka-rainbow .ka-tok, .ka-rainbow .ka-head {
  background: linear-gradient(90deg, #ff4d4d, #ffd23f, #4dff88, #4dc3ff, #c04dff, #ff4d4d) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 0;
  animation: ka-rainbow 3s linear infinite;
}
.ka-msg { margin-top: 0.3em; font-size: 0.6em; font-weight: 600; opacity: 0.92; overflow-wrap: anywhere; -webkit-text-stroke: 0; }
.ka-media { display: block; margin: 0 auto 0.3em; max-height: 4em; max-width: 100%; border-radius: 0.3em; object-fit: contain; }

/* Full-screen takeover tier */
.ka-takeover { position: absolute; inset: 4%; max-width: none; display: grid; place-content: center; font-size: calc(var(--ka-size) * 1.9); }
.ka-takeover .ka-media { max-height: 40%; }

/* ── entrances ─────────────────────────────────────────────────── */
.ka-card[data-phase='in'].ka-enter-slide { animation: ka-slide-in 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.ka-card[data-phase='in'].ka-enter-bounce { animation: ka-bounce-in 0.8s cubic-bezier(0.28, 0.84, 0.42, 1) both; }
.ka-card[data-phase='in'].ka-enter-zoom { animation: ka-zoom-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.ka-card[data-phase='in'].ka-enter-glitch { animation: ka-glitch-in 0.7s steps(1, end) both; }
.ka-card[data-phase='in'].ka-enter-confetti { animation: ka-zoom-in 0.45s ease-out both; }
.ka-card[data-phase='in'].ka-enter-shake { animation: ka-shake-in 0.7s ease-out both; }
.ka-card[data-phase='in'].ka-enter-typewriter { animation: ka-fade-in 0.2s both; }
.ka-card[data-phase='in'].ka-enter-typewriter .ka-body,
.ka-card[data-phase='in'].ka-enter-typewriter .ka-head { animation: ka-type 1.1s steps(24, end) both; }

/* ── idles ─────────────────────────────────────────────────────── */
.ka-card[data-phase='idle'].ka-idle-pulse { animation: ka-pulse 1.6s ease-in-out infinite; }
.ka-card[data-phase='idle'].ka-idle-float { animation: ka-float 2.4s ease-in-out infinite; }
.ka-card[data-phase='idle'].ka-idle-glow .ka-glow { animation: ka-glow-breathe 1.4s ease-in-out infinite; }
.ka-card[data-phase='idle'].ka-idle-shake { animation: ka-jitter 0.5s linear infinite; }
.ka-card[data-phase='idle'].ka-idle-strobe { animation: ka-strobe 0.9s steps(1, end) infinite; }

/* ── exits ─────────────────────────────────────────────────────── */
.ka-card[data-phase='out'].ka-exit-fade { animation: ka-fade-out 0.5s ease-in both; }
.ka-card[data-phase='out'].ka-exit-slide { animation: ka-slide-out 0.5s ease-in both; }
.ka-card[data-phase='out'].ka-exit-zoom { animation: ka-zoom-out 0.45s ease-in both; }
.ka-card[data-phase='out'].ka-exit-glitch { animation: ka-glitch-out 0.5s steps(1, end) both; }
.ka-card[data-phase='out'].ka-exit-shrink { animation: ka-shrink 0.5s ease-in both; }

/* ── particles (positioned by inline --x --dx --dy --rot --d --c) ── */
.ka-p { position: absolute; left: var(--x, 50%); top: 50%; width: 0.22em; height: 0.34em; background: var(--c, var(--ka-accent)); border-radius: 0.05em; opacity: 0; pointer-events: none; animation: ka-confetti var(--d, 1.6s) cubic-bezier(0.15, 0.7, 0.4, 1) var(--delay, 0s) both; }
.ka-s { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 0.18em; height: 0.18em; background: var(--ka-accent); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; pointer-events: none; animation: ka-twinkle var(--d, 1.4s) ease-in-out var(--delay, 0s) infinite; }

/* Screen shake is applied to the stage/overlay root, not the card. */
.ka-shake-screen { animation: ka-screen-shake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; --ka-shake: 1; }

@keyframes ka-slide-in { from { transform: translateX(-120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ka-slide-out { to { transform: translateX(120%); opacity: 0; } }
@keyframes ka-bounce-in { 0% { transform: translateY(-160%) scale(0.8); opacity: 0; } 55% { transform: translateY(8%) scale(1.04); opacity: 1; } 75% { transform: translateY(-4%); } 100% { transform: none; opacity: 1; } }
@keyframes ka-zoom-in { from { transform: scale(0.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ka-zoom-out { to { transform: scale(1.5); opacity: 0; } }
@keyframes ka-shrink { to { transform: scale(0.1); opacity: 0; } }
@keyframes ka-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ka-fade-out { to { opacity: 0; transform: translateY(10%); } }
@keyframes ka-shake-in { 0% { transform: translateX(-12%) rotate(-4deg); opacity: 0; } 20% { transform: translateX(10%) rotate(3deg); opacity: 1; } 40% { transform: translateX(-7%) rotate(-2deg); } 60% { transform: translateX(4%) rotate(1deg); } 80% { transform: translateX(-2%); } 100% { transform: none; opacity: 1; } }
@keyframes ka-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ka-glitch-in {
  0% { opacity: 0; transform: translateX(-6%); filter: hue-rotate(90deg); }
  15% { opacity: 1; transform: translateX(5%) skewX(12deg); filter: hue-rotate(-60deg); }
  30% { transform: translateX(-3%) skewX(-8deg); filter: none; clip-path: inset(30% 0 20% 0); }
  45% { transform: translateX(2%); clip-path: inset(0); filter: hue-rotate(40deg); }
  70% { transform: none; filter: none; } 100% { opacity: 1; transform: none; }
}
@keyframes ka-glitch-out { 0% { opacity: 1; } 25% { transform: translateX(4%) skewX(10deg); filter: hue-rotate(80deg); } 50% { transform: translateX(-5%); clip-path: inset(40% 0 10% 0); } 100% { opacity: 0; transform: translateX(8%); } }
@keyframes ka-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes ka-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
@keyframes ka-jitter { 0% { transform: translate(0); } 25% { transform: translate(0.6%, -0.6%); } 50% { transform: translate(-0.6%, 0.4%); } 75% { transform: translate(0.4%, 0.6%); } 100% { transform: translate(0); } }
@keyframes ka-strobe { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes ka-glow-breathe { 0%, 100% { opacity: calc(var(--ka-glow, 0) * 0.7); } 50% { opacity: calc(var(--ka-glow, 0) * 1.5); } }
@keyframes ka-rainbow { to { background-position: 200% 0; } }
@keyframes ka-confetti {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--dx, 0), var(--dy, 120%)) rotate(var(--rot, 540deg)); opacity: 0; }
}
@keyframes ka-twinkle { 0%, 100% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.4); opacity: 1; } }
@keyframes ka-screen-shake {
  10%, 90% { transform: translate3d(calc(var(--ka-shake) * -1px), 0, 0); }
  20%, 80% { transform: translate3d(calc(var(--ka-shake) * 3px), 0, 0); }
  30%, 50%, 70% { transform: translate3d(calc(var(--ka-shake) * -6px), 0, 0); }
  40%, 60% { transform: translate3d(calc(var(--ka-shake) * 6px), 0, 0); }
}

/* Overlay safety net: if the page asks for it, nothing moves. */
.ka-reduce .ka-card, .ka-reduce .ka-card *, .ka-reduce .ka-glow { animation-duration: 0.01s !important; animation-iteration-count: 1 !important; }

/* ── Chat box styling (?t=overlay, driven by the owner's chat_style) ──────────
   Only active once overlay-v2.js adds `kc` to <body>; until then the plain
   overlay above is unchanged. Custom properties are set by applyChatStyle(). */
body.overlay.kc #chat-output {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.35em;
  font-family: var(--kc-font), system-ui, sans-serif;
  font-size: var(--kc-size);
  color: var(--kc-text);
}
body.overlay.kc #chat-output .line {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.4em;
  padding: 0.3em 0.55em;
  border-radius: 0.45em;
  line-height: 1.25;
  font-size: inherit;
  background: color-mix(in srgb, var(--kc-bg) calc(var(--kc-bgalpha) * 100%), transparent);
  overflow-wrap: anywhere;
  max-width: 100%;
  will-change: transform, opacity;
}
body.overlay.kc #chat-output .line .text { color: var(--kc-text); }
body.overlay #chat-output .line .nick {
  background: none;
  border: none;
  padding: 0 2px;
  border-radius: 0;
}
body.overlay.kc #chat-output .line .nick {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  font-weight: 800;
}
body.overlay.kc #chat-output .line .time { display: none; }
body.overlay.kc #chat-output .line img.emote { height: calc(1em * var(--kc-emote)); width: auto; vertical-align: middle; }
body.overlay.kc.kc-nobadges #chat-output .line .badge { display: none; }
body.overlay.kc.kc-noicons #chat-output .line .kc-ico { display: none; }

.kc-ico { flex: none; display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; margin-top: 0.05em; border-radius: 0.3em; font-size: 0.7em; font-weight: 900; color: #fff; text-shadow: none; }

.kc-hl-donation { border-left: 0.2em solid #34d399; background: color-mix(in srgb, #34d399 26%, var(--kc-bg)) !important; }
.kc-hl-sub { border-left: 0.2em solid #e9a631; background: color-mix(in srgb, #e9a631 26%, var(--kc-bg)) !important; }
.kc-hl-mod { border-left: 0.2em solid #34d399; }
.kc-hl-first { border-left: 0.2em solid var(--kc-accent); background: color-mix(in srgb, var(--kc-accent) 20%, var(--kc-bg)) !important; }

.kc-in-slide { animation: kc-slide 0.35s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.kc-in-fade { animation: kc-fade 0.4s ease-out both; }
.kc-in-pop { animation: kc-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.kc-fading { animation: kc-fadeout 0.6s ease-in forwards; }
@keyframes kc-slide { from { transform: translateX(-30%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes kc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kc-pop { from { transform: scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes kc-fadeout { to { opacity: 0; } }

/* ── Overlay geometry: the right-hand chat panel (?t=overlay) ─────────────────
   `--kc-size` is expressed in vw (see applyChatStyle), i.e. it is sized for a
   FULL-CANVAS browser source: 24px at 1920px wide. That is the intended OBS
   setup — a 1920x1080 source at scale 1.0 — and this block is what turns it
   into a narrow column down the right edge instead of lines sprawling across
   the whole frame.

   If you would rather use a physically narrow source (e.g. 460x1080), the vw
   size would shrink with it to ~5px. In that case override the size once, in
   the browser source's Custom CSS:
       body.overlay { --kc-size: 24px; }

   `--kc-panel` is the column width. Nothing else needs to change to move it to
   the left edge: swap margin-inline-start for margin-inline-end below. */
body.overlay {
  --kc-panel: 520px;
}

body.overlay #chat {
  width: min(100%, var(--kc-panel));
  min-width: 0;
  margin-inline-start: auto;   /* hug the right edge */
  margin-inline-end: 0;
}

body.overlay #chat-output {
  padding: 18px 16px 20px;
  overflow-x: hidden;
}

/* Bottom-pinned backlog, done without `justify-content: flex-end`. Flex-end on
   a scrolling column makes overflowing lines unreachable in Chrome (they clip
   above the scroll origin), and maxMessages means overflow happens routinely. */
body.overlay.kc #chat-output,
body.overlay #chat-output {
  justify-content: flex-start;
}

body.overlay #chat-output > .line:first-child {
  margin-top: auto;
}

/* Readability over arbitrary video: a tight shadow for edge contrast plus a wide
   halo so a glyph never dissolves into a bright background. Applies in both the
   plain overlay (before settings arrive) and the kc-dressed one. */
body.overlay #chat-output .line,
body.overlay.kc #chat-output .line {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 3px rgba(0, 0, 0, 0.95),
    0 0 10px rgba(0, 0, 0, 0.75);
}

/* The kc cards size to their content; cap them to the column so a pasted URL or
   a wall of text wraps instead of pushing past the panel edge. */
body.overlay.kc #chat-output .line {
  max-width: 100%;
}

/* Timestamps are noise on a stream, in every overlay mode. */
body.overlay #chat-output .line .time { display: none; }

/* Emotes keep their text-relative size in the plain overlay too. */
body.overlay:not(.kc) #chat-output .line img.emote {
  height: 1.5em;
  width: auto;
  vertical-align: middle;
}

/* ── Widgets (?t=goal | subcount | recent | ticker) ─────────────────────────
   Same transparent-canvas approach: #chat is hidden, #widget-root is the surface.
   Variables come from applyWidgetStyle() (the owner's alert look). */
html.widget, body.widget { background: transparent; }
body.widget #chat { display: none !important; }
#widget-root { display: none; position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
body.widget #widget-root { display: block; }
.kw { position: absolute; left: 3vw; bottom: 4vh; min-width: 24vw; max-width: 94vw; padding: 0.5em 0.9em; border-radius: 0.5em; border: 0.08em solid var(--kw-accent, #02c2ff); background: color-mix(in srgb, var(--kw-bg, #16112a) 92%, transparent); color: var(--kw-text, #fff); font-family: var(--kw-font, Poppins), system-ui, sans-serif; font-size: var(--kw-size, 1.9vw); line-height: 1.2; text-shadow: 0 0.05em 0.15em rgba(0, 0, 0, 0.7); }
.kw-label { font-size: 0.6em; text-transform: uppercase; letter-spacing: 0.12em; color: var(--kw-accent, #02c2ff); font-weight: 800; }
.kw-nums { font-size: 0.7em; font-weight: 700; margin-top: 0.2em; }
.kw-big { font-size: 2.4em; font-weight: 800; line-height: 1; }
.kw-big.kw-small { font-size: 1.3em; }
.kw-bar { height: 0.8em; margin-top: 0.3em; border-radius: 999px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.kw-fill { height: 100%; border-radius: 999px; background: var(--kw-accent, #02c2ff); transition: width 1s cubic-bezier(0.2, 0.9, 0.3, 1); }
.kw-fill.kw-done { background: linear-gradient(90deg, #ffd23f, #4dff88, #4dc3ff); }
.kw-empty { font-size: 0.7em; opacity: 0.8; }
.kw-pop { animation: ka-zoom-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) both; }
.kw-ticker { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0; border-width: 0.08em 0 0; padding: 0.35em 0; overflow: hidden; white-space: nowrap; }
.kw-track { display: inline-block; animation: kw-scroll linear infinite; will-change: transform; }
@keyframes kw-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Subscription celebrations (celebrate.js) ─────────────────────────────
   One layer per CELEBRATE, removed when it ends. --cel is the tier colour,
   --cel-soft the same colour at the glow's peak opacity. Only opacity and
   transform animate, every pulse is a slow fade (no strobing, WCAG 2.3.1),
   and nothing here takes pointer events. */
#chat-output-frame { position: relative; }

.kc-cel {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}
.kc-cel-overlay { position: fixed; z-index: 0; }
.kc-cel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Edge glow: chat gets a thin inner rim, the overlay a wide frame glow that
   stays on the edges and leaves the middle of the picture alone. */
.kc-cel-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  box-shadow: inset 0 0 18px 2px var(--cel-soft);
}
.kc-cel-overlay .kc-cel-glow {
  box-shadow: inset 0 0 6vw 1vw var(--cel-soft), inset 0 0 1.2vw 0.2vw var(--cel-soft);
}

/* The light sweep: a soft band of the tier colour gliding once across. */
.kc-cel-sweep {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 0%, var(--cel-soft) 50%, transparent 100%);
  mix-blend-mode: screen;
}
.kc-cel-overlay .kc-cel-sweep {
  background: linear-gradient(90deg, transparent 0%, var(--cel-soft) 50%, transparent 100%);
  width: 40%;
  left: 30%;
}

/* Caption: on the overlay always, in chat only under reduced motion. The
   nick arrives through textContent. */
.kc-cel-badge {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translate(-50%, 0);
  max-width: 90%;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--cel);
  background: rgba(10, 10, 14, 0.82);
  color: #fff;
  font: 600 12px/1.4 var(--lines-font, sans-serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 0 12px var(--cel-soft);
}
.kc-cel-overlay .kc-cel-badge {
  bottom: 10vh; /* inside the title-safe area */
  padding: 0.6vw 1.8vw;
  font-size: 2.2vw;
  border-width: 0.2vw;
  opacity: 0;
}
.kc-cel-reduced.kc-cel-overlay .kc-cel-badge { opacity: 1; }

/* The pulse behind the thank-you line. */
.line.kc-cel-line { position: relative; }
.line.kc-cel-line::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 4px;
  background: var(--cel-soft);
  opacity: 0;
  animation: kc-cel-line var(--cel-pulse-ms, 1200ms) ease-in-out var(--cel-pulses, 1);
}
.line.kc-cel-line, .line.kc-cel-line-static { isolation: isolate; }
.line.kc-cel-line-static {
  box-shadow: inset 3px 0 0 var(--cel);
  background: var(--cel-soft);
}
@keyframes kc-cel-line { 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .line.kc-cel-line::before { animation: none; opacity: 0.6; }
}

/* Sign-in: staff type an authenticator code in the password field. */
.login-hint { font-size: 12px; margin: -4px 0 4px; }
