:root {
  --bg: #eef1ee;
  --panel: #ffffff;
  --ink: #17211d;
  --muted: #6d766f;
  --line: #d8ded8;
  --field: #f7f8f5;
  --dark: #13231d;
  --green: #1f6b4a;
  --gold: #d5a63b;
  --coral: #d86f4c;
  --shadow: 0 22px 60px rgba(19, 35, 29, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.toast-host {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 28px));
}

.toast-message {
  padding: 12px 14px;
  border: 1px solid rgba(216, 222, 216, 0.95);
  border-left: 4px solid #dc2626;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(19, 35, 29, 0.16);
  font-size: 14px;
  line-height: 1.45;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-message.success {
  border-left-color: #16a34a;
}

.toast-message.hide {
  opacity: 0;
  transform: translateY(-6px);
}

@media (max-width: 520px) {
  .toast-host {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .toast-message {
    font-size: 13px;
  }
}

button,
input {
  font: inherit;
}

.login-page {
  min-height: 100vh;
  padding: 26px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-shell {
  width: min(480px, 100%);
  min-height: min(760px, calc(100vh - 52px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(19, 35, 29, 0.96), rgba(31, 107, 74, 0.88)),
    url("https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=900&q=80") center / cover;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.top-strip,
.hero-copy,
.login-card {
  position: relative;
  z-index: 1;
}

.top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #1c211b;
  font-weight: 900;
  background: var(--gold);
}

.brand-lockup p,
.brand-lockup strong,
h1,
h2,
p {
  margin: 0;
}

.brand-lockup p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.brand-lockup strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  letter-spacing: 0;
}

.status-pill {
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid rgba(213, 166, 59, 0.42);
  border-radius: 999px;
  color: #ffe4a3;
  background: rgba(213, 166, 59, 0.1);
  font-size: 13px;
}

.hero-copy {
  padding: 28px 4px 0;
}

.eyebrow {
  margin-bottom: 12px;
  color: #f0ca67;
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy > p:last-child {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.75;
}

.login-card {
  padding: 20px;
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
}

.card-heading {
  margin-bottom: 18px;
}

.card-heading p {
  margin-bottom: 6px;
  color: var(--green);
  font-weight: 700;
}

.card-heading h2 {
  font-size: 22px;
  letter-spacing: 0;
}

.role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eef1ee;
}

.role-tabs button {
  height: 40px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
}

.role-tabs button.active {
  color: #ffffff;
  font-weight: 800;
  background: var(--dark);
  box-shadow: 0 10px 22px rgba(19, 35, 29, 0.18);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.login-form input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--field);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form input:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 107, 74, 0.12);
}

.form-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.login-form button {
  height: 54px;
  border: 0;
  border-radius: 14px;
  color: #1f211b;
  font-weight: 800;
  cursor: pointer;
  background: var(--gold);
  box-shadow: 0 16px 28px rgba(213, 166, 59, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(213, 166, 59, 0.38);
}

@media (min-width: 900px) {
  .login-page {
    padding: 38px;
  }

  .login-shell {
    width: min(1060px, 100%);
    min-height: 620px;
    display: grid;
    grid-template-columns: 1fr 390px;
    grid-template-rows: auto 1fr;
    align-items: end;
    padding: 30px;
  }

  .top-strip {
    grid-column: 1 / -1;
    align-self: start;
  }

  .hero-copy {
    padding: 0 40px 34px 4px;
  }

  .login-card {
    align-self: end;
  }
}

@media (max-width: 520px) {
  .login-page {
    min-height: 100svh;
    padding: 0;
  }

  .login-shell {
    width: 100%;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    padding: 18px;
  }

  .top-strip {
    padding-top: env(safe-area-inset-top);
  }

  h1 {
    font-size: 35px;
  }

  .hero-copy {
    padding-top: 12px;
  }

  .login-card {
    padding: 18px;
    border-radius: 20px;
  }

  .form-meta {
    display: grid;
  }
}

.admin-page {
  min-height: 100vh;
  background: #eef1ee;
}

.admin-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  color: #ffffff;
  background: var(--dark);
}

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

.admin-brand p,
.admin-brand strong {
  margin: 0;
}

.admin-brand p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.admin-brand strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.ghost-button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
}

.admin-layout {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
}

.side-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(19, 35, 29, 0.08);
}

.side-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.side-nav a.active {
  color: #ffffff;
  background: var(--green);
}

.admin-content {
  display: grid;
  gap: 20px;
}

