/* SOAH Auth V2 / Settings V2 — TEST first */
:root{--soah-v2:#05958c;--soah-v2-bright:#00a997;--soah-v2-ink:#17212b;--soah-v2-muted:#64748b;--soah-v2-line:#dce8e7;--soah-v2-soft:#f2fbf9}
html.soah-auth-boot body{visibility:hidden}
body.soah-v2-auth-pending{overflow:hidden}
.soah-v2-login{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:22px;background:radial-gradient(circle at 20% 10%,rgba(0,169,151,.13),transparent 30%),linear-gradient(135deg,#f7fbfb,#eef8f6)}
.soah-v2-login[hidden]{display:none!important}
.soah-v2-login-card{width:min(940px,100%);min-height:560px;display:grid;grid-template-columns:minmax(280px,.9fr) minmax(360px,1.1fr);overflow:hidden;border:1px solid #cfe3e0;border-radius:28px;background:#fff;box-shadow:0 28px 80px rgba(15,61,57,.16)}
.soah-v2-login-brand{position:relative;padding:44px;background:linear-gradient(145deg,#057f78,#00a997);color:#fff;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}
.soah-v2-login-brand:before,.soah-v2-login-brand:after{content:"";position:absolute;border-radius:999px;background:rgba(255,255,255,.09)}
.soah-v2-login-brand:before{width:360px;height:360px;right:-220px;top:-160px}.soah-v2-login-brand:after{width:220px;height:220px;left:-130px;bottom:-90px}
.soah-v2-login-mark{position:relative;z-index:1;width:54px;height:54px;border-radius:17px;display:grid;place-items:center;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28)}
.soah-v2-login-mark svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8}
.soah-v2-login-brand h1{position:relative;z-index:1;margin:28px 0 0;font-size:30px;font-weight:800;line-height:1.2}
.soah-v2-login-brand p{position:relative;z-index:1;margin:10px 0 0;color:rgba(255,255,255,.82);font-size:13px;line-height:1.7}
.soah-v2-login-note{position:relative;z-index:1;display:flex;align-items:center;gap:9px;font-size:11px;color:rgba(255,255,255,.78)}
.soah-v2-login-note i{width:8px;height:8px;border-radius:50%;background:#8fffea;box-shadow:0 0 0 5px rgba(143,255,234,.12)}
.soah-v2-login-form-wrap{padding:50px 54px;display:flex;align-items:center}
.soah-v2-login-form{width:100%}
.soah-v2-login-eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--soah-v2)}
.soah-v2-login-form h2{margin:8px 0 6px;color:var(--soah-v2-ink);font-size:28px;font-weight:800}
.soah-v2-login-form>p{margin:0 0 28px;color:var(--soah-v2-muted);font-size:12px}
.soah-v2-field{display:block;margin-top:16px}
.soah-v2-field>span{display:block;margin-bottom:7px;color:#334155;font-size:12px;font-weight:700}
.soah-v2-input-wrap{position:relative}
.soah-v2-input{width:100%;min-height:48px;border:1px solid #cbd9dc;border-radius:12px;padding:11px 13px;background:#fff;color:#17212b;font-size:14px;outline:none;transition:.18s}
.soah-v2-input:focus{border-color:var(--soah-v2-bright);box-shadow:0 0 0 4px rgba(0,169,151,.11)}
.soah-v2-password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);min-width:58px;border-radius:8px;padding:7px 8px;color:#52606d;font-size:11px;font-weight:700}
.soah-v2-password-toggle:hover{background:#f1f5f9}
.soah-v2-remember{display:flex;align-items:center;gap:9px;margin-top:16px;color:#475569;font-size:12px;cursor:pointer}
.soah-v2-remember input{width:17px;height:17px;accent-color:var(--soah-v2-bright)}
.soah-v2-login-submit{width:100%;min-height:49px;margin-top:24px;border-radius:12px;background:var(--soah-v2-bright);color:#fff;font-size:14px;font-weight:800;box-shadow:0 10px 22px rgba(0,169,151,.18);transition:.18s}
.soah-v2-login-submit:hover{background:#008f81;transform:translateY(-1px)}
.soah-v2-login-submit:disabled{opacity:.55;cursor:wait;transform:none}
.soah-v2-login-error{min-height:20px;margin-top:12px;color:#be123c;font-size:11px;font-weight:650}
#soahV2UserPill,.soah-v2-user-pill{display:none!important}
.soah-v2-member-panel{border:1px solid #d7e5e3;border-radius:20px;background:#fff;box-shadow:0 12px 30px rgba(15,61,57,.055);overflow:hidden}
.soah-v2-member-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid #e5eeee;background:linear-gradient(135deg,#fbfefe,#f3faf8)}
.soah-v2-member-title{display:flex;gap:12px;align-items:flex-start}.soah-v2-member-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#e9f8f6;color:var(--soah-v2)}.soah-v2-member-icon svg{width:22px;height:22px}
.soah-v2-member-title h3{margin:0;color:#1f2d37;font-size:18px;font-weight:800}.soah-v2-member-title p{margin:4px 0 0;color:#6b7b86;font-size:11px}
.soah-v2-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border-radius:10px;padding:8px 12px;font-size:11px;font-weight:800;transition:.16s}
.soah-v2-btn svg{width:16px;height:16px}.soah-v2-btn-primary{background:var(--soah-v2-bright);color:#fff}.soah-v2-btn-primary:hover{background:#008f81}.soah-v2-btn-ghost{border:1px solid #d0dddf;background:#fff;color:#475569}.soah-v2-btn-ghost:hover{background:#f8fafc}.soah-v2-btn-danger{border:1px solid #fecdd3;background:#fff;color:#be123c}.soah-v2-btn-danger:hover{background:#fff1f2}
.soah-v2-toolbar{display:flex;flex-wrap:wrap;gap:9px;padding:14px 20px;border-bottom:1px solid #edf2f2}.soah-v2-toolbar .soah-v2-search{position:relative;flex:1 1 260px}.soah-v2-search svg{position:absolute;left:12px;top:50%;width:16px;height:16px;transform:translateY(-50%);color:#94a3b8}.soah-v2-search input{width:100%;min-height:40px;border:1px solid #d6e0e2;border-radius:10px;padding:8px 12px 8px 37px;font-size:12px;outline:none}.soah-v2-search input:focus{border-color:#7ed6cc;box-shadow:0 0 0 3px rgba(0,169,151,.08)}
.soah-v2-user-list{padding:4px 20px 18px}.soah-v2-user-row{display:grid;grid-template-columns:minmax(170px,1.3fr) minmax(130px,.8fr) minmax(120px,.7fr) minmax(140px,.8fr) auto;gap:12px;align-items:center;padding:13px 5px;border-bottom:1px solid #edf2f2}.soah-v2-user-row:last-child{border-bottom:0}
.soah-v2-user-name{min-width:0}.soah-v2-user-name strong{display:block;color:#263640;font-size:12px}.soah-v2-user-name small{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7a8994;font-size:9px}
.soah-v2-role{display:inline-flex;width:max-content;border-radius:999px;padding:4px 8px;background:#eef7f6;color:#0f766e;font-size:9px;font-weight:800}.soah-v2-status{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:750;color:#64748b}.soah-v2-status i{width:8px;height:8px;border-radius:50%;background:#cbd5e1}.soah-v2-status.is-active{color:#047857}.soah-v2-status.is-active i{background:#10b981}
.soah-v2-row-actions{display:flex;gap:6px;justify-content:flex-end}.soah-v2-icon-btn{width:36px;height:36px;border:1px solid #dbe4e6;border-radius:10px;display:grid;place-items:center;background:#fff;color:#64748b}.soah-v2-icon-btn:hover{border-color:#9bded6;background:#f0fdfa;color:#0f766e}.soah-v2-icon-btn svg{width:16px;height:16px}
.soah-v2-empty{padding:38px;text-align:center;color:#7b8994;font-size:12px}
.soah-v2-modal{position:fixed;inset:0;z-index:100010;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.42);backdrop-filter:blur(4px)}
.soah-v2-modal.is-open{display:flex}.soah-v2-modal-card{width:min(980px,100%);max-height:min(90vh,900px);overflow:hidden;border:1px solid #d8e4e4;border-radius:22px;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.24);display:flex;flex-direction:column}
.soah-v2-modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #e7eeee}.soah-v2-modal-head h3{margin:0;color:#22313a;font-size:17px;font-weight:800}.soah-v2-modal-close{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:#64748b}.soah-v2-modal-close:hover{background:#f1f5f9}
.soah-v2-modal-body{overflow:auto;padding:20px}.soah-v2-modal-foot{display:flex;justify-content:flex-end;gap:9px;padding:14px 20px;border-top:1px solid #e7eeee;background:#fbfdfd}
.soah-v2-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.soah-v2-form-grid .is-full{grid-column:1/-1}.soah-v2-checkline{display:flex;align-items:center;gap:9px;min-height:43px;border:1px solid #e1e8ea;border-radius:11px;padding:9px 11px;background:#fbfdfd;color:#475569;font-size:11px;font-weight:700}.soah-v2-checkline input{accent-color:var(--soah-v2-bright);width:17px;height:17px}
.soah-v2-therapist-box{grid-column:1/-1;display:none;border:1px solid #bae5df;border-radius:15px;padding:15px;background:#f2fbf9}.soah-v2-therapist-box.is-visible{display:block}.soah-v2-therapist-head{display:flex;align-items:center;gap:9px;margin-bottom:12px;color:#0f766e;font-size:12px;font-weight:800}
.soah-v2-permission-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:22px 0 10px;padding-top:18px;border-top:1px solid #edf2f2}.soah-v2-permission-head h4{margin:0;font-size:13px;color:#263640}.soah-v2-permission-head p{margin:3px 0 0;color:#7a8994;font-size:9px}
.soah-v2-permission-group{border:1px solid #e1e9ea;border-radius:13px;margin-top:9px;overflow:hidden}.soah-v2-permission-group summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;background:#fbfdfd;color:#334155;font-size:11px;font-weight:800}.soah-v2-permission-group summary::-webkit-details-marker{display:none}.soah-v2-permission-count{border-radius:999px;padding:2px 7px;background:#edf5f4;color:#53706d;font-size:9px}.soah-v2-permission-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-top:1px solid #e6eded}.soah-v2-permission-item{display:flex;align-items:flex-start;gap:9px;padding:11px 12px;border-bottom:1px solid #edf2f2}.soah-v2-permission-item:nth-child(odd){border-right:1px solid #edf2f2}.soah-v2-permission-item input{margin-top:2px;width:16px;height:16px;accent-color:var(--soah-v2-bright)}.soah-v2-permission-item strong{display:block;color:#3a4a55;font-size:10px}.soah-v2-permission-item small{display:block;margin-top:2px;color:#86939d;font-size:9px;line-height:1.45}.soah-v2-override-tag{display:inline-block;margin-top:4px;border-radius:999px;padding:2px 6px;background:#fff7ed;color:#c2410c;font-size:8px;font-weight:800}
.soah-v2-session-list{display:grid;gap:9px}.soah-v2-session-card{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border:1px solid #e0e8ea;border-radius:12px;padding:12px;background:#fff}.soah-v2-session-card strong{display:block;font-size:11px;color:#334155}.soah-v2-session-card small{display:block;margin-top:3px;color:#7b8994;font-size:9px;line-height:1.55}
.soah-v2-settings-short{display:flex!important;align-items:center!important;gap:7px!important}.soah-v2-settings-short svg{width:16px;height:16px}
#admin-section.soah-v2-settings-ready .settings-hero{padding:20px 22px}#admin-section.soah-v2-settings-ready .settings-hero-labels,#admin-section.soah-v2-settings-ready .settings-kicker.mt-4{display:none}#admin-section.soah-v2-settings-ready .settings-title{font-size:28px}#admin-section.soah-v2-settings-ready .settings-subtitle{max-width:760px;font-size:12px;line-height:1.6}#admin-section.soah-v2-settings-ready .settings-metrics{margin-top:16px}
#admin-section.soah-v2-settings-ready .admin-center-nav button{display:flex;align-items:center;gap:7px;min-height:42px;padding:8px 12px}#admin-section.soah-v2-settings-ready .admin-center-nav button small{display:none}
#financeStaffIncentiveSection{display:none!important}
.settings-field:has([data-setting-key="clinic.therapistName"]),.settings-field:has([data-setting-key="clinic.therapistNameEn"]),.settings-field:has([data-setting-key="clinic.therapistLicenseNo"]){display:none!important}
@media(max-width:760px){.soah-v2-login-card{grid-template-columns:1fr;min-height:0}.soah-v2-login-brand{display:none}.soah-v2-login-form-wrap{padding:32px 24px}.soah-v2-user-row{grid-template-columns:1fr auto;gap:8px}.soah-v2-user-row>.soah-v2-role,.soah-v2-user-row>.soah-v2-status,.soah-v2-user-row>.soah-v2-last-login{grid-column:1}.soah-v2-row-actions{grid-column:2;grid-row:1/4}.soah-v2-form-grid,.soah-v2-permission-items{grid-template-columns:1fr}.soah-v2-permission-item:nth-child(odd){border-right:0}.soah-v2-member-head{padding:18px;flex-direction:column}.soah-v2-member-head .soah-v2-btn{width:100%}.soah-v2-modal{padding:8px}.soah-v2-modal-card{max-height:96vh;border-radius:17px}}

/* SOAH LOGIN R120 — Modern Medical Login / TEST */
.soah-v2-login{
  padding:clamp(18px,3vw,42px);
  background:
    radial-gradient(circle at 14% 12%,rgba(0,169,151,.14),transparent 28%),
    radial-gradient(circle at 88% 86%,rgba(5,149,140,.08),transparent 32%),
    #f4faf9;
}
.soah-v2-login-card{
  width:min(1100px,100%);
  min-height:640px;
  grid-template-columns:minmax(390px,.92fr) minmax(470px,1.08fr);
  border:1px solid rgba(5,149,140,.18);
  border-radius:32px;
  box-shadow:0 32px 90px rgba(15,61,57,.16),0 2px 8px rgba(15,61,57,.05);
}
.soah-v2-login-brand{
  isolation:isolate;
  padding:38px;
  background:
    linear-gradient(180deg,rgba(4,80,77,.28) 0%,rgba(4,80,77,.18) 32%,rgba(3,76,72,.86) 100%),
    url('/assets/soah-clinic-login.webp?rev=20261123r120') center/cover no-repeat;
}
.soah-v2-login-brand:before{
  z-index:-1;width:420px;height:420px;right:-260px;top:-210px;
  background:rgba(0,169,151,.28);
}
.soah-v2-login-brand:after{
  z-index:-1;width:280px;height:280px;left:-180px;bottom:-130px;
  background:rgba(255,255,255,.10);
}
.soah-v2-login-brand-content{position:relative;z-index:2;display:flex;min-height:100%;flex-direction:column;justify-content:space-between;gap:42px}
.soah-v2-login-brand-lockup{display:flex;align-items:center;gap:13px}
.soah-v2-login-brand-icon{
  width:52px;height:52px;flex:0 0 auto;border-radius:15px;object-fit:cover;
  box-shadow:0 10px 28px rgba(2,58,55,.24);border:1px solid rgba(255,255,255,.48);
}
.soah-v2-login-brand-name{display:flex;flex-direction:column;line-height:1.04;text-shadow:0 2px 14px rgba(0,0,0,.16)}
.soah-v2-login-brand-name strong{font-size:17px;font-weight:800;letter-spacing:.02em;color:#fff}
.soah-v2-login-brand-name span{margin-top:4px;font-size:10px;font-weight:650;color:rgba(255,255,255,.82)}
.soah-v2-login-brand-copy{max-width:390px;margin-top:auto;margin-bottom:auto}
.soah-v2-login-brand-kicker{
  display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.25);
  border-radius:999px;padding:6px 10px;background:rgba(4,66,63,.28);backdrop-filter:blur(10px);
  color:rgba(255,255,255,.94);font-size:9px;font-weight:800;letter-spacing:.09em;
}
.soah-v2-login-brand-copy h1{margin:16px 0 0;font-size:36px;line-height:1.16;letter-spacing:-.02em;text-shadow:0 3px 20px rgba(0,0,0,.2)}
.soah-v2-login-brand-copy p{max-width:340px;margin:12px 0 0;font-size:13px;line-height:1.75;color:rgba(255,255,255,.88);text-shadow:0 2px 12px rgba(0,0,0,.14)}
.soah-v2-login-note{
  width:max-content;border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:7px 10px;
  background:rgba(3,72,68,.34);backdrop-filter:blur(10px);color:#fff;font-weight:700;
}
.soah-v2-login-note b{font-size:10px;letter-spacing:.06em}
.soah-v2-login-note span{font-size:10px;color:rgba(255,255,255,.82)}
.soah-v2-login-form-wrap{padding:52px clamp(42px,5vw,72px);background:linear-gradient(180deg,#fff 0%,#fbfdfd 100%)}
.soah-v2-login-form{max-width:430px;margin:0 auto}
.soah-v2-login-mobile-brand{display:none}
.soah-v2-login-eyebrow{color:var(--soah-v2);font-size:10px;letter-spacing:.13em}
.soah-v2-login-form h2{margin:10px 0 7px;font-size:32px;line-height:1.18;letter-spacing:-.025em}
.soah-v2-login-form>p{margin-bottom:30px;font-size:12px;line-height:1.65;color:#71808e}
.soah-v2-field{margin-top:18px}
.soah-v2-field>span{margin-bottom:8px;font-size:12px;color:#2b3c46}
.soah-v2-input{
  min-height:52px;border-color:#ccdadd;border-radius:13px;padding:12px 14px;
  font-size:14px;background-color:#fff;background-repeat:no-repeat;background-position:15px center;background-size:17px 17px;
}
.soah-v2-input::placeholder{color:#a1adb6}
.soah-v2-input-user{
  padding-left:44px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23748791' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.soah-v2-input-password{
  padding-left:44px;padding-right:98px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23748791' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}
.soah-v2-password-toggle{
  right:8px;min-width:76px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  color:#52636d;font-size:11px;border:1px solid transparent;
}
.soah-v2-password-toggle:before{
  content:"";width:15px;height:15px;background-repeat:no-repeat;background-position:center;background-size:15px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2352636d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
}
.soah-v2-password-toggle:hover{border-color:#dce8e7;background:#f6fbfa}
.soah-v2-remember{margin-top:17px;gap:10px;line-height:1.45}
.soah-v2-remember input{width:18px;height:18px}
.soah-v2-login-submit{
  position:relative;min-height:52px;margin-top:24px;border-radius:13px;
  background:linear-gradient(135deg,#00a997,#05958c);box-shadow:0 12px 26px rgba(0,169,151,.20);
}
.soah-v2-login-submit:after{content:"›";position:absolute;right:18px;top:50%;transform:translateY(-52%);font-size:24px;font-weight:400;opacity:.86}
.soah-v2-login-submit:disabled:after{
  content:"";width:16px;height:16px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;
  animation:soah-v2-login-spin .7s linear infinite;
}
@keyframes soah-v2-login-spin{to{transform:translateY(-52%) rotate(360deg)}}
.soah-v2-login-error{
  min-height:22px;margin-top:11px;border-radius:9px;font-size:11px;line-height:1.5;
}
.soah-v2-login-error:not(:empty){padding:9px 11px;background:#fff1f2;border:1px solid #fecdd3}
.soah-v2-login-error.is-system:not(:empty){color:#8a5200;background:#fff8e8;border-color:#f0c36a;line-height:1.55}
.soah-v2-login-help{
  display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding-top:14px;border-top:1px solid #edf2f2;
  color:#7b8993;font-size:10px;line-height:1.55;
}
.soah-v2-login-help svg{width:14px;height:14px;flex:0 0 auto;margin-top:1px;color:#05958c}
@media(max-width:900px){
  .soah-v2-login-card{grid-template-columns:minmax(300px,.82fr) minmax(410px,1.18fr);min-height:590px}
  .soah-v2-login-brand{padding:30px}
  .soah-v2-login-brand-copy h1{font-size:31px}
  .soah-v2-login-form-wrap{padding:44px 38px}
}
@media(max-width:760px){
  .soah-v2-login{align-items:start;overflow:auto;padding:14px;background:#f4faf9}
  .soah-v2-login-card{
    width:min(520px,100%);min-height:0;grid-template-columns:1fr;border-radius:24px;
    box-shadow:0 20px 55px rgba(15,61,57,.14);
  }
  .soah-v2-login-brand{
    display:block;min-height:156px;padding:20px 22px;
    background-position:center 42%;
  }
  .soah-v2-login-brand-content{min-height:116px;gap:14px}
  .soah-v2-login-brand-icon{width:43px;height:43px;border-radius:13px}
  .soah-v2-login-brand-name strong{font-size:14px}
  .soah-v2-login-brand-name span{font-size:9px}
  .soah-v2-login-brand-copy{display:none}
  .soah-v2-login-note{margin-top:auto;padding:5px 8px}
  .soah-v2-login-form-wrap{padding:28px 22px 24px}
  .soah-v2-login-form{max-width:none}
  .soah-v2-login-form h2{font-size:27px}
  .soah-v2-login-form>p{margin-bottom:22px}
}
@media(max-width:390px){
  .soah-v2-login{padding:8px}
  .soah-v2-login-card{border-radius:20px}
  .soah-v2-login-brand{min-height:136px;padding:17px}
  .soah-v2-login-brand-content{min-height:102px}
  .soah-v2-login-form-wrap{padding:24px 17px 20px}
  .soah-v2-input{min-height:50px}
}
@media(prefers-reduced-motion:reduce){
  .soah-v2-login-submit,.soah-v2-input{transition:none}
  .soah-v2-login-submit:hover{transform:none}
}

/* SOAH LOGIN R124 — Mobile Compact / TEST */
@media(max-width:760px){
  .soah-v2-login{
    align-items:start;overflow:auto;
    padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
    background:#f4faf9;
  }
  .soah-v2-login-card{
    width:min(520px,100%);min-height:0;grid-template-columns:1fr;border-radius:24px;
    box-shadow:0 18px 46px rgba(15,61,57,.12);
  }
  .soah-v2-login-brand{
    display:block;min-height:104px;padding:16px 18px;
    background-position:center 39%;
  }
  .soah-v2-login-brand-content{
    min-height:72px;display:grid;grid-template-columns:minmax(0,1fr) auto;
    align-items:center;gap:12px;
  }
  .soah-v2-login-brand-lockup{min-width:0;gap:10px}
  .soah-v2-login-brand-icon{width:40px;height:40px;border-radius:12px}
  .soah-v2-login-brand-name{min-width:0}
  .soah-v2-login-brand-name strong{
    font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .soah-v2-login-brand-name span{
    font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .soah-v2-login-brand-copy{display:none}
  .soah-v2-login-note{
    margin:0;padding:5px 8px;align-self:center;
    background:rgba(3,72,68,.30);
  }
  .soah-v2-login-note b,.soah-v2-login-note span{font-size:8.5px}
  .soah-v2-login-form-wrap{padding:22px 20px 20px}
  .soah-v2-login-form{max-width:none}
  .soah-v2-login-eyebrow{font-size:9px}
  .soah-v2-login-form h2{margin:7px 0 5px;font-size:26px}
  .soah-v2-login-form>p{margin-bottom:18px;font-size:11px}
  .soah-v2-field{margin-top:14px}
  .soah-v2-field>span{margin-bottom:6px}
  .soah-v2-input{min-height:50px}
  .soah-v2-remember{margin-top:14px}
  .soah-v2-login-submit{min-height:52px;margin-top:18px}
  .soah-v2-login-help{margin-top:14px;padding-top:12px}
}
@media(max-width:430px){
  .soah-v2-login-card{border-radius:20px}
  .soah-v2-login-brand{min-height:94px;padding:14px 15px}
  .soah-v2-login-brand-content{min-height:66px;gap:8px}
  .soah-v2-login-brand-icon{width:38px;height:38px;border-radius:11px}
  .soah-v2-login-brand-name strong{font-size:12px}
  .soah-v2-login-brand-name span{font-size:8px}
  .soah-v2-login-note{padding:4px 7px}
  .soah-v2-login-note span{display:none}
  .soah-v2-login-form-wrap{padding:19px 16px 18px}
  .soah-v2-login-form h2{font-size:25px}
  .soah-v2-login-form>p{margin-bottom:16px}
  .soah-v2-field{margin-top:13px}
  .soah-v2-login-submit{margin-top:17px}
}
@media(max-width:360px){
  .soah-v2-login{padding:6px}
  .soah-v2-login-brand{min-height:88px;padding:12px 13px}
  .soah-v2-login-brand-content{min-height:64px}
  .soah-v2-login-form-wrap{padding:17px 14px 16px}
  .soah-v2-login-help{font-size:9px}
}


/* R248 — Auth recovery phone + forgot-password OTP */
.soah-v2-login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.soah-v2-login-options .soah-v2-remember{margin-top:0;min-width:0}
.soah-v2-forgot-btn{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:7px 9px;border-radius:9px;color:#057f78;font-size:11px;font-weight:800;white-space:nowrap;transition:.16s}
.soah-v2-forgot-btn svg{width:15px;height:15px;flex:0 0 auto}
.soah-v2-forgot-btn:hover{background:#eefaf8;color:#006f68}
.soah-v2-forgot-btn:focus-visible,.soah-v2-recovery-back:focus-visible,.soah-v2-resend-row button:focus-visible{outline:3px solid rgba(0,169,151,.18);outline-offset:2px}

.soah-v2-login-form.soah-v2-recovery-active>:not(#soahV2RecoveryFlow){display:none!important}
.soah-v2-recovery-flow[hidden]{display:none!important}
.soah-v2-recovery-flow{width:100%}
.soah-v2-recovery-icon{width:48px;height:48px;display:grid;place-items:center;margin-bottom:17px;border-radius:15px;background:#e9f8f6;color:#05958c;border:1px solid #d0ebe7}
.soah-v2-recovery-icon svg{width:24px;height:24px}
.soah-v2-recovery-flow h2,.soah-v2-recovery-success h2{margin:9px 0 7px;color:#17212b;font-size:29px;font-weight:800;line-height:1.2;letter-spacing:-.02em}
.soah-v2-recovery-copy,.soah-v2-recovery-success p{margin:0 0 25px;color:#64748b;font-size:12px;line-height:1.65}
.soah-v2-recovery-primary{margin-top:22px}
.soah-v2-recovery-back{display:flex;align-items:center;justify-content:center;width:100%;min-height:40px;margin-top:8px;border-radius:10px;color:#52636d;font-size:11px;font-weight:750}
.soah-v2-recovery-back:hover{background:#f4f8f8;color:#057f78}
.soah-v2-otp-input{height:60px;text-align:center;font-size:25px;font-weight:800;letter-spacing:.45em;font-variant-numeric:tabular-nums;padding-left:calc(14px + .45em);color:#173d3a}
.soah-v2-otp-input::placeholder{letter-spacing:.45em;color:#c1cbcf}
.soah-v2-test-otp{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 10px;margin-top:12px;padding:11px 13px;border:1px dashed #79d8ce;border-radius:12px;background:#f0fdfa}
.soah-v2-test-otp strong{grid-row:1/3;align-self:center;border-radius:8px;padding:5px 7px;background:#d8f7f2;color:#057f78;font-size:9px;letter-spacing:.06em}
.soah-v2-test-otp span{font-size:19px;font-weight:850;letter-spacing:.18em;color:#075e59;font-variant-numeric:tabular-nums}
.soah-v2-test-otp small{font-size:9px;color:#63807d}
.soah-v2-resend-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding:0 2px;color:#7a8994;font-size:10px}
.soah-v2-resend-row button{border-radius:8px;padding:6px 8px;color:#057f78;font-size:10px;font-weight:800}
.soah-v2-resend-row button:hover:not(:disabled){background:#eefaf8}
.soah-v2-resend-row button:disabled{color:#a9b4bb;cursor:not-allowed}
.soah-v2-recovery-success{text-align:center;padding-top:30px}
.soah-v2-recovery-success>span{width:62px;height:62px;display:grid;place-items:center;margin:0 auto 17px;border-radius:20px;background:#eafaf4;color:#059669;border:1px solid #c7efdf}
.soah-v2-recovery-success>span svg{width:31px;height:31px}
.soah-v2-recovery-success p{margin-bottom:20px}

.soah-v2-field-help{display:block;margin-top:6px;color:#7a8994;font-size:9px;line-height:1.45}
.soah-v2-user-recovery{display:flex!important;align-items:center;gap:5px;margin-top:5px!important;color:#5f737c!important;font-size:9px!important}
.soah-v2-user-recovery svg{width:12px;height:12px;flex:0 0 auto;color:#05958c}
.soah-v2-user-recovery:has(svg)+*{min-width:0}

@media(max-width:760px){
  .soah-v2-login-options{align-items:flex-start;gap:9px}
  .soah-v2-forgot-btn{min-height:34px;padding:6px 7px}
  .soah-v2-recovery-flow h2,.soah-v2-recovery-success h2{font-size:26px}
  .soah-v2-recovery-copy{margin-bottom:20px}
  .soah-v2-otp-input{height:58px;font-size:23px;letter-spacing:.38em}
}
@media(max-width:390px){
  .soah-v2-login-options{flex-direction:column;align-items:stretch}
  .soah-v2-forgot-btn{align-self:flex-end}
  .soah-v2-otp-input{font-size:21px;letter-spacing:.3em}
}


.soah-v2-input-identifier{
  padding-left:44px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23748791' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='m11 12 8-8m-3 3 2 2m-5 1 2 2'/%3E%3C/svg%3E");
}
.soah-v2-input-phone{
  padding-left:44px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23748791' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.8' width='12' height='18.4' rx='2.3'/%3E%3Cpath d='M10 5h4M11 18.4h2'/%3E%3C/svg%3E");
}
.soah-v2-advanced{margin-top:18px;border:1px solid #dce8e7;border-radius:14px;background:#fbfdfd;overflow:hidden}
.soah-v2-advanced>summary{list-style:none;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 14px;cursor:pointer;color:#334155}
.soah-v2-advanced>summary::-webkit-details-marker{display:none}
.soah-v2-advanced>summary>span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#eaf8f6;color:#057f78}
.soah-v2-advanced>summary>span svg{width:17px;height:17px}
.soah-v2-advanced>summary strong{display:block;font-size:11px;font-weight:800}
.soah-v2-advanced>summary small{display:block;margin-top:2px;color:#7a8994;font-size:9px;line-height:1.4}
.soah-v2-advanced>summary b{font-size:9px;color:#057f78}
.soah-v2-advanced[open]>summary{border-bottom:1px solid #e3eceb;background:#f5fbfa}
.soah-v2-advanced[open]>summary b{font-size:0}
.soah-v2-advanced[open]>summary b:after{content:"ซ่อน";font-size:9px}
.soah-v2-advanced-body{padding:0 14px 14px}


/* R248D — Touch targets + iOS/iPadOS safe area polish / TEST */
@media(max-width:760px), (hover:none) and (pointer:coarse){
  .soah-v2-forgot-btn,
  .soah-v2-password-toggle,
  .soah-v2-recovery-back,
  .soah-v2-resend-row button,
  .soah-v2-modal-close,
  .soah-v2-btn{
    min-height:44px;
  }
  .soah-v2-forgot-btn{padding:8px 10px}
  .soah-v2-password-toggle{min-width:80px}
  .soah-v2-recovery-back{border-radius:11px}
  .soah-v2-resend-row button{padding:8px 10px}
  .soah-v2-field-help{font-size:10.5px;line-height:1.5}
  .soah-v2-user-recovery{font-size:10px!important;line-height:1.45}
  .soah-v2-modal{
    padding:
      max(8px,env(safe-area-inset-top))
      max(8px,env(safe-area-inset-right))
      max(8px,env(safe-area-inset-bottom))
      max(8px,env(safe-area-inset-left));
  }
  .soah-v2-modal-card{
    max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  .soah-v2-modal-body{
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
  }
  .soah-v2-modal-foot{
    padding-bottom:calc(14px + env(safe-area-inset-bottom));
  }
}
@media(max-width:390px){
  .soah-v2-field-help{font-size:10px}
}
