/* Shared text-entry treatment, following the supplied iPhone reference.
   Keep mobile input values at 16px to preserve native focus without zoom;
   functional-page placeholders use 14px; the home invitation keeps its serif treatment. */
:root{
 --entry-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif;
 --entry-size:14px;
 --entry-placeholder:#8e9094;
 --entry-text:#e1e3e5;
 --entry-surface:linear-gradient(120deg,#c4d9dc07,#e3edf302);
 --entry-edge:#c4d2d936;
}
/* Explicit IDs override individual page and theme typography, including mobile rules. */
body :is(#home-query,#browse-query,#personal-query,#creation-search,#account-phone,#account-code,#chat-input,#creation-brief){
 font-family:var(--entry-font)!important;
 font-size:var(--entry-size)!important;
 font-weight:400!important;
 font-style:normal;
 letter-spacing:0!important;
 color:var(--entry-text);
 caret-color:#d0d4d8;
}
body :is(input,textarea)::placeholder{
 font-family:var(--entry-font)!important;
 font-size:var(--entry-size)!important;
 font-weight:400!important;
 font-style:normal;
 letter-spacing:0!important;
 color:var(--entry-placeholder)!important;
 opacity:1!important;
}
body #browse-search,
body #personal-search,
body #creation-guide .creation-search,
body #creation-guide.creation-starry .creation-search,
body #settings-dialog #settings-account :is(.account-phone-field,.account-code-field),
body #voice-dialog.cat-followup #chat-form{
 border:1px solid var(--entry-edge);
 border-radius:999px;
 background:var(--entry-surface);
 box-shadow:none;
 -webkit-backdrop-filter:blur(12px);
 backdrop-filter:blur(12px);
 transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
@media(hover:hover){
 body #browse-search:hover,
 body #personal-search:hover,
 body #creation-guide .creation-search:hover,
body #creation-guide.creation-starry .creation-search:hover,
 body #settings-dialog #settings-account :is(.account-phone-field,.account-code-field):hover,
 body #voice-dialog.cat-followup #chat-form:hover{border-color:#cbd8dc60}
}
body #browse-search:focus-within,
body #personal-search:focus-within,
body #creation-guide .creation-search:focus-within,
body #creation-guide.creation-starry .creation-search:focus-within,
body #settings-dialog #settings-account :is(.account-phone-field,.account-code-field):focus-within,
body #voice-dialog.cat-followup #chat-form:focus-within{
 border-color:#cbd8dc80;
 background:linear-gradient(120deg,#c4d9dc09,#e3edf303);
 box-shadow:inset 0 1px 0 #ffffff05;
}
/* The existing home underline stays an underline; only typography is unified. */
body #home-search:focus-within{border-bottom-color:rgba(203,209,215,.62)}
body :is(#home-query,#browse-query,#personal-query,#creation-search,#account-phone,#account-code,#chat-input):focus-visible{outline:none}
@media(max-width:760px),(pointer:coarse){
 body :is(#home-query,#browse-query,#personal-query,#creation-search,#account-phone,#account-code,#chat-input,#creation-brief){font-size:16px!important}
}
@media(prefers-reduced-motion:reduce){
 body #browse-search,body #personal-search,body #creation-guide .creation-search,
body #creation-guide.creation-starry .creation-search,
 body #settings-dialog #settings-account :is(.account-phone-field,.account-code-field),
 body #voice-dialog.cat-followup #chat-form{transition:none}
}

/* Prefix and verification action are part of the same sans-serif input control. */
body #settings-dialog #settings-account .account-phone-field>span,
body #settings-dialog #settings-account #account-send{
 font-family:var(--entry-font);font-weight:400;font-style:normal;letter-spacing:0;
}

/* The home invitation belongs to the artwork; entered text stays sans-serif. */
body #home-query::placeholder{
 font-family:var(--art-serif)!important;
 font-size:17px!important;
 letter-spacing:1.2px!important;
}
@media(max-width:760px){
 body #home-query::placeholder{font-size:16px!important}
}
