/* =========================================================
   Dialogs, forms, authentication, checkout, live, toast
   ========================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13, 30, 21, 0.52);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: backdropIn 0.25s ease;
}

@keyframes backdropIn {
  from {
    opacity: 0;
  }
}

.modal {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.36s var(--ease);
  overscroll-behavior: contain;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
}

.modal-sm {
  width: min(460px, 100%);
}

.modal-md {
  width: min(600px, 100%);
}

.modal-lg {
  width: min(960px, 100%);
}

.modal-auth {
  width: min(920px, 100%);
  overflow: hidden;
}

.modal-close,
.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background: rgba(252, 250, 244, 0.7);
  backdrop-filter: blur(8px);
}

.modal-head-simple {
  padding: 26px 28px 0;
}

.modal-head-simple h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 5px 0;
}

.modal-head-simple p:not(.eyebrow) {
  font-size: 10.5px;
  color: var(--muted);
}

/* ---------------- forms ---------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.field > span {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field > span small {
  font-size: 8px;
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--white);
  padding: 9px 12px;
  font-size: 11.5px;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.field textarea {
  line-height: 1.7;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23707a6d' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 32px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(23, 63, 46, 0.08);
}

.form-error {
  background: #f9e5da;
  border: 1px solid rgba(201, 111, 69, 0.25);
  color: #963f21;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 9.5px;
  line-height: 1.6;
  margin-bottom: 11px;
}

.form-error[hidden] {
  display: none;
}

/* ---------------- auth ---------------- */

.auth-modal {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  min-height: 600px;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  background: var(--forest);
}

.auth-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 39, 27, 0.08) 30%, rgba(13, 39, 27, 0.78));
}

.auth-visual-copy {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 32px;
  z-index: 2;
  color: var(--cream);
}

.auth-visual-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--forest);
  margin-bottom: 14px;
}

.auth-visual-mark .icon {
  width: 18px;
  height: 18px;
}

.auth-visual-copy p {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.auth-visual-copy small {
  display: block;
  margin-top: 8px;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(246, 242, 231, 0.5);
}

.auth-panel {
  padding: 38px 42px 30px;
  overflow-y: auto;
  max-height: calc(100vh - 48px);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.auth-brand > span {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.07em;
  line-height: 1.15;
}

.auth-brand small {
  font-family: var(--font-sans);
  font-size: 6.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 4px;
}

.auth-panel h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.auth-sub {
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 6px 0 17px;
}

.auth-tabs {
  display: flex;
  gap: 2px;
  background: var(--cream);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 16px;
}

.auth-tabs button {
  flex: 1;
  padding: 7px;
  border-radius: 6px;
  font-size: 10.5px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.auth-tabs button.is-active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(28, 43, 33, 0.08);
}

.auth-panel .field {
  margin-bottom: 10px;
}

.auth-panel .btn-block {
  margin-top: 6px;
  min-height: 46px;
  font-size: 12px;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 18px 0 12px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.auth-divider span {
  position: relative;
  background: var(--paper);
  padding: 0 10px;
  font-size: 8px;
  color: var(--muted-2);
}

.demo-logins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.demo-login {
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color 0.2s, background 0.2s;
}

.demo-login:hover {
  border-color: var(--line-strong);
  background: var(--cream);
}

.demo-login > span {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--lime-soft);
  color: var(--moss);
}

.demo-login > span .icon {
  width: 13px;
  height: 13px;
}

.demo-login > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.demo-login strong {
  font-size: 9px;
}

.demo-login small {
  font-size: 7.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-login > .icon {
  width: 11px;
  height: 11px;
  color: var(--muted-2);
}

.auth-legal {
  margin-top: 16px;
  font-size: 7.5px;
  line-height: 1.7;
  color: var(--muted-2);
  text-align: center;
}

/* ---------------- checkout ---------------- */

.checkout-modal {
  padding: 30px 34px 26px;
}

.checkout-head .eyebrow {
  color: var(--clay);
}

.checkout-head h2 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 7px 0 5px;
}

.checkout-head > p:not(.eyebrow) {
  font-size: 10px;
  color: var(--muted);
}

.checkout-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.75fr);
  gap: 24px;
  margin-top: 22px;
  align-items: start;
}

.checkout-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  background: var(--cream);
  border-radius: 11px;
}

.checkout-summary img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
}

.checkout-summary > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  min-width: 0;
}

.checkout-summary > div span {
  font-size: 7.5px;
  color: var(--muted);
}

.checkout-summary > div strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.checkout-summary > div small {
  font-size: 8px;
  color: var(--muted);
}

.checkout-summary > em {
  font-family: var(--font-num);
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
}

.checkout-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.checkout-addons span {
  font-size: 8px;
  color: var(--ink-soft);
  background: var(--lime-soft);
  border-radius: 4px;
  padding: 3px 7px;
}

