:root {
  --dl-bg: #f4eee5;
  --dl-surface: #fffaf4;
  --dl-panel: rgba(255, 250, 244, 0.88);
  --dl-panel-strong: rgba(255, 251, 246, 0.96);
  --dl-ink: #1a1612;
  --dl-muted: #6c5f51;
  --dl-line: rgba(35, 26, 18, 0.1);
  --dl-line-strong: rgba(35, 26, 18, 0.16);
  --dl-accent: #c56032;
  --dl-accent-soft: rgba(197, 96, 50, 0.12);
  --dl-accent-deep: #2f1f16;
  --dl-olive: #8d9a71;
  --dl-shadow: 0 26px 72px rgba(48, 31, 18, 0.12);
  --dl-shadow-soft: 0 16px 40px rgba(48, 31, 18, 0.08);
  --dl-radius-xl: 34px;
  --dl-radius-lg: 28px;
  --dl-radius-md: 22px;
  --dl-radius-sm: 16px;
  --dl-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --dl-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

.dustlight-body {
  font-family: var(--dl-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dl-ink);
  background:
    radial-gradient(circle at top left, rgba(197, 96, 50, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(141, 154, 113, 0.18), transparent 24%),
    linear-gradient(135deg, #f5efe5 0%, #eee5d8 48%, #f8f4ed 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

a {
  color: inherit;
}

a,
button,
input,
textarea,
select {
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(197, 96, 50, 0.16);
}

.dl-app-shell {
  display: grid;
  grid-template-columns: 312px minmax(0, 1fr);
  min-height: 100vh;
  gap: 22px;
  padding: 22px;
}

.dl-sidebar,
.dl-main-panel {
  background: var(--dl-panel);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--dl-shadow);
}

.dl-sidebar {
  position: relative;
  overflow: hidden;
  border-radius: var(--dl-radius-xl);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.dl-sidebar::after {
  content: "";
  position: absolute;
  inset: auto -8% -10% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 96, 50, 0.1) 0%, rgba(197, 96, 50, 0) 72%);
  pointer-events: none;
}

.dl-brand-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.dl-brand-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dl-brand-block h1 {
  font-family: var(--dl-serif);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dl-brand-mark {
  position: relative;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 239, 222, 0.34) 0%, rgba(255, 239, 222, 0) 36%),
    linear-gradient(145deg, #241813 0%, #7b4327 52%, #d27a48 100%);
  border: 1px solid rgba(255, 247, 238, 0.55);
  color: #fff9f2;
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 238, 0.28),
    0 18px 36px rgba(48, 31, 18, 0.2);
}

.dl-brand-mark::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 19px;
  border: 1px solid rgba(255, 248, 239, 0.16);
}

.dl-brand-mark-core {
  position: relative;
  z-index: 1;
  font-family: var(--dl-serif);
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dl-brand-subtitle {
  max-width: 18rem;
  color: var(--dl-muted);
  line-height: 1.7;
}

.dl-eyebrow,
.dl-metric-label,
.dl-hero-label,
.dl-address-meta,
.dl-fallback-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dl-muted);
  text-transform: none;
}

.dl-eyebrow,
.dl-hero-label,
.dl-fallback-eyebrow {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(35, 26, 18, 0.06);
}

.dl-status-card,
.dl-notes-card {
  position: relative;
  z-index: 1;
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius-md);
  padding: 22px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--dl-shadow-soft);
}

.dl-status-card h2,
.dl-notes-card h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.dl-status-card p,
.dl-notes-card li,
.dl-hero p {
  color: var(--dl-muted);
  line-height: 1.72;
}

.dl-status-pill {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(141, 154, 113, 0.16);
  color: #4d5636;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.dl-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--dl-ink);
  border: 1px solid transparent;
  padding: 15px 18px;
  border-radius: var(--dl-radius-sm);
  background: rgba(255, 255, 255, 0.42);
  font-weight: 700;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.dl-nav-item:hover {
  transform: translateY(-1px);
  border-color: rgba(52, 32, 22, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 36px rgba(48, 31, 18, 0.08);
}

.dl-nav-item.is-active {
  border-color: rgba(212, 99, 43, 0.28);
  background: rgba(212, 99, 43, 0.12);
}

.dl-notes-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.dl-main-panel {
  border-radius: 36px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.dl-topbar,
.dl-hero,
.dl-iframe-shell,
.dl-fallback-card,
.dl-generic-card {
  border: 1px solid var(--dl-line);
  background: rgba(255, 255, 255, 0.52);
}

.dl-topbar {
  border-radius: 26px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dl-topbar-title {
  font-family: var(--dl-serif);
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 700;
}

.dl-topbar-actions,
.dl-fallback-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dl-topbar-actions .dl-btn {
  min-width: 128px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 20px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--dl-shadow-soft);
}

.dl-btn:hover {
  transform: translateY(-1px);
}

.dl-btn-ghost {
  background: rgba(255, 255, 255, 0.78);
  color: var(--dl-accent-deep);
  border: 1px solid rgba(52, 32, 22, 0.1);
}

.dl-btn-solid {
  background: linear-gradient(140deg, #231712 0%, #c56032 55%, #e08b58 100%);
  color: #fff7f0;
  box-shadow: 0 20px 36px rgba(197, 96, 50, 0.22);
}

.dl-hero {
  border-radius: 30px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 26px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.94) 0%, rgba(249, 242, 233, 0.9) 100%);
}

.dl-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -32% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 99, 43, 0.16) 0%, rgba(212, 99, 43, 0) 72%);
  pointer-events: none;
}

