.cw-v2, .cw-dialog {
  --cw-ink: #30271f;
  --cw-dim: #706358;
  --cw-line: #d9cebd;
  --cw-paper: #fcf9f2;
  color: var(--cw-ink);
  font-family: inherit;
}
.cw-v2 .cw-atlas-layout { display:grid; grid-template-columns:minmax(0,1.32fr) minmax(250px,.75fr); align-items:center; gap:clamp(20px,4vw,62px); }
.cw-v2 .cw-figure { min-width:0; margin:0; display:flex; flex-direction:column; align-items:center; }
.cw-chart { width:100%; max-width:700px; }
.cw-v2 .cw-detailed-wheel, .cw-dialog .cw-detailed-wheel { display:block; width:100%; height:auto; max-width:none; }
.cw-actionable { cursor:pointer; }
.cw-leaf.cw-actionable:hover path, .cw-actionable:hover > path:first-child { filter:brightness(1.08); }
.cw-leaf-label, .cw-ring-label { font-family:inherit; pointer-events:none; }
.cw-ring-label { font-weight:720; letter-spacing:.3px; }
.cw-hub-name { font:600 40px Georgia,'Times New Roman',serif; fill:#fbefcf; letter-spacing:1.6px; }
.cw-hub-small { fill:#e0cba9; font:500 14px var(--sans,sans-serif); letter-spacing:1.5px; }
.cw-hub-arc { fill:#624f39; font:650 12px Georgia,serif; letter-spacing:2.1px; }
.cw-v2 button, .cw-dialog button { min-width:0; margin:0; font:inherit; line-height:1.35; cursor:pointer; }
.cw-v2 .cw-expand { display:inline-flex; gap:7px; align-items:center; margin-top:10px; padding:7px 13px; border:1px solid var(--cw-line); border-radius:999px; background:transparent; color:var(--cw-dim); font-size:.875rem; }
.cw-v2 .cw-expand:before { content:""; width:13px; height:13px; background:linear-gradient(currentColor,currentColor) left top/5px 1px,linear-gradient(currentColor,currentColor) left top/1px 5px,linear-gradient(currentColor,currentColor) right bottom/5px 1px,linear-gradient(currentColor,currentColor) right bottom/1px 5px; background-repeat:no-repeat; }
.cw-v2 .cw-expand:hover, .cw-v2 button.cw-note-button:hover, .cw-v2 .cw-choice:hover { border-color:#846349; color:#513720; }
.cw-info { min-width:0; }
.cw-v2 .cw-panel-label, .cw-v2 .cw-detail-term { margin:0 0 10px; color:#554635; font-size:.917rem; font-weight:680; letter-spacing:-.02em; line-height:1.5; }
.cw-v2 .cw-leaf-heading { margin-top:25px; }
.cw-family-choices, .cw-leaf-choices, .cw-active-notes { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.cw-v2 .cw-choice, .cw-v2 .cw-note-button {
  display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:7px 10px; min-height:35px;
  border:1px solid #d9cebf; border-radius:4px; background:transparent; color:#52483c; font-size:.88rem;
}
.cw-v2 .cw-choice[aria-pressed="true"], .cw-v2 .cw-note-button[aria-pressed="true"] { border-color:#846349; background:#eee2cf; color:#493120; }
.cw-v2 .cw-note-button { border-radius:999px; min-height:32px; padding:6px 11px; }
.cw-swatch { display:inline-block; width:10px; height:10px; flex:none; border-radius:50%; }
.cw-v2 .cw-result { margin-top:23px; padding-top:19px; border-top:1px solid var(--cw-line); }
.cw-v2 .cw-selection-title { display:flex; align-items:baseline; flex-wrap:wrap; gap:7px; font:600 1.4rem/1.35 var(--sans,sans-serif); margin:0 0 12px; }
.cw-selection-en { color:var(--cw-dim); font:italic 1rem/1.4 Georgia,serif; }
.cw-v2 .cw-find, .cw-dialog .cw-find { border:1px solid #553d2a; color:#fff9eb; padding:10px 14px; border-radius:4px; background:#533e2f; font-size:.9rem; }
.cw-v2 .cw-find:hover,.cw-dialog .cw-find:hover { background:#725036; }
.cw-v2 :is(button,a):focus-visible,.cw-dialog :is(button,.cw-zoom-pane):focus-visible { outline:2px solid #8b572b; outline-offset:3px; }
.cw-compact .cw-atlas-layout { grid-template-columns:minmax(0,1.2fr) minmax(125px,.65fr); gap:clamp(12px,2vw,28px); }
.cw-compact .cw-chart { max-width:470px; }
.cw-detail-notes { margin:0; }
.cw-detail-group { padding:12px 0; border-bottom:1px solid var(--cw-line); }
.cw-detail-group:first-child { padding-top:0; }
.cw-detail-group:last-child { border:0; }
.cw-v2 .cw-detail-term { display:flex; align-items:center; gap:7px; margin-bottom:6px; }
.cw-active-notes { margin:0; gap:5px; }
.cw-empty { color:var(--cw-dim); line-height:1.6; }
.cw-dialog {
  box-sizing:border-box; width:min(calc(100vw - 28px),1000px); height:min(calc(100dvh - 36px),900px);
  max-width:calc(100vw - 28px); max-height:calc(100dvh - 36px); padding:0; overflow:hidden;
  border:1px solid #b7a78e; border-radius:10px; background:var(--cw-paper); box-shadow:0 18px 85px #1b170e55;
}
.cw-dialog[open] { display:flex; flex-direction:column; }
.cw-dialog::backdrop { background:#201810aa; }
.cw-dialog-top { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 20px; border-bottom:1px solid var(--cw-line); flex:none; }
.cw-dialog .cw-dialog-title { margin:0; font:600 1.25rem/1.4 var(--sans,sans-serif); }
.cw-dialog .cw-close,.cw-dialog .cw-zoom-button { border:1px solid var(--cw-line); border-radius:4px; background:transparent; color:var(--cw-ink); padding:7px 12px; font-size:.875rem; }
.cw-toolbar { flex:none; display:flex; gap:9px; align-items:center; justify-content:center; padding:7px 12px; }
.cw-zoom-label { font-size:.8125rem; color:var(--cw-dim); }
.cw-zoom-choices { display:inline-flex; gap:4px; }
.cw-dialog .cw-zoom-button { min-width:44px; padding:6px 9px; }
.cw-dialog .cw-zoom-button[aria-pressed="true"] { background:#725139; border-color:#725139; color:#fff9ec; }
.cw-zoom-pane { flex:1; min-height:0; min-width:0; overflow:auto; overscroll-behavior:contain; touch-action:pan-x pan-y pinch-zoom; background:#f5f0e7; }
.cw-zoom-chart { margin:0 auto; max-width:none; }
.cw-dialog .cw-dialog-status { min-height:46px; display:flex; flex:none; align-items:center; justify-content:space-between; gap:10px; padding:7px 20px; border-top:1px solid var(--cw-line); }
.cw-dialog-description { font-size:.94rem; }
.cw-dialog .cw-find { padding:7px 11px; flex:none; }
@media (max-width:900px) {
  .cw-compact .cw-atlas-layout { grid-template-columns:1fr; gap:18px; }
  .cw-compact .cw-chart { max-width:410px; }
  .cw-compact .cw-detail-group { display:grid; grid-template-columns:minmax(90px,auto) 1fr; align-items:baseline; gap:9px; }
  .cw-compact .cw-detail-term { margin:0; }
}
@media (max-width:740px) {
  .cw-v2 .cw-atlas-layout { grid-template-columns:1fr; gap:20px; }
  .cw-guide .cw-chart { max-width:520px; }
  .cw-v2 .cw-choice,.cw-v2 .cw-note-button,.cw-v2 .cw-expand { min-height:42px; }
  .cw-v2 .cw-panel-label { margin-bottom:6px; }
  .cw-v2 .cw-leaf-heading { margin-top:18px; }
}
@media (max-width:520px) {
  .cw-dialog,.cw-dialog[open] { inset:0; margin:0; width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; border:0;border-radius:0; }
  .cw-dialog-top { padding:calc(8px + env(safe-area-inset-top)) 14px 8px; }
  .cw-dialog .cw-dialog-status { padding:7px 12px calc(7px + env(safe-area-inset-bottom)); }
  .cw-dialog .cw-zoom-button,.cw-dialog .cw-close { min-height:40px; }
}
@media (prefers-reduced-motion:reduce) { .cw-v2 *, .cw-dialog * { scroll-behavior:auto!important; } }
