/* Shared account and content surfaces; existing navigation and forms retained. */
:root{--ui18-line:#34445b;--ui18-card:#19283d;--ui18-soft:#21344c;--ui18-accent:#66d3bd;--ui18-muted:#acbdd1}
body.light{--ui18-line:#dce7e9;--ui18-card:#fff;--ui18-soft:#f1f7f6;--ui18-accent:#176d5d;--ui18-muted:#62777b}
.app-frame[data-page=profile],.app-frame[data-page=settings],.app-frame[data-page=login],.app-frame[data-page=signup]{background:radial-gradient(ellipse at 100% 0,#267e7122,transparent 50%)}
.auth-panel{max-width:480px;margin:24px auto;padding:28px 24px;border:1px solid var(--ui18-line);border-radius:28px;background:var(--ui18-card);box-shadow:0 16px 55px #001a2b16}
.auth-panel h1{font-size:30px;letter-spacing:-.04em;margin:12px 0}
.auth-panel .auth-mark{width:76px;height:76px;border-radius:24px;background:var(--ui18-soft);display:grid;place-items:center}
.auth-panel .form-intro{line-height:1.7;color:var(--ui18-muted);margin-bottom:22px}
.auth-panel .policy-auth-note{font-size:12px;line-height:1.7;padding:12px 14px;background:var(--ui18-soft);border-radius:12px}
.auth-panel .form-field{margin:15px 0;display:grid;gap:7px}
.auth-panel input,.profile-form input,.profile-form textarea,.auth-panel select,.profile-form select{min-height:48px;border-radius:13px;border:1px solid var(--ui18-line);max-width:100%;box-sizing:border-box}
.auth-panel .primary,.profile-form>.primary{min-height:50px;border-radius:14px;font-weight:700}
.auth-switch{width:100%;min-height:48px;margin-top:10px;border-radius:14px}
.profile-panel{margin:16px;padding:24px 20px;border:1px solid var(--ui18-line);border-radius:24px;background:linear-gradient(135deg,var(--ui18-card),var(--ui18-soft));gap:18px;align-items:center}
.profile-panel h1{font-size:24px;line-height:1.35;overflow-wrap:anywhere}
.profile-panel .avatar{flex-shrink:0;width:76px;height:76px;border-radius:26px;border:3px solid var(--ui18-card);box-shadow:0 4px 18px #0002}
.profile-form{margin:16px;padding:20px;border:1px solid var(--ui18-line);border-radius:22px;background:var(--ui18-card)}
.profile-form .form-note{line-height:1.65;color:var(--ui18-muted);overflow-wrap:anywhere}
.profile-counts{gap:8px;margin:16px}.profile-counts button{padding:16px 8px;border:1px solid var(--ui18-line);border-radius:18px;background:var(--ui18-card)}
.profile-counts strong{color:var(--ui18-accent);font-size:23px}
.ob-profile-region{padding:16px;border-radius:16px;background:var(--ui18-soft);margin:18px 0}
.settings-page{padding:0 16px 28px;display:grid;gap:22px}.settings-page h2{font-size:13px;font-weight:700;letter-spacing:.03em;color:var(--ui18-muted);margin:0 6px 9px}.settings-heading{padding-bottom:18px}
.settings-page .settings,.app-frame[data-page=profile]>.settings{margin:0;border:1px solid var(--ui18-line);border-radius:18px;overflow:hidden;background:var(--ui18-card)}
.app-frame[data-page=profile]>.settings{margin:16px}
.settings-page .settings button{min-height:56px;padding:14px 16px;gap:12px;text-align:start;white-space:normal;overflow-wrap:anywhere}
.settings-page .settings button+button{border-top:1px solid var(--ui18-line)}
.settings-page .settings button svg{flex-shrink:0;color:var(--ui18-accent)}
.settings-page .settings button small{margin-inline-start:auto;color:var(--ui18-muted)}
.app-frame[data-page=boards] .board-group{margin:12px 16px;border-radius:20px;border:1px solid var(--ui18-line);overflow:hidden}
.app-frame[data-page=board] .post-row,.app-frame[data-page=archive] .post-row,.app-frame[data-page=search] .post-row{margin:8px 12px;border:1px solid var(--ui18-line);border-radius:18px;padding:16px;background:var(--ui18-card)}
.app-frame[data-page=search] .search-top{border:1px solid var(--ui18-line);border-radius:15px;background:var(--ui18-soft)}
.app-frame[data-page=search] .search-filters{padding:12px 16px;gap:12px}.search-summary{padding:0 18px;color:var(--ui18-muted)}
.app-frame[data-page=post] .article-title{font-size:clamp(24px,6vw,36px);line-height:1.4;letter-spacing:-.03em}
.app-frame[data-page=comments] .comment,.app-frame[data-page=post] .comment{border-radius:16px;background:var(--ui18-card);border:1px solid var(--ui18-line);margin:10px 12px;padding:16px}
.app-frame[data-page=compose] .compose-form{padding:20px 18px}.compose-form .title-input{line-height:1.5;padding-bottom:16px;border-bottom:1px solid var(--ui18-line)}
.app-frame .empty{padding:42px 22px;text-align:center}.app-frame .empty h1,.app-frame .empty h2{line-height:1.5}.app-frame .empty p{line-height:1.7;color:var(--ui18-muted)}
.auth-panel :focus-visible,.profile-form :focus-visible,.settings-page :focus-visible{outline:3px solid var(--ui18-accent);outline-offset:3px}
@media(max-width:359px){.auth-panel{margin:12px 10px;padding:20px 16px}.profile-panel{padding:18px 14px;gap:12px}.profile-form{padding:16px;margin:12px}.settings-page{padding-inline:12px}.profile-panel h1{font-size:21px}}
@media(prefers-reduced-motion:reduce){.auth-panel *,.settings-page *,.profile-panel *{transition:none!important;animation:none!important}}


/* W02 isolated profile/settings navigation. All stateful forms stay in child routes. */
.hm-profile-summary{margin:12px 16px 8px;padding:18px;min-width:0;gap:14px;border-radius:20px}
.hm-profile-summary .avatar{width:64px;height:64px;border-radius:21px}
.hm-profile-summary-text{flex:1;min-width:0}
.hm-profile-summary h1{font-size:21px;line-height:1.35;margin:0;overflow-wrap:anywhere}
.hm-profile-summary p{margin:5px 0 0;font-size:13px;color:var(--ui18-muted);overflow-wrap:anywhere}
.hm-profile-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 16px 16px}
.hm-profile-counts button{min-width:0;min-height:58px;border-radius:14px;padding:7px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.hm-profile-counts strong{font-size:19px;line-height:1.2}
.hm-profile-counts span{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.hm-profile-menu{padding:0 16px 26px;display:grid;gap:15px}
.hm-menu-group{min-width:0}
.hm-menu-group>h2{font-size:13px;font-weight:750;letter-spacing:.01em;color:var(--ui18-muted);padding:0 4px;margin:0 0 8px}
.hm-menu-list{border:1px solid var(--ui18-line);border-radius:18px;overflow:hidden;background:var(--ui18-card)}
.hm-menu-row{display:flex;align-items:center;gap:12px;min-height:58px;width:100%;padding:12px 15px;background:transparent;text-align:left;line-height:1.45;overflow-wrap:anywhere}
.hm-menu-row+.hm-menu-row{border-top:1px solid var(--ui18-line)}
.hm-menu-row>.icon:first-child{width:22px;height:22px;color:var(--ui18-accent);flex:none}
.hm-menu-row>.icon:last-child{width:18px;height:18px;color:var(--ui18-muted);opacity:.8;flex:none}
.hm-menu-copy{flex:1;min-width:0;display:block}
.hm-menu-copy strong{font-size:15px;font-weight:650;overflow-wrap:anywhere}
.hm-menu-value{margin-inline-start:auto;color:var(--ui18-muted);font-size:13px;text-align:end;min-width:0;max-width:40%;overflow-wrap:anywhere;flex:none}
.hm-menu-row:active{background:var(--ui18-soft)}
.hm-menu-row:focus-visible,.hm-profile-subhead button:focus-visible{outline:3px solid var(--ui18-accent);outline-offset:-3px}
.hm-profile-subhead{display:flex;align-items:center;gap:12px;margin:12px 16px 16px;min-height:50px}
.hm-profile-subhead button{display:inline-flex;align-items:center;gap:5px;min-height:48px;padding:0 9px;border-radius:12px;color:var(--ui18-accent);font-size:13px;font-weight:650;flex:none}
.hm-profile-subhead button .icon{width:20px;height:20px}
.hm-profile-subhead h1{font-size:20px;line-height:1.45;overflow-wrap:anywhere}
.hm-profile-subform{margin:0 16px 24px}
.hm-profile-subform .hm-profile-editor{margin-bottom:13px}
.hm-profile-region-sub{margin:0 16px 24px;padding:18px;border:1px solid var(--ui18-line);border-radius:19px;background:var(--ui18-card)}
.hm-profile-region-sub .ob-profile-region{margin:0 0 14px}
.hm-profile-region-sub .form-note{line-height:1.65;color:var(--ui18-muted)}
.hm-settings-menu{padding-top:4px}
.hm-settings-heading{margin:0 16px 12px;padding:8px 0}
.hm-settings-subpage{margin:0 16px 28px;padding:0;display:block}
.hm-settings-subpage>section{min-width:0}
.hm-settings-subpage .hm-menu-list{border-radius:18px}
.hm-settings-subpage .settings{border:1px solid var(--ui18-line);border-radius:18px;overflow:hidden;background:var(--ui18-card)}
.hm-settings-subpage button{min-height:48px}
@media(max-width:359px){
 .hm-profile-summary{padding:14px 12px;gap:10px;margin-inline:12px}
 .hm-profile-counts{margin-inline:12px}
 .hm-profile-menu{padding-inline:12px}
 .hm-menu-row{padding:12px 11px;gap:9px;min-height:56px}
 .hm-menu-value{max-width:32%}
 .hm-profile-subhead{margin-inline:12px}
 .hm-profile-subform,.hm-profile-region-sub,.hm-settings-subpage{margin-inline:12px}
}


/* W05 2026-11-06: scoped search/archive/mine/boards discovery presentation.
   No global shell, footer, home, or profile overrides. */
.app-frame[data-page="search"] .search-top{min-width:0;margin-right:4px;border:1px solid #6887aa;background:#23364b;border-radius:14px}
.app-frame[data-page="search"] .search-top input{color:#f5faff;-webkit-text-fill-color:#f5faff;opacity:1;font-size:15px;min-width:0;min-height:46px}
.app-frame[data-page="search"] .search-top input::placeholder{color:#d2deeb;-webkit-text-fill-color:#d2deeb;opacity:1}
.app-frame[data-page="search"] .search-top button{min-height:46px;min-width:46px;color:#f5faff}
.app-frame[data-page="search"] .search-top button .icon{color:inherit}
.app-frame[data-page="search"] .search-top:focus-within{outline:2px solid #e3a365;outline-offset:2px}
body.light .app-frame[data-page="search"] .search-top{background:#fff;border-color:#7f9fb6}
body.light .app-frame[data-page="search"] .search-top input{color:#172c3e;-webkit-text-fill-color:#172c3e}
body.light .app-frame[data-page="search"] .search-top input::placeholder{color:#526778;-webkit-text-fill-color:#526778}
body.light .app-frame[data-page="search"] .search-top button{color:#173951}
.app-frame[data-page="search"] .search-filters{padding:12px 16px 14px}
.app-frame[data-page="search"] .search-filters select{min-height:48px;border:1px solid var(--ui18-line);border-radius:12px;background:var(--ui18-card);color:var(--text);font-size:14px;margin-bottom:10px}
.app-frame[data-page="search"] .search-filters .tabs{display:flex;gap:8px}
.app-frame[data-page="search"] .search-filters .pill{min-width:0;min-height:44px;flex:1;padding:10px 5px;white-space:normal;line-height:1.25;font-weight:600}
.app-frame[data-page="search"] .search-filters .pill[aria-pressed="true"]{font-weight:750;border-color:var(--menu-accent,#c84983)}
.app-frame[data-page="search"] .search-summary{display:flex;gap:7px;align-items:center;padding:14px 18px 6px;font-size:13px;color:var(--text)}
.app-frame[data-page="search"] .search-summary strong{font-size:16px;color:var(--menu-accent,#da5885)}
.app-frame[data-page="archive"] .discovery-heading{display:flex;align-items:center;gap:12px;min-height:82px;margin:12px 16px 5px;padding:12px 16px;border:1px solid var(--ui18-line);border-radius:18px;background:var(--ui18-card)}
.app-frame[data-page="archive"] .discovery-heading-mark{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:14px;background:var(--ui18-soft);color:var(--menu-accent,#c84983)}
.app-frame[data-page="archive"] .discovery-heading-mark .icon{width:26px;height:26px}
.app-frame[data-page="archive"] .discovery-heading h1{font-size:22px;line-height:1.4;margin:0}
.app-frame[data-page="archive"] .discovery-heading p{margin:5px 0 0;font-size:13px;color:var(--ui18-muted)}
.app-frame[data-page="archive"] .discovery-secondary{padding:12px 16px 24px}
.app-frame[data-page="archive"] .discovery-secondary button{display:flex;align-items:center;justify-content:space-between;min-height:48px;width:100%;padding:11px 14px;border:1px solid var(--ui18-line);border-radius:14px;color:var(--text);background:var(--ui18-card);text-align:left}
.app-frame[data-page="archive"] .discovery-secondary .icon{width:18px;height:18px}
.app-frame[data-page="search"] .discovery-empty,.app-frame[data-page="archive"] .discovery-empty,.app-frame[data-page="mine"] .discovery-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:238px;margin:20px 16px 28px;padding:28px 20px;border:1px solid var(--ui18-line);border-radius:20px;background:var(--ui18-card);text-align:center}
.app-frame[data-page="search"] .discovery-empty-icon,.app-frame[data-page="archive"] .discovery-empty-icon,.app-frame[data-page="mine"] .discovery-empty-icon{width:62px;height:62px;display:grid;place-items:center;background:var(--ui18-soft);border-radius:19px;color:var(--menu-accent,#c84983)}
.app-frame[data-page="search"] .discovery-empty-icon svg,.app-frame[data-page="archive"] .discovery-empty-icon svg{width:29px;height:29px}
.app-frame .discovery-empty .discovery-illustration{width:104px;height:104px;max-width:100%;object-fit:contain}
.app-frame .discovery-empty h2{margin:3px 0 0;font-size:18px;line-height:1.4;color:var(--text)}
.app-frame .discovery-empty p{max-width:300px;margin:0;color:var(--ui18-muted);font-size:13px;line-height:1.65}
.app-frame .discovery-empty .discovery-cta{min-height:48px;margin-top:13px;padding:11px 21px;background:var(--menu-accent,#c84983);border-radius:13px;color:#fff;font-size:14px}
.app-frame[data-page="search"] .discovery-search-state,.app-frame[data-page="search"] .discovery-loading,.app-frame[data-page="archive"] .discovery-loading,.app-frame[data-page="mine"] .discovery-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:146px;margin:16px;padding:23px;color:var(--ui18-muted);text-align:center;font-size:14px}
.app-frame[data-page="search"] .discovery-search-state-icon{width:50px;height:50px;border-radius:16px;background:var(--ui18-soft);display:grid;place-items:center}
.app-frame[data-page="search"] .discovery-search-state-icon svg{width:23px;height:23px}
.app-frame[data-page="search"] .discovery-search-state button,.app-frame .discovery-failure button{min-height:44px;border-radius:12px}
.app-frame[data-page="archive"] .discovery-failure,.app-frame[data-page="mine"] .discovery-failure{margin:18px 16px;padding:20px;text-align:center;border-radius:14px;border:1px solid var(--ui18-line);color:var(--text)}
.app-frame[data-page="boards"] .board-group>.discovery-board-section,.drawer .board-group>.discovery-board-section{margin:21px 0 8px;padding:4px 2px 8px;font-size:13px;font-weight:750;line-height:1.5;color:var(--ui18-muted);border-bottom:1px solid var(--ui18-line)}
.app-frame[data-page="boards"] .board-group>.board-row,.drawer .board-group>.board-row{min-height:56px}
.app-frame[data-page="boards"] .board-row>.favorite,.drawer .board-row>.favorite{width:44px;min-width:44px;min-height:44px;align-self:stretch}
.app-frame[data-page="boards"] .board-row>.board-link,.drawer .board-row>.board-link{min-width:0;min-height:56px;padding-block:11px;font-size:14px;font-weight:600}
.app-frame[data-page="boards"] .board-row>.board-link>.icon,.drawer .board-row>.board-link>.icon{flex:none}
@media(max-width:390px){.app-frame[data-page="archive"] .discovery-heading{margin-inline:12px}.app-frame[data-page="search"] .discovery-empty,.app-frame[data-page="archive"] .discovery-empty,.app-frame[data-page="mine"] .discovery-empty{margin-inline:12px;padding-inline:16px}}


/* W02-02: account-only field tokens; no global theme or toolbar changes. */
.app-frame:is([data-page=login],[data-page=signup],[data-page=profile]),
#overlays .modal{
 --hm-account-field-bg:#1d2a39;
 --hm-account-field-fg:#f4f7fb;
 --hm-account-field-placeholder:#abbdd0;
 --hm-account-field-border:#8aa4bf;
 --hm-account-field-focus:#8cead4;
}
body.light .app-frame:is([data-page=login],[data-page=signup],[data-page=profile]),
body.light #overlays .modal{
 --hm-account-field-bg:#fff;
 --hm-account-field-fg:#172b40;
 --hm-account-field-placeholder:#53687e;
 --hm-account-field-border:#64788e;
 --hm-account-field-focus:#176d6b;
}
.app-frame:is([data-page=login],[data-page=signup]) #auth-form :is(input:not([type=file]):not([type=hidden]),select,textarea),
.app-frame[data-page=profile] #profile-form :is(input:not([type=file]):not([type=hidden]),select,textarea),
#overlays .modal :is(input[name=current],input[name=newPassword]){
 background:var(--hm-account-field-bg);
 color:var(--hm-account-field-fg);
 caret-color:var(--hm-account-field-fg);
 border:1px solid var(--hm-account-field-border);
 color-scheme:dark;
}
body.light .app-frame:is([data-page=login],[data-page=signup]) #auth-form :is(input:not([type=file]):not([type=hidden]),select,textarea),
body.light .app-frame[data-page=profile] #profile-form :is(input:not([type=file]):not([type=hidden]),select,textarea),
body.light #overlays .modal :is(input[name=current],input[name=newPassword]){color-scheme:light}
.app-frame:is([data-page=login],[data-page=signup]) #auth-form input::placeholder,
.app-frame[data-page=profile] #profile-form input::placeholder,
#overlays .modal :is(input[name=current],input[name=newPassword])::placeholder{
 color:var(--hm-account-field-placeholder);
 opacity:1;
}
.app-frame:is([data-page=login],[data-page=signup]) #auth-form :is(input,select,textarea):focus,
.app-frame[data-page=profile] #profile-form :is(input:not([type=hidden]):not([type=file]),select,textarea):focus,
#overlays .modal :is(input[name=current],input[name=newPassword]):focus{
 outline:3px solid var(--hm-account-field-focus);
 outline-offset:2px;
 border-color:var(--hm-account-field-focus);
}
.app-frame:is([data-page=login],[data-page=signup]) #auth-form input:-webkit-autofill,
.app-frame[data-page=profile] #profile-form input:-webkit-autofill,
#overlays .modal :is(input[name=current],input[name=newPassword]):-webkit-autofill{
 -webkit-text-fill-color:var(--hm-account-field-fg);
 -webkit-box-shadow:0 0 0 1000px var(--hm-account-field-bg) inset;
}
.app-frame:is([data-page=login],[data-page=signup]) .auth-panel .policy-auth-note{
 color:#eef4fc;
 background:#23374e;
 border:1px solid #516982;
 font-size:13px;
 line-height:1.7;
}
.app-frame:is([data-page=login],[data-page=signup]) .auth-panel .policy-auth-note a{
 color:#a5e3ff;
 text-decoration:underline;
 text-underline-offset:3px;
 font-weight:700;
}
body.light .app-frame:is([data-page=login],[data-page=signup]) .auth-panel .policy-auth-note{
 color:#26394f;
 background:#f0f6f8;
 border-color:#cbdde5;
}
body.light .app-frame:is([data-page=login],[data-page=signup]) .auth-panel .policy-auth-note a{color:#135b9c}
.app-frame:is([data-page=login],[data-page=signup]) .auth-panel .policy-auth-note a:focus-visible{
 outline:3px solid var(--hm-account-field-focus);
 outline-offset:3px;
 border-radius:3px;
}
/* Keep one contextual heading under the shared toolbar. */
.app-frame[data-page=profile] .hm-profile-subhead,
.app-frame[data-page=settings] .hm-profile-subhead{
 margin:12px 16px 16px;
 padding:0 2px;
 min-height:42px;
 align-items:center;
}
.app-frame[data-page=profile] .hm-profile-subhead h1,
.app-frame[data-page=settings] .hm-profile-subhead h1{font-size:21px;line-height:1.4;margin:0}


/* W02-04: self-only signup mobile number and separate edit route. */
.app-frame[data-page=signup] .hm-phone-fields,
.app-frame[data-page=profile] .hm-phone-edit-form .hm-phone-fields{
 margin:18px 0;padding:17px 14px;border:1px solid var(--ui18-line);
 border-radius:17px;background:var(--ui18-soft);min-width:0;
}
.app-frame[data-page=signup] .hm-phone-field-heading,
.app-frame[data-page=profile] .hm-phone-field-heading{
 display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;flex-wrap:wrap;
}
.app-frame[data-page=signup] .hm-phone-field-heading strong,
.app-frame[data-page=profile] .hm-phone-field-heading strong{
 font-size:16px;line-height:1.4;color:var(--text);
}
.app-frame:is([data-page=signup],[data-page=profile]) .hm-field-requirement{
 border-radius:999px;background:#bc226e;color:#fff;font-size:12px;font-weight:800;
 padding:3px 11px;min-width:42px;text-align:center;
}
.app-frame:is([data-page=signup],[data-page=profile]) .hm-phone-purpose,
.app-frame:is([data-page=signup],[data-page=profile]) .hm-phone-unverified{
 color:var(--ui18-muted);font-size:13px;line-height:1.65;overflow-wrap:anywhere;
}
.app-frame:is([data-page=signup],[data-page=profile]) .hm-phone-unverified{margin:11px 0 0}
.app-frame:is([data-page=signup],[data-page=profile]) .hm-phone-error{color:#d95470;font-size:13px;line-height:1.6}
body.light .app-frame:is([data-page=signup],[data-page=profile]) .hm-phone-error{color:#a1123d}
.app-frame:is([data-page=signup],[data-page=profile]) .hm-phone-fields .hf-number-row{min-width:0;margin-top:14px}
.app-frame:is([data-page=signup],[data-page=profile]) .hm-phone-fields .hf-number-row label{
 min-width:0;overflow-wrap:anywhere;color:var(--text);font-size:14px;line-height:1.45;
}
.app-frame[data-page=profile] #profile-phone-form :is(input:not([type=hidden]):not([type=checkbox]),select){
 min-height:48px;width:100%;min-width:0;max-width:100%;padding:12px 10px;
 border:1px solid var(--hm-account-field-border,#8796a8);border-radius:12px;
 color:var(--hm-account-field-fg,var(--text));
 background:var(--hm-account-field-bg,var(--surface));caret-color:currentColor;
 font-size:16px;box-sizing:border-box;
}
.app-frame[data-page=profile] #profile-phone-form :is(input,select):focus-visible{
 outline:3px solid var(--hm-account-field-focus,#3bb7a2);outline-offset:2px;
 border-color:var(--hm-account-field-focus,#3bb7a2);
}
.app-frame[data-page=profile] #profile-phone-form input::placeholder{
 color:var(--hm-account-field-placeholder,var(--muted));opacity:1;
}
.app-frame:is([data-page=profile],[data-page=signup]) .hm-phone-fields input[aria-invalid=true]{
 border-color:#d24565!important;
}
.app-frame[data-page=signup] .hm-signup-consents{
 border-top:1px solid var(--ui18-line);margin-top:22px;padding-top:14px;
 display:grid;gap:9px;
}
.app-frame[data-page=signup] .hm-signup-consent{
 min-height:56px;padding:12px 13px;display:flex;gap:12px;align-items:center;
 border:1px solid var(--ui18-line);border-radius:14px;cursor:pointer;
 background:var(--ui18-card);line-height:1.55;font-size:14px;
}
.app-frame[data-page=signup] .hm-signup-consent input[type=checkbox]{
 width:23px;height:23px;min-height:23px;min-width:23px;max-width:23px;flex:none;
 padding:0;margin:0;appearance:auto;accent-color:#bf1971;
 background:transparent;color:inherit;border:0;
}
.app-frame[data-page=signup] .hm-signup-consent input:focus-visible{
 outline:3px solid var(--hm-account-field-focus,#54b7ab);
 outline-offset:3px;
}
.app-frame[data-page=signup] .hm-signup-consent span{min-width:0;overflow-wrap:anywhere}
.app-frame[data-page=signup] .hm-signup-consent b{font-size:12px;color:var(--ui18-accent);margin-right:5px}
.app-frame[data-page=signup] .hm-signup-discovery-note,
.app-frame[data-page=signup] .hm-google-phone-note{
 margin:2px 3px 12px;color:var(--ui18-muted);font-size:12.5px;line-height:1.65;
 overflow-wrap:anywhere;
}
.app-frame[data-page=profile] .hm-self-phone{
 margin:0 16px 16px;border:1px solid var(--ui18-line);border-radius:17px;
 padding:14px 13px;background:var(--ui18-card);
 display:flex;align-items:center;gap:12px;min-width:0;
}
.app-frame[data-page=profile] .hm-self-phone-icon{
 width:42px;height:42px;flex:none;border-radius:13px;display:grid;place-items:center;
 color:var(--ui18-accent);background:var(--ui18-soft);
}
.app-frame[data-page=profile] .hm-self-phone-icon .icon{width:23px;height:23px}
.app-frame[data-page=profile] .hm-self-phone-copy{
 flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;line-height:1.45;
}
.app-frame[data-page=profile] .hm-self-phone-copy strong{font-size:14px}
.app-frame[data-page=profile] .hm-self-phone-mask{font-size:15px;overflow-wrap:anywhere}
.app-frame[data-page=profile] .hm-self-phone-copy small{
 font-size:11.5px;color:var(--ui18-muted);line-height:1.45;overflow-wrap:anywhere;
}
.app-frame[data-page=profile] .hm-self-phone-edit{
 flex:none;min-width:77px;min-height:48px;padding:10px 12px;border:1px solid var(--ui18-line);
 border-radius:11px;background:var(--ui18-soft);color:var(--text);font-weight:700;
 text-align:center;line-height:1.4;
}
.app-frame[data-page=profile] .hm-self-phone-edit:focus-visible{
 outline:3px solid var(--hm-account-field-focus,#54b7ab);outline-offset:2px;
}
.app-frame[data-page=profile] .hm-phone-edit-form{margin-top:0}
.app-frame[data-page=profile] .hm-phone-previous{
 display:flex;flex-direction:column;gap:5px;padding:0 0 12px;
 border-bottom:1px solid var(--ui18-line);overflow-wrap:anywhere;
}
.app-frame[data-page=profile] .hm-phone-previous strong{font-size:14px}
.app-frame[data-page=profile] .hm-phone-previous span{font-size:15px;color:var(--ui18-muted)}
.app-frame[data-page=profile] .hm-phone-edit-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.app-frame[data-page=profile] .hm-phone-edit-actions button{
 min-height:48px;border-radius:12px;padding:10px;font-weight:700;
}
@media(max-width:359px){
 .app-frame[data-page=profile] .hm-self-phone{margin-inline:12px;padding:12px 10px;gap:8px}
 .app-frame[data-page=profile] .hm-self-phone-icon{width:36px;height:36px}
 .app-frame[data-page=profile] .hm-self-phone-edit{min-width:72px;padding-inline:8px}
 .app-frame:is([data-page=signup],[data-page=profile]) .hm-phone-fields{padding:13px 9px}
}

/* Explicit appearance choices in Settings, available before login too. */
.hm-theme-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hm-theme-choice{display:flex;align-items:center;gap:10px;min-height:64px;padding:12px;border:1px solid var(--ui18-line);border-radius:16px;background:var(--ui18-card);color:var(--text);text-align:left}
.hm-theme-choice strong{flex:1;min-width:0;font-size:14px;overflow-wrap:anywhere}
.hm-theme-choice[aria-pressed="true"]{border:2px solid #c92570;padding:11px;background:var(--ui18-soft)}
.hm-theme-swatch{width:28px;height:28px;border:1px solid #7b8490;border-radius:50%;flex:none}
.hm-theme-dark{background:#191c20}.hm-theme-light{background:#fff}
.hm-theme-marker{width:16px;height:16px;border:1px solid var(--muted);border-radius:50%;flex:none}
.hm-theme-choice[aria-pressed="true"] .hm-theme-marker{border:4px solid #c92570;background:#fff}
.hm-theme-choice:focus-visible{outline:3px solid var(--ui18-accent);outline-offset:3px}
