﻿:root {
  --ink: #4f4650;
  --muted: #978894;
  --line: rgba(220, 165, 190, 0.34);
  --pink: #ffc7dc;
  --pink-strong: #f38ab7;
  --blue: #bdeeff;
  --green: #cdeedc;
  --yellow: #fff0af;
  --cream: #fffaf4;
  --white: rgba(255, 255, 255, 0.82);
  --shadow: 0 18px 50px rgba(222, 137, 176, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 199, 220, 0.55), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(189, 238, 255, 0.58), transparent 28%),
    linear-gradient(135deg, rgba(255, 231, 240, 0.72) 25%, transparent 25%) 0 0 / 36px 36px,
    linear-gradient(225deg, rgba(255, 231, 240, 0.72) 25%, transparent 25%) 0 0 / 36px 36px,
    linear-gradient(180deg, #fff7fb 0%, #f4fbff 56%, #fffaf4 100%);
}

.app-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 199, 220, 0.46), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(189, 238, 255, 0.42), transparent 26%),
    linear-gradient(180deg, #fff9fc 0%, #ffffff 58%, #fff7fb 100%);
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 0.28s ease, visibility 0.28s ease;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.app-loading.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-card {
  position: relative;
  width: min(340px, 92vw);
  min-height: 260px;
  padding: 34px 24px 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 230, 0.82);
  border-radius: 30px;
  text-align: center;
  background:
    radial-gradient(circle at 26% 28%, rgba(255, 230, 241, 0.86), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 252, 0.9));
  box-shadow: 0 24px 70px rgba(222, 137, 176, 0.22);
}

.loading-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loading-heart,
.loading-star {
  position: absolute;
  color: rgba(244, 137, 181, 0.34);
  font-weight: 900;
  -webkit-animation: loadingFloat 2.8s ease-in-out infinite;
  animation: loadingFloat 2.8s ease-in-out infinite;
}

.loading-heart.h1 {
  left: 13%;
  top: 18%;
  font-size: 16px;
}

.loading-heart.h2 {
  right: 14%;
  bottom: 22%;
  font-size: 18px;
  animation-delay: 0.7s;
}

.loading-star.s1 {
  right: 18%;
  top: 16%;
  color: rgba(141, 194, 229, 0.42);
  font-size: 17px;
  animation-delay: 0.3s;
}

.loading-star.s2 {
  left: 19%;
  bottom: 20%;
  color: rgba(255, 207, 119, 0.46);
  font-size: 14px;
  animation-delay: 1s;
}

.loading-mascot {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  margin: 4px auto 24px;
  place-items: center;
  border: 2px solid rgba(244, 137, 181, 0.6);
  border-radius: 50%;
  color: #f38ab7;
  font-size: 42px;
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.95), transparent 42%),
    linear-gradient(135deg, rgba(255, 224, 237, 0.88), rgba(232, 247, 255, 0.9));
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.72), 0 16px 32px rgba(244, 137, 181, 0.2);
  -webkit-animation: loadingMascot 1.8s ease-in-out infinite;
  animation: loadingMascot 1.8s ease-in-out infinite;
}

.loading-bar {
  position: relative;
  width: 100%;
  height: 16px;
  overflow: hidden;
  border: 2px solid rgba(98, 83, 96, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.loading-progress {
  position: absolute;
  inset: 2px auto 2px 2px;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffc7dc, #ff8fbd, #ffd6e7);
  box-shadow: 0 0 14px rgba(255, 143, 189, 0.38);
  -webkit-animation: loadingProgress 1.35s ease-in-out infinite;
  animation: loadingProgress 1.35s ease-in-out infinite;
}

.loading-title {
  position: relative;
  margin-top: 22px;
  color: #6c5f70;
  font-size: 18px;
  font-weight: 900;
}

.loading-subtitle {
  position: relative;
  margin-top: 8px;
  color: #a294a1;
  font-size: 13px;
  font-weight: 700;
}

@keyframes loadingProgress {
  0% {
    transform: translateX(-110%);
  }
  52% {
    transform: translateX(58%);
  }
  100% {
    transform: translateX(170%);
  }
}

@-webkit-keyframes loadingProgress {
  0% {
    -webkit-transform: translateX(-110%);
            transform: translateX(-110%);
  }
  52% {
    -webkit-transform: translateX(58%);
            transform: translateX(58%);
  }
  100% {
    -webkit-transform: translateX(170%);
            transform: translateX(170%);
  }
}

@keyframes loadingMascot {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@-webkit-keyframes loadingMascot {
  0%,
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
  }
}

@keyframes loadingFloat {
  0%,
  100% {
    opacity: 0.32;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.82;
    transform: translateY(-8px) scale(1.12);
  }
}

@-webkit-keyframes loadingFloat {
  0%,
  100% {
    opacity: 0.32;
    -webkit-transform: translateY(0) scale(1);
            transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.82;
    -webkit-transform: translateY(-8px) scale(1.12);
            transform: translateY(-8px) scale(1.12);
  }
}

body.role-player {
  background:
    linear-gradient(180deg, rgba(255, 248, 252, 0.64), rgba(255, 255, 255, 0.78)),
    url("assets/sweet-pink.jpg") center top / cover fixed no-repeat;
}

body.role-reception {
  background:
    linear-gradient(180deg, rgba(255, 252, 255, 0.68), rgba(255, 255, 255, 0.8)),
    url("assets/sweet-lace.jpg") center top / cover fixed no-repeat;
}

body.role-manager {
  background:
    linear-gradient(180deg, rgba(255, 247, 252, 0.64), rgba(247, 253, 255, 0.82)),
    url("assets/sweet-lace.jpg") center top / cover fixed no-repeat;
}

body.role-admin {
  background:
    linear-gradient(180deg, rgba(244, 252, 255, 0.62), rgba(255, 250, 253, 0.82)),
    url("assets/sweet-blue.png") center top / cover fixed no-repeat;
}

.phone-frame {
  position: relative;
  width: min(430px, calc(100svh * 9 / 16));
  height: min(100svh, 765px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border: 1px solid rgba(225, 187, 215, 0.78);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(170, 130, 160, 0.24);
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  color: rgba(238, 139, 181, 0.34);
  font-size: 132px;
  line-height: 1;
}

body::before {
  content: "♡";
  top: 7%;
  right: 7%;
}

body::after {
  content: "♡";
  left: 3%;
  bottom: 8%;
  color: rgba(110, 205, 226, 0.28);
}

button,
input,
select,
textarea {
  font: inherit;
  font-size: 16px;
  max-width: 100%;
  box-sizing: border-box;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.app-shell:not(.is-visible) {
  display: none;
}

.app-shell.is-visible {
  display: grid;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.login-screen {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 0;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 246, 251, 0.5), rgba(236, 249, 255, 0.44)),
    url("assets/sweet-blue.png") center center / cover no-repeat;
}

.login-phone-frame {
  position: relative;
  display: grid;
  align-content: center;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 246, 251, 0.42), rgba(255, 255, 255, 0.78)),
    url("assets/sweet-blue.png") center center / cover no-repeat;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 100%) 0 0 / 88px 88px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 100%) 0 0 / 88px 88px,
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.94), transparent 20%),
    linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, 0.58) 54%, transparent 62%);
  pointer-events: none;
}

