/* ================================
   Inasra — Full Stylesheet (replace)
   ================================ */

:root {
  --bg: #0b1020;
  --panel: #0e1426;
  --line: #334155;
  --text: #e5e7eb;
  --text-dim: #cbd5e1;
  --accent: #3b82f6;
  --accent-2: #38bdf8;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;            /* the app itself scrolls internally */
}


body {
  position: relative;
}

#kenBurnsWallpaper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .24;
  background:
    linear-gradient(180deg, rgba(4, 8, 18, 0.92), rgba(8, 12, 24, 0.84)),
    #040812;
  border-radius: 12px;
  z-index: 0;
}

#kenBurnsWallpaper .kb-layer,
#kenBurnsWallpaper .kb-vignette {
  position: absolute;
  inset: -4%;
}

#kenBurnsWallpaper .kb-layer {
  opacity: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  filter: saturate(1.03) contrast(1.05) brightness(.86);
}

#kenBurnsWallpaper .kb-layer.kb-visible {
  opacity: 1;
}

#kenBurnsWallpaper .kb-layer.kb-animate {
  animation-name: kb-panzoom;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

#kenBurnsWallpaper .kb-vignette {
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(8, 12, 24, 0.04) 0%, rgba(8, 12, 24, 0.20) 48%, rgba(4, 8, 18, 0.68) 100%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.16), rgba(7, 11, 20, 0.36));
}

@keyframes kb-panzoom {
  from {
    transform: translate3d(var(--kb-from-x, 0%), var(--kb-from-y, 0%), 0) scale(var(--kb-from-scale, 1.12));
  }
  to {
    transform: translate3d(var(--kb-to-x, 0%), var(--kb-to-y, 0%), 0) scale(var(--kb-to-scale, 1.24));
  }
}

#app {
  position: relative;
  z-index: 1;
}

/* ================================
   App Layout
   - left controls / center canvas / right info
   - right panel never drifts off-screen
   ================================ */
#app {
  display: grid;
  grid-template-columns:
    clamp(260px, 18vw, 320px)     /* left */
    minmax(0, 1fr)                /* center */
    clamp(360px, 28vw, 560px);    /* right */
  gap: 12px;
  height: 100vh;
  padding: 10px;
}

/* Panels */
#leftPanel, #rightPanel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  overflow: auto;
}

/* Center board wrapper
   - JS sets the canvas size; this wrapper simply centers it */
#canvasWrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #091024;
  min-height: 80vh;               /* gives breathing room vertically */
  overflow: hidden;               /* keep the board crisp */
}

/* Make sure canvas respects wrapper and doesn’t spill */
#board {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

/* ================================
   Typography & Cards
   ================================ */
h1 { margin: 4px 0 8px; font-size: 18px; }
h2 { margin: 8px 0; font-size: 13px; color: var(--text-dim); }
.tiny { font-size: 12px; color: var(--text-dim); }

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  background: #0b1120;
}

.log {
  max-height: 200px;
  overflow: auto;
  border: 1px dashed var(--line);
  padding: 6px;
  border-radius: 8px;
}

/* ================================
   Inputs & Buttons
   ================================ */
input, select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0b1220;
  color: var(--text);
  outline: none;
}
input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59,130,246,.25);
}

button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0b1220;
  color: var(--text);
  cursor: pointer;
}
button:hover { border-color: var(--accent); }
button:active { transform: translateY(1px); }

/* ================================
   Docked chooser (right column)
   ================================ */
.chooser-dock {
  display: none;                  /* toggled by JS */
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1020;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  margin-bottom: 12px;
}
.chooser-dock header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.chooser-dock header b { font-weight: 600; }
.chooser-dock .body {
  max-height: 76vh;               /* tall, but leaves room for summary */
  overflow: auto;
  padding: 8px 10px;
}

.choice {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 6px 0;
  background: #0b1220;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.choice:hover { border-color: var(--accent); background: #0c162a; }

/* ================================
   Summary & Relephants (right column)
   ================================ */
#summaryBox {
  min-height: 220px;              /* reserve space to avoid layout jumps */
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}
#summaryBox a { color: var(--accent-2); text-decoration: none; }
#summaryBox a:hover { text-decoration: underline; }

#relephantsList {
  max-height: calc(100vh - 360px);  /* within right panel; scrolled internally */
  overflow: auto;
  padding-right: 6px;
}
#relephantsList li {
  margin: 4px 0;
}
#relephantsList a {
  color: var(--text);
  text-decoration: none;
}
#relephantsList a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

/* ================================
   Confirmation Modal
   ================================ */
