* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #120a1f;
  --card: rgba(39, 16, 64, 0.88);
  --text: #f5e9ff;
  --muted: #6b7280;
  --accent: #d946ef;
  --accent-soft: rgba(217, 70, 239, 0.14);
  --accent-strong: #f472b6;
  --accent-muted: rgba(251, 207, 232, 0.6);
  --border: rgba(248, 187, 255, 0.22);
  --shadow: 0 18px 45px rgba(23, 4, 33, 0.45);
  --glow: 0 0 35px rgba(217, 70, 239, 0.22);
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top, rgba(76, 29, 149, 0.55), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.35), transparent 40%),
    var(--bg);
  color: var(--text);
}

.app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.app-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.app-main {
  min-width: 0;
}

.app-sidebar {
  position: sticky;
  top: 24px;
}

.pool-rate-panel {
  min-height: 200px;
}

.pool-rate-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pool-rate-body .field span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.pool-rate-body select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(39, 16, 64, 0.6);
  border: 1px solid rgba(248, 187, 255, 0.25);
  color: var(--text);
  font-size: 14px;
}

.pool-rate-result {
  min-height: 80px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(31, 18, 53, 0.5);
  border: 1px solid rgba(248, 187, 255, 0.15);
  font-size: 12px;
  line-height: 1.5;
}

.pool-rate-result.loading {
  color: var(--muted);
}

.pool-rate-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(248, 187, 255, 0.1);
}

.pool-rate-item:last-child {
  border-bottom: none;
}

@media (max-width: 1100px) {
  .app-body {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
  }
}

.app-hidden {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(217, 70, 239, 0.18);
  border: 1px solid rgba(248, 187, 255, 0.3);
  font-size: 12px;
  color: #fdf4ff;
}

.ghost {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(39, 16, 64, 0.65);
  color: #fdf4ff;
  border: 1px solid rgba(248, 187, 255, 0.3);
  cursor: pointer;
}

.logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(217, 70, 239, 0.2);
  border: 1px solid rgba(248, 187, 255, 0.4);
  display: grid;
  place-items: center;
  box-shadow: var(--glow);
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 12px rgba(217, 70, 239, 0.55));
}

.watermark {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 360px;
  transform: translate(-50%, -50%);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.1);
}

.login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 2, 14, 0.78);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.login-card {
  width: min(420px, 92vw);
  background: rgba(39, 16, 64, 0.95);
  border: 1px solid rgba(217, 70, 239, 0.35);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow), var(--glow);
  display: grid;
  gap: 12px;
}

.login-header h2 {
  margin: 0;
  font-size: 20px;
}

.login-header p {
  margin: 6px 0 0;
  color: #e9d5ff;
  font-size: 13px;
}

.login-error {
  color: #fca5a5;
  font-size: 12px;
  min-height: 16px;
}

.login-hint {
  color: #e9d5ff;
  font-size: 12px;
  text-align: center;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  background: rgba(39, 16, 64, 0.75);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(248, 187, 255, 0.3);
}

.lang-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: #f5d0fe;
  font-size: 12px;
  border: 1px solid transparent;
  cursor: pointer;
}

.lang-btn.active {
  background: rgba(217, 70, 239, 0.25);
  border-color: rgba(217, 70, 239, 0.6);
  color: #fdf4ff;
  box-shadow: var(--glow);
}

.header h1 {
  margin: 0;
  font-size: 28px;
}

.sub {
  margin: 6px 0 0;
  color: #e9d5ff;
}

.controls {
  margin-bottom: 16px;
}

.query-card {
  background: linear-gradient(135deg, rgba(45, 16, 80, 0.95), rgba(91, 33, 182, 0.72));
  border: 1px solid rgba(217, 70, 239, 0.35);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow), var(--glow);
}

.query-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.query-header h2 {
  margin: 0;
  font-size: 20px;
}

.query-header p {
  margin: 6px 0 0;
  color: #e9d5ff;
  font-size: 13px;
}

.query-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.query-hint {
  margin-top: 10px;
  color: #e9d5ff;
  font-size: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.field.small {
  width: 100%;
}

.field input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(248, 187, 255, 0.35);
  font-size: 14px;
  background: rgba(31, 18, 53, 0.8);
  color: var(--text);
}

.field select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(248, 187, 255, 0.35);
  font-size: 14px;
  background: rgba(31, 18, 53, 0.8);
  color: var(--text);
}

.field textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(248, 187, 255, 0.35);
  font-size: 14px;
  background: rgba(31, 18, 53, 0.8);
  color: var(--text);
  resize: vertical;
}

button {
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #d946ef, #f472b6);
  color: #1f0a2b;
  font-weight: 600;
  cursor: pointer;
}