.page-title {
  min-height: 154px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 22px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(19, 35, 29, 0.94), rgba(31, 107, 74, 0.88)),
    url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1100&q=80") center / cover;
  overflow: hidden;
}

.order-title {
  background:
    linear-gradient(135deg, rgba(19, 35, 29, 0.92), rgba(69, 86, 54, 0.82)),
    url("https://images.unsplash.com/photo-1542751110-97427bbecf20?auto=format&fit=crop&w=1100&q=80") center / cover;
}

.summary-title {
  background:
    linear-gradient(135deg, rgba(19, 35, 29, 0.92), rgba(75, 56, 36, 0.78)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1100&q=80") center / cover;
}

.page-title p,
.page-title h1,
.page-title span {
  margin: 0;
}

.page-title p {
  margin-bottom: 8px;
  color: #f0ca67;
  font-size: 13px;
  font-weight: 800;
}

.page-title h1 {
  font-size: 38px;
  line-height: 1.1;
}

.page-title span {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.manager-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(19, 35, 29, 0.08);
}

.toolbar-row p,
.toolbar-row strong {
  margin: 0;
}

.toolbar-row p {
  margin-bottom: 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.toolbar-row strong {
  display: block;
  font-size: 20px;
}

.primary-action {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #1f211b;
  font-weight: 800;
  cursor: pointer;
  background: var(--gold);
}

.order-board {
  display: grid;
  gap: 14px;
}

.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(19, 35, 29, 0.08);
}

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

.order-code {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #7a5c12;
  font-size: 12px;
  font-weight: 900;
  background: rgba(213, 166, 59, 0.18);
}

.order-main h2,
.order-main p {
  margin: 0;
}

.order-main h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.order-main p {
  color: var(--muted);
  line-height: 1.75;
}

.order-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.order-side strong {
  color: var(--green);
  font-size: 28px;
}

.order-side label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.assignee-picker {
  display: grid;
  gap: 9px;
}

.assignee-search {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  outline: none;
  background: var(--field);
}

.assignee-options {
  max-height: 116px;
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-y: auto;
  background: #f9faf7;
}

.assignee-options button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  background: transparent;
}

.assignee-options button.active {
  color: #ffffff;
  font-weight: 800;
  background: var(--green);
}

.dispatch-button {
  height: 44px;
  border: 0;
  border-radius: 13px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  background: var(--green);
}

.admin-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(19, 35, 29, 0.08);
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading p,
.section-heading h2 {
  margin: 0;
}

.section-heading p {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.section-heading h2 {
  font-size: 24px;
}

.account-form {
  display: grid;
  gap: 16px;
}

.account-form label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.account-form input {
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--field);
}

.account-form input:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 107, 74, 0.12);
}

.account-form button {
  height: 52px;
  border: 0;
  border-radius: 14px;
  color: #1f211b;
  font-weight: 800;
  cursor: pointer;
  background: var(--gold);
}

.list-card {
  min-height: 330px;
}

.player-list {
  display: grid;
  gap: 12px;
}

.player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9faf7;
}

.player-item strong,
.player-item span,
.player-item em {
  display: block;
}

.player-item strong {
  margin-bottom: 5px;
}

.player-item span {
  color: var(--muted);
  font-size: 13px;
}

.player-item em {
  min-width: 56px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #ffffff;
  text-align: center;
  font-style: normal;
  font-weight: 800;
  background: var(--green);
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.delete-player {
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(216, 111, 76, 0.3);
  border-radius: 999px;
  color: #b5482b;
  cursor: pointer;
  background: rgba(216, 111, 76, 0.1);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(19, 35, 29, 0.58);
}

.modal-backdrop[hidden] {
  display: none;
}

.confirm-modal {
  width: min(390px, 100%);
  padding: 26px;
  border-radius: 20px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.modal-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: var(--coral);
}

.confirm-modal h2,
.confirm-modal p {
  margin: 0;
}

.confirm-modal h2 {
  font-size: 24px;
}

.confirm-modal p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.modal-actions button {
  height: 46px;
  border-radius: 13px;
  font-weight: 800;
  cursor: pointer;
}

#loginErrorModal .modal-actions {
  grid-template-columns: minmax(160px, 220px);
  justify-content: center;
}

.cancel-button {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
}

.danger-button {
  border: 0;
  color: #ffffff;
  background: var(--coral);
}

.success-button {
  border: 0;
  color: #1f211b;
  background: var(--gold);
}

.gold-icon {
  color: #1f211b;
  background: var(--gold);
}

