/* Shared public controls; scoped to the three fan pages. */
body:has(.public-bottom-mascot) .page--with-nav{position:relative;z-index:1}
body:has(.public-bottom-mascot) :is(.tutorials-page,.resources-page){background:transparent}
.public-bottom-mascot{position:fixed;z-index:0;left:50%;bottom:calc(3.75rem + env(safe-area-inset-bottom,0px));display:block;width:min(76vw,270px);height:auto;aspect-ratio:288/244;transform:translateX(-50%);object-fit:contain;mix-blend-mode:multiply;opacity:.15;pointer-events:none;user-select:none}
.home-demo{padding-bottom:9.5rem}
:is(.tutorials-page,.resources-page){padding-bottom:7.5rem}
.public-header{position:relative;display:flex;align-items:center;justify-content:center;min-height:60px;padding:10px 60px;background:#940713;color:#fff;text-align:center}
.public-header h1{margin:0;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-size:1.2rem;font-weight:650;letter-spacing:.04em;line-height:1.4}
.public-header--home{min-height:72px}
.public-header--home h1{font-size:1.25rem;letter-spacing:.04em}
.public-header__brand{min-width:0;max-width:100%}
.public-header__brand--section{display:flex;align-items:center;justify-content:center;gap:.45rem}
.public-header--home{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;padding:4px}
.public-header--home .public-header__brand{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;gap:6px}
.public-header__copy{min-width:0;text-align:center}
.public-header__title{display:grid;grid-template-columns:12px max-content 12px;align-items:center;justify-content:center;white-space:nowrap}
.public-header__title::after{content:"";width:12px;height:12px}
.public-header__pear{display:block;width:30px;height:30px;flex:none;object-fit:contain}
.public-header--home .public-header__pear{width:34px;height:34px}
.public-header__heart{display:block;width:12px;height:12px;flex:none;color:#f4dc98}
.public-header--home .home-demo__subtitle{max-width:100%;font-size:.67rem;text-wrap:balance}
@media(max-width:360px){.public-header--home h1{font-size:1.125rem;letter-spacing:0}.public-header--home .public-header__pear{width:30px;height:30px}.public-header--home .home-demo__subtitle{margin-top:0;font-size:.64rem;line-height:1.2}}
.home-demo .task-tools{display:block}
.task-tools__row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.25rem;min-width:0}
.home-install{min-width:0;margin-left:auto;color:#746c68;font-size:.72rem}
.home-install summary{display:flex;align-items:center;justify-content:flex-end;gap:.28rem;min-height:44px;list-style:none;color:#746c68;white-space:nowrap;cursor:pointer}
.home-install summary::-webkit-details-marker{display:none}
.home-install summary svg{display:block;width:16px;height:16px;flex:none}
.home-install summary:focus-visible{outline:2px solid #940713;outline-offset:2px}
.task-tools__row:not(:has(.home-install[open])) + .home-install__body{display:none}
.home-install__body{margin-top:.25rem;padding:.55rem .75rem;border:1px solid #e9ded8;border-radius:.7rem;background:#fff;font-size:.82rem;color:#514946}
.home-install__body p{margin:.35rem 0 .6rem;line-height:1.55}
body:has(.tutorials-page) .bottom-nav__link[aria-current="page"]{color:#940713}
.public-header__refresh{position:absolute;top:50%;right:.6rem;transform:translateY(-50%);display:grid;place-items:center;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;max-height:44px;flex:none;padding:0;border:0;border-radius:.6rem;background:transparent;color:#fff;cursor:pointer}
.public-header__refresh svg{display:block;width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;flex:none}
.public-header__refresh:hover,.public-header__refresh:active{background:rgb(255 255 255 / 12%)}
.public-header__refresh:focus-visible{outline:3px solid #fff;outline-offset:-3px}
.public-header__refresh:disabled{opacity:.65;cursor:wait}
.public-header__refresh[hidden]{display:none}
.home-demo .public-header__share{position:absolute;top:50%;left:.6rem;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:.6rem;background:transparent;color:#fff;cursor:pointer}
.home-demo .public-header--home .public-header__share{position:static;grid-column:1;grid-row:1;transform:none}
.public-header--home .public-header__refresh{position:static;grid-column:3;grid-row:1;transform:none}
.home-demo .public-header__share svg{display:block;width:24px;height:24px}
.home-demo .public-header__share:hover,.home-demo .public-header__share:active{opacity:.82}
.home-demo .public-header__share:focus-visible{outline:3px solid #fff;outline-offset:-3px}
.home-demo .home-share-status,.home-demo .home-share-fallback{margin:.45rem 1rem 0;color:#514946;font-size:.82rem}
.home-demo .home-share-status[hidden],.home-demo .home-share-fallback[hidden],.home-demo .home-share-fallback [hidden]{display:none}
.home-demo .home-share-fallback{padding:.6rem;border:1px solid #eaded8;border-radius:.7rem;background:#fff}
.home-demo .home-share-fallback button{min-height:44px;padding:0 .75rem;border:1px solid #940713;border-radius:.5rem;background:#fff;color:#940713;font:inherit;font-weight:650;cursor:pointer}
.home-demo .home-share-fallback label{display:block;margin-top:.4rem}
.home-demo .home-share-fallback input{display:block;box-sizing:border-box;width:100%;min-height:44px;margin-top:.25rem;padding:.4rem;border:1px solid #d4c8c2;border-radius:.4rem;color:#24201e;font:inherit}
.content-refresh-notice{margin:0 0 .5rem;color:#746c68;font-size:.8rem}
.public-header ~ * select:focus-visible{outline:3px solid #7c1020;outline-offset:2px}
.home-demo .task-item__direct,.home-demo .task-item__tutorial,.tutorials-page .tutorial-link,.resources-page .resource-link{color:#940713;font-size:.82rem;font-weight:600;gap:.2rem}
.home-demo .task-item__direct,.home-demo .task-item__tutorial{min-height:24px;padding-block:3px;text-underline-offset:3px}
.home-demo .task-item__tutorial{position:relative;border:0;border-radius:0;background:transparent;padding-inline:0;text-decoration:underline}
.home-demo .task-item__tutorial::after{content:"";position:absolute;inset-block:-10px;inset-inline:0}
.home-demo .task-item__tutorial:focus-visible{outline:2px solid #940713;outline-offset:2px}
.home-demo .task-item__meta:has(.task-item__tutorial){padding-inline-start:1.2rem;column-gap:.12rem}
.home-demo .task-item__meta .task-item__tutorial{padding-inline:0}
.home-demo .task-item__direct svg,.home-demo .task-item__tutorial svg,.tutorials-page .tutorial-link svg,.resources-page .resource-link svg{width:.9rem;height:.9rem;flex:none}
.home-demo .task-item__links{display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle}
.home-demo .task-item__copy{position:relative;display:inline-grid;place-items:center;width:44px;height:24px;margin-inline-start:.1rem;padding:0;vertical-align:middle;border:0;border-radius:0;background:transparent;color:#9b9998;cursor:pointer}
.home-demo .task-item__copy::before{content:"";position:absolute;inset-block:-10px;inset-inline:0}
.home-demo .task-item__copy svg{display:block;width:19px;height:19px}
.home-demo .task-item__copy svg[hidden]{display:none}
.home-demo .task-item__copy:focus-visible{outline:2px solid #940713;outline-offset:2px}
.home-demo .task-item__copy:hover{color:#77716d}
.home-demo .task-item__copy-status,.home-demo .task-item__copy-manual{margin:.25rem 0 0;padding-inline-start:1.8rem;color:#716a66;font-size:.8rem;overflow-wrap:anywhere}
.home-demo .task-item__copy-status[hidden],.home-demo .task-item__copy-manual[hidden]{display:none}
.home-demo .task-item__copy-manual input{display:block;box-sizing:border-box;width:100%;min-height:44px;margin-top:.25rem;padding:.4rem;border:1px solid #d4c8c2;border-radius:.4rem;background:#fff;color:#24201e;font:inherit}
.public-admin-return{display:flex;align-items:center;width:max-content;min-height:44px;margin:.15rem 1rem .2rem;padding:0 .2rem;color:#940713;font-size:.82rem;font-weight:600;text-decoration:none}
.public-admin-return:hover{text-decoration:underline}
.resources-page .resource-tags,.tutorials-page .tutorial-tags{gap:.3rem}
@media(min-width:48rem){.public-header{border-radius:1rem}}

/* Native select remains keyboard-accessible; long selected names wrap over its face. */
.public-select-long{display:grid;min-width:0;width:100%;grid-column:1/-1;grid-row:2}
.public-select-long select,.public-select-long span{grid-area:1/1!important}
.public-select-long select{height:100%;color:transparent!important}
.public-select-long option{color:#24201e}
.public-select-long span{align-self:center;padding:.5rem 1.6rem .5rem .55rem;pointer-events:none;font-size:.85rem;line-height:1.4;overflow-wrap:anywhere;color:#24201e}

.public-select-long{position:relative}
.public-select-long::after{content:"⌄";position:absolute;right:.5rem;top:50%;transform:translateY(-50%);pointer-events:none;color:#24201e}
.public-search-field{position:relative;display:block;min-width:0}
.public-search-field svg{position:absolute;z-index:1;left:.7rem;top:50%;width:1rem;height:1rem;transform:translateY(-50%);pointer-events:none;color:#746c68}
.tutorials-page .public-search-field input,.resources-page .public-search-field input,
.tutorials-page .tutorial-filters select,.resources-page .resources-filters select{min-width:0;min-height:44px;height:44px;border:1px solid #d4c8c2;border-radius:.62rem;background-color:#fff;color:#24201e;font-family:inherit;font-size:16px;font-weight:400;line-height:1.25}
.tutorials-page .public-search-field input,.resources-page .public-search-field input{width:100%;padding:.48rem .55rem .48rem 2.05rem}
.tutorials-page .public-search-field input::placeholder,.resources-page .public-search-field input::placeholder{color:#746c68;opacity:1;font-size:16px;font-weight:400}
.tutorials-page .tutorial-filters select,.resources-page .resources-filters select{appearance:none;padding:.48rem 1.7rem .48rem .55rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23746c68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:16px 16px;background-position:right .45rem center}
.tutorials-page .tutorial-filters select{min-width:112px}
.tutorials-page .tutorial-search,.resources-page .resources-submit{min-width:44px;min-height:44px;height:44px;padding:.3rem .7rem;border:0;border-radius:.62rem;background:#940713;color:#fff;font-family:inherit;font-size:16px;font-weight:600;line-height:1.25}
.tutorials-page .tutorial-order,.resources-page .resources-results{margin:.2rem 0 .5rem;color:#716a66;font-size:13px;font-weight:400;line-height:1.4}


.home-demo .home-progress__top{grid-template-columns:90px minmax(0,1fr) 58px;gap:.4rem;align-items:start;margin-bottom:.4rem}
.home-demo .home-progress__singer-frame{display:block;width:90px;height:90px;overflow:hidden;border-radius:.55rem;background:#f8f4ee}
.home-demo .home-progress__singer{display:block;width:100%;height:100%;object-fit:contain;transform:none}
.home-demo .home-progress__intro{text-align:left}
.home-demo .home-progress__intro h2{margin-bottom:.15rem}
.home-demo .home-progress__counts{display:grid;gap:.1rem;margin:.35rem 0 0;font-size:.76rem;line-height:1.35}
.home-demo .home-progress__counts-line{display:flex;flex-wrap:wrap;column-gap:.2rem;margin:0}
.home-demo .home-progress__counts-line span{white-space:nowrap}
.home-demo .home-progress__counts span + span::before{content:none;margin:0}
.home-demo .home-progress__mascot{width:58px;height:auto;justify-self:end;align-self:end;transform:translate(-6px,-10px)}
@media(max-width:360px){.home-demo .home-progress__top{grid-template-columns:76px minmax(0,1fr) 58px;gap:.3rem}.home-demo .home-progress__singer-frame{width:76px;height:76px}.home-demo .home-progress__mascot{transform:translate(-3px,0)}}

/* Shared directory head; task, tutorial and resource panels keep their own cards. */
.public-directory-card,.home-demo .task-category{min-width:0;overflow:hidden;border:1px solid #e9ded8;border-radius:.95rem;background:#fff;box-shadow:0 3px 12px #36222208}
.public-directory-toggle{display:flex;align-items:center;gap:.55rem;width:100%;min-height:56px;padding:.72rem .85rem;border:0;background:transparent;color:#302724;font:inherit;font-weight:650;text-align:left;cursor:pointer}
.public-directory-toggle:focus-visible{outline:3px solid #940713;outline-offset:-3px}
.public-directory-icon{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:.6rem;background:#fcebed;color:#940713}
.public-directory-icon svg{display:block;width:20px;height:20px}
.public-directory-name{min-width:0;flex:1;overflow-wrap:anywhere}
.task-category__label{min-width:0;flex:1;line-height:1.5;overflow-wrap:anywhere}
.task-category__label .public-directory-name{display:inline;flex:none}
.task-category__highlight{display:inline-flex;align-items:center;min-height:20px;margin-inline-start:.3rem;padding:.1rem .35rem;border-radius:.4rem;color:#fff;font-size:.7rem;font-weight:700;line-height:1.2;white-space:nowrap;vertical-align:middle}
.task-category__highlight--latest{background:#940713}
.task-category__highlight--limited{background:#c76b20}
@media(max-width:360px){.home-demo .task-category__toggle{gap:.35rem;padding-inline:.7rem}}
.public-directory-count{flex:none;color:#716a66;font-size:.82rem;font-weight:500;white-space:nowrap}
.public-directory-chevron{flex:none;color:#940713;font-size:1.2rem;transition:transform .15s}
.public-directory-toggle[aria-expanded="true"] .public-directory-chevron{transform:rotate(180deg)}
.home-demo .task-categories{display:grid;gap:.7rem;min-width:0;margin-inline:1rem}
.home-demo .task-category__heading{margin:0;font-size:1rem}
.home-demo .task-urgent-toggle:focus-visible{outline:3px solid #940713;outline-offset:-3px}
.home-demo .task-category__panel{padding:.1rem .7rem .7rem}
.home-demo .task-category__panel[hidden]{display:none}
.home-demo .task-category__panel .task-preview-note{margin:.4rem .2rem}
.home-demo .task-urgent-toggle{display:block;min-height:44px;width:100%;margin-top:.4rem;border:0;border-radius:.6rem;background:transparent;color:#940713;font:inherit;font-size:.85rem;font-weight:650;cursor:pointer}
.home-demo .task-urgent-toggle[hidden]{display:none}

/* Shared outer directory; tutorial and resource cards retain their own styles. */
.content-categories{display:grid;gap:.65rem;min-width:0}
.content-category__heading{margin:0;font-size:1rem}
.content-category__more:focus-visible{outline:3px solid #940713;outline-offset:-3px}
.content-category__panel{padding:.1rem .65rem .65rem}
.content-category__panel[hidden],.content-category__more[hidden],.content-category__status[hidden]{display:none}
.content-category__more{display:block;width:100%;min-height:44px;border:0;border-radius:.55rem;background:#f8f4ee;color:#940713;font:inherit;font-size:.84rem;font-weight:650;cursor:pointer}
.content-category__status,.content-category__legacy{padding:.35rem .5rem;color:#716a66;font-size:.82rem}
