/* Argentina administration panel. */
:root[data-theme='light'] .metric:nth-child(2) > strong {
  color: #24724c;
}
:root[data-theme='light'] .metric:nth-child(3) > strong {
  color: #8c581a;
}
:root[data-theme='light'] .status-chip {
  color: #24724c;
}
:root[data-theme='light'] .status-chip.muted {
  color: #9c2a38;
}
:root[data-theme='light'] .activity-chart [stroke='#f4a6c3'] {
  stroke: #aa3f6a;
}
:root[data-theme='light'] .activity-chart circle[fill='#f4a6c3'] {
  fill: #aa3f6a;
}
:root[data-theme='light'] .activity-chart [stroke='#63cda5'] {
  stroke: #24765a;
}
:root[data-theme='light'] .activity-chart circle[fill='#63cda5'] {
  fill: #24765a;
}
.activity-chart:has(svg) {
  display: block;
}
.activity-chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart-grid {
  stroke: var(--border);
  stroke-dasharray: 4 5;
}
.chart-label {
  fill: var(--muted);
  font-size: 12px;
}
.chart-line {
  stroke-dasharray: 2200;
  animation: chart-reveal 0.8s ease both;
}
@keyframes chart-reveal {
  from {
    stroke-dashoffset: 2200;
  }
  to {
    stroke-dashoffset: 0;
  }
}
:root {
  --radius: 8px;
}
:root[data-theme='dark'] {
  --bg: #101416;
  --surface: #222728;
  --ink: #f2f4f4;
  --muted: #a3adae;
  --border: #343b3d;
  --pink: #ffb6ce;
  --pink-deep: #ffb6ce;
  --accent-surface: #3c2832;
}
body {
  background: var(--bg);
  background-image: none;
}
.shell {
  grid-template-columns: 220px minmax(0, 1fr);
}
.sidebar {
  padding: 26px 16px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.sidebar .brand {
  font-size: 24px;
}
.sidebar-caption {
  margin: 14px 0 25px;
  letter-spacing: 0.13em;
  font-size: 10px;
}
.sidebar #servers-back {
  font-size: 11px;
  margin-bottom: 20px;
}
.sidebar nav button {
  border-radius: 6px;
  padding: 11px 12px;
  margin: 3px 0;
  font-size: 13px;
  transition:
    background 0.18s,
    transform 0.18s;
}
.sidebar nav button.active {
  background: var(--pink);
  color: #281922;
  box-shadow: none;
}
.sidebar nav button:hover {
  transform: translateX(3px);
}
.kawaii-note,
.server-hint,
.guild-overview,
.sidebar-bottom .bot-note {
  display: none !important;
}
.workspace {
  max-width: 1600px;
  padding: 0 28px 28px;
}
.topbar {
  min-height: 72px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.page-heading {
  margin: 0 0 24px;
}
.page-heading h1 {
  font-size: 25px;
  margin: 5px 0;
  letter-spacing: -0.03em;
}
.page-heading .eyebrow {
  font-size: 10px;
}
.card {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
  padding: 20px;
}
.card h2 {
  font-size: 15px;
  margin-bottom: 8px;
}
.button,
button,
input,
select,
textarea {
  border-radius: 6px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 19px 21px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric > span {
  font-size: 12px;
  color: var(--muted);
}
.metric > strong {
  font-size: 29px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.metric:nth-child(2) > strong {
  color: #83dbb2;
}
.metric:nth-child(3) > strong {
  color: #ffc779;
}
.table-tools {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.table-tools label {
  flex: 1;
  min-width: 220px;
  margin: 0;
}
.table-tools select {
  width: auto;
  min-width: 150px;
}
.table-scroll {
  overflow: auto;
}
.members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.members-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
}
.members-table th,
.members-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--border);
}
.members-table tr:hover td {
  background: var(--accent-surface);
}
.member-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 215px;
}
.member-identity img {
  border-radius: 50%;
  object-fit: cover;
}
.member-identity strong,
.member-identity small {
  display: block;
}
.member-identity small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.role-chip {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--accent-surface);
  color: var(--pink-deep);
  font-size: 10px;
  margin: 2px;
}
.status-chip {
  display: inline-block;
  background: #27745128;
  color: #75d4aa;
  border: 1px solid #40876550;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
}
.status-chip.muted {
  background: #95404328;
  color: #ff8c91;
  border-color: #95404370;
}
.activity-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  min-height: 200px;
  padding: 18px 0;
}
.chart-day {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 12px;
}
.chart-tracks {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 8px;
}
.chart-tracks meter {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 22px;
  height: 150px;
  accent-color: var(--pink);
}
.chart-day small {
  color: var(--muted);
  font-size: 11px;
}
.appeal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}
.appeal-grid .card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.appeal-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: 85vh;
  padding: 24px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 30px 100px #0008;
}
.appeal-dialog::backdrop {
  background: #080b10bd;
  backdrop-filter: blur(4px);
}
.dialog-heading,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dialog-heading h2 {
  font-size: 18px;
  margin: 0;
}
.dialog-heading button {
  font-size: 25px;
}
.appeal-messages {
  max-height: 40vh;
  overflow: auto;
  margin: 20px 0;
}
.message {
  background: var(--bg);
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 7px;
  border: 1px solid var(--border);
}
.message.staff {
  border-left: 3px solid var(--pink);
}
.message strong {
  font-size: 12px;
}
.message small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.dialog-actions {
  margin: 16px 0;
  flex-wrap: wrap;
}
.button.danger {
  background: #a63445;
  color: white;
}
.argentina-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: radial-gradient(ellipse at 50% 20%, #ffb6ce12, transparent 65%);
}
.argentina-login > button {
  position: absolute;
  top: 24px;
  right: 24px;
}
.login-panel {
  width: min(440px, 100%);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 42px 32px;
  box-shadow: 0 25px 90px #0002;
}
.login-panel > img {
  border-radius: 22px;
  display: block;
  margin: 0 auto 25px;
}
.login-panel h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 20px 0;
}
.login-panel p {
  color: var(--muted);
  margin-bottom: 28px;
}
.login-panel .large {
  display: flex;
  justify-content: center;
  width: 100%;
}
.login-caption {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 24px;
}
.workspace-footer {
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 30px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .workspace {
    padding: 0 18px 20px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    padding: 14px;
    min-height: 0;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  .sidebar nav button {
    flex: none;
    margin: 0;
  }
  .sidebar-caption,
  #servers-back {
    display: none;
  }
  .sidebar-bottom {
    display: block;
    position: static;
    padding: 0;
    margin-top: 8px;
  }
  .sidebar-bottom #logout {
    font-size: 11px;
    width: auto;
    padding: 6px 10px;
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .topbar {
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 0;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric {
    padding: 14px;
  }
  .metric strong {
    font-size: 24px;
  }
  .activity-chart {
    gap: 6px;
  }
  .chart-tracks {
    gap: 2px;
  }
  .chart-tracks meter {
    width: 14px;
  }
  .dialog-actions .button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.argentina-login {
  padding: 60px 24px;
  min-height: 100vh;
}
.login-panel {
  max-width: 480px;
  gap: 18px;
}
.login-panel h1 {
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0;
}
.community-intro,
.community-login-card {
  width: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
}
.community-intro h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}
.community-intro p,
.community-login-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 16px;
}
.community-intro ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  font-size: 0.9rem;
}
.community-login-card {
  text-align: center;
}
.community-login-card .button {
  width: 100%;
  margin-bottom: 16px;
}
.community-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.community-actions .card {
  padding: 32px;
}
.community-actions h2 {
  font-size: 1.35rem;
}
.community-actions .button {
  margin-top: 18px;
}
@media (max-width: 600px) {
  .community-actions {
    grid-template-columns: 1fr;
  }
  .argentina-login {
    padding: 48px 20px;
  }
}

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(480px, 100%);
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.login-panel > img {
  margin: 0 auto 4px;
}
.community-login-card {
  max-width: 360px;
}