.dl-hero h2 {
  font-family: var(--dl-serif);
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-top: 10px;
}

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

.dl-hero-copy p {
  max-width: 720px;
  margin-top: 14px;
  font-size: 17px;
}

.dl-hero-metrics {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.dl-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.dl-metric {
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 249, 242, 0.95);
  border: 1px solid rgba(197, 96, 50, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.dl-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.35;
}

.dl-iframe-shell {
  border-radius: 28px;
  overflow: hidden;
  min-height: 720px;
}

.dl-generic-card {
  border-radius: 30px;
  padding: 30px;
}

.dl-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dl-shortcode-panel {
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--dl-line);
  min-height: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.dl-shortcode-panel p {
  color: var(--dl-muted);
}

.dl-shortcode-panel h3,
.dl-prose h2,
.dl-prose h3,
.dl-card-header h2,
.dl-fallback-card h1,
.dlm-activation-box h3,
.dlm-member-snapshot h3 {
  font-family: var(--dl-serif);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dl-section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dl-muted);
  margin-bottom: 12px;
}

.dl-detail-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.dl-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(23, 19, 15, 0.08);
}

.dl-detail-row span {
  color: var(--dl-muted);
}

.dl-detail-row strong {
  font-size: 16px;
  text-align: right;
}

.dl-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.dl-inline-divider {
  height: 1px;
  margin: 22px 0;
  background: rgba(23, 19, 15, 0.08);
}

.dl-mini-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.dl-mini-list li {
  color: var(--dl-muted);
  line-height: 1.7;
}

.dl-prose > * + * {
  margin-top: 16px;
}

.dl-prose p,
.dl-prose li,
.dl-prose label {
  color: var(--dl-muted);
  line-height: 1.7;
}

.dl-prose h1,
.dl-prose h2,
.dl-prose h3 {
  color: var(--dl-ink);
}

.dlm-activation-box,
.dlm-member-snapshot {
  display: block;
}

.dlm-activation-box h3,
.dlm-member-snapshot h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.dlm-activation-form p,
.dlm-member-snapshot p {
  margin: 0 0 14px;
}

.dlm-activation-form label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--dl-accent-deep);
}

.dlm-activation-form input[type="text"],
.dl-auth-form input[type="text"],
.dl-auth-form input[type="email"],
.dl-auth-form input[type="password"] {
  width: 100%;
  border: 1px solid rgba(52, 32, 22, 0.14);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  min-height: 52px;
}

.dlm-activation-form input[type="text"]:focus,
.dl-auth-form input[type="text"]:focus,
.dl-auth-form input[type="email"]:focus,
.dl-auth-form input[type="password"]:focus {
  border-color: rgba(197, 96, 50, 0.45);
  box-shadow: 0 0 0 4px rgba(197, 96, 50, 0.14);
}

.dlm-activation-form button,
.dlm-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--dl-shadow-soft);
}

.dlm-activation-form button {
  background: linear-gradient(135deg, #201710 0%, #d4632b 100%);
  color: #fff7f0;
}

.dlm-link-button {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(52, 32, 22, 0.1);
  color: var(--dl-accent-deep);
}

.dlm-message {
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.65;
  border: 1px solid transparent;
}

.dlm-message-error {
  background: rgba(193, 68, 14, 0.08);
  color: #9a3d11;
  border-color: rgba(193, 68, 14, 0.14);
}

.dlm-message-success {
  background: rgba(85, 131, 69, 0.12);
  color: #446536;
  border-color: rgba(85, 131, 69, 0.14);
}

.dl-auth-card {
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--dl-line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dl-auth-card.is-active {
  border-color: rgba(212, 99, 43, 0.24);
  box-shadow: inset 0 0 0 1px rgba(212, 99, 43, 0.08);
}

.dl-auth-card h3 {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.08;
}

.dl-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
}

.dl-auth-stage,
.dl-auth-side {
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--dl-line);
}

.dl-auth-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(23, 19, 15, 0.05);
  margin-bottom: 20px;
}

