/* WhaleChat dev UI styling (WhaleTracker-inspired) */

:root {
  --wc-bg: #111417;
  --wc-bg-2: #0a0d12;
  --wc-panel: rgba(26, 24, 21, 0.9);
  --wc-panel-border: #6b6b6b;
  --wc-row-sep: rgba(255, 255, 255, 0.05);
  --wc-text: #efefef;
  --wc-text-dim: #b8b8b8;
  --wc-text-faint: #7f7f7f;
  --wc-accent: #f3cf67;
  --wc-input: rgba(15, 19, 27, 0.92);
  --wc-input-border: #3c4351;
  --wc-button: #2f3b52;
  --wc-button-hover: #41506b;
  --wc-button-border: #5d6a82;
  --wc-error: #ff9b9b;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--wc-text);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  background:
    linear-gradient(rgba(12, 14, 20, 0.35), rgba(12, 14, 20, 0.35)),
    url("/stats/assets/background_product_pro.jpg") center / cover fixed,
    radial-gradient(circle at 15% 10%, rgba(106, 129, 180, 0.14), transparent 42%),
    radial-gradient(circle at 85% 20%, rgba(250, 218, 132, 0.12), transparent 45%),
    linear-gradient(180deg, var(--wc-bg), var(--wc-bg-2));
}

a {
  color: inherit;
}

.whalechat-page-shell {
  min-height: 100vh;
  padding: 1rem;
}

.whalechat-page-inner {
  width: min(100%, 980px);
  margin: 0 auto;
}

.whalechat-page-inner--wide {
  width: min(80vw, 1920px);
}

#chat-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0.5rem 0.75rem 1rem;
}

.chat-nav-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-family: "Heebo", "Helvetica Neue", Arial, sans-serif;
}

.chat-nav-row-top {
  margin: 0 4px 0.65rem;
}

.chat-nav-row .chat-home-btn {
  padding: 0.38rem 0.9rem;
  line-height: 1.15;
  white-space: nowrap;
}

.chat-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #f2f4f8;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.38rem 0.9rem;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
  line-height: 1.15;
  white-space: nowrap;
}

.chat-nav-pill:hover {
  background: rgba(127, 200, 255, 0.12);
  border-color: rgba(127, 200, 255, 0.35);
}

.chat-nav-pill:active {
  transform: translateY(1px);
}

.chat-home-btn.site-nav-blog,
.chat-nav-pill.site-nav-blog {
  border-color: rgba(242, 162, 74, 0.2);
  background: rgba(242, 162, 74, 0.04);
  color: #f4dfc4;
}

.chat-home-btn.site-nav-blog:hover,
.chat-nav-pill.site-nav-blog:hover {
  border-color: rgba(242, 162, 74, 0.3);
  background: rgba(242, 162, 74, 0.08);
}

.chat-home-btn.site-nav-navy,
.chat-nav-pill.site-nav-navy {
  border-color: rgba(93, 106, 130, 0.28);
  background: rgba(47, 59, 82, 0.14);
  color: #e7eefc;
}

.chat-home-btn.site-nav-navy:hover,
.chat-nav-pill.site-nav-navy:hover {
  border-color: rgba(93, 106, 130, 0.42);
  background: rgba(65, 80, 107, 0.2);
}

.chat-home-btn.site-nav-gold,
.chat-nav-pill.site-nav-gold {
  border-color: rgba(243, 207, 103, 0.2);
  background: rgba(243, 207, 103, 0.04);
  color: #efe6c2;
}

.chat-home-btn.site-nav-gold:hover,
.chat-nav-pill.site-nav-gold:hover {
  border-color: rgba(243, 207, 103, 0.3);
  background: rgba(243, 207, 103, 0.08);
}

.chat-nav-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 207, 103, 0.3);
  background: rgba(243, 207, 103, 0.08);
  color: #f6df93;
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
}

.chat-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #f2f4f8;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.85rem;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
  line-height: 1.15;
  white-space: nowrap;
}

.chat-home-btn:hover {
  background: rgba(127, 200, 255, 0.12);
  border-color: rgba(127, 200, 255, 0.35);
}

.chat-home-btn:active {
  transform: translateY(1px);
}

.chat-home-btn:focus-visible {
  outline: 2px solid rgba(243, 207, 103, 0.8);
  outline-offset: 2px;
}

.wt-page-pad {
  margin: 0 auto;
  padding: 0.5rem 0.75rem 1rem;
  color: #edf1f8;
}

