/* Notes: responsive avatars, one composer and bounded sheets. */
.notes-title { display:none; }
.dm-inbox .dm-notes { flex:0 0 auto; padding:14px 0 12px; border:0; }
.notes-rail { display:flex; align-items:flex-start; gap:clamp(20px,5vw,28px); padding:18px 18px 12px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; scroll-padding-inline:18px; }
.notes-rail::-webkit-scrollbar { display:none; }
.note-person,.dm-inbox .note-person { position:relative; flex:0 0 auto; display:flex; flex-direction:column; align-items:center; gap:10px; width:clamp(74px,20vw,90px); min-width:clamp(74px,20vw,90px); padding:42px 0 0; border:0; background:transparent; color:var(--ui-text,#f5f0e8); text-align:center; font-size:11px; line-height:16px; touch-action:pan-x; -webkit-tap-highlight-color:transparent; }
.note-person .avatar,.dm-inbox .note-person .avatar { width:clamp(60px,16vw,72px); height:clamp(60px,16vw,72px); border:3px solid var(--ui-bg,#0b0c10); border-radius:50%; object-fit:cover; box-shadow:0 0 0 1px #c9ac7b35; }
.note-person .note-bubble,.dm-inbox .note-person .note-bubble { position:absolute; z-index:2; top:0; left:50%; right:auto; transform:translateX(-50%); width:calc(100% + 13px); min-height:38px; max-height:48px; padding:8px 10px; border:1px solid #ffffff12; border-radius:15px; background:var(--note-color,#292e33); color:var(--note-ink,#f7f7f8); font-size:11px; line-height:15px; overflow-wrap:anywhere; box-shadow:inset 0 1px #ffffff0b,0 5px 12px #0002; }
.note-person .note-bubble::after,.note-person .note-bubble::before { content:''; position:absolute; background:inherit; border-radius:50%; }
.note-person .note-bubble::after { width:11px; height:11px; left:17px; bottom:-6px; }
.note-person .note-bubble::before { width:5px; height:5px; left:13px; bottom:-14px; }
.note-copy { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.note-music-label,.note-artist-label { display:block; max-width:100%; margin:0; padding:0; border:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:11px; font-weight:500; }
.note-music-label svg { width:11px; height:11px; margin-right:3px; vertical-align:-1px; }
.note-artist-label { opacity:.65; margin-top:3px; }
.note-name { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.note-placeholder { color:var(--ui-muted,#a7a39c)!important; }
.note-person .note-add { position:absolute; right:3px; bottom:22px; display:grid; place-items:center; width:20px; height:20px; border:2px solid var(--ui-bg,#0b0c10); border-radius:50%; background:var(--ui-accent,#c9ac7b); color:var(--ui-accent-ink,#1b1710); font-size:15px; font-weight:700; }
.note-gif { display:inline-block; font-size:26px; animation:noteGif 1.5s ease-in-out infinite; }
.note-person .note-gif { font-size:16px; line-height:1; }
.note-person .note-bubble:has(>.note-gif) .note-copy,.note-person .note-bubble:has(>.note-gif) .note-music-label,.note-person .note-bubble:has(>.note-gif) .note-artist-label { padding-right:12px; }
.note-person .note-bubble>.note-gif { position:absolute; right:5px; bottom:5px; font-size:14px; }
.note-overlay { position:fixed; inset:0; z-index:320; display:flex; flex-direction:column; height:var(--note-height,100dvh); overflow:hidden; padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom); background:radial-gradient(ellipse at 50% 0%,#c9ac7b0a,transparent 60%),var(--ui-bg,#0b0c10); color:var(--ui-text,#f5f0e8); font-family:inherit; animation:noteOverlay 220ms ease-out; }
.note-overlay button { color:inherit; font:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.note-overlay button:disabled { cursor:default; }
.note-overlay:has(.note-view-person) { background:#0009; }
.note-editor-header { flex:none; display:flex; align-items:center; justify-content:space-between; min-height:80px; padding:16px 20px; }
.note-glass-circle { display:grid; place-items:center; flex-shrink:0; width:44px; height:44px; padding:10px; border:1px solid var(--ui-line,#ffffff16); border-radius:50%; background:var(--ui-panel,#121419); color:var(--ui-text,#f5f0e8); box-shadow:inset 0 1px #ffffff06; transition:transform 160ms var(--ui-ease,ease),background-color 160ms ease; }
.note-glass-circle svg { display:block; width:24px; height:24px; }
.note-glass-circle:focus-visible,.note-tools button:focus-visible { outline:2px solid var(--ui-accent,#c9ac7b); outline-offset:3px; }
.note-counter { font-size:11px; color:var(--ui-muted,#a7a39c); font-variant-numeric:tabular-nums; letter-spacing:.3px; }
.note-editor-centre { flex:1; min-height:0; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:18px 20px; transition:opacity 160ms ease; }
.note-preview-bubble { position:relative; z-index:1; max-width:min(230px,70vw); min-width:108px; padding:13px 17px; border:1px solid #ffffff16; border-radius:22px; background:var(--note-color,#292e33); color:var(--note-ink,#f7f7f8); box-shadow:inset 0 1px #ffffff15,0 12px 28px #0002; font-size:16px; line-height:21px; overflow-wrap:anywhere; }
.note-preview-bubble::after,.note-preview-bubble::before { content:''; position:absolute; background:inherit; border-radius:50%; }
.note-preview-bubble::after { width:13px; height:13px; bottom:-7px; left:16px; }
.note-preview-bubble::before { width:5px; height:5px; bottom:-16px; left:12px; }
.note-preview-bubble textarea { display:block; width:100%; max-height:76px; resize:none; border:0; padding:0; outline:none; background:none; color:inherit; font:inherit; font-size:18px; line-height:24px; text-align:center; }
.note-preview-bubble textarea::placeholder { color:inherit; opacity:.57; }
.note-preview-bubble textarea:focus-visible { outline:none; }
.note-preview-bubble:focus-within { box-shadow:inset 0 1px 1px #ffffff30,0 0 0 1px #ffffff0a; }
.note-preview-song { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; text-align:center; }
.note-preview-song:empty { display:none; }
.note-profile { position:relative; margin-top:12px; }
.note-profile .avatar { display:block; width:clamp(84px,15svh,112px); height:clamp(84px,15svh,112px); border:4px solid var(--ui-bg,#0b0c10); border-radius:50%; object-fit:cover; font-size:40px; box-shadow:0 0 0 1px #c9ac7b55; }
.note-palette { position:absolute; right:-1px; bottom:-1px; display:grid; place-items:center; width:32px; height:32px; padding:5px; border:3px solid var(--ui-bg,#0b0c10); border-radius:50%; background:var(--ui-raised,#1c1f26); color:var(--ui-accent,#c9ac7b)!important; }
.note-palette svg,.note-tools svg { width:21px; height:21px; }
.note-tools { display:flex; align-items:center; gap:12px; margin-top:24px; }
.note-tools button,.note-location { display:grid; place-items:center; width:46px; height:42px; padding:7px; border:1px solid var(--ui-line,#ffffff14); border-radius:14px; background:var(--ui-panel,#121419); transition:transform 160ms var(--ui-ease,ease),background-color 160ms ease; }
.note-tools button[data-music] { color:var(--ui-accent,#c9ac7b); }
.note-location { color:#a098bf; }
.note-tools button[data-gif] { color:#8db7a6; font-size:12px; font-weight:750; }
.note-tools button:active,.note-palette:active,.note-glass-circle:active { transform:scale(.94); }
.note-track-edit { max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:12px; padding:5px; border:0; background:transparent; color:var(--ui-accent,#c9ac7b)!important; font-size:12px!important; }
.note-editor-footer { flex:none; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:22px 20px; font-size:12px; transition:opacity 160ms ease; border-top:1px solid var(--ui-line,#ffffff12); background:var(--ui-panel,#121419); }
.note-audience { display:flex; align-items:center; gap:6px; min-width:0; line-height:1.3; color:var(--ui-muted,#a7a39c); }
.note-audience svg { flex:none; width:17px; height:17px; }
.note-primary { min-height:44px; padding:12px 24px; border:0; border-radius:14px; background:var(--ui-accent,#c9ac7b); color:var(--ui-accent-ink,#1b1710)!important; font-weight:600!important; line-height:20px; box-shadow:inset 0 1px #ffffff22; font-size:13px!important; transition:transform 160ms var(--ui-ease,ease),opacity 160ms ease; }
.note-primary:disabled { opacity:.4; }
.note-primary svg { width:19px; height:19px; vertical-align:middle; }
.note-sheet { position:absolute; z-index:3; bottom:0; left:0; right:0; display:flex; flex-direction:column; gap:16px; min-height:270px; max-height:86%; padding:12px 20px max(24px,env(safe-area-inset-bottom)); overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; border:1px solid var(--ui-line,#ffffff16); border-bottom:0; border-radius:30px 30px 0 0; background:var(--ui-panel,#121419); box-shadow:0 -1px 1px #ffffff08,0 -20px 70px #0005; animation:noteSheet 320ms var(--ui-spring,cubic-bezier(.22,1,.36,1)); }
.note-overlay:has(.note-sheet:not(.note-sheet-full)) .note-editor-centre,.note-overlay:has(.note-sheet:not(.note-sheet-full)) .note-editor-footer { opacity:.25; pointer-events:none; }
.note-sheet-full { inset:0; max-height:none; min-height:0; padding-top:16px; border:0; border-radius:0; background:radial-gradient(ellipse at 50% 12%,#c9ac7b09,transparent 60%),var(--ui-bg,#0b0c10); }
.note-sheet:has(.note-library) { height:88%; max-height:90%; }
.note-sheet-handle { flex-shrink:0; width:36px; height:4px; margin:4px auto 10px; border-radius:3px; background:#8b8880; touch-action:none; cursor:grab; }
.note-sheet-full>.note-sheet-handle { display:none; }
.note-sheet header { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.note-sheet header>b { font-size:24px; line-height:30px; font-weight:400; font-family:var(--ui-display-font,Georgia,'Times New Roman',serif); letter-spacing:-.5px; }
.note-sheet header>span { width:42px; }
.note-sheet-full header .note-glass-circle { background:var(--ui-panel,#121419); }
.note-search { width:100%; min-height:46px; padding:12px 15px; border:1px solid var(--ui-line,#ffffff12); border-radius:14px; background:var(--ui-raised,#1c1f26); color:var(--ui-text,#f5f0e8); font:inherit; font-size:14px; }
.note-search::placeholder { color:var(--ui-muted,#a7a39c); }
.note-music-tabs { display:flex; flex-shrink:0; gap:7px; overflow:auto; scrollbar-width:none; padding-block:2px; }
.note-music-tabs button { min-height:36px; padding:8px 13px; border:1px solid var(--ui-line,#ffffff14); border-radius:20px; background:transparent; color:var(--ui-muted,#a7a39c); white-space:nowrap; font-size:11px; font-weight:600; }
.note-music-tabs button.active { background:var(--ui-accent,#c9ac7b); color:var(--ui-accent-ink,#1b1710); border-color:transparent; }
.note-library { flex:1; min-height:80px; overflow-y:auto; overscroll-behavior:contain; }
.note-track-row { display:flex; align-items:center; gap:12px; min-height:76px; padding:12px 0; border-bottom:1px solid var(--ui-line,#ffffff0c); }
.note-track-select { display:flex; align-items:center; flex:1; min-width:0; gap:14px; padding:0; border:0; background:transparent; color:var(--ui-text,#f5f0e8); text-align:left; }
.note-track-select:disabled { opacity:.4; }
.note-track-select>span { min-width:0; }
.note-track-select b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; line-height:20px; font-weight:600; letter-spacing:-.1px; }
.note-track-select small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:4px; color:var(--ui-muted,#a7a39c); font-size:11px; }
.note-art { flex-shrink:0; width:48px; height:48px; border-radius:11px; object-fit:cover; }
.note-art-fallback { display:grid; place-items:center; background:linear-gradient(140deg,#4b4030,#22262e); color:var(--ui-accent,#c9ac7b); }
.note-art-fallback svg { width:24px; height:24px; }
.note-bookmark { display:grid; place-items:center; flex:none; width:36px; height:44px; padding:7px; border:0; background:none; color:var(--ui-muted,#a7a39c); }
.note-bookmark svg { width:22px; height:24px; }
.note-bookmark[aria-pressed=true] svg { fill:currentColor; color:var(--ui-accent,#c9ac7b); }
.note-clear { min-height:40px; padding:10px 12px; border:0; background:none; color:var(--ui-accent,#c9ac7b)!important; font-size:13px; }
.note-help { margin:6px 0; color:var(--ui-muted,#a7a39c); font-size:11px; line-height:1.5; text-align:center; }
.note-song-info { display:grid; justify-items:center; gap:8px; margin:8px 0 4px; text-align:center; }
.note-song-info b { max-width:100%; font-size:17px; line-height:23px; overflow-wrap:anywhere; letter-spacing:-.35px; }
.note-song-info small { color:var(--ui-muted,#a7a39c); font-size:12px; }
.note-new-song { min-height:42px; padding:11px 16px; border:1px solid var(--ui-line,#ffffff16); border-radius:14px; background:var(--ui-raised,#1c1f26); color:var(--ui-text,#f5f0e8); font-size:12px!important; }
.note-confirm { display:grid; place-items:center; width:44px; height:44px; padding:10px; border:0; border-radius:50%; background:var(--ui-accent,#c9ac7b); color:var(--ui-accent-ink,#1b1710); }
.note-confirm svg { width:25px; height:25px; }
.note-lengths { display:flex; justify-content:center; gap:8px; }
.note-lengths button { min-height:36px; padding:8px 13px; border:1px solid var(--ui-line,#ffffff20); border-radius:20px; background:none; color:var(--ui-muted,#a7a39c); font-size:12px; font-variant-numeric:tabular-nums; }
.note-lengths button[aria-pressed=true] { background:var(--ui-accent,#c9ac7b); border-color:transparent; color:var(--ui-accent-ink,#1b1710); }
.note-waveform { position:relative; display:flex; align-items:center; justify-content:space-between; gap:2px; height:62px; flex-shrink:0; overflow:hidden; }
.note-waveform i { flex:1; min-width:0; border-radius:4px; background:var(--ui-accent,#c9ac7b); opacity:.75; }
.note-clip-window { position:absolute; top:1px; bottom:1px; min-width:3px; border:2px solid var(--ui-accent,#c9ac7b); border-radius:7px; background:#c9ac7b14; pointer-events:none; }
.note-clip-range { width:100%; min-height:24px; margin:0; accent-color:var(--ui-accent,#c9ac7b); touch-action:pan-x; }
.note-clip-times { display:flex; align-items:center; justify-content:space-between; color:var(--ui-muted,#a7a39c); font-size:12px; font-variant-numeric:tabular-nums; }
.note-preview-play { display:grid; place-items:center; width:38px; height:38px; padding:9px; border:0; border-radius:50%; background:var(--ui-text,#f5f0e8); color:var(--ui-bg,#0b0c10)!important; }
.note-preview-play svg { width:16px; height:16px; }
.note-lyrics { max-height:120px; overflow:auto; white-space:pre-line; font-size:15px; line-height:1.5; text-align:center; }
.note-lyrics:empty { display:none; }
.note-colour-preview { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:190px; padding:22px; }
.note-colour-preview .avatar { width:100px; height:100px; margin-top:8px; border-radius:50%; object-fit:cover; font-size:40px; border:4px solid var(--ui-bg,#0b0c10); box-shadow:0 0 0 1px #c9ac7b55; }
.note-colour-carousel { flex:none; width:100%; max-width:390px; margin:0 auto; }
.note-swatches { display:flex; width:100%; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:none; touch-action:pan-x; }
.note-swatches::-webkit-scrollbar { display:none; }
.note-swatch-page { flex:0 0 100%; display:flex; align-items:center; justify-content:center; gap:clamp(2px,1.3vw,8px); min-width:0; min-height:54px; padding:5px 3px; scroll-snap-align:start; scroll-snap-stop:always; }
.note-swatches button { display:grid; place-items:center; flex:0 1 48px; width:48px; height:44px; min-width:0; padding:4px; border:0; border-radius:12px; background:transparent; }
.note-swatches button>span { display:block; width:100%; max-width:34px; aspect-ratio:1; border:2px solid #ffffff20; border-radius:11px; background:var(--swatch-color); transition:transform 140ms ease,outline-color 140ms ease; box-shadow:inset 0 1px #ffffff30,0 3px 8px #0002; }
.note-swatches button[aria-pressed=true]>span { outline:2px solid var(--ui-accent,#c9ac7b); outline-offset:2px; transform:scale(1.04); }
.note-swatches button:focus-visible { outline-offset:-2px; }
.note-colour-pages { display:flex; justify-content:center; gap:1px; padding:1px 0 3px; }
.note-colour-pages button { display:grid; place-items:center; width:18px; height:20px; padding:0; border:0; border-radius:50%; background:transparent; }
.note-colour-pages button>span { width:6px; height:6px; border-radius:50%; background:var(--ui-raised,#34363d); transition:background-color 160ms ease,transform 160ms ease; }
.note-colour-pages button[aria-current=true]>span { background:var(--ui-accent,#c9ac7b); transform:scale(1.08); }
.note-sheet-full>[data-apply] { flex-shrink:0; width:100%; border-radius:14px; }
.note-sheet-full>[data-clear] { flex-shrink:0; }
.note-gif-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.note-gif-grid button { height:68px; border:1px solid var(--ui-line,#ffffff16); border-radius:18px; background:var(--ui-raised,#1c1f26); }
.note-gif-grid .note-gif { font-size:34px; }
.note-view-person { display:flex; flex-direction:column; align-items:center; gap:12px; margin:14px 0; }
.note-view-person .avatar { width:70px; height:70px; border-radius:50%; object-fit:cover; border:3px solid var(--ui-panel,#121419); box-shadow:0 0 0 1px #c9ac7b55; }
.note-view-person b { max-width:100%; text-align:center; overflow-wrap:anywhere; font-size:14px; }
.note-view-person small { color:var(--ui-muted,#a7a39c); font-size:12px; }
.note-view-text { margin:0 0 18px; padding:16px 20px; border-radius:20px; background:var(--note-color,#292e33); color:var(--note-ink,#fff); white-space:pre-wrap; overflow-wrap:anywhere; font-size:17px; line-height:24px; font-weight:500; text-align:center; border:1px solid #ffffff10; }
@keyframes noteGif { 0%,100% { transform:scale(1) rotate(-7deg); } 50% { transform:scale(1.12) rotate(7deg); } }
@keyframes noteSheet { from { transform:translateY(12%); opacity:.6; } to { transform:translateY(0); opacity:1; } }
@keyframes noteOverlay { from { opacity:0; } to { opacity:1; } }
@media (min-width:768px) {
  .note-overlay { inset:50% auto auto 50%; width:min(540px,calc(100vw - 64px)); height:min(var(--note-height,100dvh),780px); max-height:calc(100dvh - 48px); padding:12px 0; transform:translate(-50%,-50%); border:1px solid #c9ac7b26; border-radius:30px; box-shadow:0 30px 100px #0007,0 0 0 100vmax #0009; }
  .note-editor-header { padding-inline:22px; }
  .note-editor-footer { padding-inline:22px; }
  .note-sheet { max-height:88%; padding-inline:22px; }
  .note-sheet-full { border-radius:30px; }
}
@media (max-height:560px) {
  .note-editor-header { min-height:58px; padding-block:8px; }
  .note-editor-centre { padding:8px 16px; }
  .note-profile .avatar { width:76px; height:76px; }
  .note-tools { margin-top:10px; }
  .note-editor-footer { padding-block:10px; }
  .note-colour-preview { min-height:140px; padding:12px; }
  .note-colour-preview .avatar { width:76px; height:76px; }
  .note-colour-carousel { max-width:350px; }
  .note-swatch-page { min-height:46px; }
  .note-swatches button { height:40px; }
  .note-swatches button>span { max-width:30px; }
  .note-sheet-full { gap:8px; }
}
@media (prefers-reduced-motion:reduce) {
  .note-gif,.note-sheet,.note-overlay { animation:none; }
  .note-editor-centre,.note-editor-footer,.note-swatches button>span,.note-colour-pages button>span,.note-glass-circle,.note-tools button,.note-primary { transition:none; }
}
html.crew-reduce-motion .note-gif,html.crew-reduce-motion .note-sheet,html.crew-reduce-motion .note-overlay { animation:none; }
html.crew-reduce-motion .note-swatches button>span,html.crew-reduce-motion .note-colour-pages button>span,html.crew-reduce-motion .note-glass-circle,html.crew-reduce-motion .note-tools button,html.crew-reduce-motion .note-primary { transition:none; }