.form-modal {
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

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

.modal-head p,
.modal-head h2 {
  margin: 0;
}

.modal-head p {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.modal-head h2 {
  font-size: 26px;
}

.icon-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
  background: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.order-form {
  display: grid;
  gap: 15px;
}

.order-form label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  outline: none;
  background: var(--field);
}

.order-form input {
  height: 48px;
}

.order-form textarea {
  min-height: 118px;
  padding-top: 13px;
  resize: vertical;
}

.order-form input:focus,
.order-form textarea:focus,
.assignee-search:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 107, 74, 0.12);
}

.order-form button {
  height: 50px;
  border: 0;
  border-radius: 14px;
  color: #1f211b;
  font-weight: 800;
  cursor: pointer;
  background: var(--gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(19, 35, 29, 0.08);
}

.stats-grid span,
.stats-grid strong {
  display: block;
}

.stats-grid span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.stats-grid strong {
  font-size: 28px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(19, 35, 29, 0.08);
}

.filter-panel p,
.filter-panel strong {
  margin: 0;
}

.filter-panel p {
  margin-bottom: 5px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel strong {
  display: block;
  font-size: 18px;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 74px 74px;
  gap: 10px;
}

.filter-controls input,
.filter-controls select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  outline: none;
  background: var(--field);
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 107, 74, 0.12);
}

.apply-filter,
.clear-filter {
  height: 42px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.apply-filter {
  color: #1f211b;
  background: var(--gold);
}

.clear-filter {
  color: #ffffff;
  background: var(--green);
}

.summary-list {
  display: grid;
  gap: 14px;
}

.summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 16px 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(19, 35, 29, 0.08);
}

.summary-main {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.summary-main h2,
.summary-main p {
  margin: 0;
}

.summary-main h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.summary-main p {
  color: var(--muted);
}

.summary-main strong {
  color: var(--green);
  font-size: 28px;
  white-space: nowrap;
}

.summary-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.status-badge {
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
}

.status-badge.done {
  background: var(--green);
}

.status-badge.settled {
  color: #1f211b;
  background: #9fd3bd;
}

.status-badge.review {
  color: #1f211b;
  background: var(--gold);
}

.status-badge.doing {
  background: #5e6a63;
}

.screenshot-box,
.empty-shot {
  grid-row: span 2;
  min-height: 168px;
  border-radius: 16px;
}

.screenshot-box {
  position: relative;
  overflow: hidden;
  background: #111c17;
}

.screenshot-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.screenshot-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.view-shot,
.screenshot-actions button {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #1f211b;
  font-weight: 800;
  cursor: pointer;
  background: var(--gold);
}

.screenshot-actions button:disabled {
  color: rgba(255, 255, 255, 0.78);
  cursor: not-allowed;
  background: rgba(19, 35, 29, 0.72);
}

.empty-shot {
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #c6cec7;
  background: #f7f8f5;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summary-actions button {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.audit-button {
  border: 0;
  color: #ffffff;
  background: var(--green);
}

.settle-button {
  border: 0;
  color: #1f211b;
  background: #9fd3bd;
}

.pay-code-button {
  border: 0;
  color: #1f211b;
  background: var(--gold);
}

.audit-button:disabled,
.settle-button:disabled,
.pay-code-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  background: #8d968f;
}

.delete-order {
  border: 1px solid rgba(216, 111, 76, 0.3);
  color: #b5482b;
  background: rgba(216, 111, 76, 0.1);
}

.shot-modal {
  width: min(760px, 100%);
  padding: 22px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.shot-modal img {
  width: 100%;
  max-height: 70vh;
  display: block;
  border-radius: 16px;
  object-fit: contain;
  background: #111c17;
}

.pay-modal {
  width: min(420px, 100%);
  padding: 22px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.pay-code-box {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7f8f5;
}

.pay-code-box img {
  width: min(240px, 100%);
  aspect-ratio: 1;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  background: #ffffff;
}

.pay-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  color: #ffffff;
  background: var(--dark);
}

.pay-info strong,
.pay-info span {
  display: block;
}

.pay-tip {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.player-page {
  min-height: 100vh;
  background: #eef1ee;
}

.player-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  color: #ffffff;
  background: var(--dark);
}

.player-layout {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  gap: 20px;
  padding: 26px 0;
}

.player-hero {
  min-height: 220px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: 24px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(19, 35, 29, 0.92), rgba(31, 107, 74, 0.82)),
    url("https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=1100&q=80") center / cover;
  box-shadow: 0 16px 40px rgba(19, 35, 29, 0.12);
}

.player-hero-copy p,
.player-hero-copy h1,
.player-hero-copy span {
  margin: 0;
}