.login-screen::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 34px;
  box-shadow: inset 0 0 0 1px rgba(244, 174, 205, 0.42), inset 0 0 34px rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.login-art,
.login-panel,
.login-card-wrap {
  position: relative;
  z-index: 1;
}

.login-art {
  position: absolute;
  inset: 0;
  min-height: 0;
  pointer-events: none;
}

.login-art-main {
  position: absolute;
  left: -8%;
  bottom: -9%;
  width: min(680px, 62vw);
  max-height: 92vh;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.58;
  filter: saturate(1.04) brightness(1.08);
  mask-image: radial-gradient(circle at 48% 48%, black 0 58%, transparent 76%);
}

.login-art-soft {
  position: absolute;
  left: 22%;
  top: -8%;
  width: min(420px, 38vw);
  opacity: 0.28;
  filter: blur(2px) brightness(1.12);
  mask-image: radial-gradient(circle, black 0 48%, transparent 72%);
}

.login-welcome-copy {
  position: absolute;
  left: clamp(12px, 8vw, 86px);
  bottom: clamp(22px, 8vh, 84px);
  max-width: 520px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px;
  color: #766b9d;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(150, 132, 166, 0.14);
}

.login-welcome-copy p {
  margin-bottom: 8px;
  color: #e487b3;
  font-weight: 900;
}

.login-welcome-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 56px);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: #8c87bf;
}

.login-welcome-copy span {
  color: #8f8294;
}

.login-panel {
  padding: 24px 24px 18px;
  border: 2px solid rgba(255, 225, 238, 0.86);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 253, 0.82)),
    linear-gradient(135deg, rgba(255, 207, 226, 0.34), rgba(217, 245, 255, 0.34));
  box-shadow: 0 26px 70px rgba(152, 128, 166, 0.22), inset 0 0 34px rgba(255, 222, 236, 0.38);
  backdrop-filter: blur(26px);
}

.application-panel {
  max-height: calc(100% - 24px);
  overflow-y: auto;
  scrollbar-width: none;
}

.application-panel::-webkit-scrollbar {
  display: none;
}

.application-panel .login-title h1 {
  font-size: 38px;
  line-height: 1;
}

.application-panel .login-title p {
  margin-bottom: 8px;
}

.application-panel .login-lead {
  margin-bottom: 10px;
  font-size: 14px;
}

.application-panel .login-form {
  gap: 10px;
}

.application-panel .login-form label:not(.login-input) {
  color: #80759e;
  font-weight: 800;
}

