:root {
  --teal: #19b38b;
  --dark: #17322f;
  --dark-2: #0f2322;
  --bg: #f3f6f4;
  --panel: #ffffff;
  --line: #dfe6ef;
  --text: #1d2633;
  --muted: #7d8795;
  --blue: #2f7cf6;
  --green: #19a974;
  --red: #e8534f;
  --orange: #f2994a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
}

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

button {
  cursor: pointer;
}

.login-screen {
  min-height: 100vh;
  overflow-x: hidden;
  color: #162033;
  background:
    radial-gradient(circle at 8% 10%, rgba(33, 196, 198, 0.28), transparent 30%),
    radial-gradient(circle at 72% 4%, rgba(47, 124, 246, 0.16), transparent 28%),
    linear-gradient(180deg, #e8faf8 0%, #f4f8fb 44%, #eef4f7 100%);
}

.login-screen.hidden {
  display: none;
}

.portal-entry .public-page {
  padding-right: 28px;
}

.portal-entry .login-aside {
  display: none;
}

.console-entry .login-screen {
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.console-entry .login-screen.hidden {
  display: none;
}

.console-entry .public-header,
.console-entry .public-page {
  display: none;
}

.console-entry .login-aside {
  position: static;
  width: min(420px, 100%);
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  background: rgba(245, 252, 251, 0.82);
  backdrop-filter: blur(18px);
}

.public-brand,
.public-nav button,
.public-link-btn {
  border: 0;
  background: transparent;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f766e;
  font-weight: 900;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-nav button {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #526071;
  font-weight: 700;
}

.public-nav button:hover {
  color: #0f766e;
  background: #e7f8f2;
}

.public-page {
  max-width: none;
  margin: 0;
  padding: 34px 430px 52px 28px;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(310px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

.public-hero-media {
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #063944, #0aa7bd 58%, #6fe1d0);
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 70px rgba(11, 84, 102, 0.22);
}

.public-hero-media.has-image .public-hero-fallback {
  display: none;
}

.public-hero-fallback {
  height: 100%;
  min-height: 430px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 36px;
  color: #ffffff;
}

.public-hero-fallback span {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, #19b38b, #2f7cf6);
}

.public-hero-fallback strong {
  font-size: 42px;
  line-height: 1;
}

.public-hero-fallback em {
  font-size: 18px;
  font-style: normal;
}

.public-hero-copy {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 60px rgba(27, 55, 86, 0.1);
}

.public-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0f766e;
  background: #dff8f2;
  font-size: 12px;
  font-weight: 900;
}

.public-hero-copy h1 {
  margin: 18px 0 14px;
  color: #0f2433;
  font-size: 36px;
  line-height: 1.16;
}

.public-hero-copy p,
.public-section-head p,
.public-split p {
  margin: 0;
  color: #667085;
  line-height: 1.78;
}

.public-hero-actions {
  display: flex;
  gap: 12px;
  margin: 26px 0;
}

.public-primary,
.public-secondary {
  height: 42px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
}

.public-primary {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #12bfc9, #0f766e);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.24);
}

.public-secondary {
  border: 1px solid #b9d9e2;
  color: #0f5d76;
  background: #ffffff;
}

.public-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.public-stats div {
  min-height: 88px;
  padding: 14px;
  border-radius: 8px;
  background: #f1fbfb;
}

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

.public-stats strong {
  color: #087d77;
  font-size: 26px;
  line-height: 1;
}

.public-stats span {
  margin-top: 8px;
  color: #172033;
  font-weight: 900;
}

.public-stats em {
  margin-top: 4px;
  color: #7d8795;
  font-size: 12px;
  font-style: normal;
}

.public-section {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(188, 215, 239, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(27, 55, 86, 0.08);
}

.public-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.public-section h2 {
  margin: 12px 0 8px;
  color: #111827;
  font-size: 24px;
}

.public-link-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: #0f766e;
  background: #e7f8f2;
  font-weight: 900;
  white-space: nowrap;
}

.public-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.public-service-card {
  min-height: 198px;
  padding: 18px;
  border: 1px solid #e4edf4;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbfd);
}

.public-service-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #16c6d4, #0f766e);
}

.public-service-icon::after {
  color: #ffffff;
  font-weight: 900;
}

.public-service-icon.scan::after { content: "码"; }
.public-service-icon.bay::after { content: "位"; }
.public-service-icon.coupon::after { content: "券"; }
.public-service-icon.wallet::after { content: "¥"; }
.public-service-icon.care::after { content: "养"; }
.public-service-icon.service::after { content: "修"; }

.public-service-card h3 {
  margin: 16px 0 8px;
  font-size: 18px;
}

.public-service-card p {
  min-height: 74px;
  margin: 0;
  color: #5f6b7a;
  line-height: 1.65;
}

.public-service-card em {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-top: 14px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0f5d76;
  background: #e9f6ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.public-split {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 22px;
}

.public-care-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.public-care-item {
  min-height: 142px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8fafa, #ffffff);
  border: 1px solid #daf0ef;
}

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

.public-care-item strong {
  color: #0f766e;
  font-size: 17px;
}

.public-care-item span {
  margin-top: 10px;
  color: #5f6b7a;
  line-height: 1.55;
}

.public-care-item em {
  margin-top: 12px;
  color: #c65b25;
  font-style: normal;
  font-weight: 900;
}

.public-guide-card {
  min-height: 280px;
  padding: 22px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(3, 52, 69, 0.94), rgba(14, 149, 164, 0.86)),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.24), transparent 34%);
}

