:root{color-scheme:light;--bg:#f5f5f5;--surface:#fff;--raised:#ededed;--hover:#f2f2f2;--ink:#181818;--muted:#6b6b6b;--line:#dedede;--green:#f50;--orange:#f50;--soft:#fff0e8;--header:#151515}html[data-theme=dark]{color-scheme:dark;--bg:#111;--surface:#191919;--raised:#292929;--hover:#242424;--ink:#f2f2f2;--muted:#a0a0a0;--line:#303030;--soft:#ff550016}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Arial,'Segoe UI',sans-serif}button,input,select,textarea{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible{outline:2px solid var(--orange);outline-offset:4px}a{color:var(--orange)}[hidden]{display:none!important}header{position:sticky;top:0;z-index:30;background:var(--header);color:#fff;border-bottom:1px solid #303030;min-height:64px;padding:0 max(24px,calc((100vw - 1224px)/2));display:flex;gap:30px;align-items:center}.brand{display:flex;gap:9px;align-items:center;font-size:21px;font-weight:800;letter-spacing:-.8px;white-space:nowrap}.mark{background:var(--orange);color:white;font-size:19px;display:grid;place-items:center;width:34px;height:34px;border-radius:7px;letter-spacing:-2px}.workspace-tabs{display:flex;align-self:stretch;gap:24px;align-items:stretch;flex:1}.workspace-tabs .tab{border:0;border-bottom:3px solid transparent;border-radius:0;padding:0 2px;background:transparent;color:#a4a4a4;white-space:nowrap;font-size:13px;font-weight:600}.workspace-tabs .tab.active{color:white;border-color:var(--orange)}.themebutton{background:transparent;border:1px solid var(--line);color:var(--ink);border-radius:30px;padding:9px 14px;font-size:12px;white-space:nowrap}header .themebutton{border-color:#444;color:white}main{max-width:1272px;margin:auto;padding:30px 24px 38px}.eyebrow{font-size:10px;color:var(--orange);font-weight:700;letter-spacing:1.7px}h1{font-size:34px;line-height:1.15;letter-spacing:-1.3px;margin:12px 0}h1 span{color:var(--ink)}.intro{color:var(--muted);font-size:14px;line-height:1.8;margin:0}.studio-hero{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:26px;margin-bottom:26px}.hero-tag{font-size:11px;color:var(--muted);border:1px solid var(--line);padding:7px 11px;border-radius:20px;white-space:nowrap}.studio-banner{display:flex;align-items:center;gap:12px;background:var(--raised);border:1px solid var(--line);border-radius:5px;padding:13px 18px;margin-bottom:26px;font-size:12px}.studio-banner span:first-child{color:var(--orange);font-size:20px}.studio-banner strong{font-weight:600}.studio-banner .banner-muted{color:var(--muted);margin-left:5px}#rhymesPanel{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:30px;align-items:start}.rhymes-main{min-width:0}.searchbox{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:24px}.searchbox h2{font-size:24px;letter-spacing:-.7px;margin:8px 0 12px}.inputrow{display:flex;gap:12px}.inputwrap{flex:1;position:relative;min-width:0}.inputwrap span{position:absolute;left:16px;top:11px;color:var(--muted);font-size:25px}.inputwrap input[type=text]{padding-left:46px}input[type=text],select,textarea{background:var(--raised);border:1px solid transparent;border-radius:5px;color:var(--ink);padding:13px 14px;width:100%;outline:none}input[type=text]{font-size:17px}input:focus,textarea:focus,select:focus{border-color:var(--orange)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.85}.primary{background:var(--orange);color:white;border:0;border-radius:5px;padding:0 23px;font-size:13px;font-weight:700;white-space:nowrap}.primary:hover{background:#ec4e00}.examples{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:15px 0 22px;color:var(--muted);font-size:11px}.example,.topicchip{border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--muted);padding:5px 10px;font-size:11px}.example:hover,.topicchip:hover{color:var(--orange)}.topicbox{border-top:1px solid var(--line);padding-top:20px;margin-bottom:22px}.topicbox label{display:block;font-size:12px;margin-bottom:9px}.topicbox input[type=text]{font-size:13px;padding:11px 12px}.topicchips{display:flex;gap:7px;margin-top:10px;flex-wrap:wrap}.topicnote,.hint,.status{font-size:11px;color:var(--muted);line-height:1.6}.topicnote{margin:10px 0 0}.controls{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:18px;gap:20px;flex-wrap:wrap}.stresslabel{font-size:10px;letter-spacing:1px;color:var(--muted);margin-bottom:6px}.letters{display:flex;gap:3px;align-items:center;min-height:34px}.letter{font-size:22px;line-height:30px;padding:2px 5px}.vowel{background:var(--raised);border:1px solid var(--line);border-radius:4px;color:var(--ink)}.vowel.active{background:var(--orange);border-color:var(--orange);color:#fff}.hint{margin:7px 0 0}.check{display:flex;align-items:center;gap:9px;font-size:12px;cursor:pointer}input[type=checkbox]{accent-color:var(--orange);width:16px;height:16px}.status{min-height:16px;margin-top:14px}.resultshead{display:flex;align-items:center;justify-content:space-between;margin:28px 0 16px;gap:10px}.resultshead h2{font-size:20px;letter-spacing:-.6px;margin:0}.count{font-size:11px;color:var(--muted);white-space:nowrap}.tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin-bottom:17px;overflow-x:auto}.tabs .tab{background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--muted);padding:10px 0 12px;white-space:nowrap;font-size:12px}.tabs .tab.active{color:var(--orange);border-bottom-color:var(--orange)}.tabs .tab span{font-size:10px;margin-left:4px;opacity:.7}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.word{display:flex;justify-content:space-between;align-items:center;gap:7px;min-width:0;text-align:left;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:5px;padding:13px 12px;font-size:16px}.word>span{overflow-wrap:anywhere}.word b{font-weight:500}.word small{font-size:9px;color:var(--muted);flex-shrink:0}.word:hover{color:var(--orange)}.word.chosen{background:var(--soft);border-color:var(--orange)}.word.chosen small::after{content:' ✓';color:var(--orange)}.more{display:block;margin:22px auto 0;border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:20px;padding:9px 21px;font-size:12px}.empty{grid-column:1/-1;border:1px dashed var(--line);padding:35px;color:var(--muted);font-size:13px;line-height:1.8}.selected-panel{position:sticky;top:90px;min-width:0;padding:0 0 20px;border-bottom:1px solid var(--line)}.selected-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.selected-top h2{font-size:16px;margin:0}.selected-top h2 span{background:var(--raised);border-radius:12px;padding:3px 7px;font-size:10px;margin-left:6px;color:var(--muted)}.selected-actions{display:flex;gap:8px;order:3;flex-basis:100%;margin-top:12px}.selected-actions button{background:transparent;border:1px solid var(--line);border-radius:18px;color:var(--ink);font-size:11px;padding:7px 12px}.selected-actions #copySelected{background:var(--ink);color:var(--bg);flex:1}.selected-words{display:flex;flex-wrap:wrap;gap:7px;max-height:340px;overflow:auto;margin:18px 0 0}.selected-chip{border:1px solid var(--orange);background:var(--soft);color:var(--ink);border-radius:4px;padding:7px 11px;font-size:14px}.selected-panel p{font-size:12px;color:var(--muted);line-height:1.8;margin:16px 0 0}.selected-status{font-size:10px;min-height:16px;color:var(--muted);margin-top:10px}.side-cover{height:126px;background:linear-gradient(125deg,#f50,#c42500);border-radius:5px;position:relative;overflow:hidden;display:flex;align-items:center;padding:20px;margin-bottom:22px;color:white}.side-cover strong{font-size:27px;line-height:1.05;letter-spacing:-1.3px;z-index:1;max-width:210px}.side-cover:after{content:'';position:absolute;width:200px;height:200px;border:1px solid #ffffff50;border-radius:50%;right:-50px;top:-35px;box-shadow:0 0 0 18px #ffffff14,0 0 0 36px #ffffff12,0 0 0 54px #ffffff09}.sidebar-note{font-size:11px;color:var(--muted);line-height:1.8;margin-top:20px}.studio-stats{display:flex;gap:8px;margin-top:18px}.studio-stat{background:var(--raised);border-radius:5px;padding:12px;flex:1;font-size:10px;color:var(--muted)}.studio-stat strong{display:block;color:var(--ink);font-size:17px;margin-top:3px}.genform{display:grid;grid-template-columns:1fr 1fr;gap:17px}.genform label{display:block;font-size:12px;margin-bottom:8px}.genform .full{grid-column:1/-1}.genform input[type=text],.genform select{font-size:14px}.genform .primary{padding:14px}.genhelp,.genstatus{font-size:12px;color:var(--muted);line-height:1.8}.genhelp{max-width:780px}.genstatus{margin:20px 0}.linecards{display:grid;grid-template-columns:1fr 1fr;gap:15px}.linecard{background:var(--raised);border:1px solid var(--line);border-radius:6px;padding:23px;border-top:3px solid var(--orange)}.linecard p{white-space:pre-line;line-height:1.9;font-size:16px;margin:16px 0 24px}.linecard small{font-size:10px;color:var(--muted)}.linecard button{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:4px;padding:7px 11px;font-size:11px;margin:0 8px 6px 0}.refs{font-size:11px;color:var(--muted);margin-top:25px;line-height:1.8}.refs summary{cursor:pointer}.draftlabel{display:block;font-size:12px;margin:15px 0 8px}#draft{font-size:16px;line-height:1.9;min-height:170px;resize:vertical}.finish-controls{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:20px 0;align-items:center}.finish-controls input[type=text]{font-size:15px}.finish-controls .topicchip{margin-top:9px}.finish-checks{display:flex;gap:25px;margin-bottom:20px;flex-wrap:wrap}#finishResults{margin-top:20px}#finishResults .word{flex-wrap:wrap}footer{margin-top:38px;padding-top:22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:30px;font-size:10px;color:var(--muted);line-height:1.8}footer a{color:var(--muted)}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:40;background:var(--ink);color:var(--bg);padding:12px 22px;border-radius:6px;display:none}.search-heading{display:flex;align-items:center;gap:10px;margin:0 0 17px;font-size:13px;font-weight:600}.search-heading span{display:inline-grid;place-items:center;width:25px;height:25px;background:var(--orange);color:white;border-radius:50%;font-size:12px}button:disabled{opacity:.4}#linesPanel>.searchbox,#continuePanel>.searchbox{max-width:100%}@media(max-width:1000px){header{gap:20px}.workspace-tabs{gap:16px}#rhymesPanel{grid-template-columns:minmax(0,1fr) 245px;gap:22px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.banner-muted{display:none}}@media(max-width:730px){header{padding:14px 18px 0;gap:10px;flex-wrap:wrap}.brand{font-size:19px}header>.themebutton{margin-left:auto}.workspace-tabs{order:3;flex-basis:100%;gap:20px;overflow:auto;min-height:47px}.workspace-tabs .tab{font-size:12px}.studio-hero{align-items:flex-start}.hero-tag{display:none}main{padding:22px 16px}h1{font-size:28px}.intro{font-size:12px}.studio-banner{padding:11px 13px;font-size:11px}#rhymesPanel{display:flex;flex-direction:column}.rhymes-main{width:100%}.selected-panel{position:static;width:100%;order:-1;top:auto;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:16px}.side-cover,.sidebar-note,.studio-stats{display:none}.selected-words{margin-top:12px;max-height:100px}.selected-actions{flex-basis:auto;order:0;margin:0}.selected-actions button{padding:6px 9px;font-size:10px}.selected-top{gap:8px}.selected-top h2{font-size:14px}.selected-panel p{margin-top:10px;font-size:11px}.selected-status{margin-top:5px;min-height:0}.searchbox{padding:18px}.inputrow{flex-direction:column}.primary{padding:14px 20px}.grid{gap:7px}.word{padding:12px 10px;font-size:15px}.resultshead h2{font-size:17px}.tabs{gap:17px}.controls{gap:16px}.genform,.finish-controls,.linecards{grid-template-columns:1fr}.finish-checks{gap:15px}footer{flex-direction:column;gap:12px;font-size:9px}.linecard{padding:18px}}@media(prefers-reduced-motion:no-preference){button{transition:color .25s ease,background-color .25s ease}}


.header-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}.author-avatars{display:flex;align-items:center;gap:9px}.author-avatars a{display:block;width:32px;height:32px;border-radius:50%;outline-offset:4px}.author-avatars img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;border:1px solid #ffffff40}.author-avatars a:hover img{border-color:var(--orange)}
@media(max-width:900px){header{padding:14px 18px 0;gap:10px;flex-wrap:wrap}.header-actions{margin-left:auto}.workspace-tabs{order:3;flex-basis:100%;gap:20px;overflow:auto;min-height:47px}}
@media(max-width:480px){.header-actions{gap:12px}.author-avatars{gap:7px}.author-avatars a{width:29px;height:29px}.header-actions .themebutton{font-size:0;width:34px;height:34px;padding:0;display:grid;place-items:center}.header-actions .themebutton:before{content:'◐';font-size:20px}}
/* Shared interaction treatment, including dynamically created controls. */
@media(hover:hover){button:not(:disabled):hover{color:var(--orange)}button.primary:not(:disabled):hover{color:#fff;background:#e94e00}.workspace-tabs .tab:hover,.tabs .tab:hover{color:var(--orange)}}
button:focus-visible{box-shadow:inset 0 0 0 1px var(--orange)}
header .themebutton{display:inline-flex;gap:8px;align-items:center;justify-content:center;position:relative;overflow:hidden;min-width:139px;background:var(--surface);color:var(--ink);border-color:var(--line);padding:9px 12px;font-size:12px}
.theme-icon{display:block;position:relative;flex:0 0 18px;width:18px;height:18px;overflow:hidden}.theme-icon svg{position:absolute;inset:0;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .4s ease,opacity .3s ease}
.theme-moon{opacity:0;transform:translateY(20px) rotate(-60deg)}.theme-sun{opacity:1;transform:translateY(0) rotate(0)}
html[data-theme=dark] .theme-moon{opacity:1;transform:translateY(0) rotate(0)}html[data-theme=dark] .theme-sun{opacity:0;transform:translateY(-20px) rotate(-70deg)}
@media(hover:hover){html[data-theme=dark] .themebutton:hover .theme-moon{opacity:0;transform:translateY(20px) rotate(60deg)}html[data-theme=dark] .themebutton:hover .theme-sun{opacity:1;transform:translateY(0) rotate(0)}html[data-theme=light] .themebutton:hover .theme-sun{opacity:0;transform:translateY(-20px) rotate(-60deg)}html[data-theme=light] .themebutton:hover .theme-moon{opacity:1;transform:translateY(0) rotate(0)}}
.theme-flow #theme{view-transition-name:theme-switch}
::view-transition-group(root),::view-transition-group(theme-switch){animation-duration:.9s}
::view-transition-old(root){z-index:2;animation:theme-drain .9s cubic-bezier(.55,0,.3,1) both;mix-blend-mode:normal}
::view-transition-new(root){z-index:1;animation:none;mix-blend-mode:normal}
::view-transition-old(theme-switch){z-index:2;animation:theme-drain .7s cubic-bezier(.55,0,.3,1) both;mix-blend-mode:normal}
::view-transition-new(theme-switch){z-index:1;animation:none;mix-blend-mode:normal}
@keyframes theme-drain{0%{clip-path:polygon(0 -15%,16% -15%,33% -15%,50% -15%,67% -15%,84% -15%,100% -15%,100% 115%,0 115%);transform:translateY(0)}45%{clip-path:polygon(0 34%,16% 40%,33% 33%,50% 44%,67% 38%,84% 45%,100% 36%,100% 115%,0 115%)}100%{clip-path:polygon(0 110%,16% 115%,33% 110%,50% 119%,67% 112%,84% 118%,100% 110%,100% 120%,0 120%);transform:translateY(8vh)}}
@media(max-width:480px){.brand{font-size:17px;gap:7px}.mark{font-size:22px;letter-spacing:-1px}.header-actions{gap:9px}.header-actions .themebutton{min-width:34px;display:flex;padding:7px;font-size:12px}.header-actions .themebutton:before{content:none}.theme-label{display:none}}
@media(prefers-reduced-motion:reduce){button,.theme-icon svg{transition:none!important}::view-transition-old(root),::view-transition-new(root),::view-transition-old(theme-switch),::view-transition-new(theme-switch){animation:none!important}}
.theme-fade body,.theme-fade button,.theme-fade input,.theme-fade select,.theme-fade textarea,.theme-fade section,.theme-fade aside,.theme-fade .studio-banner,.theme-fade .linecard,.theme-fade .studio-stat{transition:background-color .6s ease,color .6s ease,border-color .6s ease}

/* Shared filter switches on both rhyme workspaces. Native checkbox behavior stays intact. */
.check{min-height:36px;gap:10px;line-height:1.4;user-select:none;transition:color .22s ease}
.check input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;display:inline-block;flex:0 0 38px;width:38px;height:22px;margin:0;border:1px solid var(--line);border-radius:999px;background:var(--raised);cursor:pointer;outline:none;transition:background-color .22s ease,border-color .22s ease;vertical-align:middle}
.check input[type=checkbox]::after{content:'';position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:var(--muted);box-shadow:0 1px 3px #0002;transition:transform .22s ease,background-color .22s ease}
.check input[type=checkbox]:checked{background:var(--orange);border-color:var(--orange)}
.check input[type=checkbox]:checked::after{transform:translateX(16px);background:#fff}
.check:has(input:checked){color:var(--orange)}
.check input[type=checkbox]:focus-visible{outline:2px solid var(--orange);outline-offset:4px}
@media(hover:hover){.check:hover{color:var(--orange)}}
@media(prefers-reduced-motion:reduce){.check,.check input[type=checkbox],.check input[type=checkbox]::after{transition:none}}
a.brand{color:inherit;text-decoration:none;transition:color .22s ease}a.brand:hover{color:var(--orange)}
.rhyme-subtabs{display:flex;align-items:stretch;gap:28px;border-bottom:1px solid var(--line);margin:0 0 26px}.rhyme-subtabs .tab{background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;padding:0 0 13px;color:var(--muted);font-size:13px;line-height:1.5;transition:color .22s ease}.rhyme-subtabs .tab.active{color:var(--orange);border-bottom-color:var(--orange)}.rhyme-subtabs .tab:hover{color:var(--orange)}
@media(max-width:650px){.rhyme-subtabs{gap:18px;margin-bottom:22px}.rhyme-subtabs .tab{flex:1;font-size:12px;padding:0 0 11px;text-align:left}}

html[data-start-community=true] main{visibility:hidden}

/* Keep creator links and the theme switch at the viewport edge. */
.header-actions{flex:1;min-width:0}.author-avatars{margin-left:auto}
@media(min-width:901px){header{padding-right:24px}.workspace-tabs{flex:0 0 auto}}
@media(max-width:650px){header .header-actions{flex-basis:100%;margin-left:0;padding:3px 0 10px;order:1}}

@media(min-width:651px) and (max-width:1100px){header{flex-wrap:wrap;padding:14px 18px 0;gap:10px}.workspace-tabs{flex:1 0 100%;order:3;min-height:47px}}

@media(min-width:1101px){header #notificationsNav{margin-left:auto}header .account-nav{margin-left:0}header .author-avatars{margin-left:clamp(16px,3.5vw,72px)}}

/* All multi-line editors grow and shrink with their text. */
textarea{resize:none!important;max-height:none!important;overflow-y:hidden!important}
.community-profile-view .community-layout{grid-template-columns:minmax(0,1fr)}
.rhyme-load-notice{padding:14px 16px;margin-bottom:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted);font-size:12px;line-height:1.8}.rhyme-load-notice button{border:0;background:none;color:var(--orange);padding:4px 8px;font-size:12px}