.backdrop {
  position: fixed;
  inset: 0;
  display: none;                  /* toggled by JS */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  z-index: 50;
}
.modal {
  width: min(540px, 92vw);
  background: #0b1020;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.modal header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.modal .body { padding: 10px 12px; }
.btnrow {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 8px 12px 12px;
}

/* ================================
   Scrollbar Tweak (WebKit)
   ================================ */
#rightPanel::-webkit-scrollbar,
#leftPanel ::-webkit-scrollbar,
.chooser-dock .body::-webkit-scrollbar,
.log::-webkit-scrollbar,
#relephantsList::-webkit-scrollbar,
#summaryBox::-webkit-scrollbar,
#referenceSummaryBox::-webkit-scrollbar,
#referenceRelephantsList::-webkit-scrollbar {
  width: 10px;
}
#rightPanel::-webkit-scrollbar-thumb,
#leftPanel ::-webkit-scrollbar-thumb,
.chooser-dock .body::-webkit-scrollbar-thumb,
.log::-webkit-scrollbar-thumb,
#relephantsList::-webkit-scrollbar-thumb,
#summaryBox::-webkit-scrollbar-thumb,
#referenceSummaryBox::-webkit-scrollbar-thumb,
#referenceRelephantsList::-webkit-scrollbar-thumb {
  background: #1f2a44;
  border-radius: 8px;
  border: 2px solid #0b1020;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 1100px) {
  #app {
    grid-template-columns:
      clamp(240px, 22vw, 300px)
      minmax(0, 1fr)
      clamp(300px, 30vw, 420px);
  }
  #summaryBox { max-height: 240px; }
  #relephantsList { max-height: calc(100vh - 340px); }
}

/* Utility */
.hidden { display: none !important; }


/* Crib in bottom-left: make the left panel a column so sticky works nicely */
#leftPanel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Push crib card to the bottom and keep it visible while left panel scrolls */
#cribCard {
  position: sticky;
  bottom: 10px;
  z-index: 1;              /* stay above panel scrollbar track */
}

/* Left-docked crib uses single column (narrow) */
.crib.leftDock {
  display: block;
}
.crib.leftDock h3 {
  margin: 8px 0 6px;
  font-size: 13px;
}
.cribList {
  list-style: none;
  margin: 0 0 6px 0;
  padding-left: 0;
  max-height: 22vh;        /* balanced height so both lists fit */
  overflow: auto;
}
.cribList li {
  margin: 0 0 8px 0;
}

/* Make lists a bit taller on short screens */
@media (max-height: 820px) {
  .cribList { max-height: 18vh; }
}


/* ======================================================
   TRUE COLLAPSE: left panel goes to zero width
   ====================================================== */

#leftPanel.collapsed {
  width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border: none !important;
  opacity: 0;
  overflow: hidden !important;
  transition:
    width .45s ease,
    max-width .45s ease,
    opacity .3s ease;
}

/* Grid reconfiguration when collapsed */
#app.left-collapsed {
  grid-template-columns:
    0px                      /* left invis */
    minmax(0, 1fr)           /* center expands fully */
    clamp(360px, 28vw, 560px); /* right */
  transition: grid-template-columns .35s ease;
}

/* Grid when expanded */
#app.left-expanded {
  grid-template-columns:
    clamp(260px, 18vw, 320px)  /* left */
    minmax(0, 1fr)
    clamp(360px, 28vw, 560px);
  transition: grid-template-columns .35s ease;
}

/* =====================================================
   TRUE COLLAPSE / TRUE EXPAND GRID SYSTEM
   ===================================================== */

/* Expanded layout — normal three columns */
#app.left-expanded {
  display: grid;
  grid-template-columns:
    clamp(260px, 18vw, 320px)   /* left */
    minmax(0, 1fr)              /* center expands */
    clamp(360px, 28vw, 560px);  /* right */
  gap: 12px;
  height: 100vh;
  padding: 10px;
  transition: grid-template-columns .35s ease;
}

/* Collapsed layout — left disappears entirely, center grows */
#app.left-collapsed {
  display: grid;
  grid-template-columns:
    0px                        /* left = fully hidden */
    minmax(0, 1fr)             /* center takes the space */
    clamp(360px, 28vw, 560px); /* right */
  gap: 12px;
  height: 100vh;
  padding: 10px;
  transition: grid-template-columns .35s ease;
}

/* =====================================================
   LEFT PANEL COLLAPSE BEHAVIOR
   ===================================================== */

#leftPanel {
  position: relative;
  transition:
    width .35s ease,
    max-width .35s ease,
    padding .25s ease,
    opacity .2s ease;
}

/* Fullscreen intro mode */
#leftPanel.seed-fullscreen {
  width: 100% !important;
  max-width: none !important;
  height: 100vh;
  overflow: hidden;
}

