* {
  box-sizing: border-box;
}

body {
  background: #f3efe7;
  color: #1f2a22;
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

body.auth-locked .admin-shell {
  display: none;
}

.login-screen {
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 232, 157, 0.35), transparent 28%),
    linear-gradient(145deg, #f6efe4 0%, #e8ddcc 100%);
  display: flex;
  min-height: 100vh;
  padding: 28px;
}

body.authenticated .login-screen {
  display: none;
}

.feedback-modal {
  align-items: center;
  background: rgba(19, 28, 22, 0.46);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 20;
}

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

.feedback-card {
  background: #fffdf8;
  border: 1px solid #eadfcd;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(15, 23, 18, 0.24);
  max-width: 420px;
  padding: 30px;
  text-align: center;
  width: 100%;
}

.feedback-card h3 {
  color: #244b39;
  font-size: 24px;
  margin: 0 0 10px;
}

.feedback-card p {
  color: #5b625b;
  line-height: 1.7;
  margin: 0 0 20px;
}

.feedback-card button {
  background: #244b39;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  padding: 11px 28px;
}

.login-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ece5d8;
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(31, 42, 34, 0.14);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 520px;
  padding: 36px;
  width: 100%;
}

.brand-mark.large {
  height: 68px;
  width: 68px;
}

.login-card h1 {
  color: #244b39;
  font-size: 30px;
  margin: 0;
}

.login-card p {
  color: #6b625a;
  line-height: 1.7;
  margin: 0;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  color: #596259;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
}

.auth-form input {
  background: #fbf8f1;
  border: 1px solid #e4dccd;
  border-radius: 14px;
  color: #1f2a22;
  font: inherit;
  outline: 0;
  padding: 12px 14px;
}

.auth-form button {
  background: #244b39;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  margin-top: 4px;
  padding: 13px 18px;
}

.register-box {
  background: #f8f3e8;
  border-radius: 18px;
  padding: 14px;
}

.register-box summary {
  color: #244b39;
  cursor: pointer;
  font-weight: 900;
}

.admin-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 232, 157, 0.2), transparent 30%),
    linear-gradient(180deg, #16231b 0%, #244b39 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 20px;
}

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

.brand-mark {
  align-items: center;
  background: #fff7df;
  border-radius: 18px;
  color: #244b39;
  display: flex;
  font-size: 26px;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.brand-block h1 {
  font-size: 20px;
  line-height: 1;
  margin: 0 0 6px;
}

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

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

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

.nav-group-label {
  color: rgba(255, 247, 223, 0.56);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  padding: 6px 10px 0;
}

.nav-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
  padding: 14px 16px;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: #fff7df;
  color: #244b39;
}

.sidebar-dashboard-metrics {
  gap: 10px;
  display: grid;
  margin-top: auto;
}

.sidebar-metric-button {
  background: rgba(255, 247, 223, 0.13);
  border: 1px solid rgba(255, 247, 223, 0.18);
  border-radius: 16px;
  color: #fff7df;
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 14px;
  text-align: left;
}

.sidebar-metric-button span {
  color: rgba(255, 247, 223, 0.7);
  font-size: 12px;
}

.sidebar-metric-button strong {
  color: #fff;
  font-size: 16px;
}

.sidebar-metric-button.revenue {
  background: #fff7df;
  color: #244b39;
}

.sidebar-metric-button.revenue span,
.sidebar-metric-button.revenue strong {
  color: #244b39;
}

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

.topbar {
  border-bottom: 1px solid #e3dbcf;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 24px;
  padding-bottom: 20px;
}

.eyebrow {
  color: #9a7b52;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  margin: 0 0 6px;
}

.topbar h2,
.section-heading h3,
.module-card h3 {
  color: #244b39;
  margin: 0;
}

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

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

#refresh-btn,
.status-action,
.ghost-action {
  background: #244b39;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 18px;
}

#refresh-btn:hover {
  background: #1d3e2f;
}

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

.status.error {
  color: #a43d32;
}

.staff-badge {
  background: #fff7df;
  border-radius: 999px;
  color: #244b39;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.overview-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metric-card,
.module-card,
.card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #ece5d8;
  box-shadow: 0 18px 40px rgba(31, 42, 34, 0.07);
}

.metric-card {
  border-radius: 22px;
  padding: 20px;
}

.metric-card span {
  color: #6b625a;
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  color: #244b39;
  display: block;
  font-size: 36px;
  line-height: 1.1;
  margin: 10px 0;
}