.argentina-login {
  padding: 40px 24px;
}
.login-panel {
  gap: 14px;
}
.login-panel h1 {
  font-size: 2.7rem;
}
.login-panel > img {
  width: 72px;
  height: 72px;
}
.community-intro,
.community-login-card {
  padding: 20px;
}
.community-intro p,
.community-login-card p {
  font-size: 0.82rem;
  margin-bottom: 12px;
}
.community-intro ul {
  font-size: 0.82rem;
  gap: 10px;
}

.request-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.request-screenshots img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
}
/* Polished community workspace */
:root {
  --radius: 16px;
}
:root[data-theme='dark'] {
  --bg: #0d1218;
  --surface: #19212b;
  --border: #2b3845;
  --accent-surface: #243345;
}
body {
  background: radial-gradient(ellipse at 85% 0%, #65b9ef0b, transparent 55%), var(--bg);
}
.sidebar {
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.sidebar nav button {
  border-radius: 10px;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.sidebar nav button.active {
  box-shadow: 0 4px 20px #ffb6ce18;
}
.sidebar .brand img {
  box-shadow:
    0 0 0 3px var(--border),
    0 8px 22px #0003;
}
.topbar {
  gap: 16px;
}
.page-heading h1 {
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.04em;
}
.card,
.metric {
  border-radius: 16px;
  box-shadow: 0 6px 24px #0000000b;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.card:hover,
.metric:hover {
  border-color: color-mix(in srgb, var(--pink) 35%, var(--border));
  box-shadow: 0 12px 30px #00000016;
}
.metric {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  justify-content: center;
  border-top: 2px solid #79c6f4;
}
.metric:nth-child(2) {
  border-top-color: #83dbb2;
}
.metric:nth-child(3) {
  border-top-color: #ffc779;
}
.metric:nth-child(4) {
  border-top-color: var(--pink);
}
.metric > strong {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.04em;
}
.metric-updated {
  animation: metric-update 0.45s ease-out;
}
.live-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.live-toolbar .hint {
  margin: 0;
  font-size: 11px;
}
.live-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--ink);
}
.live-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #63cda5;
  box-shadow: 0 0 0 4px #63cda514;
  animation: live-pulse 2.4s ease-in-out infinite;
}
.disconnected .live-status::before {
  background: #ffc779;
  animation: none;
}
.chart-legend {
  display: flex;
  gap: 20px;
  font-size: 12px;
  flex-wrap: wrap;
}
.legend-commands {
  color: var(--pink-deep);
}
.legend-sanctions {
  color: #63cda5;
}
:root[data-theme='light'] .legend-sanctions {
  color: #24765a;
}
.button,
button,
input,
select,
textarea {
  border-radius: 10px;
}
.button {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px #0002;
}
.button:active:not(:disabled) {
  transform: translateY(0);
}
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}
.appeal-dialog {
  border-radius: 20px;
}
.appeal-dialog[open] {
  animation: panel-enter 0.24s ease-out;
}
.page-enter > .card,
.page-enter > .metric-grid,
.page-enter > .appeal-grid {
  animation: panel-enter 0.4s ease-out both;
}
.page-enter > :nth-child(2) {
  animation-delay: 40ms;
}
.page-enter > :nth-child(3) {
  animation-delay: 80ms;
}
@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes metric-update {
  from {
    opacity: 0.5;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes live-pulse {
  50% {
    box-shadow: 0 0 0 6px #63cda508;
  }
}
@media (max-width: 700px) {
  .workspace {
    padding: 0 16px 20px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .live-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