.public-guide-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.public-guide-card h3 {
  margin: 18px 0 14px;
  font-size: 24px;
}

.public-guide-card ol {
  margin: 0;
  padding-left: 20px;
}

.public-guide-card li {
  margin: 10px 0;
  line-height: 1.5;
}

.public-search-wrap input {
  width: 260px;
  height: 42px;
  border: 1px solid #d9e6ef;
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: #ffffff;
}

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

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

.public-store-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid #e1ebf2;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.public-store-card:hover,
.public-store-card.active {
  transform: translateY(-2px);
  border-color: #8edfd4;
  box-shadow: 0 12px 34px rgba(18, 120, 134, 0.13);
}

.public-store-thumb {
  min-height: 116px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #dff8f2, #9fe8f2),
    radial-gradient(circle at 28% 26%, #ffffff, transparent 28%);
  background-size: cover;
  background-position: center;
}

.public-store-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.public-store-title h3 {
  font-size: 18px;
  line-height: 1.3;
}

.public-store-title span {
  min-width: 58px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f766e;
  background: #e7f8f2;
  font-size: 12px;
  font-weight: 900;
}

.public-store-main p {
  margin: 8px 0;
  color: #7d8795;
}

.public-store-main > strong {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #075985;
  background: #edf8ff;
}

.public-store-metrics,
.public-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.public-store-metrics span,
.public-tags em {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #526071;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.public-tags em {
  color: #0f5d76;
  background: #eaf7ff;
}

.public-tags em.assist {
  color: #0f766e;
  background: #e7f8f2;
}

.public-store-detail {
  position: sticky;
  top: 88px;
  align-self: start;
  overflow: hidden;
  border: 1px solid #dce8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(27, 55, 86, 0.1);
}

.public-detail-image {
  min-height: 164px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  background:
    linear-gradient(135deg, #0d7e8b, #9debdc);
  background-size: cover;
  background-position: center;
}

.public-detail-image span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.public-detail-body {
  padding: 18px;
}

.public-detail-body h3 {
  font-size: 20px;
}

.public-detail-body p {
  margin: 8px 0 14px;
  color: #667085;
  line-height: 1.6;
}

.public-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.public-detail-grid div {
  padding: 12px 8px;
  border-radius: 8px;
  background: #f3fbfb;
  text-align: center;
}

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

.public-detail-grid strong {
  color: #0f766e;
  font-size: 22px;
}

.public-detail-grid span {
  color: #7d8795;
  font-size: 12px;
}

.public-info-list {
  margin: 14px 0 0;
}

.public-info-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
}

.public-info-list dt {
  color: #7d8795;
}

.public-info-list dd {
  margin: 0;
  color: #27364a;
  font-weight: 800;
}

.public-assist-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eafaf7, #eef7ff);
}

.public-assist-box strong,
.public-assist-box span {
  display: block;
}

.public-assist-box strong {
  color: #0f766e;
}

.public-assist-box span {
  margin-top: 6px;
  color: #667085;
  line-height: 1.55;
}

.public-assist-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.public-assist-box em {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f5d76;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

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

.public-store-actions a,
.public-store-actions button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  color: #0f766e;
  background: #e7f8f2;
  font-weight: 900;
  text-decoration: none;
}

.public-store-actions a:nth-child(2) {
  color: #075985;
  background: #edf8ff;
}

.public-store-actions button {
  color: #ffffff;
  background: linear-gradient(135deg, #12bfc9, #0f766e);
}

.public-partner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(14, 116, 144, 0.95), rgba(15, 118, 110, 0.92)),
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.24), transparent 30%);
}