.metric-card small {
  color: #8f948f;
}

.split-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.module-card {
  border-radius: 22px;
  padding: 20px;
}

.launch-readiness {
  margin-top: 16px;
}

.server-pressure {
  margin-top: 16px;
}

.section-heading.compact {
  align-items: flex-start;
  gap: 12px;
}

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

.readiness-card {
  background: #f7f3ea;
  border: 1px solid #ebe1d1;
  border-radius: 18px;
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 16px;
}

.readiness-card span {
  color: #6b625a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.readiness-status {
  color: #244b39;
  font-size: 18px;
}

.readiness-status.pending {
  color: #b86b2d;
}

.readiness-status.ready {
  color: #244b39;
}

.readiness-card small {
  color: #706a62;
  font-size: 12px;
  line-height: 1.6;
}

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

.pressure-card {
  background: #f7f3ea;
  border: 1px solid #ebe1d1;
  border-radius: 18px;
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 16px;
}

.pressure-card.healthy {
  background: #eef6ef;
  border-color: #d6e8d8;
}

.pressure-card.watch {
  background: #fff7df;
  border-color: #efd59f;
}

.pressure-card.critical {
  background: #fff0eb;
  border-color: #efb49c;
}

.pressure-card span {
  color: #6b625a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pressure-card strong {
  color: #244b39;
  font-size: 22px;
}

.pressure-card.watch strong {
  color: #b86b2d;
}

.pressure-card.critical strong {
  color: #bd4c35;
}

.pressure-card small {
  color: #706a62;
  font-size: 12px;
  line-height: 1.6;
}

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

.section-heading span {
  color: #6b625a;
  font-size: 13px;
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.page-tabs button {
  background: #fffdf8;
  border: 1px solid #e4dccd;
  border-radius: 999px;
  color: #244b39;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 16px;
}

.page-tabs button:hover {
  background: #eef3eb;
  border-color: #cfe0d1;
}

.page-module {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #ece5d8;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(31, 42, 34, 0.07);
  margin-bottom: 16px;
  overflow: hidden;
}

.page-module summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 18px;
}

.page-module summary::-webkit-details-marker {
  display: none;
}

.module-title-pill {
  background: #244b39;
  border-radius: 999px;
  color: #fff7df;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  padding: 10px 18px;
}

.module-toggle-text {
  color: #9a7a4f;
  font-size: 13px;
  font-weight: 900;
}

.page-module[open] .module-toggle-text {
  font-size: 0;
}

.page-module[open] .module-toggle-text::after {
  content: "收起";
  font-size: 13px;
}

.page-module-body {
  border-top: 1px solid #f0eadf;
  padding: 0 18px 18px;
}

.module-note {
  color: #6b625a;
  font-size: 13px;
  line-height: 1.7;
  margin: 14px 0;
}

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

.grid > .card {
  min-width: 0;
}

.grid > .editable-card {
  grid-column: 1 / -1;
}

.card {
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.55;
  padding: 16px;
}

.add-card {
  align-items: center;
  background: rgba(255, 253, 248, 0.96);
  border: 1px dashed #d9c8a4;
  color: #244b39;
  cursor: pointer;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 210px;
  text-align: center;
}

.add-card:hover {
  background: #fff8e5;
  transform: translateY(-1px);
}

