:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #647181;
  --line: #dfe5ee;
  --line-strong: #c8d2df;
  --primary: #1f7a5c;
  --primary-dark: #165a45;
  --blue: #2563eb;
  --amber: #d97706;
  --red: #dc2626;
  --ink: #111827;
  --shadow: 0 14px 36px rgba(18, 31, 53, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.login-panel {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.login-panel h1,
.topbar h1,
.panel h2 {
  margin: 0;
  color: var(--ink);
}

.login-panel h1 {
  margin-top: 18px;
  font-size: 24px;
}

.login-panel p,
.topbar p {
  margin: 8px 0 0;
  color: var(--muted);
}

.form-stack {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.form-stack.compact {
  gap: 13px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  border-radius: 7px;
  padding: 10px 11px;
  outline: none;
  min-height: 40px;
}

textarea {
  min-height: 70px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 122, 92, 0.12);
}

.primary-btn,
.ghost-btn,
.line-btn,
.danger-btn,
.nav-item,
.filter-btn {
  border: 0;
  border-radius: 7px;
  min-height: 38px;
  padding: 9px 13px;
  white-space: nowrap;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.primary-btn:hover {
  background: var(--primary-dark);
}

.ghost-btn,
.line-btn,
.filter-btn {
  background: #eef3f8;
  color: var(--text);
}

.ghost-btn:hover,
.line-btn:hover,
.filter-btn:hover {
  background: #e2e9f1;
}

.danger-btn {
  background: #fee2e2;
  color: #991b1b;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #10231c;
  color: #fff;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.side-brand .brand-mark {
  background: #38a77e;
}

.side-brand strong,
.side-brand span {
  display: block;
}

.side-brand span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  text-align: left;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.topbar h1 {
  font-size: 26px;
}

.admin-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-info span {
  color: var(--muted);
}

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

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn.active {
  background: var(--text);
  color: #fff;
}

.search-box {
  width: min(340px, 100%);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.metric strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.metric span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

.data-list,
.account-list {
  display: grid;
  gap: 12px;
}

.playmate-row,
.account-row {
  display: grid;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(18, 31, 53, 0.04);
}

.playmate-row {
  grid-template-columns: 64px minmax(180px, 1.2fr) minmax(200px, 1fr) minmax(260px, 1.1fr);
  align-items: start;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #e8edf3;
}

.empty-avatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e8edf3;
  color: var(--muted);
  font-weight: 800;
}

.row-main h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
}

.field-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 5px 0;
  color: var(--muted);
  font-size: 13px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 7px;
  background: #eef7f3;
  color: #17604a;
  padding: 4px 8px;
  font-size: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 28px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.status.pending {
  background: #fff7ed;
  color: #9a3412;
}

.status.approved {
  background: #dcfce7;
  color: #166534;
}

.status.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.status.draft {
  background: #e5e7eb;
  color: #374151;
}

.rank-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
}

.controls {
  display: grid;
  gap: 10px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
}

.switch-line input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 360px;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.panel.narrow {
  max-width: 460px;
}

.panel h2 {
  font-size: 18px;
}

.account-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.account-row h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
}

.account-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-error {
  color: var(--red);
  font-size: 13px;
}

.empty-state {
  background: var(--panel);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 38px 18px;
  text-align: center;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 32px));
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  z-index: 50;
}

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

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .playmate-row,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .workspace {
    padding: 18px 14px;
  }

  .topbar,
  .toolbar {
    display: grid;
  }

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

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

/* Tongming redesign */
:root {
  --bg: #eef4f1;
  --panel: rgba(255, 255, 255, 0.94);
  --text: #122019;
  --muted: #62736d;
  --line: rgba(199, 213, 207, 0.95);
  --line-strong: #c7d5cf;
  --primary: #1f7a5c;
  --primary-dark: #165d47;
  --accent: #b35f0c;
  --ink: #0f1f18;
  --shadow: 0 18px 42px rgba(16, 32, 25, 0.08);
}

body {
  position: relative;
  background:
    linear-gradient(180deg, #f7faf8 0%, #eef4f1 42%, #ecf2ef 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 96%);
  pointer-events: none;
  opacity: 0.32;
}

.login-view {
  padding: 32px 20px;
}

.login-surface {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: center;
}

.login-brand {
  padding: 20px 6px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f7a5c 0%, #163f31 100%);
  box-shadow: 0 14px 28px rgba(31, 122, 92, 0.24);
}

.brand-mark-large {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  font-size: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(31, 122, 92, 0.12);
  color: #17604a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.login-brand h1 {
  margin: 16px 0 12px;
  color: #102019;
  font-size: 44px;
  line-height: 1.08;
}

.login-brand p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.login-tags,
.hero-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.surface-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.login-tags .surface-chip {
  background: rgba(31, 122, 92, 0.08);
  border-color: rgba(31, 122, 92, 0.12);
  color: #17604a;
}

.login-panel {
  padding: 30px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.panel-head h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 24px;
}

.panel-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef7f3;
  color: #17604a;
  font-size: 12px;
  font-weight: 700;
}