.checkout-addons em {
  font-style: normal;
  color: var(--moss);
}

.checkout-fields {
  margin-top: 14px;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
}

.payment-methods > span:first-child {
  font-size: 9.5px;
  font-weight: 600;
  width: 100%;
}

.payment-unavailable {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  color: var(--muted);
  font-size: 9px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 9px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.pay-option input {
  position: absolute;
  opacity: 0;
}

.pay-option.is-selected {
  border-color: var(--forest);
  background: rgba(217, 236, 155, 0.12);
}

.pay-icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 9px;
  color: #fff;
  font-weight: 700;
}

.pay-wechat {
  background: #2da44e;
}

.pay-alipay {
  background: #1677ff;
}

.pay-option strong {
  font-size: 8.5px;
  font-weight: 500;
}

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.checkout-total > div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.checkout-total span {
  font-size: 8px;
  color: var(--muted);
}

.checkout-total strong {
  font-family: var(--font-num);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.checkout-total small {
  font-size: 7.5px;
  color: var(--muted-2);
}

.checkout-total .btn {
  min-height: 42px;
  font-size: 10.5px;
}

.checkout-legal {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 7px;
  color: var(--muted-2);
}

.checkout-legal .icon {
  width: 10px;
  height: 10px;
}

.checkout-aside {
  background: var(--forest);
  border-radius: 15px;
  padding: 12px;
  color: var(--cream);
}

.checkout-aside-img {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 13px;
}

.checkout-aside-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-aside-img span {
  position: absolute;
  left: 8px;
  bottom: 7px;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.7);
}

.checkout-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 4px;
}

.checkout-steps > div {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.checkout-steps span {
  font-family: var(--font-num);
  font-size: 8px;
  color: var(--lime);
  margin-top: 1px;
}

.checkout-steps p {
  font-size: 8px;
  line-height: 1.55;
  color: rgba(246, 242, 231, 0.45);
}

.checkout-steps p strong {
  display: block;
  color: rgba(246, 242, 231, 0.85);
  font-size: 8.5px;
  font-weight: 500;
}

.checkout-steward {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding: 9px 4px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.checkout-steward > div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.checkout-steward strong {
  font-size: 8.5px;
}

.checkout-steward span {
  font-size: 7px;
  color: rgba(246, 242, 231, 0.45);
}

/* ---------------- service modal ---------------- */

.service-modal {
  padding: 30px 32px 26px;
}

.service-modal-head {
  display: flex;
  gap: 13px;
  margin-bottom: 20px;
  padding-right: 26px;
}

.service-modal-head h2 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 4px 0 3px;
}

.service-modal-head p:not(.eyebrow) {
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.7;
}

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

.service-modal-grid .field {
  margin-bottom: 8px;
}

.service-modal-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  margin-top: 5px;
}

.service-modal-total > div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.service-modal-total span {
  font-size: 8px;
  color: var(--muted);
}

.service-modal-total strong {
  font-family: var(--font-num);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.service-modal-total small {
  font-size: 7.5px;
  color: var(--muted-2);
}

.service-modal-total .btn {
  min-height: 42px;
  font-size: 10px;
}

.modal-footnote {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 9px;
  font-size: 7.5px;
  color: var(--muted-2);
  line-height: 1.6;
}

.modal-footnote .icon {
  width: 10px;
  height: 10px;
  flex: none;
  margin-top: 1px;
}

.quick-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0 9px;
}

.quick-notes button {
  font-size: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}

.quick-notes button:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.image-picker > span {
  font-size: 9.5px;
  font-weight: 600;
}

.image-picker > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 5px;
}

.image-choice {
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  aspect-ratio: 16 / 10;
}

.image-choice input {
  position: absolute;
  opacity: 0;
}

.image-choice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-choice span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 7px;
  padding: 2px 5px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.image-choice:has(input:checked) {
  border-color: var(--forest);
}

.image-choice:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-size: 9px;
  display: grid;
  place-items: center;
}

.contact-modal .service-modal-head {
  align-items: center;
}

/* ---------------- notice ---------------- */

.notice-modal {
  padding: 26px 26px 22px;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 15px 0;
}

.notice-list > a,
.notice-item {
  display: flex;
  gap: 9px;
  padding: 9px;
  border-radius: 9px;
  border: 1px solid var(--line);
  transition: background 0.2s;
}

.notice-list > a:hover {
  background: var(--cream);
}

.notice-icon {
  width: 29px;
  height: 29px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--lime-soft);
  color: var(--moss);
}

.notice-icon .icon {
  width: 14px;
  height: 14px;
}

.notice-list > a > div,
.notice-item > div {
  flex: 1;
  min-width: 0;
}

.notice-list strong,
.notice-item strong {
  display: block;
  font-size: 9px;
}