.application-panel input,
.application-panel select {
  min-height: 44px;
  border: 1px solid rgba(205, 186, 220, 0.58);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.application-panel .login-submit,
.application-panel .join-submit {
  min-height: 50px;
}

.login-panel::before,
.login-panel::after {
  content: "✧";
  position: absolute;
  color: rgba(237, 143, 186, 0.5);
  font-size: 34px;
}

.login-panel::before {
  top: 20px;
  left: 24px;
}

.login-panel::after {
  right: 24px;
  bottom: 20px;
}

.login-ribbon {
  width: fit-content;
  margin: 0 auto 8px;
  color: #b79ac3;
  font-weight: 900;
}

.login-title {
  text-align: center;
}

.login-title h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(110deg, #ef91b8, #8da8e9 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-title p {
  margin: -4px 0 10px;
  color: #8b82bb;
  font-size: 22px;
  letter-spacing: 8px;
}

.login-lead {
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 12px;
}

.identity-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 14px;
  padding: 6px;
  border: 1px solid rgba(194, 181, 220, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.identity-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
}

.identity-tabs button.active,
.identity-tabs button:hover {
  color: white;
  background: linear-gradient(135deg, #ff9fc6, #a6b4ff);
  box-shadow: 0 10px 24px rgba(232, 136, 184, 0.26);
}

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

.login-input {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr 24px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(194, 181, 220, 0.74);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
  color: #a99ac2;
}

.login-input input {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.login-input i {
  color: #df9cc1;
  font-style: normal;
}

.login-submit,
.join-submit {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  font-size: 22px;
  letter-spacing: 8px;
}

.login-submit {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  color: white;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.28)),
    linear-gradient(135deg, #ff96c6, #a1b4ff);
  box-shadow: 0 16px 30px rgba(217, 130, 188, 0.28), inset 0 0 18px rgba(255, 255, 255, 0.42);
}

.join-submit {
  margin-top: 12px;
  border: 1px solid rgba(221, 193, 224, 0.8);
  color: #8a7db4;
  background: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  letter-spacing: 2px;
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.login-links button,
.mini-button {
  border: 0;
  color: var(--pink-strong);
  background: transparent;
}

.login-feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.login-phone-frame.is-application .login-feature-row {
  display: none;
}

.login-phone-frame.is-application {
  align-content: center;
}

.login-phone-frame.is-application .login-card-wrap {
  position: fixed;
  width: min(381px, calc((100svh * 9 / 16) - 24px));
  left: 50%;
  top: 12px;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
}

.login-phone-frame.is-application .application-panel {
  max-height: 100%;
}

.login-feature-row article {
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(233, 205, 219, 0.84);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 12px 28px rgba(152, 128, 166, 0.12);
}

.login-feature-row strong {
  display: block;
  color: #8b82bb;
  margin-bottom: 7px;
}

.login-feature-row span {
  color: var(--muted);
  font-size: 12px;
}

.login-card-wrap {
  align-self: center;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  top: 18px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.confirm-layer {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(112, 92, 120, 0.22);
  backdrop-filter: blur(16px);
}

.confirm-card {
  width: min(340px, 88vw);
  padding: 22px;
  border: 1px solid rgba(225, 187, 215, 0.82);
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 250, 253, 0.94), rgba(255, 255, 255, 0.88)),
    url("assets/sweet-lace.jpg") center / cover no-repeat;
  box-shadow: 0 24px 70px rgba(170, 130, 160, 0.26);
}

.confirm-card h3 {
  margin: 4px 0 8px;
  color: #8c82b7;
  font-size: 24px;
}

.confirm-card span {
  color: var(--muted);
  line-height: 1.7;
}

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

.confirm-actions .login-submit,
.confirm-actions .secondary-button {
  min-height: 46px;
}

.hidden {
  display: none !important;
}

body.role-player [data-role-view]:not([data-role-view="player"]),
body.role-reception [data-role-view]:not([data-role-view="reception"]),
body.role-manager [data-role-view]:not([data-role-view="manager"]),
body.role-admin [data-role-view]:not([data-role-view="admin"]) {
  display: none !important;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 250, 252, 0.68);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(145deg, #ff9bc4, #9ee7ff);
}

.brand span,
.metric-card small,
.side-card p,
.hero-copy p,
.notice-strip {
  color: var(--muted);
}

.side-nav {
  display: grid;
  gap: 10px;
  margin: 26px 0;
}

.side-nav button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 13px 16px;
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.side-nav button.active,
.side-nav button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(151, 132, 148, 0.1);
}

.side-card,
.panel,
.metric-card,
.hero-panel,
.modal-card {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.side-card {
  padding: 18px;
  border-radius: 22px;
}

.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink-strong);
  box-shadow: 0 0 0 8px rgba(243, 138, 183, 0.16);
}

.workspace {
  padding: 24px;
  overflow: hidden;
}

.role-player .workspace,
.role-reception .workspace,
.role-manager .workspace,
.role-admin .workspace {
  max-width: none;
  margin: 0 auto;
}

.role-player .workspace,
.role-reception .workspace,
.role-manager .workspace,
.role-admin .workspace {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 0;
}

.role-player .topbar,
.role-reception .topbar,
.role-manager .topbar,
.role-admin .topbar {
  display: none;
}

.role-player .sidebar,
.role-reception .sidebar,
.role-manager .sidebar,
.role-admin .sidebar {
  display: none;
}

.role-player .app-shell.is-visible,
.role-reception .app-shell.is-visible,
.role-manager .app-shell.is-visible,
.role-admin .app-shell.is-visible {
  display: block;
}

.role-home {
  display: grid;
  gap: 18px;
}

.mobile-hero-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(255, 216, 232, 0.76);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42)),
    url("assets/sweet-pink.jpg") center 42% / cover no-repeat;
  box-shadow: var(--shadow);
}

.mobile-hero-card.reception {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.46)),
    url("assets/sweet-lace.jpg") center 36% / cover no-repeat;
}

.mobile-hero-card h2 {
  max-width: 460px;
  margin-bottom: 12px;
  color: #8178b3;
  font-size: 38px;
  line-height: 1.18;
}

.mobile-hero-card p:not(.eyebrow) {
  max-width: 420px;
  color: #8f8294;
  line-height: 1.8;
}

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

.role-action-grid button {
  display: grid;
  gap: 8px;
  min-height: 122px;
  padding: 14px;
  border: 1px solid rgba(222, 184, 216, 0.72);
  border-radius: 24px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(178, 139, 170, 0.12);
  backdrop-filter: blur(16px);
}

.role-action-grid span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #ff94bf, #a6b8ff);
}

.role-action-grid small {
  color: var(--muted);
}