.form-stack {
  gap: 14px;
  margin-top: 22px;
}

input,
select,
textarea {
  min-height: 44px;
  border: 1px solid #cad6cf;
  border-radius: 12px;
  background: #fff;
}

.primary-btn {
  min-height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f7a5c 0%, #165d47 100%);
  box-shadow: 0 14px 26px rgba(31, 122, 92, 0.18);
}

.ghost-btn,
.line-btn,
.danger-btn,
.filter-btn,
.nav-item {
  border-radius: 12px;
}

.ghost-btn {
  background: #eef4f1;
}

.app-shell {
  grid-template-columns: 280px 1fr;
  background: transparent;
}

.sidebar {
  padding: 28px 20px;
  background: linear-gradient(180deg, #132820 0%, #0f221b 100%);
  box-shadow: 12px 0 34px rgba(16, 32, 25, 0.08);
}

.side-brand strong {
  font-size: 18px;
}

.side-brand span {
  font-size: 12px;
}

.nav-item {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.workspace {
  padding: 28px;
}

.hero-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 24px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(19, 40, 32, 0.98) 0%, rgba(24, 72, 56, 0.92) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-copy h1 {
  margin: 12px 0 10px;
  color: #fff;
  font-size: 28px;
}

.hero-copy p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
}

.hero-flags {
  margin-top: 6px;
  align-content: flex-start;
}

.hero-flags .surface-chip {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.topbar {
  margin-bottom: 20px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(16, 32, 25, 0.05);
  backdrop-filter: blur(12px);
}

.topbar-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
}

.topbar-copy p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-info span {
  font-weight: 600;
}

.metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(16, 32, 25, 0.04);
}

.metric strong {
  font-size: 26px;
}

.playmate-row {
  grid-template-columns: 72px minmax(220px, 1.1fr) minmax(220px, 0.9fr) minmax(260px, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.playmate-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(16, 32, 25, 0.08);
}

.avatar,
.empty-avatar {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

.row-main h3 {
  font-size: 18px;
}

.controls {
  gap: 12px;
}

.split-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.panel {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(16, 32, 25, 0.05);
}

.account-row {
  border-radius: 16px;
}

.empty-state {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.toast {
  border-radius: 14px;
}

@media (max-width: 1180px) {
  .login-surface,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playmate-row {
    grid-template-columns: 72px 1fr;
  }

  .controls {
    grid-column: 1 / -1;
  }

  .hero-strip {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .workspace {
    padding: 18px 14px;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-strip,
  .topbar,
  .toolbar {
    display: grid;
  }

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

  .playmate-row {
    grid-template-columns: 1fr;
  }

  .account-row {
    grid-template-columns: 1fr;
  }
}

/* Tongming fancier polish */
:root {
  --bg: #f4f8f6;
  --panel: rgba(255, 255, 255, 0.95);
  --text: #122019;
  --muted: #64756d;
  --line: rgba(199, 213, 207, 0.88);
  --line-strong: #bdcec6;
  --primary: #1f7a5c;
  --primary-dark: #14352b;
  --accent: #f07167;
  --gold: #f6b75c;
  --blue: #2f80ed;
  --red: #d93b3b;
  --ink: #0f1f18;
  --shadow: 0 18px 44px rgba(16, 32, 25, 0.09);
}

body {
  background:
    linear-gradient(180deg, #fff9ed 0%, #eef8f4 34%, #f3f6fb 100%);
}

body::before {
  background-image:
    linear-gradient(135deg, rgba(31, 122, 92, 0.08) 0 1px, transparent 1px 24px),
    linear-gradient(90deg, rgba(47, 128, 237, 0.06) 0 1px, transparent 1px 52px);
  background-size: 42px 42px, 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 92%);
  opacity: 1;
}

.login-view {
  position: relative;
  overflow: hidden;
}

.login-view::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 58%, rgba(31, 122, 92, 0.11) 58% 66%, transparent 66%),
    linear-gradient(150deg, transparent 0 70%, rgba(240, 113, 103, 0.13) 70% 76%, transparent 76%);
  pointer-events: none;
}

.login-surface {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.1fr) 430px;
}

.login-brand {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 36px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 53, 43, 0.96) 0%, rgba(31, 122, 92, 0.88) 60%, rgba(246, 183, 92, 0.9) 100%);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-brand::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  height: 62px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0 3%, transparent 3% 12%, rgba(255, 209, 102, 0.85) 12% 18%, transparent 18% 29%, rgba(240, 113, 103, 0.8) 29% 35%, transparent 35% 48%, rgba(255, 255, 255, 0.72) 48% 56%, transparent 56% 100%);
  opacity: 0.62;
}

