/* Both themes share one masked entry; Theme 2 keeps the legacy red keypad. */
.tablet-login.legacy-auth214{position:fixed;inset:0;z-index:40;width:100%;max-width:none;height:100vh;height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#edf4ee;overflow:auto}
.legacy-auth214 *,.legacy-auth214 *::before{box-sizing:border-box}.legacy-auth-shell214{height:100%;min-height:360px;display:flex;flex-direction:column}.legacy-auth-top214{position:relative;flex:none;height:64px;background:#286348;color:white;display:flex;align-items:center;justify-content:center}.legacy-auth-top214 h1{margin:0;font-size:28px;font-weight:500}.legacy-auth-back214{position:absolute;left:15px;top:8px;min-height:48px;border:0;background:transparent;color:white;font-size:24px;padding:4px 10px}
.legacy-auth-stage214{position:relative;isolation:isolate;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:25px 0;overflow:auto}.legacy-auth-panel214{width:min(66vw,850px);height:100%;max-height:820px;padding:24px 42px;display:flex;flex-direction:column;background:#fff;border:1px solid #d4e1d7;border-radius:18px;overflow:auto}.legacy-auth-panel214 h2{flex:none;margin:0 0 20px;text-align:center;color:#173f2d;font-size:32px;font-weight:500}.legacy-auth-panel214 form{display:flex!important;flex-direction:column;align-items:stretch;width:100%;flex:1;min-height:0;gap:9px;margin:0}.legacy-auth-panel214 [data-store-choice]{flex:none;color:#173f2d;font-size:14px}.legacy-auth-panel214 [data-store-choice]:empty{display:none}.legacy-auth-panel214 [data-store-choice] p{margin:0;color:inherit;line-height:1.3}
.legacy-auth-combined214{flex:none;display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px;align-items:end}.legacy-auth-combined214 label{margin:0;min-width:0;font-size:14px;gap:4px;color:#173f2d}.legacy-auth-combined214 input{min-height:50px;width:100%;padding:8px 12px;border:1px solid #9ebaa6;border-radius:8px;background:#fff;color:#111;font-size:22px}.legacy-auth-separator214{width:48px;min-height:50px;border:1px solid #9ebaa6;border-radius:8px;background:#f0f7f1;color:#205639;font-size:25px}.legacy-auth-panel214 input:focus{outline:3px solid #317651;outline-offset:1px}.legacy-auth-hint214{flex:none;margin:0!important;color:#486e55!important;font-size:12px;line-height:16px!important}.legacy-auth-panel214 output{flex:none;min-height:20px;margin:0;font-size:12px;line-height:20px;color:#7c1717}.legacy-auth-source214[hidden]{display:none!important}.legacy-auth-original-submit214{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);opacity:0;pointer-events:none}
.legacy-auth-keypad214{flex:1;min-height:230px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(44px,1fr));gap:10px}.legacy-auth-keypad214 button{min-height:44px;width:100%;padding:4px;border:1px solid #c8dbcd;border-radius:10px;background:#f5faf6;color:#173f2d;font:inherit;font-size:28px;cursor:pointer}.legacy-auth-keypad214 .legacy-auth-reset214{background:#334c3d;color:#fff}.legacy-auth-keypad214 .legacy-auth-confirm214{background:#2c704d;color:#fff}.legacy-auth-keypad214 button:disabled,.legacy-auth-separator214:disabled{opacity:.55;cursor:wait}
html[data-tablet-theme=theme2] .tablet-login.legacy-auth214{background:#332318}html[data-tablet-theme=theme2] .legacy-auth-top214{background:#970600}html[data-tablet-theme=theme2] .legacy-auth-stage214::before{content:"";position:absolute;z-index:-1;inset:-10px;background:url('../assets/food-hotpot.jpg') center/cover;filter:blur(7px)}html[data-tablet-theme=theme2] .legacy-auth-panel214{background:#ffffff91;border:0;border-radius:0}html[data-tablet-theme=theme2] .legacy-auth-panel214 h2,html[data-tablet-theme=theme2] .legacy-auth-combined214 label{color:#111}html[data-tablet-theme=theme2] .legacy-auth-combined214 input,html[data-tablet-theme=theme2] .legacy-auth-separator214{border-color:#c7c7c7;border-radius:0}html[data-tablet-theme=theme2] .legacy-auth-panel214 input:focus{outline-color:#a9272a}html[data-tablet-theme=theme2] .legacy-auth-separator214{color:#111;background:#fff}html[data-tablet-theme=theme2] .legacy-auth-hint214{color:#333!important}html[data-tablet-theme=theme2] .legacy-auth-keypad214 button{border:0;border-radius:0;background:#fff;color:#111}html[data-tablet-theme=theme2] .legacy-auth-keypad214 .legacy-auth-reset214{background:#232323;color:#fff}html[data-tablet-theme=theme2] .legacy-auth-keypad214 .legacy-auth-confirm214{background:#bb2c30;color:#fff}
@media(max-height:640px) and (orientation:landscape){.legacy-auth-top214{height:44px}.legacy-auth-top214 h1{font-size:21px}.legacy-auth-back214{min-height:44px;top:0;left:9px;font-size:20px}.legacy-auth-stage214{padding:4px 0}.legacy-auth-panel214{width:min(76vw,680px);padding:6px 16px}.legacy-auth-panel214 h2{font-size:22px;line-height:26px;margin-bottom:3px}.legacy-auth-panel214 form{gap:4px}.legacy-auth-combined214 label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.legacy-auth-combined214 input{min-height:44px;height:44px;font-size:18px}.legacy-auth-separator214{min-height:44px;height:44px}.legacy-auth-panel214 [data-store-choice]{font-size:11px;line-height:16px}.legacy-auth-hint214{font-size:10px;line-height:13px!important}.legacy-auth-panel214 output{min-height:16px;font-size:10px;line-height:14px}.legacy-auth-keypad214{gap:6px;min-height:194px}.legacy-auth-keypad214 button{font-size:23px}}
@media(max-width:600px){.legacy-auth-top214{height:54px}.legacy-auth-top214 h1{font-size:23px}.legacy-auth-back214{top:4px;left:7px;font-size:19px;min-height:44px}.legacy-auth-stage214{padding:16px 0}.legacy-auth-panel214{width:calc(100% - 28px);padding:22px 18px}.legacy-auth-panel214 h2{font-size:27px;margin-bottom:20px}.legacy-auth-combined214 input{font-size:17px}.legacy-auth-keypad214{gap:10px}}

/* The system keyboard is an explicit choice; the normal masked input stays editable. */
.legacy-auth-panel214 .legacy-auth-keyboard225{flex:none;align-self:flex-start;min-height:44px;max-width:100%;padding:5px 12px;border:1px solid #9ebaa6;border-radius:8px;background:#f0f7f1;color:#205639;font:inherit;font-size:14px;cursor:pointer}
.legacy-auth-panel214 .legacy-auth-keyboard225[aria-pressed=true]{background:#2c704d;color:#fff}
.legacy-auth-panel214 .legacy-auth-keyboard225:disabled{opacity:.55;cursor:wait}
html[data-tablet-theme=theme2] .legacy-auth-panel214 .legacy-auth-keyboard225{border-color:#c7c7c7;border-radius:0;background:#fff;color:#111}
html[data-tablet-theme=theme2] .legacy-auth-panel214 .legacy-auth-keyboard225[aria-pressed=true]{background:#970600;color:#fff}

.legacy-auth-keypad214 button,.legacy-auth-separator214,.legacy-auth-keyboard225{touch-action:manipulation}

/* The complete pad uses the available panel block, including pre-dvh WebViews. */
#tablet-access.tablet-login.legacy-auth214{max-width:none;margin:0;padding:0;border:0;border-radius:0;height:100vh;height:100dvh}
.legacy-auth-panel214 output:empty{display:none}
@media(max-height:640px) and (orientation:landscape){
 .legacy-auth-panel214 .tablet-discovery-store{padding:4px 8px;line-height:1.25}
}
@media(max-width:600px) and (orientation:portrait){
 .legacy-auth-top214{height:48px}.legacy-auth-top214 h1{font-size:22px}.legacy-auth-back214{top:2px}
 .legacy-auth-stage214{padding:8px 0}.legacy-auth-panel214{padding:12px 14px}
 .legacy-auth-panel214 h2{font-size:23px;line-height:28px;margin-bottom:8px}
 .legacy-auth-panel214 form{gap:6px}.legacy-auth-panel214 .tablet-discovery-store{padding:5px 8px;line-height:1.25}
 .legacy-auth-combined214 input,.legacy-auth-separator214{height:44px;min-height:44px}
 .legacy-auth-keypad214{gap:6px;min-height:194px}
}
@media(max-height:460px) and (orientation:landscape){
 .legacy-auth-panel214{width:min(94vw,920px)}.legacy-auth-panel214 h2{display:none}
 .legacy-auth-panel214 form{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(210px,1.05fr);grid-template-rows:auto auto auto auto minmax(0,1fr);gap:4px 12px;align-items:start}
 .legacy-auth-panel214 form>[data-store-choice]{grid-column:1;grid-row:1}
 .legacy-auth-panel214 form>.legacy-auth-combined214{grid-column:1;grid-row:2}
 .legacy-auth-panel214 form>.legacy-auth-hint214{grid-column:1;grid-row:3}
 .legacy-auth-panel214 form>.legacy-auth-keyboard225{grid-column:1;grid-row:4}
 .legacy-auth-panel214 form>output{grid-column:1;grid-row:5}
 .legacy-auth-panel214 form>.legacy-auth-keypad214{grid-column:2;grid-row:1/6;align-self:stretch;height:100%;min-height:194px}
}

/* The shell may shrink below the old360px floor; the panel itself owns tiny-screen scrolling. */
.legacy-auth-shell214{min-height:0}