.wt-shell {
  background: rgba(18, 20, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.wt-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.wt-topbar h1 {
  margin: 0;
  font-size: 1rem;
}

.wt-topbar p {
  margin: 0.2rem 0 0;
  color: #b8b8b8;
  font-size: 0.85rem;
}

.wt-topbar-badge {
  color: #d7dceb;
  font-size: 0.85rem;
  background: rgba(127, 200, 255, 0.1);
  border: 1px solid rgba(127, 200, 255, 0.16);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  white-space: nowrap;
}

.wt-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(10, 12, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wt-content-shell {
  background: rgba(12, 14, 20, 0.55);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem;
}

.wt-content-box {
  min-height: 220px;
  background: rgba(14, 16, 22, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.5rem;
}

.wt-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #edf1f8;
  font-weight: 600;
  font-size: 0.88rem;
}

.wt-pill-link:hover {
  background: rgba(127, 200, 255, 0.13);
}

.wt-pill-link.is-active {
  background: rgba(127, 200, 255, 0.2);
  border-color: rgba(127, 200, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(127, 200, 255, 0.1);
}

.wt-action-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(127, 200, 255, 0.16);
  color: #eef3ff;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.wt-action-btn:hover {
  background: rgba(127, 200, 255, 0.24);
}

.wt-action-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.wt-accent-link {
  color: #f2a24a;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(242, 162, 74, 0.28);
}

.wt-accent-link:hover {
  color: #ffc278;
  text-shadow: 0 0 10px rgba(242, 162, 74, 0.4);
}

.chat-home-btn[aria-current="page"],
.chat-nav-pill[aria-current="page"] {
  cursor: default;
  opacity: 0.5;
}

.chat-home-btn[aria-current="page"]:hover,
.chat-nav-pill[aria-current="page"]:hover {
  background: inherit;
  border-color: inherit;
  transform: none;
}

.tab-button[aria-current="page"],
.tab-button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}

.tab-button[aria-current="page"]:hover,
.tab-button[aria-disabled="true"]:hover {
  background: inherit;
  border-color: inherit;
  transform: none;
}

@keyframes nav-flicker {
  0%,
  100% {
    text-shadow:
      0 -1px 2px #fff,
      0 -2px 4px #ff3,
      0 -5px 10px #f90,
      0 -8px 16px #c33;
  }

  50% {
    text-shadow:
      0 -1px 1px #fff,
      0 -2px 3px #fc0,
      0 -4px 8px #f60,
      0 -6px 12px #a22;
  }
}

.nav-hub-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem;
  color: #eee;
}

.nav-hub-shell {
  background: rgba(18, 20, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.nav-hub-title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.nav-hub-subtitle {
  margin: 0 0 0.8rem;
  color: #b8c0d0;
}

.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.nav-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(18, 20, 28, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.nav-card:hover {
  border-color: rgba(127, 200, 255, 0.34);
  background: rgba(20, 23, 33, 0.86);
}

.nav-card-title {
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.nav-card-title.fire {
  animation: nav-flicker 2s infinite;
}

.nav-card-desc {
  color: #c8d3e4;
  font-size: 0.92rem;
  line-height: 1.25;
}

.nav-card-open {
  margin-top: 0.45rem;
  color: #9fd1ff;
  font-weight: 600;
  font-size: 0.9rem;
}

.online-page {
  max-width: 100%;
}

.online-topbar {
  max-width: 100%;
  margin-bottom: 0.6rem;
  color: #eee;
}

.online-nav-count {
  min-width: 72px;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 207, 103, 0.4);
  background: rgba(243, 207, 103, 0.08);
  color: #f6df93;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.online-shell {
  background: rgba(18, 20, 28, 0.92);
  border-radius: 16px;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logs-mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.logs-subnav,
.logs-current-subnav {
  align-items: center;
}

.logs-page-button {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e8edf8;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.logs-page-button:hover {
  background: rgba(127, 200, 255, 0.12);
}

.logs-page-button.active {
  background: rgba(127, 200, 255, 0.2);
  border-color: rgba(127, 200, 255, 0.28);
}

.logs-page-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.logs-container .logs-fragment-root {
  display: grid;
  gap: 0.6rem;
}

.logs-container .log-entry,
.current-log-container .log-entry {
  margin: 0;
  border-radius: 12px;
  background: rgba(18, 20, 29, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.logs-container .log-summary,
.current-log-container .log-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.02);
}

.logs-container .log-body,
.current-log-container .log-body {
  padding: 0.85rem 0.9rem;
}

.logs-container .gamemode-label,
.current-log-container .gamemode-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: rgba(127, 200, 255, 0.14);
  border: 1px solid rgba(127, 200, 255, 0.18);
  color: #bfe4ff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mapsdb-page {
  min-height: 100vh;
  padding: 1rem;
}

.mapsdb-shell {
  width: min(80vw, 1920px);
  margin: 0 auto;
  color: #edf1f8;
}

.mapsdb-card {
  width: 100%;
  background: linear-gradient(160deg, rgba(18, 23, 34, 0.85), rgba(11, 14, 22, 0.9));
  border-radius: 18px;
  padding: 1.1rem 1.1rem 1rem;
  border: 1px solid rgba(142, 186, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.mapsdb-page-actions {
  display: flex;
  margin-bottom: 0.9rem;
}

.mapsdb-page-actions .tab-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0;
}

.mapsdb-page-actions .tab-button,
.mapsdb-page-actions .tab-button:link,
.mapsdb-page-actions .tab-button:visited {
  padding: 0.45rem 0.95rem;
}

.mapsdb-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  padding: 0.1rem 0.15rem 0;
}

.mapsdb-title-row h1 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.mapsdb-title-row h1 span {
  color: #66b5ff;
}

.mapsdb-sub {
  margin: 0.2rem 0 0;
  color: #b5bfd0;
  font-size: 0.9rem;
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.chat-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
  color: #f7f7f7;
}

.chat-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--wc-text-dim);
}

.chat-topbar-right {
  display: flex;
  align-items: center;
}

.chat-online-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 207, 103, 0.4);
  background: rgba(243, 207, 103, 0.08);
  color: #f6df93;
  font-size: 0.82rem;
  font-weight: 700;
}

#chat-panel.players-list {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  height: 70vh;
  max-height: 70vh;
  margin: 0 4px;
  overflow: hidden;
  border: 0.2em solid var(--wc-panel-border);
  border-radius: 6px;
  background-color: var(--wc-panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

#chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 42px 8px 8px;
  scroll-behavior: auto;
}

#chat-messages::-webkit-scrollbar {
  width: 10px;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

#chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 2px 0;
  border-bottom: 1px solid var(--wc-row-sep);
}

