/* Key tool uses the same warm Studio tokens as the library and mixer. */
.circle-overlay{position:fixed;inset:0;z-index:220;background:var(--bg-top);color:var(--text);overflow:auto;overscroll-behavior:contain;padding:0 20px max(24px,env(safe-area-inset-bottom));}
.circle-dialog{max-width:1080px;margin:auto;}
.circle-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 0 20px;}
.circle-eyebrow{color:var(--olive);font-size:12px;margin:0 0 8px;max-width:75vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.circle-header h1{font:400 38px/1.1 var(--display);letter-spacing:-1px;margin:0;}
.circle-overlay button,.circle-launch{border:1px solid var(--line);background:var(--paper);color:var(--text);border-radius:14px;padding:10px 14px;min-height:44px;font:500 13px/1.3 system-ui;cursor:pointer;}
.circle-overlay button{font-family:inherit;}
.circle-overlay button:hover,.circle-overlay button:focus-visible,.circle-launch:hover{border-color:var(--accent);}
.circle-overlay button:focus-visible,.circle-wheel [role=button]:focus-visible{outline:3px solid var(--accent);outline-offset:3px;}
.circle-overlay button.selected,.circle-notes .tonic{background:var(--peach);border-color:var(--accent);color:var(--accent);}
.circle-overlay button:disabled{opacity:.5;cursor:default;}
.circle-content{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start;}
.circle-column{display:flex;flex-direction:column;gap:20px;min-width:0;}
.circle-card{background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:22px;min-width:0;}
.circle-card h2,.circle-sheet h2{font:400 24px/1.2 var(--display);margin:0 0 16px;letter-spacing:-.4px;}
.circle-row{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.circle-row h2{margin:0;}
.circle-row>div>small{display:block;margin:0 0 6px;color:var(--dim);}
.circle-card small{font-size:11px;color:var(--dim);}
.circle-card p{font-size:14px;line-height:1.6;}
.circle-wheel{display:block;width:100%;max-width:410px;height:auto;margin:18px auto;overflow:visible;}
.circle-wheel path{fill:var(--sunk);stroke:var(--paper);stroke-width:2;cursor:pointer;}
.circle-wheel path.diatonic{fill:var(--color-surface-019);}
.circle-wheel path.tonic{fill:var(--accent);}
.circle-wheel path.pivot{stroke:var(--color-border-020);stroke-width:3;}
.circle-wheel path.playing{fill:var(--color-surface-021);stroke:var(--olive);stroke-width:3;}
.circle-wheel text{pointer-events:none;fill:var(--text);font-size:17px;font-weight:600;}
.circle-wheel .minor-label{font-size:12px;}
.circle-wheel .tonic-label{fill:var(--paper);}
.circle-wheel path.degree-segment{fill:var(--color-surface-022);cursor:default;}
.circle-wheel .degree-label{font-size:8.5px;fill:var(--olive);}
.circle-wheel path.capo-arc{fill:none;stroke:var(--color-border-020);stroke-width:3;stroke-dasharray:4 3;pointer-events:none;}
.circle-wheel .wheel-centre{fill:var(--paper);stroke:var(--line);stroke-width:3;}
.circle-wheel .centre-note{font:36px var(--display);}
.circle-wheel .centre-mode{font-size:10px;letter-spacing:1px;fill:var(--dim);}
.circle-legend{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;font-size:11px;color:var(--dim);}
.circle-legend>span::before{content:'';display:inline-block;width:9px;height:9px;background:var(--accent);border-radius:50%;margin-right:5px;}
.circle-legend>span:nth-child(2)::before{background:var(--color-surface-023);}
.circle-legend>span:nth-child(3)::before{background:var(--color-surface-024);border:1px dashed var(--color-border-020);}
.circle-pivot{border:1px solid var(--color-border-020);border-radius:12px;padding:12px;color:var(--color-ink-025);}
.circle-card details{margin-top:14px;color:var(--dim);font-size:12px;}
.circle-card summary{cursor:pointer;min-height:32px;}
.circle-notes{display:flex;gap:8px;margin:18px 0;}
.circle-notes>div{flex:1;max-width:58px;text-align:center;min-width:0;}
.circle-notes span{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--rail);border-radius:12px;font-size:17px;}
.circle-notes small,.circle-chords small{display:block;text-align:center;margin-top:7px;}
.pent-row>*{flex:1;}
.circle-modes{display:flex;gap:8px;align-items:center;overflow:auto;padding:14px 2px 6px;}
.circle-modes button{flex:none;min-height:36px;padding:8px 12px;}
.form-row{gap:6px;}
.form-row button{flex:1;padding:8px 3px;font-size:12px;}
.form-row small{display:block;margin-top:3px;color:inherit;}
.neck-scroll{overflow-x:auto;padding:16px 0 4px;}
.circle-neck{width:100%;min-width:380px;display:block;}
.circle-neck .fret,.circle-neck .string{stroke:var(--rail);stroke-width:1.5;}
.circle-neck text{fill:var(--dim);font-size:10px;}
.circle-neck .note{fill:var(--color-surface-026);}
.circle-neck .rectangle{fill:var(--accent);}
.circle-neck .stack{fill:var(--olive);}
.circle-neck .root-note{stroke:var(--text);stroke-width:2;}
.circle-neck .finger-degree{fill:var(--paper);font-size:8px;font-weight:600;}
.circle-legend .rectangle-key::before{background:var(--accent);}
.circle-legend .stack-key::before{background:var(--olive);}
.circle-help{color:var(--dim);font-size:12px!important;line-height:1.6;margin:12px 0;}
.circle-chords{display:flex;justify-content:space-between;gap:6px;margin:20px 0 28px;}
.circle-chords>div{min-width:0;flex:1;}
.circle-chords button{display:block;padding:0;width:100%;aspect-ratio:1;min-height:40px;border-radius:50%;font-size:13px;}
.circle-progressions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;}
.circle-card [data-circle=tuner]{width:100%;color:var(--accent);border-color:var(--accent);margin-top:10px;}
.circle-status{position:sticky;bottom:8px;background:var(--olive);color:var(--paper);border-radius:14px;font-size:13px;padding:12px 16px;line-height:1.5;box-shadow:0 4px 20px var(--color-shadow-027);}
.circle-status:empty{display:none;}
.circle-sheet-shade{position:fixed;inset:0;background:var(--color-surface-028);z-index:1;}
.circle-sheet{position:fixed;z-index:2;bottom:0;left:50%;transform:translateX(-50%);width:min(480px,100%);max-height:90dvh;overflow:auto;background:var(--paper);padding:24px 28px max(24px,env(safe-area-inset-bottom));border-radius:26px 26px 0 0;box-sizing:border-box;}
.circle-sheet .voicing{display:block;width:220px;max-width:100%;margin:16px auto;}
.voicing line{stroke:var(--rail);stroke-width:2;}.voicing circle{fill:var(--accent);}.voicing text{fill:var(--text);font-size:13px;}
.circle-launch{display:inline-block;color:var(--accent);margin-top:10px;text-decoration:none;align-self:flex-start;}
.tn-scale-link{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;color:var(--olive);font-size:12px;gap:12px;}
.tn-scale-link button{min-height:44px;border:1px solid var(--rail);border-radius:12px;padding:8px 16px;color:var(--accent);}
.tn-chip[data-scale-note]::after{content:'';position:absolute;width:7px;height:7px;border-radius:50%;bottom:5px;left:calc(50% - 3.5px);background:var(--olive);opacity:.4;}
.tn-chip[data-scale-note=tonic]::after{background:var(--accent);opacity:1;}
@media(max-width:700px){.circle-overlay{padding-left:14px;padding-right:14px;}.circle-content{grid-template-columns:1fr;gap:14px;}.circle-column{gap:14px;}.circle-card{padding:18px 14px;border-radius:22px;}.circle-header{padding:20px 4px;}.circle-header h1{font-size:32px;}.circle-chords{gap:5px;}.circle-chords button{font-size:12px;}.circle-notes{gap:6px;}.circle-notes span{font-size:15px;}.circle-header>button{padding:10px 12px;}.circle-row>small{max-width:45%;text-align:right;}}