.notice-list p,
.notice-item p {
  font-size: 8px;
  color: var(--muted);
  line-height: 1.6;
  margin: 2px 0;
}

.notice-list small,
.notice-item small {
  font-size: 7px;
  color: var(--muted-2);
}

/* ---------------- live ---------------- */

.live-modal {
  padding: 10px;
  overflow: hidden;
}

.live-modal-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 8.6;
  background: var(--forest);
}

.live-modal-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-modal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 45%, rgba(0, 0, 0, 0.5));
}

.live-scan {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 236, 155, 0.7), transparent);
  animation: scan 5s linear infinite;
  box-shadow: 0 0 12px rgba(217, 236, 155, 0.6);
}

@keyframes scan {
  0% {
    top: 5%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 95%;
    opacity: 0;
  }
}

.live-modal-media .live-badge {
  position: absolute;
  z-index: 3;
  top: 13px;
  left: 13px;
}

.live-clock {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 13px;
  font-family: var(--font-num);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 4px;
}

.live-overlay {
  position: absolute;
  z-index: 3;
  left: 15px;
  right: 15px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: var(--cream);
}

.live-overlay > div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.live-overlay strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
}

.live-overlay span:not(.live-quality) {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.live-quality {
  font-size: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  padding: 2px 5px;
}

.live-modal-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.live-modal-info > div {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.live-modal-info > div:last-child {
  border-right: 0;
}

.live-modal-info span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: var(--muted);
}

.live-modal-info .icon {
  width: 11px;
  height: 11px;
}

.live-modal-info strong {
  font-size: 9px;
}

.live-demo-note {
  display: flex;
  gap: 5px;
  padding: 10px 14px 3px;
  font-size: 7.5px;
  color: var(--muted-2);
}

.live-demo-note .icon {
  width: 11px;
  height: 11px;
  flex: none;
}

/* ---------------- toast ---------------- */

#toast-root {
  position: fixed;
  z-index: 2000;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  max-width: 360px;
  background: var(--forest);
  color: var(--cream);
  font-size: 10.5px;
  line-height: 1.5;
  padding: 11px 15px;
  border-radius: 9px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.toast .icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--lime);
}

.toast-error {
  background: #7c3420;
}

.toast-error .icon {
  color: #ffd8c7;
}

/* ---------------- lifecycle / CMS dialogs ---------------- */

.ship-modal-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 9px 11px;
  background: var(--lime-soft);
  border-radius: 8px;
  font-size: 8.5px;
  line-height: 1.65;
  color: rgba(23, 63, 46, 0.68);
  margin-bottom: 4px;
}

.ship-modal-note .icon {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 1px;
}

.ship-modal .service-modal-head p {
  line-height: 1.65;
}

.cms-image-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 10px;
  margin-bottom: 6px;
}

.cms-image-field .field {
  margin-bottom: 0;
}

.cms-image-preview {
  border-radius: 9px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--muted);
  margin-top: 20px;
}

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

.cms-image-preview .icon {
  width: 22px;
  height: 22px;
}

.cms-inline-assets {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.cms-inline-assets button {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid transparent;
  padding: 0;
}

.cms-inline-assets button.is-active {
  border-color: var(--forest);
}

.cms-inline-assets img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-inline-assets span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 6px;
  color: #fff;
  padding: 1px 3px;
  background: rgba(0, 0, 0, 0.45);
}

.cms-status-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  cursor: pointer;
  margin: 4px 0 8px;
}

.cms-status-toggle input {
  display: none;
}

.cms-status-toggle i {
  width: 32px;
  height: 18px;
  border-radius: 99px;
  background: rgba(28, 43, 33, 0.14);
  position: relative;
  transition: background 0.2s;
}

.cms-status-toggle i::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.cms-status-toggle input:checked + i {
  background: var(--moss);
}

.cms-status-toggle input:checked + i::after {
  transform: translateX(14px);
}

.notice-item.is-unread {
  background: rgba(217, 236, 155, 0.13);
  border-color: rgba(60, 96, 73, 0.16);
}

.notice-item.is-unread strong::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--clay);
  vertical-align: middle;
}

.notice-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 30px 16px;
  color: var(--muted);
}

.notice-empty .icon {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  color: var(--moss);
}

.notice-empty strong {
  font-size: 11px;
  color: var(--ink);
}

.notice-empty span {
  font-size: 8.5px;
}


.live-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #102b22; z-index: 1; }
.live-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; max-width: 80%; padding: 9px 14px; border-radius: 20px; background: rgba(16,43,34,.78); color: #f7f2e7; font-size: 12px; text-align: center; }
.live-modal-media { position: relative; overflow: hidden; }
.live-modal-media .live-overlay, .live-modal-media .live-badge, .live-modal-media .live-clock { z-index: 3; }