.public-partner h2 {
  color: #ffffff;
}

.public-partner p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.public-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.public-contact-grid a,
.public-contact-grid div {
  min-height: 92px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
}

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

.public-contact-grid span {
  opacity: 0.8;
}

.public-contact-grid strong {
  margin-top: 10px;
  font-size: 18px;
}

.public-empty,
.public-error {
  padding: 18px;
  border-radius: 8px;
  color: #8a4b00;
  background: #fff8eb;
  border: 1px solid #f1c27d;
}

.public-error {
  margin-top: 16px;
}

.login-aside {
  width: 370px;
  position: fixed;
  top: 90px;
  right: 28px;
  z-index: 18;
}

.login-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(188, 215, 239, 0.78);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
}

.login-brand {
  height: auto;
  padding: 0;
  background: transparent;
  color: var(--text);
  margin-bottom: 22px;
}

.login-card h1 {
  margin-bottom: 8px;
}

.login-card label {
  display: block;
  margin: 16px 0 6px;
  color: #586575;
}

.login-card input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 12px;
}

.login-btn {
  width: 100%;
  margin-top: 22px;
}

.console-back-link {
  display: block;
  margin-top: 18px;
  color: #0f766e;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.console-back-link:hover {
  text-decoration: underline;
}

.authed.hidden {
  display: none;
}

.user-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px 1fr;
  background:
    radial-gradient(circle at 28% 0%, rgba(33, 196, 198, 0.16), transparent 28%),
    linear-gradient(180deg, #eef8f8 0%, #f5f8fb 46%, #eef3f7 100%);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(13, 37, 42, 0.98), rgba(11, 55, 61, 0.98)),
    radial-gradient(circle at 20% 10%, rgba(25, 179, 139, 0.28), transparent 38%);
  color: #d7e1ec;
  min-height: 100vh;
  box-shadow: 16px 0 42px rgba(15, 35, 34, 0.14);
}

.brand {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: rgba(3, 19, 23, 0.38);
  color: #ffffff;
  font-weight: 900;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #21c4c6, #0f766e);
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.26);
}

.nav {
  display: grid;
  gap: 5px;
  padding: 14px 10px;
}

.nav-item {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 8px;
  color: #cbd5e1;
  background: transparent;
  text-align: left;
  padding: 0 14px;
  font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 4px 0 0 #21c4c6;
}

.workspace {
  min-width: 0;
}

.topbar {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  color: #172033;
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(188, 215, 239, 0.72);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 2px;
  font-size: 12px;
  opacity: 0.82;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: 20px;
}

h2 {
  font-size: 16px;
}

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

.top-actions input,
select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 12px;
  outline: none;
}

.top-actions button,
.primary,
.ghost {
  height: 34px;
  border-radius: 4px;
  border: 0;
  padding: 0 14px;
}

.top-actions button,
.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #18bdc8, #0f766e);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.14);
}

.ghost {
  color: #31516e;
  background: #edf5ff;
  border: 1px solid #c8d9f0;
}

.view {
  display: none;
  padding: 24px;
}

.view.active {
  display: block;
}

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

.stat-card {
  min-height: 112px;
  padding: 18px;
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.11);
}