.dl-auth-switch-item {
  text-decoration: none;
  color: var(--dl-accent-deep);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  text-align: center;
}

.dl-auth-switch-item.is-active {
  background: linear-gradient(135deg, #201710 0%, #d4632b 100%);
  color: #fff7f0;
  box-shadow: 0 16px 32px rgba(48, 31, 18, 0.12);
}

.dl-auth-side h3 {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.12;
}

.dl-auth-side p {
  margin-top: 12px;
  color: var(--dl-muted);
  line-height: 1.7;
}

.dl-auth-side .dl-mini-list {
  margin-top: 18px;
}

.dl-auth-note {
  color: var(--dl-muted);
  line-height: 1.6;
}

.dl-auth-form p {
  margin: 0 0 14px;
}

.dl-auth-form label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--dl-accent-deep);
}

.dl-auth-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--dl-muted);
}

.dl-auth-inline input[type="checkbox"] {
  margin: 0;
}

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

.dl-iframe-toolbar {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--dl-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 243, 235, 0.9));
}

.dl-traffic-lights {
  display: flex;
  gap: 8px;
}

.dl-traffic-lights span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #d9ccbc;
}

.dl-traffic-lights span:first-child {
  background: #f28d67;
}

.dl-traffic-lights span:nth-child(2) {
  background: #f1c661;
}

.dl-traffic-lights span:last-child {
  background: #90c46a;
}

.dl-address-bar {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 19, 15, 0.08);
  border-radius: 999px;
  padding: 12px 16px;
  color: #5f5548;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-iframe-frame {
  position: relative;
  min-height: 640px;
  background: #faf7f2;
}

.dl-frame-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  background: linear-gradient(180deg, rgba(247, 242, 235, 0.96), rgba(247, 242, 235, 0.72));
  color: #594a3b;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.dl-frame-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.dl-kb-iframe {
  width: 100%;
  min-height: 640px;
  height: calc(100vh - 250px);
  border: 0;
  display: block;
  background: #fff;
}

.dl-kb-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px;
  overflow: hidden;
}

.dl-kb-ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.dl-kb-ambient-a {
  top: 6%;
  left: -4%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 99, 43, 0.18) 0%, rgba(212, 99, 43, 0) 72%);
}

.dl-kb-ambient-b {
  right: -6%;
  bottom: -4%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(158, 165, 127, 0.16) 0%, rgba(158, 165, 127, 0) 70%);
}

.dl-kb-utility-bar {
  position: fixed;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dl-kb-floating-back,
.dl-kb-floating-link {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 250, 244, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 40px rgba(45, 28, 15, 0.12);
  color: var(--dl-accent-deep);
  font-weight: 700;
}

.dl-kb-floating-back {
  padding: 12px 18px;
}

.dl-kb-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 250, 244, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 40px rgba(45, 28, 15, 0.12);
  color: var(--dl-accent-deep);
}

.dl-kb-brand-chip::before {
  content: "安";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #231712 0%, #b55a31 100%);
  color: #fff7f0;
  font-family: var(--dl-serif);
  font-size: 16px;
  line-height: 1;
}

.dl-kb-brand-chip span {
  color: var(--dl-muted);
  font-size: 13px;
}

.dl-kb-brand-chip strong {
  font-size: 14px;
}

.dl-kb-floating-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
}

.dl-kb-floating-link.is-solid {
  background: linear-gradient(135deg, #201710 0%, #d4632b 100%);
  color: #fff7f0;
  border-color: rgba(52, 32, 22, 0.06);
}

.dl-kb-immersive-shell {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 56px);
  min-height: calc(100dvh - 56px);
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 38px 90px rgba(45, 28, 15, 0.16);
  background: rgba(255, 253, 250, 0.66);
  backdrop-filter: blur(12px);
}

.dl-kb-iframe-immersive {
  min-height: calc(100vh - 56px);
  min-height: calc(100dvh - 56px);
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);
}