.role-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 249, 252, 0.78)),
    url("assets/sweet-lace.jpg") center / cover no-repeat;
}

.player-phone-shell {
  position: relative;
  width: min(430px, calc(100svh * 9 / 16));
  height: min(100svh, 765px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  padding: 0 14px 86px;
  border: 1px solid rgba(225, 187, 215, 0.78);
  border-radius: 34px;
  overflow-x: hidden;
  overflow-y: hidden;
  background:
    linear-gradient(180deg, rgba(255, 248, 252, 0.8), rgba(255, 255, 255, 0.74)),
    url("assets/sweet-pink.jpg") center top / cover no-repeat;
  box-shadow: 0 24px 70px rgba(170, 130, 160, 0.24);
  scrollbar-width: none;
}

.player-screen {
  height: calc(100% - 70px);
  padding-bottom: 96px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.player-screen::-webkit-scrollbar {
  display: none;
}

.reception-home,
.manager-home,
.admin-mobile-home {
  width: 100%;
}

.reception-home {
  position: relative;
  width: min(430px, calc(100svh * 9 / 16));
  height: min(100svh, 765px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  padding: 0 14px 86px;
  border: 1px solid rgba(225, 187, 215, 0.78);
  border-radius: 34px;
  overflow-x: hidden;
  overflow-y: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 255, 0.78), rgba(255, 255, 255, 0.74)),
    url("assets/sweet-lace.jpg") center top / cover no-repeat;
  box-shadow: 0 24px 70px rgba(170, 130, 160, 0.24);
  scrollbar-width: none;
}

.reception-home::-webkit-scrollbar {
  display: none;
}

.admin-phone-shell {
  background:
    linear-gradient(180deg, rgba(244, 252, 255, 0.78), rgba(255, 255, 255, 0.74)),
    url("assets/sweet-blue.png") center top / cover no-repeat;
}

.manager-phone-shell {
  background:
    linear-gradient(180deg, rgba(255, 247, 252, 0.8), rgba(255, 255, 255, 0.76)),
    url("assets/sweet-lace.jpg") center top / cover no-repeat;
}

.admin-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.5)),
    url("assets/sweet-blue.png") center 35% / cover no-repeat;
}

.manager-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 252, 0.56)),
    url("assets/sweet-lace.jpg") center 32% / cover no-repeat;
}

.warning-panel {
  color: #7e6681;
  background:
    linear-gradient(135deg, rgba(255, 238, 247, 0.86), rgba(239, 249, 255, 0.78));
}