.chat-row:last-child {
  border-bottom: 0;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  object-fit: cover;
  flex: 0 0 32px;
}

.chat-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--wc-text-dim);
  font-size: 0.875rem;
}

.chat-name {
  font-weight: 700;
  min-width: 0;
  line-height: 1.1;
}

.chat-timestamp {
  color: var(--wc-text-faint);
  font-size: 0.75rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

.chat-text {
  color: var(--wc-text);
  font-size: 0.95rem;
  line-height: 1.28;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.chat-text p {
  margin: 0;
}

.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--wc-text-dim);
  font-size: 0.95rem;
}

.chat-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 95%;
  margin: 0 auto;
}

#chat-input {
  flex: 1;
  min-width: 200px;
  min-height: 56px;
  resize: vertical;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--wc-input-border);
  background: var(--wc-input);
  color: #f4f4f4;
  font: inherit;
  line-height: 1.25;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

#chat-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

#chat-input:focus {
  outline: none;
  border-color: #7ea2df;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(126, 162, 223, 0.2);
}

#chat-send {
  flex: 0 0 auto;
  min-width: 84px;
  border-radius: 8px;
  border: 1px solid var(--wc-button-border);
  background: linear-gradient(180deg, #435777, var(--wc-button));
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#chat-send:hover {
  background: linear-gradient(180deg, #51688f, var(--wc-button-hover));
}

#chat-send:active {
  transform: translateY(1px);
}

#chat-send:focus-visible {
  outline: 2px solid rgba(126, 162, 223, 0.7);
  outline-offset: 1px;
}

.chat-status {
  min-height: 1.1rem;
  margin: 0 6px;
  font-size: 0.85rem;
  color: var(--wc-text-dim);
}

.chat-status-error {
  color: var(--wc-error);
}