button.primary {
  box-shadow: 0 8px 20px rgba(217, 70, 239, 0.35);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  font-size: 13px;
  color: #e9d5ff;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 2, 14, 0.65);
  backdrop-filter: blur(3px);
}

.modal-content {
  position: relative;
  width: min(560px, 92vw);
  background: rgba(39, 16, 64, 0.95);
  border: 1px solid rgba(217, 70, 239, 0.3);
  border-radius: 16px;
  box-shadow: var(--shadow), var(--glow);
  padding: 18px;
  z-index: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(217, 70, 239, 0.15);
  color: #fdf4ff;
  border: 1px solid rgba(217, 70, 239, 0.4);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.modal-body {
  display: grid;
  gap: 12px;
}

.modal-hint {
  font-size: 12px;
  color: #e9d5ff;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.overview,
.analysis,
.tx-section {
  margin-top: 18px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}

.tx-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2 {
  margin: 0;
  font-size: 22px;
}

.section-header p {
  margin: 6px 0 0;
  color: #e9d5ff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.card {
  background: rgba(39, 16, 64, 0.85);
  border: 1px solid rgba(217, 70, 239, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.card .label {
  color: #e9d5ff;
  font-size: 13px;
}

.card .value {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
}

.analysis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.panel {
  background: rgba(39, 16, 64, 0.85);
  border: 1px solid rgba(217, 70, 239, 0.18);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.panel-header h3 {
  margin: 0;
  font-size: 18px;
}

.muted {
  color: #e9d5ff;
  font-size: 12px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.metric-card {
  background: rgba(31, 18, 53, 0.7);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px dashed rgba(248, 187, 255, 0.3);
}

.metric-card .metric-label {
  color: var(--muted);
  font-size: 12px;
}

.metric-card .metric-value {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
}

.chart {
  margin-top: 12px;
}

.chart-title {
  font-size: 12px;
  color: #e9d5ff;
  margin-bottom: 6px;
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 4px;
  align-items: end;
  height: 80px;
}

.chart-bars .bar {
  background: linear-gradient(180deg, #d946ef, rgba(217, 70, 239, 0.3));
  border-radius: 6px 6px 2px 2px;
  min-height: 4px;
  opacity: 0.85;
}

.chart-bars .bar.muted {
  background: linear-gradient(180deg, rgba(251, 207, 232, 0.85), rgba(251, 207, 232, 0.2));
}

.list,
.preview {
  background: rgba(39, 16, 64, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(217, 70, 239, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.list-header,
.list-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  padding: 12px 16px;
  gap: 12px;
  align-items: center;
}

.list-header {
  font-weight: 600;
  background: rgba(31, 18, 53, 0.95);
  border-bottom: 1px solid rgba(248, 187, 255, 0.2);
  font-size: 13px;
  color: #e9d5ff;
}

.list-body {
  max-height: 520px;
  overflow: auto;
}

.list-row {
  border-bottom: 1px solid rgba(248, 187, 255, 0.15);
  cursor: pointer;
  font-size: 14px;
}

.list-row:hover {
  background: rgba(217, 70, 239, 0.08);
}

.list-row.active {
  background: rgba(217, 70, 239, 0.2);
}

.list-row .tx-link {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.tx-change {
  position: relative;
  font-weight: 600;
  color: #f5d0fe;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tx-token-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tx-change::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  max-width: 360px;
  white-space: pre-line;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20, 6, 36, 0.95);
  border: 1px solid rgba(217, 70, 239, 0.6);
  box-shadow: 0 8px 24px rgba(217, 70, 239, 0.35), 0 0 18px rgba(217, 70, 239, 0.35);
  color: #fdf4ff;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 20;
}

.tx-change::before {
  content: "";
  position: absolute;
  left: 16px;
  top: calc(100% + 4px);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(217, 70, 239, 0.6) transparent;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 19;
}

.tx-change:hover::after,
.tx-change:hover::before {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tx-id {
  font-weight: 600;
  color: var(--accent-strong);
  word-break: break-all;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(248, 187, 255, 0.2);
  background: rgba(31, 18, 53, 0.95);
  font-size: 14px;
}

.preview-header a {
  color: var(--accent);
  text-decoration: none;
}

#previewContent,
.tx-preview-content {
  flex: 1;
  min-height: 520px;
  overflow-y: auto;
  padding: 16px;
  background: rgba(15, 8, 28, 0.6);
  display: none;
}

.tx-preview-loading {
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.tx-preview-loading a {
  color: var(--accent);
  text-decoration: none;
}

.tx-preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tx-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-preview-title {
  font-size: 18px;
  font-weight: 600;
  color: #fdf4ff;
}

.tx-preview-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.tx-preview-status.success {
  background: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.tx-preview-status.fail {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.tx-preview-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tx-preview-label {
  font-size: 12px;
  color: var(--muted);
}

.tx-preview-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}

.tx-preview-amount.neg {
  color: #f87171;
}

.tx-preview-amount.pos {
  color: #34d399;
}

.tx-preview-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tx-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 12px;
}

.tx-preview-row span:first-child {
  color: var(--muted);
  flex-shrink: 0;
}

.tx-preview-row span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
  text-align: right;
}

.tx-preview-copy {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  font-size: 12px;
  opacity: 0.7;
}

.tx-preview-copy:hover {
  opacity: 1;
}

.tx-preview-ext {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

.tx-preview-linked {
  padding: 12px;
  background: rgba(31, 18, 53, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(248, 187, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tx-preview-linked-title {
  font-size: 12px;
  color: var(--muted);
}

.tx-preview-linked-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.tx-preview-linked-token {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #fdf4ff;
}

.tx-preview-linked-token-amt {
  font-weight: 500;
}

.tx-preview-linked-token-amt.neg {
  color: #f87171;
}

.tx-preview-linked-token-amt.pos {
  color: #34d399;
}

.tx-preview-token-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.tx-preview-linked-amount {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #f87171;
}

.tx-preview-linked-amount .tx-token-icon {
  width: 16px;
  height: 16px;
}

.tx-preview-balance-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tx-preview-token-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tx-preview-token-name {
  color: #fdf4ff;
}

.tx-preview-revert {
  font-size: 12px;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  word-break: break-all;
}

.tx-preview-time-row {
  cursor: pointer;
}

.tx-preview-time:hover {
  color: var(--accent);
}

.tx-preview-time-tt {
  position: relative;
}

.tx-preview-time-tt::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(2px);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(20, 6, 36, 0.95);
  border: 1px solid rgba(217, 70, 239, 0.6);
  font-size: 12px;
  color: #fdf4ff;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease, transform 0.08s ease;
  z-index: 20;
}

.tx-preview-time-tt:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tx-preview-amount-tt {
  position: relative;
  cursor: default;
}

.tx-preview-amount-tt[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(2px);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(20, 6, 36, 0.95);
  border: 1px solid rgba(217, 70, 239, 0.6);
  font-size: 12px;
  color: #fdf4ff;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease, transform 0.08s ease;
  z-index: 20;
}

.tx-preview-amount-tt[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tx-preview-chain-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}

.tx-copy-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(30, 27, 45, 0.95);
  color: #c4b5fd;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(196, 181, 253, 0.3);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 9999;
}

.tx-copy-toast.tx-copy-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.preview-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.empty {
  padding: 16px;
  color: #e9d5ff;
  text-align: center;
}

.ticket-section .list-header,
.ticket-section .list-row {
  grid-template-columns: 1.2fr 1fr 1fr 2fr 56px;
}

.ticket-section .list-header > div:nth-child(5),
.ticket-section .list-row > div:nth-child(5) {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ticket-section .list-row {
  font-size: 13px;
}

.ticket-section .ticket-resolved-cell {
  cursor: pointer;
  user-select: none;
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.ticket-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.admin-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#adminManageSection {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#adminManageSection .admin-grid {
  display: grid;
  gap: 18px;
}

#adminManageSection .field {
  margin-bottom: 0;
}

#adminManageSection .field + .field {
  margin-top: 0;
}

.admin-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-divider {
  height: 1px;
  background: rgba(248, 187, 255, 0.2);
  margin: 16px 0;
}

.admin-list-title {
  font-size: 12px;
  color: #e9d5ff;
  letter-spacing: 0.4px;
  margin-top: 4px;
}

.admin-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.admin-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(31, 18, 53, 0.7);
  border: 1px solid rgba(248, 187, 255, 0.18);
}

.admin-item img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 18px rgba(23, 4, 33, 0.35);
}

.admin-item .name {
  font-weight: 700;
  color: #fdf4ff;
  text-transform: capitalize;
}

.admin-item .role {
  justify-self: end;
  font-size: 12px;
  color: #e9d5ff;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(217, 70, 239, 0.14);
  border: 1px solid rgba(217, 70, 239, 0.25);
  white-space: nowrap;
}

.admin-item-with-feishu {
  grid-template-columns: 64px 1fr auto 1fr auto;
}

.admin-feishu-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-feishu-input {
  width: 100%;
  min-width: 140px;
  max-width: 200px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(248, 187, 255, 0.35);
  font-size: 12px;
  background: rgba(31, 18, 53, 0.8);
  color: var(--text);
}

.admin-feishu-save {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 6px;
  border: none;
  background: rgba(217, 70, 239, 0.35);
  color: #fdf4ff;
  cursor: pointer;
  white-space: nowrap;
}

.admin-feishu-readonly {
  font-size: 12px;
  color: #e9d5ff;
  min-width: 100px;
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .list-header,
  .list-row {
    grid-template-columns: 70px 1fr 1.4fr;
  }
}