.warning-panel p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.admin-filter-card {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(224, 186, 215, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 36px rgba(184, 143, 174, 0.13);
  backdrop-filter: blur(18px);
}

.admin-filter-card input,
.admin-filter-card select {
  min-height: 42px;
  border: 1px solid rgba(205, 186, 220, 0.58);
  border-radius: 15px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
}

.compact-period-card {
  padding: 10px;
}

.admin-filter-card,
.player-filter-row,
.compact-period-card,
.inline-period-row {
  overflow: visible;
}

.period-picker {
  display: block;
  width: 100%;
}

.period-picker > select,
select[data-filter-date-range],
select[data-finance-range] {
  display: none;
}

.date-filter-source {
  display: none !important;
}

.unified-date-filter {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  z-index: 30;
}

.unified-date-filter.open {
  z-index: 2100;
}

.unified-date-filter button {
  min-height: 38px;
  border: 1px solid rgba(225, 187, 215, 0.82);
  border-radius: 999px;
  padding: 0 8px;
  color: #8178b3;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255, 246, 251, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: 0 10px 22px rgba(184, 143, 174, 0.12);
}

.unified-date-filter button.active {
  color: #fff;
  border-color: rgba(216, 147, 214, 0.72);
  background: linear-gradient(135deg, #ec8fc4, #a9b6ff);
}

.date-filter-group {
  position: relative;
  min-width: 0;
}

.date-filter-group > button {
  width: 100%;
}

.date-filter-popover {
  position: absolute;
  z-index: 2200;
  top: calc(100% + 7px);
  left: 50%;
  display: none;
  width: max-content;
  min-width: 92px;
  padding: 7px;
  border: 1px solid rgba(225, 187, 215, 0.78);
  border-radius: 16px;
  background: rgba(255, 250, 253, 0.98);
  box-shadow: 0 18px 40px rgba(184, 143, 174, 0.2);
  transform: translateX(-50%);
}

.date-filter-popover.show {
  display: grid;
  gap: 6px;
}

.date-filter-popover button {
  min-height: 34px;
  box-shadow: none;
}

.date-filter-floating-menu {
  position: fixed;
  z-index: 99999;
  display: grid;
  gap: 6px;
  min-width: 96px;
  padding: 7px;
  border: 1px solid rgba(225, 187, 215, 0.78);
  border-radius: 16px;
  background: rgba(255, 250, 253, 0.99);
  box-shadow: 0 24px 56px rgba(143, 93, 136, 0.32);
}

.date-filter-floating-menu button {
  min-height: 36px;
  border: 1px solid rgba(225, 187, 215, 0.78);
  border-radius: 999px;
  padding: 0 16px;
  color: #8178b3;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255, 246, 251, 0.98), rgba(255, 255, 255, 0.94));
}

.period-picker select {
  min-height: 38px;
  width: 100%;
  border: 1px solid rgba(225, 187, 215, 0.86);
  border-radius: 999px;
  padding: 0 28px 0 13px;
  color: #8c82b7;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(184, 143, 174, 0.14);
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9b8fbd 50%),
    linear-gradient(135deg, #9b8fbd 50%, transparent 50%),
    linear-gradient(135deg, rgba(255, 236, 246, 0.96), rgba(255, 255, 255, 0.9));
  background-position:
    calc(100% - 15px) 16px,
    calc(100% - 10px) 16px,
    0 0;
  background-size:
    5px 5px,
    5px 5px,
    100% 100%;
  background-repeat: no-repeat;
}

.period-picker select:nth-child(2) {
  color: #7f77aa;
  background-image:
    linear-gradient(45deg, transparent 50%, #8c82b7 50%),
    linear-gradient(135deg, #8c82b7 50%, transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 243, 255, 0.9));
  border-color: rgba(205, 186, 220, 0.86);
}

.period-picker select:nth-child(3) {
  color: #6f6490;
  background-image:
    linear-gradient(45deg, transparent 50%, #8178b3 50%),
    linear-gradient(135deg, #8178b3 50%, transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 253, 0.9));
  border-color: rgba(225, 187, 215, 0.78);
}

.player-filter-row select {
  min-height: 38px;
  border: 1px solid rgba(225, 187, 215, 0.86);
  border-radius: 999px;
  padding: 0 30px 0 14px;
  color: #8178b3;
  font-size: 13px;
  font-weight: 800;
  background-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(184, 143, 174, 0.14);
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8c82b7 50%),
    linear-gradient(135deg, #8c82b7 50%, transparent 50%),
    linear-gradient(135deg, rgba(255, 236, 246, 0.96), rgba(255, 255, 255, 0.9));
  background-position:
    calc(100% - 15px) 16px,
    calc(100% - 10px) 16px,
    0 0;
  background-size:
    5px 5px,
    5px 5px,
    100% 100%;
  background-repeat: no-repeat;
}

.player-filter-row select option,
.period-picker select option,
.admin-filter-card select option {
  color: #6f6490;
  background: #fffafd;
}

.player-filter-row select option:checked,
.period-picker select option:checked,
.admin-filter-card select option:checked {
  color: #ffffff;
  background: #b69bf0;
}

.player-filter-row select:focus,
.period-picker select:focus,
.admin-filter-card select:focus,
.admin-filter-card input:focus,
.admin-filter-card textarea:focus {
  border-color: rgba(231, 139, 190, 0.78);
  box-shadow:
    0 0 0 3px rgba(255, 205, 230, 0.48),
    0 12px 24px rgba(184, 143, 174, 0.18);
}

.inline-period-row select:focus,
.inline-period-row select.active {
  color: white;
  border-color: rgba(216, 147, 214, 0.72);
  background-image:
    linear-gradient(45deg, transparent 50%, white 50%),
    linear-gradient(135deg, white 50%, transparent 50%),
    linear-gradient(135deg, #ec8fc4, #a9b6ff);
}

.inline-period-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inline-period-row .unified-date-filter {
  grid-column: 1 / -1;
}

.identity-switch-button {
  position: relative;
  min-height: 34px;
  border: 1px solid rgba(225, 187, 215, 0.78);
  border-radius: 999px;
  padding: 0 14px;
  color: #8178b3;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(184, 143, 174, 0.18);
  backdrop-filter: blur(18px);
}

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

.admin-card-list article {
  padding: 15px;
  border: 1px solid rgba(224, 186, 215, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 36px rgba(184, 143, 174, 0.13);
  backdrop-filter: blur(18px);
}

.admin-card-list article.is-filtered-out,
.player-record-list article.is-filtered-out,
.report-list article.is-filtered-out,
.member-card-list article.is-filtered-out,
.mine-data-grid article.is-filtered-out,
.daily-stat-grid article.is-filtered-out,
.player-stat-grid article.is-filtered-out {
  display: none;
}

.mini-badge.hidden {
  display: none;
}

.admin-card-list h4 {
  margin: 0 0 8px;
  color: #6f6490;
}

.admin-card-list p {
  margin-bottom: 8px;
  color: #7f748c;
  line-height: 1.7;
}

.admin-card-list span {
  color: #ef6fa5;
  font-weight: 800;
}

.admin-card-list.compact {
  margin-top: 0;
}

.daily-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.daily-stat-grid article {
  min-height: 108px;
  padding: 13px;
  border: 1px solid rgba(224, 186, 215, 0.7);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(184, 143, 174, 0.13);
  backdrop-filter: blur(18px);
}

.daily-stat-grid span,
.daily-stat-grid small {
  color: var(--muted);
}

.daily-stat-grid strong {
  display: block;
  margin: 8px 0 4px;
  color: #ef6fa5;
  font-size: 21px;
}

.member-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.member-actions button {
  min-height: 36px;
  border: 1px solid rgba(225, 187, 215, 0.72);
  border-radius: 999px;
  color: #8178b3;
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.member-card-list article:last-child .member-actions {
  grid-template-columns: repeat(2, 1fr);
}

.player-phone-shell::-webkit-scrollbar {
  display: none;
}

.player-top {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0 -14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255, 246, 251, 0.94), rgba(255, 246, 251, 0.68));
  backdrop-filter: blur(18px);
}

.top-right-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.top-right-actions .identity-switch-button {
  min-height: 42px;
  padding: 0 10px;
  font-size: 12px;
}

.top-right-actions .round-icon {
  width: 42px;
  height: 42px;
}

.player-top h2 {
  margin: 0;
  color: #8c82b7;
  font-size: 28px;
  line-height: 1.1;
}

.round-icon {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(220, 165, 190, 0.48);
  border-radius: 50%;
  color: #9b8fbd;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(190, 150, 180, 0.12);
}

.mini-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-size: 11px;
  background: #ff83ad;
}

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

.player-stat-grid article,
.player-form-head,
.player-form,
.player-record-card {
  border: 1px solid rgba(224, 186, 215, 0.7);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 36px rgba(184, 143, 174, 0.13);
  backdrop-filter: blur(18px);
}

.player-stat-grid article {
  padding: 13px;
  border-radius: 20px;
}

.player-stat-grid span,
.player-stat-grid small,
.player-record-card p,
.player-record-card small,
.player-form-head span {
  color: var(--muted);
}

.player-stat-grid strong {
  display: block;
  margin: 8px 0 4px;
  color: #8a7eba;
  font-size: 22px;
}

.player-actions {
  margin-top: 2px;
}

.player-form-head {
  padding: 18px;
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.5)),
    url("assets/sweet-pink.jpg") center 42% / cover no-repeat;
}

.player-form-head h3 {
  margin-bottom: 8px;
  color: #8178b3;
  font-size: 30px;
}

.player-form {
  margin-top: 14px;
  padding: 18px;
  border-radius: 26px;
}

.player-form label {
  color: #80759e;
  font-size: 15px;
  font-weight: 800;
}

.player-form input,
.player-form select,
.player-form textarea {
  min-height: 50px;
  border-color: rgba(205, 186, 220, 0.58);
  background: rgba(255, 255, 255, 0.74);
}

.player-calc-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 194, 222, 0.72);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 28%, rgba(189, 238, 255, 0.52), transparent 24%),
    linear-gradient(135deg, rgba(255, 207, 226, 0.5), rgba(255, 255, 255, 0.72));
}

.player-calc-card strong {
  color: #ef6fa5;
  font-size: 20px;
}

.upload-box {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 116px;
  border: 1px dashed rgba(219, 154, 190, 0.68);
  border-radius: 22px;
  color: #9a8fb5;
  background: rgba(255, 251, 253, 0.68);
  cursor: pointer;
}

.upload-box b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ff83ad;
  font-size: 28px;
  font-weight: 400;
  background: rgba(255, 222, 235, 0.78);
}