/* Suggest shares Circle's paper, ink and accent colours. */
.circle-screen-modes{display:flex;gap:8px;padding:0 20px 16px}
.circle-suggest-content{max-width:780px;margin:auto;padding:0 20px 24px;display:grid;gap:14px;min-width:0}
.suggest-candidates{display:grid;gap:10px;min-width:0}
.circle-overlay .suggest-candidate{display:block;width:100%;min-width:0;text-align:left;padding:16px;border-radius:16px}
.suggest-candidate>.circle-row{flex-wrap:nowrap;align-items:flex-start}
.suggest-fit{display:flex;gap:3px;font-size:13px;white-space:nowrap;color:var(--border,var(--color-ink-029))}
.suggest-fit .filled{color:var(--accent,var(--color-ink-030))}
.suggest-chips{display:flex;overflow:auto;gap:8px;margin-top:14px;padding-bottom:4px;max-width:100%}
.suggest-chip{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 auto;min-width:48px;padding:8px 10px;border-radius:10px;background:var(--color-surface-031)}
.suggest-chip b{font-size:16px}.suggest-chip small{display:block;margin-top:5px;font-size:12px;opacity:.7}
.suggest-styles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.circle-overlay .suggest-styles button{padding:10px 4px;min-width:0;min-height:44px;font-size:13px}
.suggest-control-label{margin:16px 0 8px;font-size:13px;font-weight:700}
.suggest-voices{margin-top:16px}.suggest-controls{position:sticky;bottom:0;box-shadow:0 -4px 16px var(--color-shadow-032)}
.circle-overlay .suggest-play{min-width:100px}
@media(max-width:600px){.circle-suggest-content{padding:0 12px 20px}.circle-screen-modes{padding:0 12px 12px}.circle-overlay .suggest-candidate{padding:13px}.suggest-fit{font-size:11px}.suggest-controls{position:static}}
.suggest-candidate>.circle-row>strong{min-width:0;flex:1;overflow-wrap:anywhere}.suggest-fit{flex-shrink:0}
