/* ================================================================
   Vorkath GM — UI overhaul stylesheet
   ----------------------------------------------------------------
   Shared by every page under /uioverhaul/. Per-game accent is set
   with a body class: theme-vorkath | theme-solak | theme-aod | theme-other
   ================================================================ */

/* ── Tokens ────────────────────────────────────────────────────── */
:root {
  --bg:        #0b0c11;
  --bg-2:      #0f1117;
  --surface:   #151822;
  --surface-2: #1b1f2b;
  --surface-3: #242938;
  --line:      rgba(255, 255, 255, 0.06);
  --line-2:    rgba(255, 255, 255, 0.11);

  --text:   #e9ecf3;
  --text-2: #a6acbc;
  --text-3: #6d7488;

  --accent:     #4a9eff;
  --accent-rgb: 74, 158, 255;
  --on-accent:  #ffffff;

  --good: #3ddc84;  --good-rgb: 61, 220, 132;
  --warn: #ffb547;  --warn-rgb: 255, 181, 71;
  --bad:  #ff6b6b;  --bad-rgb:  255, 107, 107;
  --discord: #5865f2;
  --chat: #b58cff;  --chat-rgb: 181, 140, 255;

  --r:    16px;
  --r-sm: 10px;
  --r-xs: 7px;

  --app-w:   480px;
  --panel-w: 228px;
  --panel-pad: 14px;

  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.theme-solak { --accent: #27ae60; --accent-rgb: 39, 174, 96; }
body.theme-aod   { --accent: #e74c3c; --accent-rgb: 231, 76, 60; }
body.theme-other { --accent: #e8a800; --accent-rgb: 232, 168, 0; --on-accent: #1b1400; }

/* ── Reset / base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--bg);
  background-image: radial-gradient(900px 480px at 50% -120px, rgba(var(--accent-rgb), 0.12), transparent 70%);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible { outline: none; }

* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #313749; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes glow  {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--good-rgb), 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(var(--good-rgb), 0.04); }
}

/* ── Layout ────────────────────────────────────────────────────── */
/* The card sits in its own centre column, so panels appearing on either side can never move it. */
.vgt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  max-width: 1640px;
  margin: 0 auto;
  padding: 28px 16px;   /* equal top/bottom: a full-height card (100vh - 56px) fits without page scroll */
}

.side { display: flex; align-items: flex-start; gap: inherit; min-width: 0; grid-row: 1; }
.side-left  { grid-column: 1; justify-content: flex-end; }
.side-right { grid-column: 3; justify-content: flex-start; }

.vgt-app {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: min(var(--app-w), calc(100vw - 32px));
  max-width: var(--app-w);
  min-height: min(560px, calc(100vh - 56px));
  max-height: calc(100vh - 56px);   /* same cap as the side panels */
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* Side panels: the scripts toggle inline display:flex / none */
.panel {
  position: sticky;
  top: 28px;
  width: var(--panel-w);
  max-height: calc(100vh - 56px);
  flex-direction: column;
  gap: 8px;
  padding: var(--panel-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.panel-info { width: 300px; }
.panel-chat { width: 260px; }

/* Scrolling areas inside panels bleed to the panel edge so the scrollbar
   sits at the outside, not inset by the panel padding. */
.panel-scroll, .vgt-completed-side-list, .vgt-skipped-list, .vgt-chat-messages {
  margin-right: calc(3px - var(--panel-pad));
  padding-right: max(3px, calc(var(--panel-pad) - 9px));
  scrollbar-gutter: stable;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.panel-title.t-good { color: var(--good); }
.panel-title.t-warn { color: var(--warn); }
.panel-title.t-chat { color: var(--chat); }
.panel-title.t-accent { color: var(--accent); }

.panel-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Header ────────────────────────────────────────────────────── */
.app-header {
  display: flex;
  flex-wrap: wrap;            /* actions drop to a second line before the title breaks */
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
}
.brand-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--text-3); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }

.vgt-world {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.vgt-world:empty { display: none; }

.vgt-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.vgt-status-dot.connected { background: var(--good); box-shadow: 0 0 0 3px rgba(var(--good-rgb), 0.2); }
.vgt-status-dot.error     { background: var(--bad);  box-shadow: 0 0 0 3px rgba(var(--bad-rgb), 0.2); }
.vgt-status-dot.loading   { background: var(--warn); animation: pulse 0.9s ease-in-out infinite; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s, filter 0.15s;
}
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-good { background: rgba(var(--good-rgb), 0.14); color: var(--good); }
.btn-good:hover:not(:disabled) { background: rgba(var(--good-rgb), 0.24); }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 16px; font-size: 14px; }
.btn-mini {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  border: 1px solid var(--line-2);
}
.btn-mini:hover:not(:disabled) { color: var(--bad); border-color: rgba(var(--bad-rgb), 0.5); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover:not(:disabled) { filter: brightness(1.08); }
.btn-discord svg { width: 18px; height: 18px; flex-shrink: 0; }

.icon-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.icon-btn small { font-size: 9px; font-weight: 700; margin-left: 1px; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn[aria-pressed="true"] { background: rgba(var(--accent-rgb), 0.14); border-color: rgba(var(--accent-rgb), 0.5); color: var(--accent); }

.vgt-admin-btn {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: var(--r-xs);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.vgt-admin-btn:hover { border-color: var(--accent); color: var(--accent); }
.vgt-admin-btn.active { border-color: rgba(var(--good-rgb), 0.5); color: var(--good); background: rgba(var(--good-rgb), 0.08); }

/* ── Game switcher ─────────────────────────────────────────────── */
.game-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.game-nav a {
  flex: 1;
  text-align: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.game-nav a:hover { color: var(--text); background: var(--surface-2); }
.game-nav a.active { background: rgba(var(--accent-rgb), 0.16); color: var(--accent); }

/* ── Submissions status ────────────────────────────────────────── */
.vgt-submissions-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 600;
}
.vgt-submissions-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.vgt-submissions-status.open   { background: rgba(var(--good-rgb), 0.10); color: var(--good); }
.vgt-submissions-status.closed { background: rgba(var(--bad-rgb), 0.10);  color: var(--bad); }

/* ── Tabs ──────────────────────────────────────────────────────── */
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.vgt-tab {
  flex: 1;
  padding: 10px 6px 11px;
  margin-bottom: -1px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.vgt-tab:hover { color: var(--text); }
.vgt-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* The active tab scrolls inside the card; header, switcher and tabs stay fixed.
   Negative margin + gutter keeps the scrollbar at the card edge and content aligned. */
.vgt-page {
  display: none;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
  margin-right: -17px;
  padding-right: 11px;
}
.vgt-page.active { display: flex; }

/* ── Form fields ───────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.field-label .req { color: var(--accent); }

.input, .select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--text-3); }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
.input-sm { padding: 8px 10px; font-size: 13px; border-radius: var(--r-xs); }
.input[type=number] { -moz-appearance: textfield; }
.input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }

.select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d7488' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.select option { background: var(--surface-2); color: var(--text); }

.inline-row { display: flex; gap: 6px; align-items: center; }
.inline-row > .vgt-ac-world-input { flex: 1; min-width: 0; }

/* Checkbox rows */
.check-list { display: flex; flex-direction: column; gap: 6px; }
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}
.check-item:hover { border-color: rgba(var(--accent-rgb), 0.6); }
.check-item:has(input:checked) { border-color: rgba(var(--accent-rgb), 0.5); background: rgba(var(--accent-rgb), 0.08); }
.check-item input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.check-item.compact { padding: 7px 10px; font-size: 12.5px; }

/* ── Signup tab ────────────────────────────────────────────────── */
.vgt-alert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 22px 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: background 0.3s, border-color 0.3s;
}
.alert-icon { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.alert-title { font-size: 17px; font-weight: 700; }
.alert-sub { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.alert-sub:empty { display: none; }

.vgt-alert-card.turn    { background: rgba(var(--good-rgb), 0.10); border-color: rgba(var(--good-rgb), 0.45); animation: glow 2s ease-in-out infinite; }
.vgt-alert-card.turn    .alert-title { color: var(--good); }
.vgt-alert-card.soon    { background: rgba(var(--warn-rgb), 0.08); border-color: rgba(var(--warn-rgb), 0.4); }
.vgt-alert-card.soon    .alert-title { color: var(--warn); }
.vgt-alert-card.waiting .alert-title { color: var(--accent); }
.vgt-alert-card.neutral .alert-title { color: var(--text-2); }
.vgt-alert-card.warning .alert-title { color: var(--warn); }
.vgt-alert-card.error   { border-color: rgba(var(--bad-rgb), 0.5); }
.vgt-alert-card.error   .alert-title { color: var(--bad); }

/* The scripts toggle inline display block/none on this button */
.vgt-join-btn {
  display: none;
  width: 100%;
  padding: 13px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.25);
  transition: background 0.2s, opacity 0.2s, filter 0.2s;
}
.vgt-join-btn:hover:not(:disabled) { filter: brightness(1.08); }
.vgt-join-btn:disabled { opacity: 0.6; cursor: default; }
.vgt-join-btn.submitted { background: var(--good); color: #06210f; box-shadow: none; }
.vgt-join-btn.closed { background: var(--surface-3); color: var(--text-2); box-shadow: none; }

/* Self-leave (only shown when this browser holds the leave token for the name) */
.leave-btn { color: var(--text-3); }
.leave-btn:hover:not(:disabled) { border-color: rgba(var(--bad-rgb), 0.6); color: var(--bad); }

.position-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.position-value { font-size: 32px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }

.page-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  font-size: 12px;
  color: var(--text-3);
}

/* ── Queue tab ─────────────────────────────────────────────────── */
.queue-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.queue-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.count-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.14);
  padding: 2px 9px;
  border-radius: 999px;
}
.vgt-queue-total-carries { font-size: 12px; font-weight: 600; color: var(--text-3); margin-left: auto; margin-right: 8px; }

.vgt-queue-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.vgt-queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: background 0.15s, border-color 0.15s;
}
.vgt-queue-item.first { background: rgba(var(--good-rgb), 0.09); border-color: rgba(var(--good-rgb), 0.35); }
.vgt-queue-item.top3  { background: rgba(var(--warn-rgb), 0.07); border-color: rgba(var(--warn-rgb), 0.30); }
.vgt-queue-item.is-you { box-shadow: inset 0 0 0 1.5px var(--accent); }

.vgt-queue-rank {
  min-width: 32px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.vgt-queue-item.first .vgt-queue-rank { color: var(--good); }
.vgt-queue-item.top3  .vgt-queue-rank { color: var(--warn); }

.vgt-presence { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; transition: 0.3s; }
.vgt-presence.online  { background: var(--good); box-shadow: 0 0 0 3px rgba(var(--good-rgb), 0.18); }
.vgt-presence.offline { background: var(--bad); opacity: 0.45; }

.vgt-queue-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vgt-queue-name .you-tag {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.14);
  padding: 1px 6px;
  border-radius: 999px;
  vertical-align: middle;
}

.vgt-badge { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; flex-shrink: 0; }
.vgt-badge.turn { background: var(--good); color: #06210f; }
.vgt-badge.soon { background: var(--warn); color: #2b1a00; }

.vgt-queue-state { text-align: center; color: var(--text-3); padding: 32px 0; font-size: 13.5px; }

/* Admin row actions (rendered by the scripts) */
.vgt-admin-actions { display: flex; gap: 5px; margin-left: auto; flex-shrink: 0; }
.vgt-admin-action {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.vgt-admin-action.done { color: var(--good); }
.vgt-admin-action.done:hover { background: rgba(var(--good-rgb), 0.15); border-color: var(--good); }
.vgt-admin-action.skip { color: var(--bad); }
.vgt-admin-action.skip:hover { background: rgba(var(--bad-rgb), 0.15); border-color: var(--bad); }
.vgt-admin-action.ping { color: var(--accent); }
.vgt-admin-action.ping:hover { background: rgba(var(--accent-rgb), 0.15); border-color: var(--accent); }
.vgt-admin-action:disabled { opacity: 0.35; cursor: default; }

.vgt-drag-handle { cursor: grab; color: var(--text-3); font-size: 16px; line-height: 1; padding: 0 2px; user-select: none; flex-shrink: 0; }
.vgt-drag-handle:hover { color: var(--accent); }
.vgt-queue-item[draggable="true"] { cursor: grab; }
.vgt-queue-item.vgt-dragging { opacity: 0.4; }
.vgt-queue-item.vgt-drop-above { box-shadow: 0 -2px 0 0 var(--accent); }
.vgt-queue-item.vgt-drop-below { box-shadow: 0 2px 0 0 var(--accent); }

.vgt-queue-name.rename-failed, .vgt-completed-side-name.rename-failed { color: var(--bad); }
.vgt-queue-name.editable { cursor: text; }
.vgt-queue-name.editable:hover { text-decoration: underline dotted; text-underline-offset: 3px; }
.vgt-queue-name-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 13px;
  outline: none;
}

/* Completed (collapsible under the queue) */
.vgt-completed-panel { border-top: 1px solid var(--line); padding-top: 12px; }
.vgt-completed-toggle {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.15s, border-color 0.15s;
}
.vgt-completed-toggle:hover { color: var(--text); border-color: var(--line-2); }
.vgt-completed-body { padding-top: 10px; }
.vgt-completed-search-wrap { position: relative; margin-bottom: 8px; }
.vgt-completed-search-wrap .input { padding-right: 42px; }
.vgt-completed-fullview {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: var(--text-3);
  font-size: 14px;
  transition: color 0.15s, background 0.15s;
}
.vgt-completed-fullview:hover { color: var(--accent); background: var(--surface-3); }
.vgt-completed-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  max-height: 170px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.vgt-completed-suggestion { padding: 8px 12px; font-size: 13px; cursor: pointer; }
.vgt-completed-suggestion:hover { background: var(--surface-2); }
.vgt-completed-list { max-height: 180px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.vgt-completed-item { font-size: 13px; color: var(--text-2); padding: 7px 12px; background: var(--surface-2); border-radius: var(--r-xs); }

/* ── Info tab ──────────────────────────────────────────────────── */
.stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.vgt-info-stat {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}
.vgt-info-fc-name { font-size: 20px; font-weight: 800; color: var(--accent); letter-spacing: -0.01em; text-align: center; }
.vgt-reminder-toggle { display: none; }

.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.card-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.tips { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.tips li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.5; }
.tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.tips li.vgt-info-circle::before { background: var(--warn); }
.tips .team { color: var(--warn); font-weight: 600; }

.oth-info-note { font-size: 13.5px; color: var(--text-2); line-height: 1.55; margin-bottom: 6px; }
.oth-info-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 12px 0 7px;
}

/* Links panel: pinned to the card's left edge while the Info tab is open.
   It lives inside the card and is absolutely positioned, so the card never moves. */
.vgt-app .panel-links {
  display: none;
  position: absolute;
  top: -1px;
  right: calc(100% + 16px);
  width: var(--panel-w);
  max-height: none;
}
.vgt-layout:has(#tab-info.active) .panel-links { display: flex; }
.panel-links .btn { white-space: normal; }

/* Vorkath info side panel */
.panel-info .info-img { border-radius: var(--r-sm); border: 1px solid var(--line); width: 100%; }
.panel-info .info-caption { font-size: 12px; color: var(--text-3); text-align: center; }

/* ── Admin controls panel ──────────────────────────────────────── */
.vgt-ac-section { display: flex; flex-direction: column; gap: 5px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.vgt-ac-section:first-child { padding-top: 2px; }
.vgt-ac-section:last-child { border-bottom: none; }
.vgt-ac-label { font-size: 12px; font-weight: 700; }
.vgt-ac-desc { font-size: 11px; color: var(--text-3); line-height: 1.35; }
.vgt-ac-status {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
}
.vgt-ac-status.active, .vgt-ac-status.open { background: rgba(var(--good-rgb), 0.14); color: var(--good); }
.vgt-ac-status.closed { background: rgba(var(--bad-rgb), 0.14); color: var(--bad); }
.vgt-ac-status.inactive { background: var(--surface-2); color: var(--text-3); }
.vgt-ac-count { font-size: 16px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; line-height: 1.2; }
.vgt-ac-btns { display: flex; gap: 5px; }
.vgt-ac-btn {
  flex: 1;
  width: 100%;
  padding: 6px 8px;
  border-radius: var(--r-xs);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s, opacity 0.15s;
}
.vgt-ac-btn:disabled { opacity: 0.5; cursor: default; }
.vgt-ac-btn.start { background: rgba(var(--good-rgb), 0.14); color: var(--good); }
.vgt-ac-btn.start:hover:not(:disabled) { background: rgba(var(--good-rgb), 0.26); }
.vgt-ac-btn.end { background: rgba(var(--bad-rgb), 0.14); color: var(--bad); }
.vgt-ac-btn.end:hover:not(:disabled) { background: rgba(var(--bad-rgb), 0.26); }
.vgt-ac-btn.toggle { background: var(--surface-3); color: var(--text); }
.vgt-ac-btn.toggle:hover:not(:disabled) { background: #2c3244; }
.vgt-ac-btn.toggle.open-state { background: rgba(var(--bad-rgb), 0.14); color: var(--bad); }
.vgt-ac-btn.toggle.open-state:hover:not(:disabled) { background: rgba(var(--bad-rgb), 0.26); }
.vgt-ac-btn.btn-fit { flex: 0 0 auto; width: auto; }

.vgt-ac-world-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  padding: 6px 9px;
  font-size: 12.5px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.vgt-ac-world-input::placeholder { color: var(--text-3); }
.vgt-ac-world-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }

#ac-blacklist-list { max-height: 180px; overflow-y: auto; font-size: 12.5px; }
.vgt-ac-msg { font-size: 11.5px; font-weight: 600; color: var(--bad); line-height: 1.4; }

/* ── Completed side panel ──────────────────────────────────────── */
.vgt-completed-side-search {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  flex-shrink: 0;
}
.vgt-completed-side-search::placeholder { color: var(--text-3); }
.vgt-completed-side-search:focus { border-color: var(--accent); }
.vgt-completed-side-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.vgt-completed-side-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  font-size: 13px;
}
.vgt-completed-side-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: text; }
.vgt-completed-side-name:hover { color: var(--accent); }
.vgt-completed-side-name.editing { overflow: visible; }
.vgt-completed-side-edit {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 13px;
  outline: none;
}
.vgt-completed-side-skip {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--text-3);
  font-size: 12px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.vgt-completed-side-skip:hover { color: var(--bad); background: rgba(var(--bad-rgb), 0.12); }
.vgt-completed-side-skip:disabled { opacity: 0.4; cursor: default; }
.vgt-completed-side-empty, .vgt-skipped-empty, .vgt-chat-empty { text-align: center; color: var(--text-3); font-size: 12.5px; padding: 18px 4px; }

/* ── Skipped panel ─────────────────────────────────────────────── */
.vgt-skipped-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.vgt-skipped-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  font-size: 13px;
}
/* Name gets its own line so the Unskip / Complete buttons never squeeze it out */
.vgt-skipped-item { flex-wrap: wrap; }
.vgt-skipped-name { flex: 1 1 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vgt-unskip-btn, .vgt-skip-complete-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.vgt-unskip-btn { background: rgba(var(--good-rgb), 0.14); color: var(--good); }
.vgt-unskip-btn:hover:not(:disabled) { background: rgba(var(--good-rgb), 0.26); }
.vgt-skip-complete-btn { background: rgba(var(--accent-rgb), 0.14); color: var(--accent); }
.vgt-skip-complete-btn:hover:not(:disabled) { background: rgba(var(--accent-rgb), 0.26); }
.vgt-unskip-btn:disabled, .vgt-skip-complete-btn:disabled { opacity: 0.5; cursor: default; }

/* ── Admin chat panel ──────────────────────────────────────────── */
.vgt-chat-input-wrap { display: flex; gap: 6px; flex-shrink: 0; }
.vgt-chat-input {
  flex: 1;
  min-width: 0;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.vgt-chat-input::placeholder { color: var(--text-3); }
.vgt-chat-input:focus { border-color: var(--chat); }
.vgt-chat-send {
  padding: 8px 12px;
  border-radius: var(--r-xs);
  background: rgba(var(--chat-rgb), 0.16);
  color: var(--chat);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.vgt-chat-send:hover:not(:disabled) { background: rgba(var(--chat-rgb), 0.28); }
.vgt-chat-send:disabled { opacity: 0.4; cursor: default; }
.vgt-chat-messages { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.vgt-chat-msg {
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.vgt-chat-msg-time { float: right; font-size: 10.5px; color: var(--text-3); margin-left: 6px; line-height: 1.7; }
.vgt-chat-msg-name { font-weight: 700; color: var(--chat); margin-right: 4px; }
.vgt-chat-msg-text { margin-top: 2px; color: var(--text); }
.vgt-chat-delete-btn { float: right; color: var(--text-3); font-size: 11px; padding: 0 0 0 6px; line-height: 1.7; opacity: 0.6; }
.vgt-chat-delete-btn:hover { color: var(--bad); opacity: 1; }

/* ── Overlays / modals ─────────────────────────────────────────── */
.vgt-admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.modal.wide { max-width: 380px; }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-text { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.modal-actions { display: flex; gap: 8px; }
.modal-actions > * { flex: 1; }
.modal-center { align-items: center; text-align: center; }
.modal-emoji { font-size: 36px; line-height: 1; }
.vgt-admin-error { font-size: 12.5px; color: var(--bad); text-align: center; }
#complete-modal-achievements { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
#complete-modal-achievements label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-xs);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  font-size: 13.5px;
  cursor: pointer;
}

.hidden-overlay { display: none; position: fixed; inset: 0; z-index: 9999; background: var(--bg); }

/* ── "Other" page specifics ────────────────────────────────────── */
.oth-time-row { display: flex; align-items: center; gap: 8px; }
.oth-time-row .select { flex: 1; min-width: 0; }
.oth-time-sep { color: var(--text-3); font-size: 13px; }

body.theme-other #queue-list .vgt-queue-item { flex-wrap: wrap; }
.oth-queue-meta { width: 100%; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.oth-queue-tags { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
#queue-list .oth-queue-meta, #queue-list .oth-queue-tags { padding-left: 42px; }
.oth-ach-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ── Completed list pages ──────────────────────────────────────── */
.list-page { width: min(520px, calc(100vw - 32px)); max-width: 520px; min-height: 0; }
.list-page .list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 200px;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  padding-right: 2px;
}
.list-page .item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface-2); border-radius: var(--r-xs); font-size: 13.5px; }
.list-page .item-num { min-width: 34px; font-size: 12px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.list-page .loading, .list-page .no-results { text-align: center; color: var(--text-3); padding: 28px 0; }

/* ── Preview hub ───────────────────────────────────────────────── */
.hub-list { display: flex; flex-direction: column; gap: 8px; }
.hub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.15s, background 0.15s;
}
.hub-link:hover { border-color: var(--accent); background: var(--surface-3); }
.hub-link strong { font-size: 14px; font-weight: 600; display: block; }
.hub-link span { font-size: 12px; color: var(--text-3); }
.hub-link .arrow { color: var(--accent); font-size: 16px; }

/* ── Editable tips: emojis, colours, row editor ────────────────── */
:root {
  --c-white: #ffffff;
  --c-grey: #8b92a5;
  --c-blue: #4a9eff;
  --c-green: #3ddc84;
  --c-yellow: #ffd84a;
  --c-orange: #ffb547;
  --c-red: #ff6b6b;
  --c-pink: #ff7ac8;
  --c-purple: #b58cff;
}

.tip-emoji {
  height: 1.45em;
  width: auto;
  max-width: 2.2em;
  object-fit: contain;
  vertical-align: -0.35em;
  margin: 0 0.1em;
  display: inline-block;
}

/* Text colours (fixed names only; never raw CSS from saved data) */
.tc-accent { color: var(--accent); }
.tc-white  { color: var(--c-white); }
.tc-grey   { color: var(--c-grey); }
.tc-blue   { color: var(--c-blue); }
.tc-green  { color: var(--c-green); }
.tc-yellow { color: var(--c-yellow); }
.tc-orange { color: var(--c-orange); font-weight: 600; }
.tc-red    { color: var(--c-red); }
.tc-pink   { color: var(--c-pink); }
.tc-purple { color: var(--c-purple); }
.oth-info-section-title[class*="tc-"], .oth-info-note[class*="tc-"] { font-weight: inherit; }

/* Bullet colours */
.tips li.bc-accent::before { background: var(--accent); }
.tips li.bc-white::before  { background: var(--c-white); }
.tips li.bc-grey::before   { background: var(--c-grey); }
.tips li.bc-blue::before   { background: var(--c-blue); }
.tips li.bc-green::before  { background: var(--c-green); }
.tips li.bc-yellow::before { background: var(--c-yellow); }
.tips li.bc-orange::before { background: var(--c-orange); }
.tips li.bc-red::before    { background: var(--c-red); }
.tips li.bc-pink::before   { background: var(--c-pink); }
.tips li.bc-purple::before { background: var(--c-purple); }

/* Swatch fills */
.sw-default { background: var(--text); }
.sw-accent  { background: var(--accent); }
.sw-white   { background: var(--c-white); }
.sw-grey    { background: var(--c-grey); }
.sw-blue    { background: var(--c-blue); }
.sw-green   { background: var(--c-green); }
.sw-yellow  { background: var(--c-yellow); }
.sw-orange  { background: var(--c-orange); }
.sw-red     { background: var(--c-red); }
.sw-pink    { background: var(--c-pink); }
.sw-purple  { background: var(--c-purple); }

.tips-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tips-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: border-color 0.15s, color 0.15s;
}
.tips-edit-btn:hover { border-color: var(--accent); color: var(--accent); }
.tips-edit-btn[hidden], .tips-body[hidden], .tips-suggest[hidden] { display: none; }

.tips-editor { display: flex; flex-direction: column; gap: 10px; }

/* Selection toolbar */
.tips-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.tips-tool {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 13px;
  transition: border-color 0.15s, color 0.15s;
}
.tips-tool:hover { border-color: var(--accent); color: var(--accent); }
.tips-tool.fw { font-weight: 800; }
.tips-tool.it { font-style: italic; font-family: Georgia, serif; }
.tips-tool.ul { text-decoration: underline; }
.tips-tool-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 2px; }
.tips-tool-label { font-size: 11px; color: var(--text-3); font-weight: 600; }

.tips-swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.tips-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--surface-2);
  box-shadow: 0 0 0 1px var(--line-2);
  transition: transform 0.1s, box-shadow 0.15s;
}
.tips-swatch:hover { transform: scale(1.15); }
.tips-swatch.selected { box-shadow: 0 0 0 2px var(--text); }
.tips-swatch.sw-default { background: linear-gradient(135deg, var(--text) 45%, var(--surface-3) 45% 55%, var(--text) 55%); }

/* One row per tip */
.tips-rows { display: flex; flex-direction: column; gap: 6px; }
.tips-row { position: relative; display: flex; align-items: flex-start; gap: 6px; }
.tips-style-btn {
  width: 30px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-xs);
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.tips-style-btn:hover { border-color: var(--line-2); background: var(--bg-2); }
.tips-style-marker {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.type-heading .tips-style-marker, .type-note .tips-style-marker {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  color: #10121a;
}
.tips-field {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13.5px;
  line-height: 1.45;
  font-family: var(--font);
  resize: none;
  overflow: hidden;
}
.type-heading .tips-field { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; }
.type-note .tips-field { font-style: italic; }
.tips-row-tools { display: flex; gap: 2px; flex-shrink: 0; padding-top: 5px; opacity: 0.45; transition: opacity 0.15s; }
.tips-row:hover .tips-row-tools, .tips-row:focus-within .tips-row-tools { opacity: 1; }
.tips-icon-btn {
  width: 24px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-3);
  transition: color 0.15s, background 0.15s;
}
.tips-icon-btn:hover:not(:disabled) { color: var(--text); background: var(--surface-3); }
.tips-icon-btn.danger:hover:not(:disabled) { color: var(--bad); background: rgba(var(--bad-rgb), 0.12); }
.tips-icon-btn:disabled { opacity: 0.25; cursor: default; }

.tips-add-btn {
  align-self: flex-start;
  margin-left: 36px;
  padding: 6px 12px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-xs);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}
.tips-add-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Row style popover */
.tips-popover {
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 40;
  width: 292px;
  max-width: calc(100vw - 48px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
}
.tips-pop-title { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.tips-type-toggle { display: flex; gap: 4px; background: var(--bg-2); border-radius: 8px; padding: 3px; }
.tips-type-btn { flex: 1; padding: 5px 6px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.tips-type-btn:hover { color: var(--text); }
.tips-type-btn.selected { background: rgba(var(--accent-rgb), 0.18); color: var(--accent); }

.tips-help { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.tips-preview-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.tips-preview { padding: 12px 14px; background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--r-sm); min-height: 40px; }
.tips-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.tips-status { margin-right: auto; font-size: 12px; color: var(--text-3); }
.tips-status.error { color: var(--bad); }

/* Emoji suggestions */
.tips-suggest {
  position: absolute;
  z-index: 50;
  width: 270px;
  max-width: calc(100% - 36px);
  max-height: 264px;
  overflow-y: auto;
  padding: 4px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
}
.tips-suggest-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 8px;
  border-radius: 6px;
  text-align: left;
  font-size: 12.5px;
  color: var(--text);
}
.tips-suggest-row img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.tips-suggest-row:hover, .tips-suggest-row.active { background: rgba(var(--accent-rgb), 0.16); }
.tips-suggest-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tips-suggest-id { font-size: 10.5px; color: var(--text-3); flex-shrink: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
  .tips-tool-label { display: none; }
  .tips-add-btn { margin-left: 0; }
  /* Give the text the full width; show move/remove only for the row being edited */
  .tips-row { flex-wrap: wrap; gap: 4px; }
  .tips-style-btn { width: 24px; }
  .tips-row-tools { display: none; width: 100%; justify-content: flex-end; padding-top: 0; opacity: 1; }
  .tips-row:focus-within .tips-row-tools { display: flex; }
  .tips-icon-btn { width: 34px; height: 30px; }
}

/* ── Admin dashboard: Controls, Completed and the main card share one height ── */
.vgt-layout:has(.vgt-app.panel-open-left) .vgt-app,
.vgt-layout:has(.vgt-app.panel-open-left) #admin-controls-panel,
.vgt-layout:has(.vgt-app.panel-open-left) #completed-side-panel { height: calc(100vh - 56px); }
html.compact .vgt-layout:has(.vgt-app.panel-open-left) .vgt-app,
html.compact .vgt-layout:has(.vgt-app.panel-open-left) #admin-controls-panel,
html.compact .vgt-layout:has(.vgt-app.panel-open-left) #completed-side-panel { height: calc(100vh - 28px); }

/* ── Compact mode (html.compact, toggled by the Aa button) ─────── */
html.compact body { font-size: 13px; }
html.compact .vgt-layout { padding: 14px 16px; }
html.compact .vgt-app, html.compact .panel { max-height: calc(100vh - 28px); }
html.compact .panel { top: 14px; gap: 6px; }
html.compact .vgt-app { gap: 10px; padding: 14px 16px; min-height: min(480px, calc(100vh - 28px)); }
html.compact .vgt-page { gap: 10px; margin-right: -13px; padding-right: 7px; }

html.compact .brand-icon { width: 32px; height: 32px; }
html.compact .brand-title { font-size: 15px; }
html.compact .brand-sub { font-size: 11px; }
html.compact .header-actions { gap: 6px; }
html.compact .vgt-world { font-size: 11px; padding: 3px 8px; }
html.compact .vgt-admin-btn { padding: 4px 9px; font-size: 11.5px; }
html.compact .icon-btn { width: 26px; height: 26px; font-size: 11px; }
html.compact .game-nav { padding: 3px; }
html.compact .game-nav a { padding: 5px 8px; font-size: 12px; }
html.compact .vgt-submissions-status { padding: 4px 10px; font-size: 11.5px; }
html.compact .vgt-tab { padding: 7px 4px 8px; font-size: 12.5px; }

html.compact .btn { padding: 6px 10px; font-size: 12px; }
html.compact .btn-lg { padding: 9px 12px; font-size: 13px; }
html.compact .input, html.compact .select { padding: 8px 10px; font-size: 13px; }
html.compact .field-label { font-size: 10.5px; }
html.compact .check-item { padding: 7px 10px; font-size: 12.5px; }
html.compact .vgt-alert-card { padding: 14px 12px 12px; }
html.compact .alert-icon { font-size: 24px; margin-bottom: 4px; }
html.compact .alert-title { font-size: 15px; }
html.compact .alert-sub { font-size: 12px; }
html.compact .vgt-join-btn { padding: 10px; font-size: 13.5px; }
html.compact .position-card { padding: 10px 14px; }
html.compact .position-value { font-size: 26px; }

html.compact .queue-title { font-size: 13.5px; }
html.compact .count-badge { font-size: 11px; padding: 1px 8px; }
html.compact .vgt-queue-list { gap: 3px; }
html.compact .vgt-queue-item { padding: 5px 9px; gap: 7px; border-radius: 7px; }
html.compact .vgt-queue-rank { font-size: 11px; min-width: 26px; }
html.compact .vgt-queue-name { font-size: 12.5px; }
html.compact .vgt-queue-name .you-tag { font-size: 9px; padding: 0 5px; }
html.compact .vgt-badge { font-size: 9.5px; padding: 2px 6px; }
html.compact .vgt-admin-action { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
html.compact .vgt-admin-actions { gap: 4px; }
html.compact .vgt-drag-handle { font-size: 13px; }
html.compact .vgt-queue-state { padding: 20px 0; font-size: 12.5px; }
html.compact .vgt-completed-panel { padding-top: 8px; }
html.compact .vgt-completed-toggle { padding: 6px 10px; font-size: 12px; }
html.compact .vgt-completed-item { padding: 4px 9px; font-size: 12px; }
html.compact .vgt-completed-list { max-height: 150px; gap: 3px; }
html.compact #queue-list .oth-queue-meta, html.compact #queue-list .oth-queue-tags { padding-left: 34px; }
html.compact .oth-queue-meta { font-size: 11px; }
html.compact .oth-ach-tag { font-size: 10px; padding: 1px 6px; }

html.compact .stats { padding: 10px 12px; }
html.compact .vgt-info-stat { font-size: 11.5px; padding: 3px 8px; }
html.compact .vgt-info-fc-name { font-size: 17px; }
html.compact .card { padding: 12px 14px; }
html.compact .card-title { font-size: 10.5px; margin-bottom: 7px; }
html.compact .tips { gap: 6px; }
html.compact .tips li { font-size: 12.5px; padding-left: 15px; }
html.compact .tips li::before { width: 6px; height: 6px; top: 7px; }
html.compact .oth-info-note { font-size: 12.5px; }

html.compact .panel-title { font-size: 12px; padding-bottom: 6px; }
html.compact .vgt-completed-side-list, html.compact .vgt-skipped-list { gap: 3px; }
html.compact .vgt-completed-side-item, html.compact .vgt-skipped-item { padding: 5px 8px; font-size: 12px; }
html.compact .vgt-chat-msg { padding: 6px 8px; font-size: 12px; }
html.compact .vgt-completed-side-search, html.compact .vgt-chat-input, html.compact .vgt-ac-world-input { padding: 5px 8px; font-size: 12px; }
html.compact .vgt-chat-send { padding: 5px 10px; font-size: 11px; }
html.compact .vgt-unskip-btn, html.compact .vgt-skip-complete-btn { font-size: 10px; padding: 3px 6px; }
html.compact .vgt-ac-section { padding: 7px 0; gap: 4px; }
html.compact .vgt-ac-label { font-size: 11.5px; }
html.compact .vgt-ac-desc { font-size: 10.5px; }
html.compact .vgt-ac-status { font-size: 10px; padding: 1px 7px; }
html.compact .vgt-ac-count { font-size: 15px; }
html.compact .vgt-ac-btn { padding: 5px 8px; font-size: 11.5px; }

html.compact .list-page .list { gap: 3px; max-height: calc(100vh - 230px); }
html.compact .list-page .item { padding: 5px 10px; font-size: 12.5px; }

/* ── Responsive ────────────────────────────────────────────────── */
/* Admin dashboard: keep all five columns on one row down to ~1300px */
/* The narrower sizes only apply while the admin panels are open
   (the script adds .panel-open-left to the app when they are). */
@media (max-width: 1600px) {
  .vgt-layout:has(.vgt-app.panel-open-left) { --panel-w: 210px; --app-w: 440px; --panel-pad: 12px; gap: 12px; }
  .vgt-layout:has(.vgt-app.panel-open-left) .panel-chat { width: 225px; }
}
@media (max-width: 1400px) {
  .vgt-layout:has(.vgt-app.panel-open-left) { --panel-w: 195px; --app-w: 410px; gap: 10px; }
  .vgt-layout:has(.vgt-app.panel-open-left) .panel-chat { width: 205px; }
  .vgt-layout:has(.vgt-app.panel-open-left) .brand-sub { display: none; }
  /* Keep the header on one line in the narrower admin card */
  .vgt-layout:has(.vgt-app.panel-open-left) .brand { gap: 8px; }
  .vgt-layout:has(.vgt-app.panel-open-left) .brand-icon { width: 34px; height: 34px; }
  .vgt-layout:has(.vgt-app.panel-open-left) .header-actions { gap: 6px; }
  .vgt-layout:has(.vgt-app.panel-open-left) .vgt-world { padding: 4px 8px; }
}
/* Below that, stack: app first, panels flow underneath */
@media (max-width: 1300px) {
  .vgt-layout, .vgt-layout:has(.vgt-app.panel-open-left) { --panel-w: 228px; --app-w: 480px; --panel-pad: 14px; gap: 16px; }
  .vgt-layout { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
  .side { display: contents; }
  .vgt-app, html.compact .vgt-app { order: -1; width: 100%; max-height: none; min-height: 0; }
  .vgt-page, html.compact .vgt-page { overflow: visible; scrollbar-gutter: auto; margin-right: 0; padding-right: 0; }
  .vgt-queue-list { flex: none; max-height: min(62vh, 600px); }
  .panel, html.compact .panel { position: static; max-height: none; flex: 1 1 240px; max-width: 380px; }
  /* No room beside the card: the links become plain buttons at the bottom of it */
  .vgt-app .panel-links, html.compact .vgt-app .panel-links { position: static; width: auto; max-width: none; flex: none; padding: 0; background: none; border: none; box-shadow: none; }
  .vgt-app .panel-links .panel-title { display: none; }
  .vgt-layout:has(.vgt-app.panel-open-left) .vgt-app,
  .vgt-layout:has(.vgt-app.panel-open-left) #admin-controls-panel,
  .vgt-layout:has(.vgt-app.panel-open-left) #completed-side-panel,
  html.compact .vgt-layout:has(.vgt-app.panel-open-left) .vgt-app,
  html.compact .vgt-layout:has(.vgt-app.panel-open-left) #admin-controls-panel,
  html.compact .vgt-layout:has(.vgt-app.panel-open-left) #completed-side-panel { height: auto; }
  .panel-chat, .vgt-layout:has(.vgt-app.panel-open-left) .panel-chat { width: auto; }
  .panel-info { max-width: var(--app-w); }
  .panel-scroll, .vgt-completed-side-list, .vgt-skipped-list, .vgt-chat-messages { max-height: 420px; }
}

@media (max-width: 640px) {
  .vgt-layout { padding: 12px 10px 36px; gap: 12px; }
  .vgt-app { min-height: 0; padding: 16px 14px; border-radius: 14px; gap: 14px; }
  .panel { width: 100%; max-width: none; flex-basis: 100%; }
  .brand-icon { width: 36px; height: 36px; }
  .brand-title { font-size: 17px; }
  .brand-sub { display: none; }
  .game-nav a { padding: 8px 4px; font-size: 12.5px; }
  .vgt-tab { font-size: 13px; padding: 10px 2px 11px; }
  .vgt-queue-list { max-height: none; overflow: visible; }
  .vgt-queue-item { padding: 10px; gap: 8px; }
  .vgt-queue-rank { min-width: 26px; }
  #queue-list .oth-queue-meta, #queue-list .oth-queue-tags { padding-left: 34px; }
  .stats { padding: 14px; gap: 8px; }
  .vgt-info-stat { font-size: 11.5px; padding: 3px 8px; }
  .vgt-info-fc-name { font-size: 17px; }
  .position-value { font-size: 28px; }
  .list-page .list { max-height: none; }
}

@media (max-width: 380px) {
  .header-actions { gap: 6px; }
  .vgt-world { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