.upload-box small {
  color: var(--muted);
}

.player-submit {
  letter-spacing: 3px;
}

.player-filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.player-filter-row button {
  min-height: 42px;
  border: 1px solid rgba(218, 183, 214, 0.66);
  border-radius: 999px;
  color: #8f829f;
  background: rgba(255, 255, 255, 0.72);
}

.player-filter-row button.active {
  color: white;
  background: linear-gradient(135deg, #ff8fbc, #a6b7ff);
}

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

.player-record-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
}

.player-record-card h4 {
  margin: 10px 0 6px;
  color: #6f6490;
}

.player-record-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.player-record-card dl div {
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 247, 251, 0.78);
}

.player-record-card dt {
  color: var(--muted);
  font-size: 12px;
}

.player-record-card dd {
  margin: 5px 0 0;
  color: #ef6fa5;
  font-weight: 900;
}

.player-bottom-nav {
  position: absolute;
  z-index: 7;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: auto;
  padding: 8px;
  border: 1px solid rgba(225, 187, 215, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 40px rgba(184, 143, 174, 0.18);
  backdrop-filter: blur(18px);
  transform: none;
}

.mine-profile-card,
.mine-data-grid article {
  border: 1px solid rgba(224, 186, 215, 0.7);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 36px rgba(184, 143, 174, 0.13);
  backdrop-filter: blur(18px);
}

.mine-profile-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  padding: 14px;
  border-radius: 22px;
}

.mine-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #ff93bd, #a7b8ff);
}

.mine-profile-card h4 {
  margin: 0 0 4px;
  color: #6f6490;
}

.mine-profile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.mine-data-grid article {
  padding: 13px;
  border-radius: 20px;
}

.mine-data-grid span,
.mine-data-grid small {
  color: var(--muted);
}

.mine-data-grid strong {
  display: block;
  margin: 8px 0 4px;
  color: #ef6fa5;
  font-size: 22px;
}

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

.mine-list button {
  min-height: 46px;
  border: 1px solid rgba(225, 187, 215, 0.72);
  border-radius: 999px;
  color: #8178b3;
  background: rgba(255, 255, 255, 0.74);
}

.player-bottom-nav button {
  min-height: 46px;
  border: 0;
  border-radius: 18px;
  color: #9689ad;
  background: transparent;
}

.player-bottom-nav button.active {
  color: white;
  background: linear-gradient(135deg, #ff91bd, #9db4ff);
}

.topbar,
.panel-head,
.top-actions,
.hero-actions {
  display: flex;
  align-items: center;
}

.topbar,
.panel-head {
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--pink-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

.top-actions {
  gap: 10px;
}

.icon-button,
.ghost-button,
.primary-button,
.secondary-button,
select {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
}

.icon-button {
  position: relative;
  width: 44px;
  height: 44px;
}

.badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  background: var(--pink-strong);
}

.ghost-button,
.primary-button,
.secondary-button,
select {
  padding: 11px 16px;
}

.primary-button {
  border: 0;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #ff91bd, #88dcf4);
  box-shadow: 0 12px 26px rgba(243, 138, 183, 0.28);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.72);
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  margin-top: 22px;
  padding: 30px;
  border-radius: 28px;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(243, 138, 183, 0.28);
  border-radius: 24px;
  pointer-events: none;
}

.soft-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 199, 220, 0.34);
}

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