/* TRUE collapse to 0px — no borders, no padding, invisible */
#leftPanel.collapsed {
  width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;

  border: none !important;
  opacity: 0 !important;

  overflow: hidden !important;
  pointer-events: none; /* prevent interacting with invisible content */
}

/* =====================================================
   CENTER PANEL VISIBILITY ANIMATION
   ===================================================== */

#canvasWrap.hidden,
#rightPanel.hidden {
  opacity: 0;
  transform: translateX(25px);
  transition: opacity .4s ease, transform .4s ease;
}

#canvasWrap.reveal,
#rightPanel.reveal {
  opacity: 1;
  transform: translateX(0);
}

#rightPanel {
  transition:
    width .35s ease,
    max-width .35s ease,
    padding .25s ease,
    margin .25s ease,
    border-color .25s ease,
    opacity .2s ease,
    transform .2s ease;
}

#rightPanel.collapsed-finalized {
  width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}

#app.left-collapsed.right-collapsed {
  grid-template-columns:
    0px
    minmax(0, 1fr);
}

#app.left-expanded.right-collapsed {
  grid-template-columns:
    clamp(260px, 18vw, 320px)
    minmax(0, 1fr);
}

/* =====================================================
   FLOATING DEV TOGGLE BUTTON
   ===================================================== */

#leftCollapseToggle {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #152032;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  opacity: .85;

  z-index: 500; /* Stay well above cards & canvas */
  transition: opacity .2s ease;
}

#leftCollapseToggle:hover {
  opacity: 1;
}

#leftCollapseToggle:hover::after {
  content: "dev stuff";
  position: absolute;
  left: 46px;
  top: 6px;

  padding: 4px 8px;
  border-radius: 6px;

  background: #0b1020;
  border: 1px solid var(--line);
  color: var(--text);

  font-size: 12px;
  white-space: nowrap;
}


/* Make canvasWrap expand fully to grid area */
#canvasWrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 8px;
}

/* Make #app allow full growth */
#app {
  padding: 0 !important;   /* remove global padding */
  gap: 1px;
}


#boardShell {
  display: grid;
  grid-template-columns: minmax(220px, 24%) minmax(0, 1fr) minmax(220px, 24%);
  gap: 12px;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

#boardShell.clues-hidden {
  grid-template-columns: minmax(0, 1fr);
}

#boardShell.clues-hidden .board-clues {
  display: none;
}

#boardFrame {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

#boardToolbar {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.board-toolbar-title {
  font-weight: 600;
}
.board-toolbar-actions {
  padding: 0;
}

#boardViewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #091024;
  isolation: isolate;
}

#board {
  position: relative;
  z-index: 1;
}

#boardFooterControls {
  display: flex;
  justify-content: center;
  margin-top: -2px;
}

#btnWallpaperControl {
  min-width: 180px;
}

#wallpaperControlPopup {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  max-height: min(70vh, 680px);
  overflow: auto;
  z-index: 8;
  box-shadow: 0 18px 60px rgba(0,0,0,.48);
  background: rgba(11, 17, 32, 0.98);
  backdrop-filter: blur(6px);
}

#wallpaperControlPopup[hidden] {
  display: none !important;
}

.wallpaper-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wallpaper-popup-title {
  font-weight: 700;
}

#btnCloseWallpaperControl {
  flex: 0 0 auto;
  min-width: 36px;
  padding: 4px 8px;
}

.board-clues {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

.board-clues-header {
  font-size: 16px;
  font-weight: 700;
}

.boardClueList {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: auto;
  min-height: 0;
}

.boardClueList li {
  margin: 0 0 10px 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(51, 65, 85, 0.55);
  background: rgba(11, 17, 32, 0.75);
}

.boardClueList .clue-main {
  font-size: 13px;
  line-height: 1.45;
}

.boardClueList .clue-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-dim);
}

@media (max-width: 1320px) {
  #boardShell:not(.clues-hidden) {
    grid-template-columns: minmax(180px, 22%) minmax(0, 1fr) minmax(180px, 22%);
  }
}

@media (max-width: 1080px) {
  #boardShell:not(.clues-hidden) {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .board-clues {
    max-height: 22vh;
  }
}


details.dev-card {
  padding: 0;
  overflow: hidden;
}

details.dev-card > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(21, 32, 50, 0.95), rgba(11, 16, 32, 0.95));
  border-bottom: 1px solid rgba(51, 65, 85, 0.75);
}

details.dev-card > summary::-webkit-details-marker {
  display: none;
}

details.dev-card > summary::after {
  content: '▾';
  float: right;
  opacity: 0.75;
}

details.dev-card:not([open]) > summary::after {
  content: '▸';
}

.dev-card .subcard {
  padding: 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
}

.dev-card .subcard:last-child {
  border-bottom: none;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 8px;
}

