/* webui/src/styles.css */
:root {
  color-scheme: dark;
  --bg: #2f3338;
  --bg-soft: #373c42;
  --panel: #3a3f46;
  --panel-deep: #24282d;
  --line: #4d525a;
  --text: #e5e8ec;
  --muted: #a7adb4;
  --accent: #5e7cff;
  --success: #4ca86b;
  --danger: #d85757;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
html,
body,
#root {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(
      circle at top left,
      rgba(94, 124, 255, 0.08),
      transparent 24%),
    linear-gradient(
      180deg,
      #3a3f45 0%,
      #2c3035 100%);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.shell {
  height: 100%;
  display: grid;
  grid-template-rows: 56px 1fr;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background:
    linear-gradient(
      180deg,
      #4a5057 0%,
      #40454c 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.brand,
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-nav-item {
  border: 0;
  border-radius: 10px;
  padding: 9px 16px;
  background: rgba(25, 28, 32, 0.4);
  color: #d8dde3;
  font-weight: 600;
  cursor: pointer;
}
.top-nav-item:hover {
  background: rgba(25, 28, 32, 0.6);
}
.top-nav-item.active {
  background: var(--accent);
  color: white;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 35% 35%,
      #9ee1ff 0,
      #5e58ff 35%,
      #261549 75%,
      #0f0c1c 100%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04), 0 4px 14px rgba(0, 0, 0, 0.35);
  font-weight: 800;
}
.brand-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}
.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.user-pill {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(25, 28, 32, 0.4);
}
.layout {
  display: grid;
  grid-template-columns: 64px 250px minmax(0, 1fr);
  min-height: 0;
}
.guild-rail {
  padding: 16px 0;
  background: rgba(18, 20, 23, 0.74);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  overflow-y: auto;
}
.guild-pill {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      180deg,
      #ededed,
      #c8c8c8);
  box-shadow: var(--shadow);
}
.guild-pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guild-pill.active {
  outline: 3px solid rgba(136, 177, 255, 0.6);
}
.guild-pill.add {
  color: #dfe4eb;
  font-size: 32px;
  background: #59606a;
}
.sidebar {
  background: rgba(42, 46, 51, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  overflow: auto;
}
.sidebar-head {
  padding: 20px 18px 8px;
  color: #c2c7cf;
  font-size: 15px;
}
.sidebar-search {
  padding: 6px 10px 10px;
}
.sidebar-search input {
  width: 100%;
  background: #1f2328;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}
.sidebar-list {
  padding: 0 8px 16px;
}
.channel-block {
  margin-bottom: 10px;
}
.channel-row,
.queue-row,
.sidebar-action {
  width: 100%;
  border: 0;
  border-radius: 12px;
  color: #d5d8dd;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
}
.channel-row:hover,
.queue-row:hover,
.sidebar-action:hover {
  background: rgba(255, 255, 255, 0.04);
}
.channel-row.active,
.queue-row.active {
  background: rgba(84, 89, 99, 0.85);
}
.queue-list {
  margin-left: 16px;
}
.badge {
  color: #b7a6de;
  font-weight: 800;
}
.sidebar-action {
  margin: 4px 8px 0;
  color: #cdd3da;
}
.empty-note {
  color: var(--muted);
  padding: 6px 14px 6px 26px;
  font-size: 13px;
}
.content {
  overflow: auto;
  padding: 18px;
}
.panel {
  background: rgba(59, 64, 71, 0.88);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  padding: 18px;
}
.empty-panel,
.screen-state {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(38, 42, 47, 0.65);
}
.screen-state {
  height: 100%;
}
.screen-state.error {
  padding: 24px;
}
.screen-state.login {
  padding: 24px;
  display: grid;
  place-items: center;
}
.login-card {
  width: min(520px, 100%);
  background: rgba(59, 64, 71, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.login-card h1 {
  margin: 0;
  font-size: 30px;
}
.login-card p {
  color: var(--muted);
}
.auth-alert,
.auth-note,
.auth-help {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}
.auth-alert {
  border: 1px solid rgba(255, 100, 100, 0.35);
  color: #ffb3b3;
}
.auth-note {
  border: 1px solid rgba(100, 180, 255, 0.25);
  color: #cfe6ff;
}
.auth-help {
  color: var(--muted);
}
.auth-tabs {
  margin-top: 14px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.panel-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 650;
}
.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
}
.panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tabs {
  margin: 16px 0 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tab {
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  background: #5b616a;
  color: #d5d9df;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow);
}
.tab.active {
  background: #a5adbb;
  color: #eef2f7;
}
.editor {
  padding-top: 4px;
}
.section h2 {
  margin: 8px 0 18px;
  font-size: 22px;
  font-weight: 650;
}
.field-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.field-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 18px;
}
.hint {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  font-size: 12px;
}
.tiny-button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 4px 10px;
}
.field-description {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  margin-top: -4px;
}
.input {
  width: 100%;
  background: #1f2328;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
}
.textarea {
  min-height: 120px;
  resize: vertical;
}
.segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, 40px);
  gap: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.segmented button {
  height: 38px;
  border: 0;
  color: var(--text);
  background: #383c41;
}
.segmented button.active.on {
  background: #16c21e;
  color: #fff;
}
.segmented button.active:not(.on) {
  background: #e04545;
  color: #fff;
}
.segmented button.neutral {
  opacity: 0.7;
}
.table-editor {
  display: grid;
  gap: 8px;
}
.table-head,
.table-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) 40px;
}
.table-head {
  background: #4d8c57;
  color: #f1faf2;
  padding: 10px 12px;
  border-radius: 12px 12px 0 0;
}
.table-row {
  align-items: center;
}
.table-row > div {
  min-width: 0;
}
.remove {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #e04545;
  color: white;
  font-size: 24px;
  line-height: 1;
}
.save-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: #4d8c57;
  color: #eaf7ec;
  box-shadow: var(--shadow);
}
.button.secondary {
  background: #4d555f;
}
.button.danger {
  background: #e04545;
}
.status-line {
  color: var(--muted);
}
.lb-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lb-toolbar .input {
  flex: 1;
  min-width: 200px;
}
.lb-filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}
.lb-filter-toggle input {
  cursor: pointer;
}
.lb-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.lb-table th,
.lb-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}
.lb-table tbody tr {
  cursor: pointer;
}
.lb-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.selected-row {
  background: rgba(94, 124, 255, 0.12);
}
.rank-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.link-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.link-badge.linked {
  background: rgba(76, 168, 107, 0.18);
  color: #8ee0ac;
}
.link-badge.unlinked {
  background: rgba(216, 87, 87, 0.18);
  color: #ff9d9d;
}
.table-hint {
  color: var(--muted);
  margin-top: 10px;
  font-size: 13px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal {
  width: min(560px, 100%);
  background: #353a40;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.player-modal {
  width: min(860px, 100%);
}
.player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.player-grid label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.link-player-row {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.link-player-row .modal-actions {
  justify-content: flex-start;
}
.link-player-row select.input {
  max-width: 320px;
}
.analytics-section {
  display: grid;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.analytics-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.analytics-section h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
}
.analytics-section p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.analytics-sync-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(94, 124, 255, 0.14);
  color: #cad2ff;
  font-size: 12px;
  white-space: nowrap;
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.analytics-card {
  background: rgba(31, 35, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px;
  min-height: 100px;
}
.analytics-card-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.analytics-card-value {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  word-break: break-word;
}
.analytics-card-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.analytics-empty {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(31, 35, 40, 0.72);
  color: var(--muted);
  border-radius: 14px;
  padding: 14px;
  line-height: 1.5;
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 56px 220px minmax(0, 1fr);
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .field-description {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .guild-rail,
  .sidebar {
    display: none;
  }
  .top-actions {
    display: none;
  }
  .content {
    padding: 10px;
  }
  .panel-header {
    flex-direction: column;
  }
  .save-row {
    flex-direction: column;
    align-items: stretch;
  }
  .player-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .analytics-section-head {
    flex-direction: column;
  }
}
/*# sourceMappingURL=app.css.map */
