.circle-toolbar { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:18px; }
.circle-toolbar>span { flex:1; font-size:12px; color:var(--muted); }
.circle-toolbar label { font-size:12px; }
.circle-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(290px,1fr); gap:18px; align-items:start; }
.circle-map .panel-head { margin-bottom:0; }
.fifths-wheel { position:relative; width:100%; aspect-ratio:1; max-width:620px; margin:0 auto; }
.fifths-wheel svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.circle-guide { fill:none; stroke:var(--border2); stroke-dasharray:2 6; }
.circle-sector { fill:var(--surface2); stroke:var(--border); stroke-width:1; }
.circle-sector.tonic { fill:var(--accent); fill-opacity:.22; stroke:var(--accent); }
.circle-sector.predominant { fill:#63b8c9; fill-opacity:.18; stroke:#63b8c9; stroke-opacity:.5; }
.circle-sector.dominant { fill:#e0ac76; fill-opacity:.2; stroke:#e0ac76; stroke-opacity:.6; }
.circle-sector.diatonic,.circle-sector.related { fill:var(--accent); fill-opacity:.08; stroke:var(--border2); }
.circle-sector.outside { opacity:.5; }
.circle-node { position:absolute; transform:translate(-50%,-50%); width:15%; aspect-ratio:1.2; background:transparent; border:2px solid transparent; border-radius:12px; color:var(--text); padding:3px; min-height:44px; line-height:1.15; }
.circle-node strong { display:block; font:24px var(--serif); }
.circle-node small { display:block; font-size:10px; color:var(--muted); margin-top:4px; }
.circle-node.selected { border-color:var(--accent); background:var(--surface); }
.circle-node.is-tonic strong { color:var(--accent); }
.circle-node i { font-size:8px; font-style:normal; color:var(--accent); }
.circle-node:hover { background:var(--surface2); }
.circle-node.playing { background:var(--accent); color:var(--accent-text); box-shadow:0 0 20px #9bbcff22; }
.circle-node.playing strong,.circle-node.playing small,.circle-node.playing i { color:var(--accent-text); }
.circle-center { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:30%; text-align:center; pointer-events:none; border-radius:50%; padding:15px 4px; background:var(--surface); }
.circle-center small { display:block; text-transform:uppercase; letter-spacing:.1em; font-size:8px; color:var(--muted); }
.circle-center strong { display:block; font:44px var(--serif); color:var(--accent); margin:4px 0; }
.circle-center span { display:block; font-size:11px; }
.circle-edge { fill:none; stroke:var(--muted); stroke-width:1.5; opacity:.2; }
.circle-edge.selected { stroke:var(--accent); stroke-width:3; opacity:.85; }
.circle-edge.playing { stroke:#e0ac76; stroke-width:4; opacity:1; }
.circle-legend { display:flex; gap:8px 14px; flex-wrap:wrap; font-size:10px; color:var(--muted); }
.circle-legend .tonic { color:var(--accent); }
.circle-legend .predominant { color:#63b8c9; }
.circle-legend .dominant { color:#e0ac76; }
.circle-key-links,.circle-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.circle-key-links { justify-content:space-between; }
.circle-key-links .button { font-size:11px; }
.circle-chord-title { display:flex; align-items:baseline; gap:15px; margin:10px 0 6px; }
.circle-chord-title h3 { font:42px var(--serif); overflow-wrap:anywhere; }
.circle-chord-title>span { color:var(--accent); font-size:16px; }
.circle-reading { padding:14px 16px; border-left:3px solid var(--border2); background:var(--surface2); border-radius:0 9px 9px 0; margin-top:20px; }
.circle-reading strong { font-size:14px; }
.circle-reading p { font-size:12px; color:var(--muted); margin-top:6px; line-height:1.75; }
.circle-reading.tonic,.circle-reading.related { border-color:var(--accent); }
.circle-reading.predominant { border-color:#63b8c9; }
.circle-reading.dominant,.circle-reading.applied { border-color:#e0ac76; }
.circle-reading.borrowed,.circle-reading.outside { border-color:#cda1d7; }
.circle-membership { font-size:11px; color:var(--muted); margin-top:9px; }
.circle-compare { display:grid; grid-template-columns:1fr 1fr; gap:8px 12px; align-items:center; margin-top:15px; }
.circle-compare label { font-size:12px; color:var(--muted); }
.circle-compare select { min-width:0; width:100%; font-size:12px; }
.circle-transition { margin-top:22px; padding-top:18px; border-top:1px solid var(--border); }
.circle-transition h4 { font:23px var(--serif); }
.circle-transition dl { display:grid; grid-template-columns:110px 1fr; gap:10px; margin:16px 0; font-size:12px; }
.circle-transition dt { color:var(--muted); }
.circle-transition dd { margin:0; }
.circle-progress { margin:18px 0; }
.circle-sequence { display:flex; gap:8px; overflow-x:auto; padding:4px 2px 12px; }
.circle-step { flex:0 0 104px; border:1px solid var(--border2); border-radius:10px; background:var(--surface2); color:var(--text); text-align:left; padding:12px; }
.circle-step small { display:block; color:var(--muted); font-size:10px; }
.circle-step strong { display:block; font:25px var(--serif); margin:6px 0; }
.circle-step span { font-size:11px; color:var(--muted); }
.circle-step.selected { border-color:var(--accent); }
.circle-step.playing { background:var(--accent); color:var(--accent-text); }
.circle-step.playing span,.circle-step.playing small { color:var(--accent-text); }
.circle-explain { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:32px; }
.circle-explain p { margin-top:14px; color:var(--muted); font-size:12px; line-height:1.8; }
.circle-explain b { color:var(--text); }
html[data-theme=light] .circle-legend .predominant { color:#286d7a; }
html[data-theme=light] .circle-legend .dominant { color:#885723; }
#circle { scroll-margin-top:85px; }
@media(max-width:850px) { .circle-layout,.circle-explain { grid-template-columns:1fr; } .fifths-wheel { max-width:520px; } }
@media(max-width:650px) {
  .circle-toolbar>span { flex-basis:100%; order:3; }
  .circle-toolbar select { max-width:180px; }
  .circle-toolbar #circleToStudio { margin-left:auto; }
  .circle-map { padding:14px 10px; }
  .circle-map .panel-head { padding:0 5px; }
  .circle-map .panel-head h3 { font-size:15px; }
  .circle-map .panel-head>span { font-size:10px; }
  .circle-node strong { font-size:19px; }
  .circle-node small { font-size:8px; }
  .circle-node { width:16%; border-radius:8px; }
  .circle-center strong { font-size:32px; }
  .circle-center span { font-size:9px; }
  .circle-progress .panel-head { flex-wrap:wrap; }
  .circle-progress .panel-head h3 { font-size:16px; }
  .workspace-nav a { flex:none; }
  .workspace-nav { justify-content:space-between; }
  .workspace-nav a span { font-size:10px; }
}
.circle-node.long-label strong { font-size:16px; overflow-wrap:anywhere; }
@media(max-width:650px) { .circle-node.long-label strong { font-size:12px; } }