.brand-mark {
  border-radius: 8px;
  background: linear-gradient(135deg, #14352b 0%, #1f7a5c 62%, #f07167 100%);
}

.brand-mark-large {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 36px rgba(10, 29, 22, 0.2);
}

.login-brand .eyebrow,
.hero-strip .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.login-brand h1 {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0;
}

.login-brand p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
}

.login-tags {
  position: relative;
  z-index: 1;
  margin-bottom: 72px;
}

.surface-chip {
  min-height: 34px;
  border-radius: 999px;
}

.login-panel {
  border-radius: 8px;
  border: 1px solid rgba(199, 213, 207, 0.9);
  box-shadow: var(--shadow);
}

.panel-head h2 {
  font-size: 25px;
}

.panel-kicker,
.eyebrow {
  background: linear-gradient(135deg, rgba(31, 122, 92, 0.12), rgba(240, 113, 103, 0.1));
  color: #17604a;
}

input,
select,
textarea,
.primary-btn,
.ghost-btn,
.line-btn,
.danger-btn,
.filter-btn,
.nav-item,
.panel,
.metric,
.playmate-row,
.account-row,
.empty-state,
.toast,
.topbar,
.hero-strip {
  border-radius: 8px;
}

.primary-btn {
  background: linear-gradient(135deg, #14352b 0%, #1f7a5c 60%, #f07167 100%);
  box-shadow: 0 12px 24px rgba(31, 122, 92, 0.18);
}

.primary-btn:hover {
  filter: brightness(0.98);
  background: linear-gradient(135deg, #102a21 0%, #17684f 60%, #e45d54 100%);
}

.primary-btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

.line-btn,
.ghost-btn,
.filter-btn {
  background: #f4f8f6;
  border: 1px solid rgba(199, 213, 207, 0.94);
}

.line-btn:hover,
.ghost-btn:hover,
.filter-btn:hover {
  background: #eaf4ef;
}

.danger-btn {
  background: #fff0ee;
  color: #b42318;
}

.app-shell {
  grid-template-columns: 264px 1fr;
}

.sidebar {
  background:
    linear-gradient(180deg, #102a21 0%, #14352b 58%, #1f3a31 100%);
}

.side-brand {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.nav-list {
  gap: 10px;
}

.nav-item {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 209, 102, 0.18));
}

.workspace {
  padding: 28px 30px 36px;
}

.hero-strip {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  background:
    linear-gradient(135deg, #14352b 0%, #1f7a5c 55%, #f6b75c 100%);
}

.hero-strip::after {
  content: "";
  position: absolute;
  inset: auto 24px 20px 42%;
  height: 52px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.58) 0 5%, transparent 5% 15%, rgba(255, 209, 102, 0.72) 15% 23%, transparent 23% 40%, rgba(240, 113, 103, 0.68) 40% 48%, transparent 48% 62%, rgba(255, 255, 255, 0.52) 62% 72%, transparent 72% 100%);
  opacity: 0.42;
}

.hero-copy,
.hero-flags {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: 30px;
}

.hero-flags .surface-chip {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
}

.admin-info {
  padding: 6px;
  border-radius: 8px;
  background: #f4f8f6;
}

.toolbar {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 24px rgba(16, 32, 25, 0.04);
}

.filter-btn.active {
  background: #14352b;
  color: #ffffff;
}

.search-box span {
  font-weight: 700;
  color: #42544c;
}

.metrics {
  gap: 12px;
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #1f7a5c, #f6b75c);
}

.metric-pending::before {
  background: linear-gradient(90deg, #f6b75c, #f07167);
}

.metric-approved::before,
.metric-public_count::before {
  background: linear-gradient(90deg, #1f7a5c, #2f80ed);
}

.metric-rejected::before {
  background: linear-gradient(90deg, #f07167, #d93b3b);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  margin-top: 10px;
  font-size: 32px;
}

.metric-bar {
  display: block;
  width: 54px;
  height: 6px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 122, 92, 0.2), rgba(240, 113, 103, 0.34));
}

.data-list,
.account-list {
  gap: 14px;
}

.playmate-row {
  position: relative;
  grid-template-columns: 92px minmax(240px, 1.15fr) minmax(230px, 0.85fr) minmax(280px, 1fr);
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(238, 248, 243, 0.9) 0, rgba(255, 255, 255, 0.96) 29%);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.playmate-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: #bdcec6;
}

.status-card-pending {
  background:
    linear-gradient(90deg, rgba(255, 246, 225, 0.92) 0, rgba(255, 255, 255, 0.96) 29%);
}

.status-card-pending::before {
  background: #f6b75c;
}

.status-card-approved::before {
  background: #1f7a5c;
}

.status-card-rejected {
  background:
    linear-gradient(90deg, rgba(255, 238, 236, 0.94) 0, rgba(255, 255, 255, 0.96) 29%);
}

.status-card-rejected::before {
  background: #f07167;
}

.profile-avatar {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.profile-avatar > span {
  color: #839089;
  font-size: 12px;
  font-weight: 800;
}

.avatar-frame {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding: 4px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(16, 32, 25, 0.1);
}

.avatar,
.empty-avatar {
  width: 70px;
  height: 70px;
  border-radius: 6px;
}

.empty-avatar {
  color: #17604a;
  background: linear-gradient(135deg, #eef8f3, #fff3e1);
}

.row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.row-main h3 {
  margin: 0;
  font-size: 19px;
}

.game-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #14352b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.profile-facts span {
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f4f8f6;
  color: #42544c;
  font-weight: 700;
}

.openid-line span {
  max-width: 100%;
  overflow: hidden;
  color: #778880;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  border-radius: 999px;
  background: #eef8f3;
  color: #17604a;
  font-weight: 700;
}

.status {
  border-radius: 999px;
}

.status.pending {
  background: #fff3df;
  color: #a65408;
}

.status.approved {
  background: #e5f8ec;
  color: #17604a;
}

.status.rejected {
  background: #ffebe8;
  color: #b42318;
}

.public-state,
.rank-missing,
.rank-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.public-state.is-public {
  background: #e5f8ec;
  color: #17604a;
}

.public-state.not-public,
.rank-missing {
  background: #eef1f4;
  color: #647181;
}

.rank-link {
  background: #edf4ff;
  color: #2f67c7;
}

.time-line {
  color: #7a8a83;
}

.review-box {
  padding: 12px;
  border: 1px solid rgba(199, 213, 207, 0.76);
  border-radius: 8px;
  background: rgba(247, 250, 248, 0.92);
}

.review-box label span {
  font-weight: 700;
}

.button-row {
  gap: 8px;
}

.button-row .primary-btn,
.button-row .line-btn,
.button-row .danger-btn {
  min-height: 36px;
  padding: 8px 11px;
}

.panel {
  border-radius: 8px;
}

.panel-head-inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.panel-head-inline .panel-kicker {
  margin-bottom: 4px;
}

.create-panel {
  margin-bottom: 18px;
}

.create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.create-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.create-switch {
  margin: 0;
}

.create-footer .primary-btn {
  min-width: 160px;
}

.account-row {
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(238, 248, 243, 0.86), rgba(255, 255, 255, 0.96));
}

@media (max-width: 1180px) {
  .login-brand {
    min-height: 420px;
  }

  .playmate-row {
    grid-template-columns: 92px 1fr;
  }

  .state-block {
    grid-column: 2 / -1;
  }

  .review-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .login-surface {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 360px;
    padding: 32px 24px;
  }

  .login-tags {
    margin-bottom: 58px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .workspace {
    padding: 18px 14px 28px;
  }

  .toolbar {
    display: grid;
  }

  .playmate-row {
    grid-template-columns: 1fr;
  }

  .state-block,
  .review-box {
    grid-column: auto;
  }

  .profile-avatar {
    justify-items: start;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .hero-strip::after {
    inset: auto 20px 18px 20px;
  }

  .panel-head-inline {
    flex-direction: column;
  }

  .create-footer {
    flex-direction: column;
    align-items: stretch;
  }

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

  .create-footer .primary-btn {
    width: 100%;
  }
}

/* Compact local image upload tiles */
.create-upload-grid {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 2px;
}

.brand-mark img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  border-radius: 6px;
}

.brand-mark-large img {
  width: 88%;
  height: 88%;
  border-radius: 10px;
}

.announcement-panel {
  margin-bottom: 18px;
}

.panel-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.announcement-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.announcement-form textarea {
  min-height: 72px;
}

.announcement-form .primary-btn {
  min-width: 112px;
}

@media (max-width: 760px) {
  .announcement-form {
    grid-template-columns: 1fr;
  }

  .announcement-form .primary-btn {
    width: 100%;
  }
}

.upload-field {
  width: 104px;
  gap: 8px;
  color: #42544c;
  font-weight: 700;
}

.upload-field > span {
  font-size: 12px;
}

.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.upload-box {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #aebfb8;
  border-radius: 8px;
  background: #f7fbf9;
  color: #7c9188;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.upload-field:hover .upload-box,
.upload-field:focus-within .upload-box {
  border-color: #1f7a5c;
  background: #eef8f3;
  box-shadow: 0 0 0 3px rgba(31, 122, 92, 0.1);
}

.upload-box > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #bfd1c8;
  border-radius: 50%;
  color: #1f7a5c;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eef3f1;
}

.rank-upload-box .upload-preview {
  object-fit: contain;
  padding: 8px;
}