.add-plus {
  align-items: center;
  background: #244b39;
  border-radius: 50%;
  color: #fff8e5;
  display: flex;
  font-size: 32px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.add-card strong {
  font-size: 16px;
}

.add-card small {
  color: #8f948f;
  font-weight: 800;
}

.card-title {
  align-items: flex-start;
  color: #1f2a22;
  display: flex;
  font-size: 15px;
  font-weight: 900;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.admin-card-image {
  background: #f7f3ea;
  border-radius: 14px;
  margin: 10px 0 12px;
  overflow: hidden;
}

.admin-card-image.square {
  height: 180px;
  width: 180px;
}

.admin-card-image.portrait {
  height: 220px;
  width: 165px;
}

.admin-card-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.primary-text {
  font-weight: 800;
}

.order-no,
.price {
  color: #c2752f;
  font-weight: 900;
}

.badge {
  background: #e6f0e6;
  border-radius: 999px;
  color: #244b39;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  margin: 0 6px 6px 0;
  padding: 3px 10px;
}

.status-badge {
  background: #fff0d8;
  color: #9a5b16;
}

.stock-available {
  background: #e6f0e6;
  color: #244b39;
}

.stock-sold-out {
  background: #f0eeee;
  color: #7a7a7a;
}

.stock-hidden {
  background: #fff1ee;
  color: #c24d3c;
}

.payment-pending {
  background: #fff1ee;
  color: #c24d3c;
}

.payment-paid {
  background: #e6f0e6;
  color: #244b39;
}

.payment-refund-pending {
  background: #fff0d8;
  color: #9a5b16;
}

.payment-refunded {
  background: #edf0f2;
  color: #687078;
}

.meta {
  color: #6b625a;
  font-size: 12px;
}

.deadline-text {
  color: #c2752f;
  font-weight: 900;
  margin-top: 6px;
}

.refund-text {
  color: #9a5b16;
  font-weight: 900;
  margin-top: 6px;
}

.card-actions {
  align-items: center;
  border-top: 1px solid #f0eadf;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 12px;
}

.operation-layer {
  border-top: 1px solid #f0eadf;
  margin-top: 12px;
  padding-top: 12px;
}

.operation-layer summary {
  align-items: center;
  background: #eef3eb;
  border: 1px solid #dbe8dd;
  border-radius: 999px;
  color: #244b39;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
  list-style: none;
  padding: 8px 14px;
  user-select: none;
}

.operation-layer summary::-webkit-details-marker {
  display: none;
}

.operation-layer summary::after {
  color: #c2752f;
  content: " +";
}

.operation-layer[open] summary {
  background: #fff5db;
  border-color: #ead7a6;
}

.operation-layer[open] summary::after {
  content: " -";
}

.operation-layer-body.card-actions {
  border-top: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 10px;
  padding-top: 0;
}

.staff-edit-body {
  margin-top: 12px;
}

.edit-operation-body,
.staff-edit-body {
  margin-top: 12px;
}

.edit-operation-body .edit-form,
.staff-edit-body .edit-form {
  margin-top: 0;
}

.status-action {
  background: #f07855;
}

.payment-action {
  background: #244b39;
}

.refund-action {
  background: #9a5b16;
}

.status-action:hover {
  background: #d66545;
}

.payment-action:hover {
  background: #1d3e2f;
}

.refund-action:hover {
  background: #7c4710;
}

.text-danger {
  background: #fff1ee;
  border-radius: 999px;
  color: #c24d3c;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.text-danger:hover {
  background: #ffe1dc;
}

.ghost-action {
  background: #eef3eb;
  color: #244b39;
}

.ghost-action:hover {
  background: #dde9dc;
}

.danger-action {
  background: #fff1ee;
  color: #c24d3c;
}

.danger-action:hover {
  background: #ffe1dc;
}

.editable-card {
  border-color: #d9c8a4;
  box-shadow: 0 20px 46px rgba(31, 42, 34, 0.11);
}

.editable-card .edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

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

.edit-field {
  color: #596259;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}

.edit-field small {
  color: #9a7a4f;
  font-size: 11px;
  margin-left: 6px;
}

.edit-field.wide,
.edit-actions {
  grid-column: 1 / -1;
}

.edit-field input,
.edit-field select,
.edit-field textarea {
  background: #fbf8f1;
  border: 1px solid #e4dccd;
  border-radius: 12px;
  color: #1f2a22;
  font: inherit;
  min-width: 0;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

.edit-field textarea {
  resize: vertical;
}

.edit-field input:focus,
.edit-field select:focus,
.edit-field textarea:focus {
  border-color: #244b39;
  box-shadow: 0 0 0 3px rgba(36, 75, 57, 0.12);
}

.image-upload-field {
  align-items: start;
}

.image-upload-preview {
  align-items: center;
  background: #fbf8f1;
  border: 1px dashed #d9c8a4;
  border-radius: 16px;
  color: #244b39;
  display: flex;
  flex-direction: column;
  font-weight: 900;
  gap: 6px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.image-upload-preview.square {
  height: 180px;
  width: 180px;
}

.image-upload-preview.portrait {
  height: 240px;
  width: 180px;
}

.image-upload-preview.uploading {
  opacity: 0.62;
}

.image-upload-preview span {
  font-size: 36px;
  line-height: 1;
}

.image-upload-preview small {
  color: #8f948f;
  font-size: 12px;
  margin: 0;
}

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

.image-file-input {
  max-width: 360px;
}

.edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.done-text,
.empty {
  color: #8f948f;
  font-size: 12px;
}

.shipment-box,
.comment-admin {
  background: #f7f3ea;
  border-radius: 14px;
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
}

.shipment-box strong {
  color: #244b39;
}

.shipment-box span,
.comment-admin-row span {
  color: #6b625a;
  font-size: 12px;
}

.comment-admin-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.record-item {
  align-items: flex-start;
  gap: 14px;
}

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

.inventory-panel-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #ece5d8;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(31, 42, 34, 0.07);
  display: grid;
  gap: 10px;
  padding: 18px;
}

.inventory-head,
.inventory-row-card {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr);
}

.inventory-head {
  color: #9a7a4f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 0 12px;
}

.inventory-row-card {
  background: #f8f3e8;
  border-radius: 18px;
  padding: 14px;
}

.inventory-main {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.inventory-main strong {
  color: #244b39;
  display: block;
  font-size: 15px;
}

.inventory-main span {
  color: #73776f;
  display: block;
  font-size: 12px;
  line-height: 1.6;
}

.inventory-control {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.inventory-control input {
  background: #fffdf8;
  border: 1px solid #e4dccd;
  border-radius: 12px;
  color: #244b39;
  font: inherit;
  font-weight: 900;
  max-width: 96px;
  padding: 10px 12px;
  text-align: center;
}

.stock-step {
  align-items: center;
  background: #eef3eb;
  border-radius: 999px;
  color: #244b39;
  display: flex;
  font-size: 18px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.stock-step.active {
  background: #5aa7f2;
  color: #fff;
}

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

.summary-item {
  align-items: center;
  background: #f7f3ea;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.summary-item span {
  color: #596259;
  font-size: 13px;
  font-weight: 800;
}

.summary-item strong {
  color: #244b39;
}

.member-summary,
.member-layout {
  margin-top: 14px;
}

.member-tools {
  margin-top: 14px;
}

.member-search {
  background: #fff;
  border: 1px solid #efe7da;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(37, 34, 28, 0.07);
  display: grid;
  gap: 8px;
  max-width: 520px;
  padding: 14px 16px;
}

.member-search span {
  color: #9a7a4f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.member-search input {
  border: 0;
  color: #244b39;
  font-size: 15px;
  font-weight: 800;
  outline: 0;
}

.member-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.member-card {
  align-items: center;
  background: linear-gradient(135deg, #244b39 0%, #0f1712 100%);
  border-radius: 22px;
  color: #fff;
  display: flex;
  gap: 16px;
  padding: 20px;
}

.member-card.compact {
  padding: 16px;
}

.member-ledger-summary span + span {
  margin-top: 4px;
}

.member-card.level-card {
  grid-column: 1 / -1;
}

.member-avatar {
  align-items: center;
  background: radial-gradient(circle at 30% 20%, #fff 0, #ffe68a 34%, #f58a7b 68%, #9edcff 100%);
  border-radius: 18px;
  color: #244b39;
  display: flex;
  flex-shrink: 0;
  font-size: 26px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.member-avatar.small {
  border-radius: 14px;
  font-size: 20px;
  height: 48px;
  width: 48px;
}

.member-card h4 {
  font-size: 22px;
  margin: 0 0 8px;
}

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

.member-card p {
  color: rgba(255, 255, 255, 0.72);
  margin: 8px 0 0;
}

.member-ledger-card {
  overflow-x: auto;
}

.member-table {
  display: grid;
  gap: 10px;
  min-width: 860px;
}

.member-row {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.35fr 1fr 1fr 1.3fr 1.1fr;
}

.member-row-head {
  color: #9a7a4f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 0 12px;
}

.member-row-card {
  background: #f8f3e8;
  border-radius: 18px;
  padding: 16px 12px;
}

.member-layer-card {
  display: grid;
  gap: 12px;
}

.member-row-summary {
  align-items: center;
}

.member-row strong {
  color: #244b39;
  display: block;
  font-size: 15px;
}

.member-row span {
  color: #73776f;
  display: block;
  font-size: 12px;
  line-height: 1.6;
}

.member-profile-cell {
  align-items: center;
  display: flex;
  gap: 12px;
}

.member-record-list {
  display: grid;
  gap: 4px;
}

.member-recent-summaries {
  display: grid;
  gap: 6px;
}

.member-order-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #ece2d2;
  border-radius: 12px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 7px 10px;
}

.member-order-chip strong,
.member-order-chip em {
  color: #244b39;
  font-size: 12px;
}

.member-order-chip em {
  color: #c2752f;
  font-style: normal;
  font-weight: 900;
}

.member-order-chip.muted {
  color: #8f948f;
  justify-content: flex-start;
}

.member-detail-layer {
  background: #fffdf8;
  border: 1px solid #ece5d8;
  border-radius: 18px;
  overflow: hidden;
}

.member-detail-layer summary {
  color: #244b39;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
  padding: 12px 16px;
}

.member-detail-layer summary::-webkit-details-marker {
  display: none;
}

.member-detail-layer summary::after {
  content: " +";
  color: #c2752f;
}

.member-detail-layer[open] summary::after {
  content: " -";
}

.member-detail-grid {
  border-top: 1px solid #f0eadf;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.member-detail-card {
  background: #f8f3e8;
  border-radius: 16px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.member-edit-panel {
  grid-column: 1 / -1;
}

.member-detail-title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.member-detail-title strong {
  color: #244b39;
  font-size: 14px;
}

.member-detail-title span {
  color: #8f948f;
  font-size: 12px;
  font-weight: 800;
}

.member-profile-form {
  margin-top: 0;
}

.member-consumption-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-consumption-grid span {
  background: #fff;
  border-radius: 12px;
  color: #244b39;
  font-size: 13px;
  font-weight: 900;
  padding: 10px;
}

.member-record-list.detailed {
  gap: 8px;
}

.member-record-item {
  align-items: center;
  background: #fff;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.member-record-item strong,
.member-record-item em {
  color: #244b39;
  font-size: 13px;
  font-weight: 900;
}

.member-record-item span {
  color: #73776f;
  display: block;
  font-size: 12px;
  line-height: 1.5;
}

.member-record-item em {
  color: #c2752f;
  font-style: normal;
}

.moment-card {
  overflow: hidden;
}

.moment-cover {
  align-items: flex-start;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.5), transparent 24%),
    linear-gradient(145deg, #f2c46d 0%, #7d4f26 42%, #244b39 100%);
  border-radius: 16px;
  color: #fff;
  display: flex;
  height: 180px;
  margin-bottom: 14px;
  padding: 12px;
  position: relative;
}

.moment-cover.video {
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 230, 138, 0.58), transparent 24%),
    linear-gradient(135deg, #17222c 0%, #244b39 100%);
}

.moment-cover span {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  position: relative;
  z-index: 1;
}

.moment-cover img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.moment-cover::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 48%, rgba(0, 0, 0, 0.16));
  content: "";
  inset: 0;
  position: absolute;
}

.card-footer {
  align-items: center;
  border-top: 1px solid #f0eadf;
  color: #8f948f;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
}

.approval-payload {
  background: #f7f3ea;
  border-radius: 14px;
  color: #6b625a;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  margin-top: 10px;
  max-height: 160px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.audit-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.staff-layout {
  display: grid;
  gap: 16px;
}

.staff-profile-card {
  max-width: 760px;
}

.staff-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

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

.permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.permission-pill {
  align-items: center;
  background: #f7f3ea;
  border: 1px solid #ece5d8;
  border-radius: 999px;
  color: #244b39;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  padding: 8px 10px;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .sidebar {
    gap: 16px;
    min-height: 100vh;
    padding: 18px 10px;
    position: sticky;
    top: 0;
  }

  .brand-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .brand-mark {
    border-radius: 14px;
    font-size: 22px;
    height: 44px;
    width: 44px;
  }

  .brand-block h1 {
    font-size: 14px;
    line-height: 1.2;
  }

  .brand-block p,
  .nav-group-label {
    display: none;
  }

  .nav-list {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .nav-item {
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.25;
    padding: 11px 8px;
  }

  .sidebar-dashboard-metrics {
    gap: 8px;
  }

  .sidebar-metric-button {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    min-height: auto;
    padding: 10px 8px;
  }

  .sidebar-metric-button span {
    font-size: 11px;
  }

  .sidebar-metric-button strong {
    font-size: 14px;
  }

  .workspace {
    padding: 18px 12px 48px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .overview-grid,
  .split-grid,
  .readiness-list,
  .pressure-grid,
  .member-layout,
  .member-detail-grid,
  .member-consumption-grid,
  .grid,
  .edit-form,
  .staff-grid,
  .staff-account-form {
    grid-template-columns: 1fr;
  }

  .card-actions,
  .edit-actions,
  .comment-admin-row,
  .member-card {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-head {
    display: none;
  }

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

  .inventory-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .inventory-control {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