.chat-nav-stack {
  position: absolute;
  right: 2px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.navarrow {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 120ms ease, transform 120ms ease, filter 120ms ease;
}

.navarrow:hover {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
}

.navarrow:active {
  transform: translateY(1px);
}

.navarrow:focus-visible {
  outline: 2px solid rgba(243, 207, 103, 0.8);
  outline-offset: 1px;
  border-radius: 4px;
}

.navarrow img {
  display: block;
  width: 28px;
  height: auto;
  image-rendering: auto;
  pointer-events: none;
}

.navarrow-lock img {
  width: 34px;
}

.navarrow-lock {
  margin-bottom: 24px;
}

.navarrow-top {
  margin-bottom: 14px;
}

.navarrow-lock[aria-pressed="true"],
.navarrow.ring-2.ring-emerald-400 {
  filter: drop-shadow(0 0 5px rgba(135, 224, 153, 0.6));
}

#flash-group {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 100;
}

@media (max-width: 700px) {
  .whalechat-page-shell {
    padding: 0.2rem;
    min-height: 100dvh;
  }

  .whalechat-page-inner,
  .whalechat-page-inner--wide {
    width: 100%;
    margin: 0;
  }

  .wt-page-pad {
    padding: 0.2rem 0.25rem 0.45rem;
  }

  .wt-shell {
    border-radius: 12px;
    padding: 0.55rem;
  }

  .wt-subnav,
  .wt-content-shell {
    padding: 0.5rem;
    border-radius: 10px;
  }

  .wt-content-box {
    padding: 0.35rem;
  }

  .chat-topbar {
    padding: 0.45rem 0.55rem;
  }

  .chat-nav-row-top {
    margin: 0 0 0.35rem;
    gap: 0.35rem;
  }

  .chat-home-btn,
  .chat-nav-pill {
    padding: 0.34rem 0.68rem;
    font-size: 0.8rem;
  }

  .chat-nav-pill-count {
    min-width: 46px;
    padding: 0.1rem 0.35rem;
    font-size: 0.72rem;
  }

  .wt-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.5rem 0.55rem;
  }

  .wt-topbar-badge {
    white-space: normal;
  }

  .chat-title {
    font-size: 0.95rem;
  }

  .chat-subtitle {
    font-size: 0.8rem;
  }

  #chat-panel.players-list {
    margin: 0;
    min-height: 0;
    height: 64dvh;
    max-height: 64dvh;
  }

  #chat-messages {
    padding-right: 40px;
  }

  .chat-nav-stack {
    gap: 10px;
    right: 1px;
    bottom: 6px;
  }

  .chat-row {
    gap: 8px;
  }

  .chat-avatar {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .chat-text {
    font-size: 0.9rem;
  }

  .chat-form {
    max-width: 100%;
    gap: 6px;
    flex-direction: column;
  }

  #chat-send {
    min-width: 72px;
    padding-inline: 0.55rem;
    min-height: 42px;
  }

  #chat-input {
    min-width: 0;
    min-height: 44px;
    padding: 0.5rem 0.6rem;
  }

  .chat-status {
    margin: 0 2px;
    font-size: 0.78rem;
  }

  .nav-hub-page {
    padding: 0.35rem;
  }

  .nav-hub-shell {
    padding: 0.75rem;
    border-radius: 12px;
  }

  .nav-cards {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .nav-card {
    padding: 0.75rem;
  }

  .nav-card-desc {
    font-size: 0.86rem;
  }

  .online-shell {
    padding: 0.6rem;
    border-radius: 12px;
  }

  .online-topbar {
    margin-bottom: 0.45rem;
  }

  .logs-subnav,
  .logs-current-subnav {
    align-items: flex-start;
  }

  .logs-page-button {
    padding: 0.34rem 0.6rem;
    font-size: 0.8rem;
  }

  .logs-container .log-summary,
  .current-log-container .log-summary {
    padding: 0.55rem 0.6rem;
    gap: 0.35rem;
  }

  .logs-container .log-body,
  .current-log-container .log-body {
    padding: 0.55rem 0.6rem;
  }

  .mapsdb-page {
    padding: 0.35rem;
  }

  .mapsdb-shell {
    width: 100%;
  }

  .mapsdb-card {
    padding: 0.7rem 0.65rem 0.6rem;
    border-radius: 14px;
  }

  .mapsdb-title-row {
    margin-bottom: 0.55rem;
  }

  .mapsdb-title-row h1 {
    font-size: 1.04rem;
  }

  .mapsdb-page-actions {
    margin-bottom: 0.55rem;
  }

  .mapsdb-page-actions .tab-controls {
    gap: 0.35rem;
  }

  .mapsdb-page-actions .tab-button,
  .mapsdb-page-actions .tab-button:link,
  .mapsdb-page-actions .tab-button:visited {
    padding: 0.4rem 0.65rem;
  }
}