.hero-copy h2 {
  max-width: 660px;
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.25;
}

.hero-copy p {
  max-width: 620px;
  line-height: 1.8;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.orbit-card {
  position: relative;
  display: grid;
  min-height: 210px;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  width: 204px;
  height: 204px;
  border: 1px solid rgba(108, 203, 226, 0.48);
  border-radius: 50%;
  animation: spin 10s linear infinite;
}

.orbit-ring::before,
.orbit-ring::after {
  content: "✧";
  position: absolute;
  color: var(--pink-strong);
}

.orbit-ring::before {
  top: 12px;
  left: 32px;
}

.orbit-ring::after {
  right: 20px;
  bottom: 26px;
  color: #78cfe4;
}

.orbit-core {
  display: grid;
  width: 144px;
  height: 144px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 215, 230, 0.84));
}

.orbit-core strong {
  font-size: 42px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.metric-grid,
.content-grid {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.metric-card,
.panel {
  border-radius: 22px;
}

.metric-card {
  padding: 18px;
}

.metric-card strong {
  display: block;
  margin: 9px 0;
  font-size: 28px;
}

.metric-card.blue {
  background: rgba(225, 248, 255, 0.82);
}

.metric-card.green {
  background: rgba(236, 255, 241, 0.82);
}

.metric-card.yellow {
  background: rgba(255, 249, 217, 0.88);
}

.content-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
}

.panel {
  padding: 20px;
}

.report-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.report-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(220, 165, 190, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.report-item h4 {
  margin: 0 0 6px;
}

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

.status-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 74px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 240, 175, 0.7);
}

.status-pill.approved {
  background: rgba(205, 238, 220, 0.82);
}

.status-pill.returned {
  background: rgba(255, 199, 220, 0.68);
}

.item-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  grid-column: 1 / -1;
}

.item-actions button {
  display: inline-grid;
  min-width: 54px;
  min-height: 38px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(189, 238, 255, 0.52);
}

.item-actions button.stacked-action {
  min-width: 52px;
  min-height: 46px;
  padding: 7px 10px;
  line-height: 1.08;
  text-align: center;
}

.item-actions button.stacked-action span {
  display: block;
}

.date-range-card {
  max-height: min(86svh, 620px);
  overflow-y: auto;
}

.date-range-toolbar {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items: center;
  margin: 10px 0 12px;
}

.date-range-toolbar button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 199, 220, 0.48);
}

.date-range-toolbar strong {
  text-align: center;
  color: #80759e;
}

.date-range-weekdays,
.date-range-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.date-range-weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.date-range-grid {
  margin: 8px 0 14px;
}

.date-range-grid button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
}

.date-range-grid button.in-range {
  background: rgba(189, 238, 255, 0.42);
}

.date-range-grid button.selected {
  color: #fff;
  background: var(--pink-strong);
  box-shadow: 0 10px 24px rgba(243, 138, 183, 0.24);
}

.radar {
  position: relative;
  height: 280px;
  margin-top: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 18%, transparent 19%),
    repeating-radial-gradient(circle, rgba(123, 211, 232, 0.28) 0 1px, transparent 1px 48px),
    conic-gradient(from 20deg, rgba(255, 154, 196, 0.28), rgba(151, 230, 246, 0.3), rgba(255, 240, 175, 0.28), rgba(255, 154, 196, 0.28));
  overflow: hidden;
}

.radar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72));
  animation: spin 7s linear infinite;
}

.radar-center {
  position: absolute;
  z-index: 2;
  inset: 50%;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
}

.radar span {
  position: absolute;
  z-index: 3;
  left: var(--x);
  top: var(--y);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.notice-strip {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 247, 251, 0.8);
}

.table-panel {
  margin-top: 18px;
}

.data-table {
  min-width: 680px;
  margin-top: 16px;
}

.table-panel {
  overflow-x: auto;
}

.table-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(5, 1fr);
  gap: 12px;
  padding: 13px 10px;
  border-bottom: 1px solid rgba(220, 165, 190, 0.22);
}

.table-head {
  color: var(--muted);
  font-size: 13px;
}

.mobile-shortcuts {
  display: none;
}

.modal {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(79, 70, 80, 0.24);
  backdrop-filter: blur(12px);
}

.modal.show {
  display: flex;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 26px;
}

.detail-modal-card {
  max-width: 430px;
  max-height: min(82svh, 720px);
  overflow: auto;
  border: 1px solid rgba(225, 187, 215, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 246, 251, 0.96), rgba(250, 252, 255, 0.92)),
    url("assets/sweet-lace.jpg") center / cover;
  box-shadow: 0 26px 70px rgba(184, 143, 174, 0.28);
}

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

.detail-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(224, 186, 215, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.person-card,
.wage-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(236, 188, 218, 0.78);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 247, 252, 0.98), rgba(255, 255, 255, 0.88)),
    url("assets/sweet-lace.jpg") center / cover;
  box-shadow: 0 18px 42px rgba(190, 145, 176, 0.18);
  cursor: pointer;
}

.report-item.person-card,
.player-record-card.person-card,
.report-summary-card.person-card {
  display: grid;
  align-items: stretch;
}

.person-card-head,
.wage-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.person-card-head h4,
.wage-card-head h4 {
  margin: 0 0 4px;
  color: #775f88;
  font-size: 18px;
}

.person-card-head p,
.wage-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.person-card-head strong,
.wage-card-head strong {
  flex: 0 0 auto;
  color: #e65c91;
  font-size: 22px;
  line-height: 1.1;
}