.player-hero-copy p {
  margin-bottom: 8px;
  color: #f0ca67;
  font-size: 13px;
  font-weight: 900;
}

.player-hero-copy h1 {
  margin-bottom: 12px;
  font-size: 40px;
  line-height: 1.1;
}

.player-hero-copy span {
  color: rgba(255, 255, 255, 0.76);
}

.income-card {
  min-width: 220px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.income-card span,
.income-card strong {
  display: block;
}

.income-card span {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.income-card strong {
  color: #f0ca67;
  font-size: 34px;
}

.task-list {
  display: grid;
  gap: 16px;
}

.player-pay-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 120px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(19, 35, 29, 0.08);
}

.player-pay-card p,
.player-pay-card strong,
.player-pay-card span {
  display: block;
  margin: 0;
}

.player-pay-card p {
  margin-bottom: 5px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.player-pay-card strong {
  margin-bottom: 6px;
  font-size: 20px;
}

.player-pay-card span {
  color: var(--muted);
  line-height: 1.65;
}

.pay-upload {
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #1f211b;
  font-weight: 900;
  cursor: pointer;
  background: var(--gold);
}

.pay-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.player-pay-preview {
  width: 96px;
  height: 96px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f8f5;
}

.player-pay-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(19, 35, 29, 0.08);
}

.task-info h2,
.task-info p {
  margin: 0;
}

.task-info h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.task-info p {
  color: var(--muted);
  line-height: 1.75;
}

.task-side {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 12px;
}

.task-side strong {
  color: var(--green);
  font-size: 28px;
}

.upload-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.upload-group {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.upload-box {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px dashed #b9c4bb;
  border-radius: 16px;
  cursor: pointer;
  background: #f7f8f5;
}

.upload-box input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-box span {
  color: var(--ink);
  font-weight: 800;
}

.upload-box em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.preview-box {
  min-height: 72px;
  overflow: hidden;
  border-radius: 16px;
  background: #111c17;
}

.preview-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.upload-form button {
  grid-column: 1 / -1;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  color: #1f211b;
  font-weight: 900;
  cursor: pointer;
  background: var(--gold);
}

.submitted-shot {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #f7f8f5;
}

.submitted-shot img {
  width: 100%;
  height: 92px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.submitted-shot span {
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 820px) {
  .admin-header {
    padding: 12px 16px;
  }

  .admin-layout {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 0 24px;
  }

  .side-nav {
    position: static;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: auto;
    padding: 8px;
    border-radius: 16px;
  }

  .side-nav a {
    justify-content: center;
    min-width: 92px;
    min-height: 40px;
    padding: 0 10px;
    white-space: nowrap;
    font-size: 14px;
  }

  .page-title {
    min-height: 178px;
    display: grid;
    align-items: end;
    padding: 22px;
  }

  .page-title h1 {
    font-size: 34px;
  }

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

  .toolbar-row {
    align-items: flex-start;
  }

  .order-item {
    grid-template-columns: 1fr;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .summary-item {
    grid-template-columns: 1fr;
  }

  .screenshot-box,
  .empty-shot {
    grid-row: auto;
  }

  .order-side {
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: start;
  }

  .dispatch-button {
    grid-column: 1 / -1;
  }

  .player-item {
    align-items: flex-start;
  }

  .player-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .delete-player {
    height: 32px;
  }
}

@media (max-width: 430px) {
  .admin-header {
    min-height: 66px;
  }

  .admin-brand .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .admin-brand strong {
    font-size: 16px;
  }

  .ghost-button {
    height: 34px;
    padding: 0 12px;
  }

  .admin-card {
    padding: 18px;
  }

  .toolbar-row {
    display: grid;
  }

  .primary-action {
    width: 100%;
  }

  .order-side {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .player-item {
    display: grid;
  }

  .player-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .form-modal {
    padding: 20px;
  }

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

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

  .summary-main,
  .summary-meta {
    display: grid;
  }

  .summary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .summary-actions button {
    width: 100%;
  }

  .shot-modal {
    padding: 16px;
  }

  .player-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .player-layout {
    width: 100%;
    gap: 12px;
    padding: 0 12px 20px;
  }

  .player-hero {
    display: grid;
    min-height: auto;
    gap: 18px;
    margin: 12px 0 0;
    padding: 20px;
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(19, 35, 29, 0.94), rgba(31, 107, 74, 0.9)),
      url("https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=900&q=80") center / cover;
  }

  .player-hero-copy h1 {
    margin-bottom: 10px;
    font-size: 30px;
  }

  .player-hero-copy span {
    display: block;
    max-width: 280px;
    font-size: 14px;
    line-height: 1.7;
  }

  .income-card {
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
  }

  .income-card span {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .income-card strong {
    font-size: 30px;
  }

  .task-list {
    gap: 12px;
  }

  .task-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
  }

  .task-info .order-code {
    margin-bottom: 10px;
  }

  .task-info h2 {
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 1.35;
  }

  .task-info p {
    font-size: 14px;
    line-height: 1.7;
  }

  .task-side {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
    padding: 12px;
    border-radius: 14px;
    background: #f7f8f5;
  }

  .task-side strong {
    font-size: 24px;
  }

  .upload-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .upload-box {
    min-height: 88px;
    border-radius: 14px;
    text-align: center;
  }

  .preview-box {
    min-height: 160px;
    border-radius: 14px;
  }

  .upload-form button {
    min-height: 50px;
    border-radius: 14px;
  }

  .submitted-shot {
    grid-template-columns: 1fr;
    padding: 10px;
    text-align: center;
  }

  .submitted-shot img {
    height: 150px;
  }
}

@media (max-width: 430px) {
  .player-header .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .player-header .admin-brand strong {
    font-size: 16px;
  }

  .player-header .ghost-button {
    height: 34px;
    padding: 0 12px;
  }

  .player-layout {
    padding-inline: 10px;
  }

  .player-hero {
    padding: 18px;
  }

  .task-card {
    padding: 14px;
  }
}

@media (max-width: 820px) {
  .player-page {
    background: #eef1ee;
  }

  .player-page .player-header {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 58px;
    padding: 9px 12px;
  }

  .player-page .admin-brand {
    min-width: 0;
  }

  .player-page .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex: 0 0 auto;
  }

  .player-page .admin-brand p {
    font-size: 11px;
  }

  .player-page .admin-brand strong {
    font-size: 15px;
  }

  .player-page .ghost-button {
    height: 32px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 13px;
  }

  .player-page .player-layout {
    width: 100%;
    gap: 12px;
    padding: 10px 10px 22px;
  }

  .player-page .player-hero {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 18px;
    border-radius: 18px;
  }

  .player-page .player-hero-copy {
    width: 100%;
  }

  .player-page .player-hero-copy p {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .player-page .player-hero-copy h1 {
    margin-bottom: 9px;
    font-size: 28px;
    line-height: 1.15;
  }

  .player-page .player-hero-copy span {
    display: block;
    max-width: none;
    font-size: 14px;
    line-height: 1.65;
  }

  .player-page .income-card {
    width: 100%;
    min-width: 0;
    margin-top: 16px;
    padding: 14px 15px;
    border-radius: 15px;
  }

  .player-page .income-card span {
    margin-bottom: 5px;
    font-size: 13px;
  }

  .player-page .income-card strong {
    font-size: 30px;
    line-height: 1.1;
  }

  .player-page .task-list {
    gap: 12px;
  }

  .player-page .player-pay-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
    border-radius: 18px;
  }

  .player-page .pay-upload {
    width: 100%;
    height: 46px;
  }

  .player-page .player-pay-preview {
    width: 140px;
    height: 140px;
    justify-self: center;
  }

  .player-page .task-card {
    display: block;
    padding: 15px;
    border-radius: 18px;
  }

  .player-page .task-info {
    margin-bottom: 12px;
  }

  .player-page .task-info .order-code {
    margin-bottom: 10px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .player-page .task-info h2 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.35;
  }

  .player-page .task-info p {
    font-size: 14px;
    line-height: 1.65;
  }

  .player-page .task-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    background: #f7f8f5;
  }

  .player-page .task-side strong {
    font-size: 24px;
    line-height: 1;
  }

  .player-page .task-side .status-badge {
    white-space: nowrap;
  }

  .player-page .upload-form {
    display: block;
  }

  .player-page .upload-box {
    min-height: 92px;
    margin-bottom: 10px;
    padding: 16px;
    border-radius: 14px;
    text-align: center;
  }

  .player-page .preview-box {
    width: 100%;
    height: 170px;
    min-height: 0;
    margin-bottom: 10px;
    border-radius: 14px;
  }

  .player-page .upload-form button {
    width: 100%;
    height: 48px;
    min-height: 0;
    display: block;
    border-radius: 14px;
  }

  .player-page .submitted-shot {
    display: block;
    padding: 10px;
    border-radius: 14px;
    text-align: center;
  }

  .player-page .submitted-shot img {
    height: 150px;
    margin-bottom: 10px;
  }
}
