:root{--leek-pref-ink:#294b38;--leek-pref-muted:#50695d;--leek-pref-border:#b8cbbc;--leek-pref-paper:#fff;--leek-pref-tint:#edf5ef;--leek-pref-accent:#396d51}
.leek-theme-card{display:flex;flex-direction:column;gap:16px;min-width:0;color:var(--leek-pref-ink)}
.leek-theme-choice{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--leek-pref-border);border-radius:12px;background:var(--leek-pref-paper)}
.leek-theme-choice strong{font-size:14px}.leek-theme-choice small{font-size:12px;color:var(--leek-pref-accent)}
.leek-theme-preview{height:48px;display:flex;gap:6px;background:var(--leek-pref-tint);padding:6px;border-radius:6px;box-sizing:border-box}.leek-theme-preview i{width:12px;background:var(--leek-pref-accent);border-radius:2px}.leek-theme-preview div{flex:1;display:grid;gap:4px}.leek-theme-preview b{background:var(--leek-pref-border);border-radius:2px}.leek-theme-preview span{background:var(--leek-pref-paper);border-radius:2px}
.leek-theme-sound{display:flex;align-items:center;justify-content:space-between;gap:16px}.leek-theme-sound>div{display:grid;gap:4px}.leek-theme-sound span{font-size:12px;color:var(--leek-pref-muted)}.leek-theme-sound strong{font-size:14px}
.leek-theme-grid .task-sound-settings{display:flex;flex-direction:column}.leek-theme-grid .text-size-settings{margin-top:auto!important;padding-top:16px}.leek-theme-footer{margin-top:auto;display:flex;justify-content:flex-end;padding-top:8px}
html[data-web-edition] #environment .leek-theme-grid .text-size-options button{box-sizing:border-box;height:40px;min-height:40px}
html[data-web-edition] #environment .leek-theme-footer [data-party-archive-settings]{margin:0;min-height:40px;height:40px;display:flex;align-items:center;justify-content:center;width:auto;padding:0 16px}
.leek-theme-share .leek-share-row{border:0;border-top:1px solid var(--leek-pref-border);border-radius:0;margin:0;padding:12px 0 0;background:transparent}.leek-theme-share .leek-share-form{grid-template-columns:minmax(60px,.8fr) minmax(110px,1.25fr) auto;gap:8px}.leek-theme-share .leek-share-form strong{grid-column:1/-1}.leek-theme-share .leek-share-inbox{grid-column:1}.leek-theme-share .leek-share-block{grid-column:2/-1}.leek-theme-share .leek-share-form :is(input,select){font-size:16px}
html[data-web-edition] #recharge .recharge-side{gap:12px;align-content:start}html[data-web-edition] #recharge .recharge-side>.recharge-card{padding:16px 20px;border-radius:12px}#recharge .recharge-side .recharge-section-heading{margin-bottom:10px}#recharge .recharge-side p{line-height:1.6;margin:8px 0 0}#recharge .recharge-side p:empty{display:none}
#recharge #rechargeRedeemNote,#recharge [aria-labelledby=rechargeSupportTitle] .recharge-muted{display:block}#recharge #rechargeRedeemNote span{display:inline;margin:0}#recharge #rechargeRedeemNote span:not(:last-child)::after{content:' '}
#recharge .leek-balance-card .web-notification-form{height:auto;gap:8px}#recharge .web-notification-form>fieldset{gap:10px}#recharge .web-notification-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}#recharge .web-notification-switch input{appearance:none;position:relative;flex:none;width:44px;height:26px;min-height:26px;margin:0;padding:0;border:1px solid var(--leek-pref-border);border-radius:20px;background:var(--leek-pref-border);cursor:pointer}#recharge .web-notification-switch input:checked{background:var(--leek-pref-accent)}#recharge .web-notification-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#recharge .web-notification-levels label{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 4px;min-height:40px;box-sizing:border-box;border:1px solid var(--leek-pref-border);border-radius:8px;font-size:13px;cursor:pointer}#recharge .web-notification-levels input{width:16px;height:16px;margin:0;accent-color:var(--leek-pref-accent)}#recharge .web-notification-footer button{min-height:36px;padding:6px 14px}
.web-profile .leek-referral-card{margin-top:16px;padding:20px}.web-profile .leek-referral-card h3{margin:0 0 12px;font-size:15px}.leek-referral-code{display:flex;justify-content:space-between;align-items:center;gap:12px}.leek-referral-code output{font:700 24px/1.3 ui-monospace,monospace;letter-spacing:.16em;color:var(--leek-pref-ink)}.leek-referral-code button{min-height:36px;min-width:60px;padding:6px 12px;border:1px solid var(--leek-pref-border);border-radius:8px;background:var(--leek-pref-paper);color:var(--leek-pref-accent);cursor:pointer}.leek-referral-card p{font-size:13px;color:var(--leek-pref-muted);line-height:1.6;margin:10px 0 0}.leek-referral-card p:empty{display:none}.leek-referral-field{display:grid;gap:6px;margin:12px 0;font-size:13px}.leek-referral-field input{height:40px;padding:8px 12px;border:1px solid var(--leek-pref-border);border-radius:8px;box-sizing:border-box;font-size:16px}
.web-profile:has(.leek-referral-card) .web-profile-identity{padding:16px;gap:8px}.web-profile:has(.leek-referral-card) .web-profile-avatar{width:56px;height:56px}.web-profile:has(.leek-referral-card) .web-avatar-upload{min-height:32px;padding:4px 12px}.web-profile:has(.leek-referral-card) .web-profile-stats{margin-top:16px;gap:12px}.web-profile:has(.leek-referral-card) .web-profile-stats section{padding:12px 8px;gap:8px}.web-profile .leek-referral-card{padding:16px}
:is(.leek-theme-card,.leek-referral-card,.leek-referral-field) :is(button,input,select):focus-visible{outline:2px solid var(--leek-pref-accent);outline-offset:3px}
.web-profile .leek-referral-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:12px;row-gap:8px;margin-top:12px;padding:12px}
.web-profile .leek-referral-card h3{margin:0;font-size:13px;line-height:1.4}
.leek-referral-code{gap:8px;min-width:0}.leek-referral-code output{font-size:18px;letter-spacing:.08em}.leek-referral-code button{min-height:28px;min-width:44px;padding:4px 8px;font-size:12px;line-height:18px}
.leek-referral-card p{grid-column:1/-1;margin:0;line-height:1.5}
@media(pointer:coarse){.leek-referral-code button{min-height:44px;min-width:44px}}
@media(min-width:1280px){html[data-web-edition] #environment .environment-top-grid.leek-theme-grid{grid-template-columns:minmax(320px,.7fr) minmax(0,1.3fr)!important}.leek-theme-share .leek-share-form{grid-template-columns:minmax(60px,.8fr) minmax(100px,1.2fr) auto auto auto;gap:4px}.leek-theme-share .leek-share-inbox,.leek-theme-share .leek-share-block{grid-column:auto}.leek-theme-share .leek-share-form strong{grid-column:1/-1;margin-bottom:4px}.leek-theme-share .leek-share-form :is(select,input[type=email],button){padding-inline:6px}.leek-theme-share .leek-share-form .leek-share-block{gap:4px}}
@media(min-width:1800px){.leek-theme-share .leek-share-form{grid-template-columns:auto minmax(80px,1fr) minmax(130px,1.2fr) auto auto auto;gap:8px}.leek-theme-share .leek-share-form strong{grid-column:auto;margin:0}}
@media(max-width:760px){.leek-theme-footer{justify-content:stretch}.leek-theme-footer button{flex:1}.leek-theme-choice{grid-template-columns:56px minmax(0,1fr) auto}#recharge .recharge-side>.recharge-card{padding:16px}.leek-theme-share .leek-share-form{grid-template-columns:minmax(0,1fr) auto}.leek-theme-share .leek-share-form input[type=email]{grid-column:1}.leek-theme-share .leek-share-inbox{grid-column:2;grid-row:4}.leek-theme-share .leek-share-block{grid-column:1;grid-row:4;white-space:normal}}

/* Compact preferences revision: the audio preview belongs with audio controls. */
html[data-web-edition] #environment #webDesktopShortcut,html[data-web-edition] #webAvatarMenu #webDesktopShortcut{display:none!important}
html[data-web-edition] #environment :is(#settingsBackgroundRetry,.settings-media-status){display:none!important}
html[data-web-edition] #environment .leek-theme-choice{display:flex;justify-content:space-between;gap:12px;min-height:36px;padding:0;border:0;background:transparent}
html[data-web-edition] #environment .leek-theme-sound{padding-top:12px;margin-top:12px;border-top:1px solid var(--leek-pref-border)}
html[data-web-edition] #environment .leek-theme-sound>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
html[data-web-edition] #environment .leek-theme-sound button{min-height:32px;padding:4px 12px;flex-shrink:0;white-space:nowrap}
html[data-web-edition] #environment .leek-theme-footer{justify-content:stretch}
html[data-web-edition] #environment .leek-theme-footer [data-party-archive-settings]{width:100%;flex:1}
.leek-settings-shortcut{align-self:flex-start;min-height:32px;padding:4px 12px}
.web-profile .leek-referral-card .leek-referral-code button{height:28px;min-height:28px;padding:4px 8px;box-sizing:border-box}
@media(min-width:761px){.web-profile:has(.leek-referral-card) .web-profile-grid{align-items:stretch}.web-profile:has(.leek-referral-card) .web-profile-grid>aside{display:flex;flex-direction:column}.web-profile:has(.leek-referral-card) .web-profile-identity{flex:1;align-content:center;min-height:188px}.web-profile:has(.leek-referral-card) .web-profile-main{align-content:stretch}}
@media(pointer:coarse){.web-profile .leek-referral-card .leek-referral-code button{height:44px;min-height:44px}}

html[data-web-edition] #environment .leek-theme-sound .leek-sound-select{width:auto;min-width:120px;min-height:36px;height:36px;padding:4px 28px 4px 8px;font-size:16px}
/* Text scaling changes the line box, so center controls by their content box. */
html[data-web-edition] :is(button.primary-button,button.secondary-button,.text-size-options button,.service-agreement>footer>button,.site-notice-back,.site-notice-copy){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;line-height:1.25;text-align:center;padding-block:6px}
html[data-web-edition][data-text-size="medium"] :is(button.primary-button,button.secondary-button,.text-size-options button),html[data-web-edition][data-text-size="large"] :is(button.primary-button,button.secondary-button,.text-size-options button){min-height:calc(1.25em + 14px)}
.service-agreement-body li>strong,.site-notice-body li>strong,.site-notice-intro>strong{font-weight:700;color:inherit}

.website-shortcut-status{max-width:32ch;margin:8px 0;color:#526a59;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.seed-footer .website-shortcut-status{flex-basis:100%;grid-column:1 / -1}
.seed-footer:has(.website-shortcut-status){flex-wrap:wrap}
.seed-footer>button{min-height:32px;white-space:nowrap}
.seed-footer>button:focus-visible{outline:2px solid #527d20;outline-offset:4px}
.web-avatar-menu #webDesktopShortcut svg{flex:none;width:20px;height:20px}
@media(max-width:760px){.seed-footer>button{grid-column:1 / -1;text-align:left;min-height:44px}}