.dl-fallback {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.dl-fallback-card {
  max-width: 720px;
  border-radius: 24px;
  padding: 30px;
}

.dl-fallback-card h1 {
  font-size: 34px;
  margin-top: 10px;
}

.dl-fallback-card p {
  margin-top: 12px;
  color: var(--dl-muted);
  line-height: 1.72;
}

.dl-fallback-actions {
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .dl-app-shell {
    grid-template-columns: 1fr;
  }

  .dl-hero {
    grid-template-columns: 1fr;
  }

  .dl-grid-two {
    grid-template-columns: 1fr;
  }

  .dl-auth-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dl-app-shell {
    padding: 12px;
    gap: 12px;
  }

  .dl-sidebar,
  .dl-main-panel {
    border-radius: 22px;
    padding: 18px;
  }

  .dl-sidebar {
    gap: 16px;
  }

  .dl-brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 22px;
  }

  .dl-brand-mark-core {
    font-size: 28px;
  }

  .dl-brand-block h1 {
    font-size: 32px;
  }

  .dl-topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .dl-topbar .dl-eyebrow {
    margin-bottom: 8px;
  }

  .dl-topbar-actions,
  .dl-fallback-actions,
  .dl-auth-actions,
  .dl-inline-actions {
    width: 100%;
    flex-direction: column;
  }

  .dl-nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dl-hero-metrics {
    display: none;
  }

  body.page-template-page-member-home .dl-notes-card,
  body.page-template-page-member-kb .dl-notes-card {
    display: none;
  }

  body.page-template-page-member-auth .dl-status-card,
  body.page-template-page-member-auth .dl-notes-card,
  body.page-template-page-member-activate .dl-status-card,
  body.page-template-page-member-activate .dl-notes-card,
  body.page-template-page-member-expired .dl-notes-card {
    display: none;
  }

  body.page-template-page-member-auth .dl-sidebar,
  body.page-template-page-member-activate .dl-sidebar,
  body.page-template-page-member-expired .dl-sidebar {
    gap: 14px;
  }

  body.page-template-page-member-auth .dl-hero,
  body.page-template-page-member-activate .dl-hero,
  body.page-template-page-member-expired .dl-hero {
    padding: 22px 18px;
  }

  .dl-hero,
  .dl-iframe-shell {
    border-radius: 22px;
  }

  .dl-iframe-toolbar {
    grid-template-columns: 1fr;
  }

  .dl-kb-iframe {
    height: 72vh;
  }

  .dl-kb-stage {
    padding: 8px;
  }

  .dl-kb-utility-bar {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    left: 12px;
    right: 12px;
  }

  .dl-kb-floating-back {
    min-height: 46px;
    padding: 11px 16px;
    font-size: 14px;
  }

  .dl-kb-brand-chip {
    padding: 9px 12px;
  }

  .dl-kb-brand-chip span {
    display: none;
  }

  .dl-kb-immersive-shell {
    min-height: calc(100vh - 16px);
    min-height: calc(100dvh - 16px);
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(45, 28, 15, 0.12);
  }

  .dl-kb-iframe-immersive {
    min-height: calc(100vh - 16px);
    min-height: calc(100dvh - 16px);
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
  }

  .dl-detail-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.dl-sidebar--compact {
  gap: 20px;
}

.dl-status-card--compact p {
  max-width: 22rem;
}

.dl-card-header p {
  margin-top: 12px;
  max-width: 48rem;
  color: var(--dl-muted);
  line-height: 1.72;
}

.dl-auth-page-card {
  padding: 28px;
}

.dl-auth-page-copy {
  margin-top: 12px;
}

.dl-auth-shell--clean {
  align-items: start;
}

.dl-auth-shell--clean .dl-auth-stage,
.dl-auth-shell--clean .dl-auth-side {
  padding: 26px;
}

.dl-auth-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.dl-auth-inline-link,
.dl-auth-footnote a {
  color: var(--dl-accent);
  font-weight: 700;
  text-decoration: none;
}

.dl-auth-inline-link:hover,
.dl-auth-footnote a:hover {
  color: var(--dl-accent-deep);
}

.dl-auth-footnote {
  margin-top: 10px;
  color: var(--dl-muted);
}

.dl-auth-side--compact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dl-auth-side-note {
  color: var(--dl-muted);
}

.dl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.dl-hero-actions .dl-btn {
  min-width: 148px;
}

.dl-shortcode-panel .dl-mini-list {
  margin-top: 18px;
}

.dlm-activation-box > p:first-child {
  margin-bottom: 18px;
}

.dlm-activation-form p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .dl-app-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
  }

  .dl-main-panel {
    order: 1;
  }

  .dl-sidebar {
    order: 2;
    padding: 18px;
    gap: 16px;
  }

  .dl-auth-page-card {
    padding: 18px;
  }

  .dl-auth-shell--clean {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dl-auth-shell--clean .dl-auth-stage {
    order: 1;
  }

  .dl-auth-shell--clean .dl-auth-side {
    order: 2;
  }

  .dl-auth-card,
  .dl-auth-stage,
  .dl-auth-side,
  .dl-shortcode-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .dl-auth-card h3,
  .dl-auth-side h3 {
    font-size: 24px;
  }

  .dl-auth-utility {
    flex-direction: column;
    align-items: flex-start;
  }

  .dl-auth-actions .dl-btn,
  .dl-inline-actions .dl-btn,
  .dl-hero-actions .dl-btn {
    width: 100%;
    justify-content: center;
  }

  .dl-hero-actions {
    width: 100%;
  }

  .dl-card-header p {
    max-width: none;
  }
}
