/* Community and account surfaces: native fields/actions, theme color tokens. */
html[data-template-theme="jav"] :is(.gallery-comments-body,.stui-gbook,.gallery-account,.mac_login){overflow-wrap:anywhere}
html[data-template-theme="jav"] :is(.gallery-comments-panel,.stui-gbook) h1{font-size:clamp(22px,2.4vw,28px);line-height:1.3}
html[data-template-theme="jav"] .gallery-comment-actions{align-items:end;flex-wrap:wrap;gap:12px}
html[data-template-theme="jav"] .gallery-comment-verification{display:grid;grid-template-columns:minmax(80px,110px) 120px;align-items:center;gap:8px;min-width:0}
html[data-template-theme="jav"] .gallery-comment-verification>label{grid-column:1/-1;margin:0}
html[data-template-theme="jav"] .gallery-comment-verification>input{width:100%;min-width:0;margin:0}
html[data-template-theme="jav"] :is(img.mac_verify_img,img.fed-user-code,#verify_img){display:block;width:120px;max-width:120px;height:44px;object-fit:contain;cursor:pointer;background:#fff;border:1px solid var(--line);border-radius:5px;padding:0;flex:none}
html[data-template-theme="jav"] :is(img.mac_verify_img,img.fed-user-code,#verify_img):focus-visible{outline:3px solid var(--focus,var(--accent));outline-offset:3px}
html[data-template-theme="jav"] :is(.gallery-comment-form,.gbook_form,.mac_login_form) :is(input,textarea){box-sizing:border-box;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:6px;font:inherit}
html[data-template-theme="jav"] :is(.gallery-comment-form,.gbook_form) textarea{width:100%;min-height:120px;padding:12px;resize:vertical}
html[data-template-theme="jav"] .gallery-gbook-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
html[data-template-theme="jav"] .gallery-gbook-actions>input{width:110px!important;min-height:44px;padding:8px;float:none!important;margin:0!important}
html[data-template-theme="jav"] .gallery-gbook-actions>button{min-height:44px;height:auto;padding:10px 18px;line-height:1.4;background:var(--accent);color:#fff;float:none;margin-inline-start:auto}
html[data-template-theme="jav"] .gallery-gbook-label{display:block;font-weight:600;margin-block:0 8px}
html[data-template-theme="jav"] .stui-gbook__item .cont{background:var(--canvas);color:var(--ink);border:1px solid var(--line);border-radius:6px;line-height:1.7}
html[data-template-theme="jav"] .stui-gbook__item .cont::before{background:var(--canvas);border-color:var(--line);inset-inline-start:14px}
html[data-template-theme="jav"] .stui-gbook__item :is(.name,.foot){color:var(--muted)}
html[data-template-theme="jav"] :is(.gallery-comment-list,.stui-gbook) .gallery-account-empty,html[data-template-theme="jav"] .stui-gbook .gallery-empty{margin:0;padding:20px 12px;text-align:center;background:var(--canvas);border:1px dashed var(--line);border-radius:6px;line-height:1.6}
html[data-template-theme="jav"] :is(.gallery-account,.mac_login) :is(.gallery-form-status,.fed-user-tips):empty{display:none}
html[data-template-theme="jav"] .gallery-account .fed-part-height{min-height:0!important}
html[data-template-theme="jav"] .gallery-verification-row{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:10px;align-items:center;min-width:0}
html[data-template-theme="jav"] .gallery-verification-row>input{width:100%;min-width:0;float:none;margin:0}
html[data-template-theme="jav"] .gallery-verification-row>label{grid-column:1/-1;margin:0;font-size:14px}
html[data-template-theme="jav"] .mac_login .login_form_group:has(>.mac_u_verify){display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:10px;align-items:center}
html[data-template-theme="jav"] .mac_login .login_form_group:has(>.mac_u_verify)>input{min-width:0}
html[data-template-theme="jav"] :is(.gallery-account,.mac_login,.gbook_form) :is(button,input[type=button],input[type=submit]){white-space:normal;min-height:44px;line-height:1.4}
html[data-template-theme="jav"] :is(.gallery-account,.mac_login,.gallery-comments-body,.stui-gbook) :is(a,button,input,textarea,select):focus-visible{outline:3px solid var(--focus,var(--accent));outline-offset:3px}
@media(max-width:520px){html[data-template-theme="jav"] .gallery-comments-panel{padding:18px 14px}html[data-template-theme="jav"] .gallery-comment-actions>.comment_submit{width:100%}html[data-template-theme="jav"] .gallery-comment-record header{align-items:start;flex-direction:column;gap:4px}html[data-template-theme="jav"] .gallery-gbook-actions>button{width:100%;margin-inline-start:0}html[data-template-theme="jav"] .gallery-account .fed-user-input>span{max-width:100%;min-width:0}html[data-template-theme="jav"] .gallery-account .fed-user-input input[type=button]{width:100%!important}html[data-template-theme="jav"] .gallery-account .fed-user-brief{flex-wrap:wrap;gap:12px}}

/* Administrative guestbook replies keep readable text in both color modes. */
html[data-template-theme="jav"] .stui-gbook .cont .text-red{color:var(--ink)!important;border-inline-start:3px solid var(--accent);padding-inline-start:12px}

/* Native referral fields include inputs with an omitted (default text) type. */
html[data-template-theme="jav"] .gallery-account input:is([type="text"],:not([type])){min-height:44px!important;padding:10px 12px;box-sizing:border-box}
@media(max-width:767px){html[data-template-theme="jav"][data-template-variant="modern"] body:not(.gallery-film-detail):not(.gallery-film-play) :is(main,[role="main"]) h1{font-size:26px;line-height:1.3}}