.person-card-metrics,
.wage-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.person-card-metrics span,
.wage-card-metrics span {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 14px;
  color: #7f7386;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.detail-row span {
  color: #e57fb4;
  font-size: 12px;
  font-weight: 900;
}

.detail-row strong {
  color: #6f6490;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.detail-list label {
  color: #7f748c;
  font-size: 13px;
}

.detail-list .switch-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(224, 186, 215, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.danger-action {
  background: linear-gradient(135deg, #ff8cad, #c49cff);
}

.detail-modal-card::-webkit-scrollbar {
  display: none;
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 199, 220, 0.42);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
  background: rgba(255, 255, 255, 0.72);
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(120, 207, 228, 0.75);
  box-shadow: 0 0 0 4px rgba(189, 238, 255, 0.34);
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-pair > *,
.player-form > *,
.login-form > * {
  min-width: 0;
}

input[type="datetime-local"],
input[type="date"],
input[type="time"],
input[type="number"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.calc-preview {
  display: grid;
  gap: 6px;
  padding: 13px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255, 199, 220, 0.34), rgba(189, 238, 255, 0.34));
}

@media (max-width: 900px) {
  .login-screen {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 14px;
    min-height: 100svh;
  }

  .login-art {
    min-height: 30vh;
  }

  .login-art-main {
    left: 50%;
    bottom: -60px;
    width: min(560px, 100vw);
    transform: translateX(-50%);
  }

  .login-feature-row {
    grid-template-columns: 1fr;
    display: none;
  }

  .login-welcome-copy {
    left: 16px;
    right: 16px;
    bottom: 12px;
    padding: 14px 16px;
  }

  .login-welcome-copy h2 {
    font-size: 28px;
  }

  .login-panel {
    padding: 22px 18px;
    border-radius: 28px;
  }

  .login-title h1 {
    font-size: 48px;
  }

  .login-title p {
    font-size: 18px;
    letter-spacing: 5px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    padding: 16px 14px 92px;
  }

  .role-player .workspace,
  .role-reception .workspace,
  .role-manager .workspace,
  .role-admin .workspace {
    padding: 0;
  }

  .role-player .topbar,
  .role-reception .topbar,
  .role-manager .topbar,
  .role-admin .topbar {
    display: none;
  }

  .role-player .top-actions,
  .role-reception .top-actions,
  .role-manager .top-actions,
  .role-admin .top-actions {
    display: none;
  }

  .mobile-hero-card {
    min-height: 190px;
    padding: 22px;
    border-radius: 26px;
  }

  .role-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .role-action-grid button {
    min-height: 128px;
    padding: 14px;
    border-radius: 20px;
  }

  .role-panel {
    padding: 14px;
    border-radius: 24px;
  }

  .topbar {
    align-items: flex-start;
  }

  h1 {
    font-size: 22px;
  }

  .hero-panel {
    display: block;
    padding: 22px;
    border-radius: 24px;
  }

  .hero-copy h2 {
    font-size: 26px;
  }

  .orbit-card {
    min-height: 176px;
    margin-top: 14px;
  }

  .orbit-ring {
    width: 166px;
    height: 166px;
  }

  .orbit-core {
    width: 118px;
    height: 118px;
  }

  .metric-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .mobile-shortcuts {
    display: none !important;
  }

  .mobile-shortcuts button {
    min-height: 70px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 24px rgba(222, 137, 176, 0.1);
  }

  .mobile-shortcuts span {
    display: block;
    margin-bottom: 5px;
    color: var(--pink-strong);
    font-size: 18px;
  }

  .top-actions .ghost-button {
    display: none;
  }
}

@media (max-width: 560px) {
  html,
  body {
    width: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .login-screen {
    padding: 0;
    min-height: 100dvh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .phone-frame,
  .player-phone-shell,
  .reception-home {
    width: 100vw;
    height: 100svh;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-phone-frame,
  .player-phone-shell,
  .reception-home {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .player-phone-shell,
  .reception-home {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .login-phone-frame {
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .login-phone-frame.is-application {
    height: auto;
    min-height: 100dvh;
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .login-phone-frame.is-application .login-card-wrap {
    position: relative;
    inset: auto;
    width: 100%;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    transform: none;
  }

  .login-phone-frame.is-application .application-panel {
    max-height: none;
    overflow: visible;
  }

  .login-phone-frame.is-application .login-panel {
    width: 100%;
  }

  .player-top {
    margin-left: calc(-1 * max(12px, env(safe-area-inset-left)));
    margin-right: calc(-1 * max(12px, env(safe-area-inset-right)));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .player-bottom-nav {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .modal {
    align-items: flex-end;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .modal-card,
  .detail-modal-card {
    width: 100%;
    max-width: none;
    max-height: calc(100svh - max(24px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom)));
    padding: 20px;
    border-radius: 26px;
  }

  .detail-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

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

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

  .member-actions button {
    min-height: 38px;
  }

  .workspace {
    padding: 0;
  }

  .topbar {
    padding-inline: 4px;
  }

  .hero-actions,
  .form-pair {
    display: grid;
    grid-template-columns: 1fr;
  }

  .player-form,
  .manager-form,
  .reception-form {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
    min-width: 0;
  }

  input[type="datetime-local"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
  }

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

  .identity-tabs {
    gap: 4px;
  }

  .login-submit,
  .join-submit {
    min-height: 56px;
  }

  .role-action-grid {
    grid-template-columns: 1fr 1fr;
  }

  .role-action-grid button strong {
    font-size: 15px;
  }
}


