.wpdisc2-root * { box-sizing: border-box; }
.wpdisc2-root {
  --wpdisc-bg: #f7f5ef;
  --wpdisc-surface: rgba(255,255,255,.82);
  --wpdisc-border: rgba(54,72,66,.10);
  --wpdisc-text: #22312d;
  --wpdisc-muted: #66756f;
  --wpdisc-shadow: 0 18px 60px rgba(88, 105, 99, 0.12);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--wpdisc-text);
}
.wpdisc2-app {
  width: 100%;
  max-width: 460px;
  margin: 20px auto;
  height: min(840px, calc(100vh - 40px));
  min-height: 680px;
  background: linear-gradient(180deg, #eef7f2 0%, #f7f5ef 55%, #f8f2ea 100%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 34px;
  box-shadow: var(--wpdisc-shadow);
  overflow: hidden;
}
.wpdisc2-shell { display:flex; flex-direction:column; height:100%; }
.wpdisc2-header {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:18px 18px 10px;
}
.wpdisc2-brand { display:flex; align-items:center; gap:12px; min-width:0; }
.wpdisc2-logo, .wpdisc2-logo-fallback {
  width:42px; height:42px; border-radius:14px; object-fit:cover; flex:0 0 auto;
}
.wpdisc2-logo-fallback {
  display:grid; place-items:center; font-weight:800; background:var(--wpdisc-accent-soft); color:#2f665d;
}
.wpdisc2-kicker { margin:0 0 4px; font-size:12px; color:var(--wpdisc-muted); text-transform:uppercase; letter-spacing:.08em; }
.wpdisc2-title { margin:0; font-size:20px; line-height:1.1; }
.wpdisc2-ghost-btn, .wpdisc2-nav-btn, .wpdisc2-option, .wpdisc2-mode-btn {
  border:0; outline:0; font:inherit;
}
.wpdisc2-ghost-btn {
  background:rgba(255,255,255,.72); border:1px solid var(--wpdisc-border); color:var(--wpdisc-text);
  padding:10px 14px; border-radius:999px; cursor:pointer;
}
.wpdisc2-main { position:relative; flex:1; overflow:hidden; padding:8px 16px 0; }
.wpdisc2-screen {
  position:absolute; inset:0 16px 0; opacity:0; pointer-events:none; transform:translateY(10px);
  transition:opacity .28s ease, transform .28s ease; display:flex; flex-direction:column; gap:12px;
}
.wpdisc2-screen.is-active { opacity:1; pointer-events:auto; transform:translateY(0); }
.wpdisc2-card {
  background:var(--wpdisc-surface); border:1px solid rgba(255,255,255,.9); border-radius:28px;
  box-shadow:0 10px 36px rgba(67,84,77,.08); backdrop-filter: blur(10px);
}
.wpdisc2-hero {
  min-height:100%; padding:24px 20px 20px; display:grid; gap:16px; align-content:start;
}
.wpdisc2-chip {
  display:inline-flex; justify-self:start; padding:8px 12px; border-radius:999px; background:var(--wpdisc-accent-soft);
  color:#34675d; font-size:12px; font-weight:700;
}
.wpdisc2-hero h3, .wpdisc2-question-card h3, .wpdisc2-result-card h3 {
  margin:0; font-size:30px; line-height:1.05;
}
.wpdisc2-hero p, .wpdisc2-question-card p, .wpdisc2-result-card p, .wpdisc2-panel p {
  margin:0; color:var(--wpdisc-muted); line-height:1.48;
}
.wpdisc2-mode-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.wpdisc2-mode-btn {
  display:grid; gap:8px; text-align:left; cursor:pointer; padding:18px 16px; border-radius:24px;
  background:rgba(255,255,255,.78); border:1px solid var(--wpdisc-border); transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wpdisc2-mode-btn:hover, .wpdisc2-mode-btn:focus-visible,
.wpdisc2-option:hover, .wpdisc2-option:focus-visible, .wpdisc2-nav-btn:hover {
  transform:translateY(-1px); border-color:rgba(120,185,171,.45); box-shadow:0 12px 24px rgba(120,185,171,.12);
}
.wpdisc2-mode-btn strong { font-size:17px; }
.wpdisc2-mode-btn span { color:var(--wpdisc-muted); font-size:13px; line-height:1.4; }
.wpdisc2-mini-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.wpdisc2-mini-stats div {
  background:rgba(255,255,255,.72); border:1px solid var(--wpdisc-border); border-radius:20px; padding:14px 10px; text-align:center;
}
.wpdisc2-mini-stats strong { display:block; font-size:20px; }
.wpdisc2-mini-stats span { font-size:12px; color:var(--wpdisc-muted); }
.wpdisc2-progress-wrap { padding:4px 4px 0; }
.wpdisc2-progress-meta { display:flex; justify-content:space-between; gap:8px; font-size:13px; color:var(--wpdisc-muted); margin-bottom:8px; }
.wpdisc2-progress-bar {
  height:10px; background:rgba(255,255,255,.75); border:1px solid var(--wpdisc-border); border-radius:999px; overflow:hidden;
}
.wpdisc2-progress-bar span {
  display:block; height:100%; width:0; border-radius:999px; background:linear-gradient(90deg, var(--wpdisc-accent), #bfe3d9);
}
.wpdisc2-question-card {
  min-height:calc(100% - 38px); padding:22px 18px 18px; display:flex; flex-direction:column;
}
.wpdisc2-options { display:grid; gap:10px; margin-top:18px; }
.wpdisc2-option {
  width:100%; text-align:left; display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:16px; background:rgba(255,255,255,.78); border-radius:22px; border:1px solid rgba(101,116,111,.12); cursor:pointer;
}
.wpdisc2-option span { font-size:15px; line-height:1.38; }
.wpdisc2-option em {
  width:30px; height:30px; border-radius:50%; display:grid; place-items:center; flex:0 0 30px;
  background:var(--wpdisc-accent-soft); color:#34675d; font-style:normal; font-weight:700; font-size:12px;
}
.wpdisc2-result-card {
  min-height:0; height:100%; padding:18px 16px 96px; display:flex; flex-direction:column; gap:12px; overflow:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
}
.wpdisc2-result-card::-webkit-scrollbar { width: 0; height: 0; }
.wpdisc2-result-top { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.wpdisc2-monogram {
  width:72px; height:72px; border-radius:24px; display:grid; place-items:center; flex:0 0 auto;
  font-size:24px; font-weight:800; background:linear-gradient(135deg, var(--wpdisc-accent-soft), rgba(255,255,255,.92));
  border:1px solid rgba(120,185,171,.3);
}
.wpdisc2-chart-wrap {
  background:rgba(255,255,255,.72); border:1px solid var(--wpdisc-border); border-radius:24px; padding:8px;
  display:grid; place-items:center; min-height:220px; flex:0 0 auto;
}
.wpdisc2-chart-wrap canvas { max-width:100%; height:auto; display:block; }
.wpdisc2-bars { display:grid; gap:8px; }
.wpdisc2-bar-row { display:grid; grid-template-columns:28px 1fr 46px; gap:10px; align-items:center; }
.wpdisc2-bar-track { height:12px; border-radius:999px; overflow:hidden; background:rgba(255,255,255,.75); border:1px solid var(--wpdisc-border); }
.wpdisc2-bar-fill { display:block; height:100%; border-radius:999px; }
.wpdisc2-insight-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:10px; min-height:0;
}
.wpdisc2-panel {
  padding:14px; border-radius:22px; background:rgba(255,255,255,.68); border:1px solid rgba(101,116,111,.1);
}
.wpdisc2-panel h4 { margin:0 0 8px; font-size:14px; }
.wpdisc2-panel ul { margin:0; padding-left:16px; color:var(--wpdisc-muted); }
.wpdisc2-panel li + li { margin-top:4px; }
.wpdisc2-footer {
  display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; padding:12px 16px 16px; background:linear-gradient(180deg, rgba(247,245,239,0) 0%, rgba(247,245,239,.95) 24%, rgba(247,245,239,1) 100%);
}
.wpdisc2-nav-btn {
  padding:12px 10px; border-radius:18px; background:rgba(255,255,255,.8); border:1px solid var(--wpdisc-border); color:var(--wpdisc-muted); cursor:pointer;
}
.wpdisc2-nav-btn.is-active { background:var(--wpdisc-accent-soft); color:#2f665d; font-weight:700; }

@media (max-width: 520px) {
  .wpdisc2-app {
    height: min(100vh, 820px); min-height: 100vh; max-width: 100%; margin:0; border-radius:0;
  }
  .wpdisc2-main { padding:8px 12px 0; }
  .wpdisc2-screen { inset:0 12px 0; }
  .wpdisc2-header { padding:16px 12px 10px; }
  .wpdisc2-mode-grid, .wpdisc2-insight-grid { grid-template-columns:1fr; }
  .wpdisc2-result-card, .wpdisc2-question-card, .wpdisc2-hero { padding:18px 16px; }
  .wpdisc2-hero h3, .wpdisc2-question-card h3, .wpdisc2-result-card h3 { font-size:26px; }
  .wpdisc2-chart-wrap { min-height:200px; }
}


.wpdisc2-result-card .wpdisc2-insight-grid,
.wpdisc2-result-card .wpdisc2-panel,
.wpdisc2-result-card .wpdisc2-bars { flex: 0 0 auto; }