.toggle-row input[type="checkbox"] {
  width: auto;
  transform: scale(1.15);
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 6px 0 12px;
}

.range-row output {
  min-width: 48px;
  text-align: right;
  color: var(--text-dim);
}

.kb-now-playing {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 8px;
  background: rgba(11, 18, 32, 0.7);
}

.kb-queue-preview {
  margin: 8px 0 0;
  padding-left: 18px;
  max-height: 22vh;
  overflow: auto;
}

.kb-queue-preview li {
  margin: 0 0 6px;
}

.dev-actions {
  padding: 0;
  justify-content: flex-start;
}



#boardFrame > * {
  min-height: 0;
}

#boardViewport {
  min-height: 0;
}


@media (max-width: 900px) {
  #wallpaperControlPopup {
    width: min(92vw, 560px);
    bottom: 52px;
  }
}


#referenceHoverPopup {
  position: fixed;
  top: 120px;
  left: 120px;
  width: min(420px, calc(100vw - 32px));
  max-height: min(72vh, 720px);
  overflow: hidden;
  z-index: 900;
  box-shadow: 0 22px 64px rgba(0,0,0,.55);
  background: rgba(11, 17, 32, 0.985);
  backdrop-filter: blur(8px);
  border-color: rgba(59, 130, 246, 0.38);
}

#referenceHoverPopup[hidden] {
  display: none !important;
}

.reference-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.reference-popup-title {
  font-weight: 700;
}

#btnCloseReferencePopup {
  flex: 0 0 auto;
  min-width: 36px;
  padding: 4px 8px;
}

#referenceHoverPopup .subcard {
  padding: 12px 0 0;
  border-top: 1px solid rgba(51, 65, 85, 0.45);
}

#referenceHoverPopup .subcard + .subcard {
  margin-top: 12px;
}

#referenceSummaryBox {
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

#referenceSummaryBox a {
  color: var(--accent-2);
  text-decoration: none;
}

#referenceSummaryBox a:hover {
  text-decoration: underline;
}

#referenceRelephantsList {
  max-height: min(32vh, 320px);
  overflow: auto;
  padding-right: 6px;
  margin: 0;
}

#referenceRelephantsList li {
  margin: 4px 0;
}

#referenceRelephantsList a {
  color: var(--text);
  text-decoration: none;
}

#referenceRelephantsList a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.choice.reference-hover-armed {
  border-color: rgba(56, 189, 248, 0.78);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.22);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.google-signin-slot {
  margin-top: 8px;
  min-height: 42px;
}

.compact-row {
  justify-content: flex-start;
  padding: 8px 0 0;
  flex-wrap: wrap;
}

.saved-puzzles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.saved-puzzle-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #0b1220;
}

/* ================================
   Top-right account controls
   ================================ */
#authDock {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 650;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

#authTrigger {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(10, 15, 28, 0.96));
  color: var(--text);
  border-radius: 999px;
  min-height: 42px;
  padding: 6px 10px 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
  cursor: pointer;
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}

#authTrigger:hover,
#authTrigger[aria-expanded="true"] {
  border-color: rgba(96, 165, 250, 0.55);
  background: linear-gradient(180deg, rgba(20, 30, 50, 0.98), rgba(10, 15, 28, 0.98));
}

#authTrigger:focus-visible,
#btnCloseAuthPopover:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.9);
  outline-offset: 2px;
}

.auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,.32), rgba(56,189,248,.18));
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  flex: 0 0 auto;
}

.auth-avatar.has-image {
  background: #0b1120;
}

.auth-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-trigger-label {
  font-weight: 600;
  white-space: nowrap;
}

.auth-trigger-caret {
  color: var(--text-dim);
  font-size: 12px;
}

#authPopover {
  width: min(360px, calc(100vw - 24px));
  margin: 0;
  padding: 14px;
  background: rgba(10, 16, 30, 0.98);
  border-color: rgba(71, 85, 105, 0.95);
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.56);
}

.auth-popover-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.auth-popover-title {
  font-size: 15px;
  font-weight: 700;
}

.auth-popover-subtitle {
  margin-top: 2px;
  max-width: 30ch;
}

#btnCloseAuthPopover {
  appearance: none;
  border: 1px solid rgba(71, 85, 105, 0.9);
  background: transparent;
  color: var(--text-dim);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
}

#btnCloseAuthPopover:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.9);
}

#authStatus {
  margin-bottom: 12px;
}

.google-signin-slot {
  min-height: 44px;
}

.auth-popover-actions {
  margin-top: 12px;
}

#authStatus code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: #c7d2fe;
}

@media (max-width: 720px) {
  #authDock {
    top: 12px;
    right: 12px;
  }

  #authTrigger {
    min-height: 38px;
    padding-right: 8px;
  }

  .auth-trigger-label {
    max-width: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
