#ltWechatResume { display:none }
html.lt-wechat-resuming body > :is(#shell,#authView,#ltMobileEntry,#lt-native-mobile-root) { display:none !important }
html.lt-wechat-resuming #ltWechatResume {
  position:fixed;
  inset:0;
  z-index:2000;
  display:grid;
  align-content:center;
  justify-items:center;
  gap:14px;
  padding:24px;
  background:#f0f6ff;
  color:#344b69;
  text-align:center;
}
html.lt-wechat-resuming #ltWechatResume [hidden] { display:none }

#view-system-settings {
  --settings-edge:#d5e2f5;
  --settings-blue:#0765ef;
  --settings-ink:#112541;
  color:var(--settings-ink);
}
#view-system-settings [hidden] { display:none !important }
.settings-page-heading {
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 22px;
  font-size:28px;
  line-height:1.15;
}
.settings-page-heading img { width:28px; height:28px; object-fit:contain }
.settings-tablist {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:24px;
}
.settings-tablist button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:0;
  min-height:52px;
  white-space:nowrap;
  border:1px solid var(--settings-edge);
  border-radius:10px;
  background:#eef4ff;
  color:#19314f;
  font:inherit;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}
.settings-tablist img { flex:none; width:22px; height:22px; object-fit:contain }
.settings-tablist button[aria-selected=true] { background:#0765ef; border-color:#0765ef; color:white }
.settings-tablist button[aria-selected=true] img { filter:brightness(0) invert(1) }
.settings-tablist button:focus-visible { outline:2px solid #17459e; outline-offset:2px }
.settings-display-grid {
  display:grid;
  grid-template-columns:minmax(0, 38fr) minmax(0, 62fr);
  align-items:stretch;
  gap:18px;
}
#view-system-settings .settings-panel > .card,
#view-system-settings .settings-display-grid > .card {
  min-width:0;
  margin:0;
  padding:20px;
  border:1px solid var(--settings-edge);
  border-radius:14px;
  background:#fff;
  box-shadow:none;
}
#view-system-settings .settings-panel h2 { font-size:18px; margin:0; line-height:1.4; color:var(--settings-ink) }
#view-system-settings .settings-panel .section-title { align-items:flex-start; margin:0 0 18px; gap:12px }
#view-system-settings .settings-panel .muted { line-height:1.55 }
#view-system-settings #complaintSuccessSettings {
  display:flex;
  flex-direction:column;
}
#view-system-settings #complaintSuccessSettings .field { margin:6px 0 18px }
#view-system-settings #complaintSuccessText { min-height:166px !important }
#view-system-settings #complaintSuccessSettings .toolbar { margin-top:auto }
#view-system-settings .global-entry-config-grid {
  display:grid;
  grid-template-columns:minmax(0, 55fr) minmax(0, 45fr);
  grid-template-areas:"name preview" "action preview" "target preview";
  align-items:start;
  gap:12px 18px;
  margin:0;
}
#view-system-settings .global-entry-config-grid > .field:first-child { grid-area:name }
#view-system-settings .global-entry-config-grid > .field:nth-child(2) { grid-area:action }
#view-system-settings :is(.global-entry-link-field,.global-entry-image-field) { grid-area:target; min-width:0 }
#view-system-settings .global-entry-live-preview {
  grid-area:preview;
  min-width:0;
  border:0;
  border-left:1px solid #dce6f6;
  border-radius:0;
  padding:0 0 0 16px;
  background:none;
}
#view-system-settings .global-entry-live-preview > span {
  display:block;
  color:#233f64;
  font-weight:700;
  font-size:13px;
  margin-bottom:8px;
}
.settings-unverified-preview {
  display:grid;
  justify-items:center;
  gap:8px;
  text-align:center;
  border-radius:14px;
  padding:16px 12px;
  background:#eaf2fe;
}
.settings-unverified-preview > .settings-shield { width:46px; height:46px; object-fit:contain; display:block }
.settings-unverified-preview strong { font-size:16px }
.settings-unverified-preview p { margin:0; color:#526b89; font-size:12px; line-height:1.5 }
#view-system-settings .settings-unverified-preview #globalEntryButtonPreview { width:100%; max-width:230px; min-width:0; margin:4px 0 0 }
#view-system-settings .settings-unverified-preview #globalEntryImagePreview { max-width:100% }
.settings-toggle-label { display:flex; align-items:center; gap:10px; flex-shrink:0; font-size:13px; font-weight:700 }
#view-system-settings .global-entry-save-row { margin-top:16px }
#view-system-settings .bottle-result-link-admin-card { grid-column:1 / -1 }
#view-system-settings .bottle-result-link-config-grid { min-width:0 }
#view-system-settings .support-config { max-width:860px }
#view-system-settings #noticeContent { min-height:110px }

@media(max-width:1150px) {
  #view-system-settings .global-entry-config-grid { grid-template-columns:minmax(0,1fr) minmax(0, .85fr); gap:10px }
  #view-system-settings .global-entry-live-preview { padding-left:10px }
}
@media(max-width:950px) {
  .settings-tablist button { font-size:14px; gap:6px }
  .settings-tablist img { width:18px; height:18px }
  .settings-display-grid { grid-template-columns:minmax(0,1fr); gap:14px }
  #view-system-settings #complaintSuccessText { min-height:110px !important }
}
@media(max-width:760px) {
  .settings-page-heading { margin:0 0 16px; font-size:22px }
  .settings-tablist { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:14px; gap:8px }
  .settings-tablist button { min-height:44px; font-size:14px }
  #view-system-settings .settings-panel > .card,
  #view-system-settings .settings-display-grid > .card { padding:14px }
  #view-system-settings .global-entry-config-grid {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"name" "action" "target" "preview";
  }
  #view-system-settings .global-entry-live-preview { border:0; padding:0 }
}