.stat-card:nth-child(1) { background: linear-gradient(135deg, #1f7ae0, #19b38b); }
.stat-card:nth-child(2) { background: linear-gradient(135deg, #0e8f7a, #68c66f); }
.stat-card:nth-child(3) { background: linear-gradient(135deg, #2f7cf6, #69c6f1); }
.stat-card:nth-child(4) { background: linear-gradient(135deg, #f2994a, #e8534f); }
.stat-card:nth-child(5) { background: linear-gradient(135deg, #44546a, #19b38b); }
.stat-card:nth-child(6) { background: linear-gradient(135deg, #208db5, #65d6a4); }
.stat-card:nth-child(7) { background: linear-gradient(135deg, #229a7d, #7fc96a); }
.stat-card:nth-child(8) { background: linear-gradient(135deg, #f5ad45, #d7684f); }

.stat-label {
  font-size: 13px;
  opacity: 0.92;
}

.stat-value {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 800;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.9fr);
  gap: 22px;
  align-items: center;
  min-height: 210px;
  margin-bottom: 18px;
  padding: 28px;
  overflow: hidden;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 49, 59, 0.96), rgba(15, 118, 110, 0.9)),
    radial-gradient(circle at 86% 22%, rgba(255, 255, 255, 0.24), transparent 34%);
  box-shadow: 0 22px 54px rgba(7, 49, 59, 0.18);
}

.dashboard-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #dffdf8;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-hero h2 {
  margin: 16px 0 10px;
  font-size: 30px;
}

.dashboard-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.dashboard-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dashboard-hero-metrics div {
  min-height: 116px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dashboard-hero-metrics strong,
.dashboard-hero-metrics span {
  display: block;
}

.dashboard-hero-metrics strong {
  font-size: 26px;
  line-height: 1.1;
}

.dashboard-hero-metrics span {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.dashboard-ops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ops-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(27, 55, 86, 0.06);
}

.ops-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.ops-head span {
  color: #667085;
  font-weight: 800;
}

.ops-head strong {
  color: #0f766e;
  font-size: 18px;
}

.ops-card p {
  margin: 14px 0 0;
  color: #667085;
  line-height: 1.65;
}

.ops-meter {
  height: 10px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.ops-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #21c4c6, #0f766e);
}

.dashboard-quick {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.dashboard-quick button {
  min-height: 104px;
  padding: 16px;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 12px 28px rgba(27, 55, 86, 0.06);
}

.dashboard-quick button:hover {
  border-color: #8edfd4;
  transform: translateY(-1px);
}

.dashboard-quick strong,
.dashboard-quick span {
  display: block;
}

.dashboard-quick strong {
  color: #172033;
  font-size: 16px;
}

.dashboard-quick span {
  margin-top: 8px;
  color: #667085;
  line-height: 1.45;
  font-size: 12px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
  box-shadow: 0 14px 34px rgba(27, 55, 86, 0.06);
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
}

.inline-form label {
  display: grid;
  gap: 6px;
  color: #526071;
  font-weight: 700;
}

.inline-form input,
.inline-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  outline: none;
}

.inline-form textarea {
  min-height: 76px;
  resize: vertical;
}

.inline-form .wide {
  grid-column: 1 / 4;
}

.inline-form button {
  min-width: 128px;
}

.page-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) minmax(260px, 1.4fr);
  gap: 14px;
  margin-bottom: 16px;
}

.insight-card,
.insight-guide {
  min-height: 94px;
  padding: 16px;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(29, 38, 51, 0.05);
}

.insight-card span,
.insight-guide span {
  display: block;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.insight-card strong {
  display: block;
  margin-top: 10px;
  color: #172033;
  font-size: 26px;
  line-height: 1;
}

.insight-card em {
  display: block;
  margin-top: 10px;
  color: #7d8795;
  font-size: 12px;
  font-style: normal;
}

.insight-card.highlight {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #0f766e, #19b38b);
}

.insight-card.highlight span,
.insight-card.highlight strong,
.insight-card.highlight em {
  color: #ffffff;
}

.insight-guide {
  display: grid;
  align-content: center;
  gap: 8px;
  background: #f8fbfa;
}

.insight-guide strong {
  color: #172033;
}

.role-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.role-card {
  min-height: 118px;
  padding: 16px;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(29, 38, 51, 0.05);
}

.role-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.role-card strong {
  color: #172033;
}

.role-card span {
  color: #7d8795;
  font-size: 12px;
}

.role-card em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 14px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #e7f8f2;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.role-card p {
  margin: 12px 0 0;
  color: #475467;
}

.panel-head {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

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

.panel-actions select,
.panel-actions input {
  min-width: 128px;
  background: #ffffff;
}

.hint {
  color: var(--muted);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  border-bottom: 1px solid #edf1f5;
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f7f9fb;
  color: #586575;
  font-weight: 600;
}

tbody tr:hover {
  background: #fbfdff;
}

.entity-title {
  color: #182230;
  font-weight: 800;
  line-height: 1.35;
}

.role-chip,
.scope-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.role-chip {
  color: #0f766e;
  background: #e7f8f2;
}

.scope-chip {
  color: #31516e;
  background: #eef6ff;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.status-chip.success {
  color: #0f766e;
  background: #e7f8f2;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.metric-pill.blue {
  color: #155eef;
  background: #eaf1ff;
}

.metric-pill.green {
  color: #087443;
  background: #e7f8f2;
}

.permission-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 640px;
}

.permission-pills span,
.permission-pills em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #475467;
  background: #f2f4f7;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.voucher-code {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px dashed #7ab7ff;
  border-radius: 6px;
  color: #1258ad;
  background: #f3f9ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.ghost-btn {
  margin-top: 8px;
  color: #31516e;
  background: #edf5ff;
}

.progress-line {
  width: 180px;
  max-width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
  margin-bottom: 8px;
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #19b38b, #2f7cf6);
}

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

.mini-btn {
  border: 0;
  border-radius: 3px;
  color: #ffffff;
  background: var(--teal);
  padding: 5px 8px;
  font-size: 12px;
}

.mini-btn.success {
  background: var(--green);
}

.mini-btn.danger {
  background: var(--red);
}

.mini-btn.warn {
  background: var(--orange);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.dot.busy {
  background: var(--blue);
}

.dot.maintenance {
  background: var(--orange);
}

.chart {
  height: 250px;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  align-items: end;
  gap: 8px;
  padding: 28px 18px 18px;
}

.bar {
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  background: var(--teal);
  position: relative;
}

.bar::after {
  content: attr(data-hour);
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 10px;
}

.bay-grid {
  padding: 16px;
}

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

.bay-store-group {
  overflow: hidden;
  border: 1px solid #dce8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(29, 38, 51, 0.05);
}

.bay-store-group.expanded {
  border-color: rgba(25, 179, 139, 0.35);
  box-shadow: 0 18px 38px rgba(15, 118, 110, 0.09);
}

.bay-store-head {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  border: 0;
  padding: 18px 20px;
  color: inherit;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(25, 179, 139, 0.1), rgba(47, 124, 246, 0.04)),
    #ffffff;
}

.bay-store-head:hover {
  background:
    linear-gradient(90deg, rgba(25, 179, 139, 0.16), rgba(47, 124, 246, 0.08)),
    #ffffff;
}

.bay-store-primary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.bay-store-primary strong {
  display: block;
  color: #172033;
  font-size: 18px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bay-store-primary p {
  margin: 6px 0 0;
  color: #6b7586;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bay-store-chevron {
  flex: 0 0 auto;
  min-width: 44px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #0f766e;
  background: #e5faf4;
  font-size: 12px;
  font-weight: 900;
}

.bay-store-stats,
.bay-store-money {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.bay-count-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #475467;
  background: #f3f6fa;
  font-size: 12px;
  font-weight: 800;
}

.bay-count-chip.total {
  color: #155a8a;
  background: #e8f4ff;
}

.bay-count-chip.idle {
  color: #0f766e;
  background: #e5faf4;
}

.bay-count-chip.busy {
  color: #1d4ed8;
  background: #eaf1ff;
}

.bay-count-chip.maintenance {
  color: #b45309;
  background: #fff4de;
}

.bay-store-money span {
  min-width: 108px;
  color: #425166;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.bay-store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid #edf3f6;
  background: #fbfdfd;
}

.bay-store-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #526071;
  background: #f0f5f8;
  font-size: 12px;
  font-weight: 800;
}

.bay-store-meta .warning-text {
  color: #b42318;
  background: #fff0ee;
}

.bay-group-bays {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  padding: 16px 20px 20px;
  background: #f7fbfa;
}

.ghost.active-filter {
  color: #ffffff;
  border-color: #0f766e;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.empty-state {
  min-height: 108px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd8e3;
  border-radius: 8px;
  background: #ffffff;
}

.bay-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(29, 38, 51, 0.06);
}

.bay-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--green);
}

.bay-card.status-busy::before {
  background: var(--blue);
}

.bay-card.status-maintenance::before {
  background: var(--orange);
}

.bay-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f5;
}

.bay-title {
  color: #172033;
  font-size: 17px;
  font-weight: 700;
}

.bay-store {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.bay-main {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}

.bay-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bay-metric {
  min-height: 76px;
  display: grid;
  align-content: center;
  padding: 10px;
  border: 1px solid #e6eef6;
  border-radius: 6px;
  background: #f8fbfa;
}

.bay-metric span {
  color: #0f766e;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.bay-metric label {
  margin-top: 8px;
  color: #657386;
  font-size: 12px;
}

.bay-stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  color: #1f2937;
  font-size: 13px;
}

.bay-stat-line strong {
  color: var(--teal);
}

.qr {
  width: 92px;
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #153d69;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  word-break: break-all;
  background:
    linear-gradient(90deg, rgba(47, 124, 246, 0.9) 10px, transparent 10px) 0 0 / 20px 20px,
    linear-gradient(rgba(47, 124, 246, 0.9) 10px, transparent 10px) 0 0 / 20px 20px,
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.qr span {
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
}

.bay-money {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f6f8fb;
  color: #637083;
}

.bay-money strong {
  margin-left: 4px;
  color: #182230;
}

.bay-pricing {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef8ff;
  color: #0b5a88;
}

.bay-pricing strong,
.bay-pricing span {
  display: block;
}

.bay-pricing strong {
  font-size: 13px;
  line-height: 1.45;
}

.bay-pricing span {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}

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

.bay-info-grid div {
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #ffffff;
}

.bay-info-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.bay-info-grid strong {
  display: block;
  margin-top: 5px;
  color: #1d2633;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.bay-device-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.device-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #31516e;
  background: #eef6ff;
  font-size: 12px;
  font-weight: 700;
}

.device-chip.door-open {
  color: #9a5b05;
  background: #fff4de;
}

.device-chip.door-closed,
.device-chip.module-online {
  color: #0f766e;
  background: #e7f8f2;
}

.device-chip.module-offline {
  color: #b42318;
  background: #fff0ee;
}

.bay-last-door {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.bay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf1f5;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(15, 23, 42, 0.42);
}

.modal.open {
  display: grid;
}

.modal-card {
  width: min(620px, 92vw);
  max-height: 88vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.modal-head {
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  background: #4b5a73;
  color: #ffffff;
}

#modal-close {
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 24px;
}

#modal-form {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.form-section-title {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #0f766e;
  background: #e7f8f2;
  font-size: 13px;
  font-weight: 900;
}

.field label {
  display: block;
  color: #586575;
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
}

.field textarea {
  min-height: 86px;
}

.agreement-box {
  border: 1px solid #f1c27d;
  border-radius: 6px;
  padding: 12px 14px;
  background: #fff8eb;
  color: #5d3d12;
}

.agreement-box strong {
  display: block;
  margin-bottom: 8px;
  color: #8a4b00;
}

.agreement-box ul {
  margin: 0;
  padding-left: 18px;
}

.agreement-box li {
  margin: 5px 0;
  line-height: 1.55;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #bcd7ef;
  border-radius: 6px;
  background: #f5fbff;
  color: #31516e;
}

.checkbox-field input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.permission-select {
  min-height: 180px;
}

.permission-help {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.permission-help div {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fafc;
  color: #5a6677;
}

.permission-help strong {
  color: var(--text);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

@media (max-width: 900px) {
  .public-header {
    height: auto;
    align-items: flex-start;
    padding: 14px 18px;
    flex-direction: column;
  }
  .public-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .public-page {
    padding: 22px 16px;
  }
  .public-hero,
  .public-split,
  .public-store-layout,
  .public-partner {
    grid-template-columns: 1fr;
  }
  .public-hero-media,
  .public-hero-fallback,
  .public-hero-copy {
    min-height: 320px;
  }
  .public-hero-copy {
    padding: 24px;
  }
  .public-hero-copy h1 {
    font-size: 28px;
  }
  .public-service-grid,
  .public-care-list,
  .public-contact-grid {
    grid-template-columns: 1fr;
  }
  .public-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .public-search-wrap,
  .public-search-wrap input {
    width: 100%;
  }
  .public-store-card {
    grid-template-columns: 92px 1fr;
  }
  .public-store-thumb {
    min-height: 96px;
  }
  .public-store-detail {
    position: static;
  }
  .login-aside {
    position: static;
    width: auto;
    padding: 0 16px 28px;
  }
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    min-height: auto;
  }
  .nav {
    display: flex;
    overflow-x: auto;
    padding: 8px;
  }
  .nav-item {
    white-space: nowrap;
    width: auto;
    border-radius: 4px;
  }
  .topbar {
    height: auto;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    flex-direction: column;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-hero,
  .dashboard-ops,
  .dashboard-quick {
    grid-template-columns: 1fr;
  }
  .dashboard-hero {
    padding: 22px;
  }
  .dashboard-hero h2 {
    font-size: 24px;
  }
  .dashboard-hero-metrics {
    grid-template-columns: 1fr;
  }
  .page-insights {
    grid-template-columns: 1fr;
  }
  .role-overview {
    grid-template-columns: 1fr;
  }
  .bay-store-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bay-store-stats,
  .bay-store-money {
    justify-content: flex-start;
  }
  .bay-store-money span {
    min-width: 0;
    text-align: left;
  }
  .bay-group-bays {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .bay-main {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-width: 1240px) {
  .public-page {
    padding-right: 28px;
  }
  .login-aside {
    position: static;
    width: min(460px, calc(100% - 56px));
    margin: 0 auto 48px;
  }
}
