/* Only the separately selected phone interface uses these rules. */
html.tj-mobile-active{scroll-padding-top:12px;--tj-mobile-visible-height:100dvh;--tj-mobile-viewport-top:0px;--tj-mobile-keyboard-gap:0px}
html.tj-mobile-active body{overflow-x:clip;overscroll-behavior-y:contain}
html.tj-mobile-active .app{display:block;padding:0;min-height:100dvh}
html.tj-mobile-active .sidebar{display:none}
html.tj-mobile-active .house-margin{position:static;inset:auto;width:100%;height:auto;min-height:64px;display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:10px 18px;border:0;border-bottom:1px solid var(--line);overflow:visible}
html.tj-mobile-active .house-margin>.trajkot-home-logo{width:90px;margin:0}
html.tj-mobile-active .house-margin .logo{width:90px;margin:0}
html.tj-mobile-active .house-art{display:none}
html.tj-mobile-active .house-margin #device-limit-banner{padding:0;width:100%}
html.tj-mobile-active .house-margin .device-budget-label{flex:1;font-size:11px;letter-spacing:0;margin:0}
html.tj-mobile-active .house-margin .device-budget-line{align-items:center;gap:6px;flex-wrap:wrap}
html.tj-mobile-active .house-margin .device-budget-line>strong{font-size:17px;line-height:1.2;white-space:nowrap}
html.tj-mobile-active .house-margin .device-budget-left{font-size:11px;margin:0 0 0 auto}
html.tj-mobile-active .house-margin .device-budget-track,html.tj-mobile-active .house-margin .device-budget-actions,html.tj-mobile-active .house-margin .device-budget-existing-note{display:none}
html.tj-mobile-active .house-margin .device-limit-notice,html.tj-mobile-active .house-margin .device-budget-error{margin:7px 0 0;font-size:12px}
html.tj-mobile-active .main{padding:12px 18px 28px;width:100%;min-width:0}
html.tj-mobile-active .topbar{margin:0 0 12px;min-height:18px;align-items:center;gap:12px}
html.tj-mobile-active .topbar>div:first-child{flex:1;min-width:35px}
html.tj-mobile-active .progressline{margin:0;height:3px}
html.tj-mobile-active .draft{font-size:10px;line-height:1.3;text-align:right;max-width:65%;color:var(--muted)}
html.tj-mobile-active .draft[data-mobile-saved="failed"]{color:var(--red)}
html.tj-mobile-active .panel{max-width:720px;width:100%;min-width:0}
html.tj-mobile-active .screen.active{animation:none}
html.tj-mobile-active .screen:before{display:none}
html.tj-mobile-active .screen>h1{font-size:clamp(26px,7.1vw,34px);line-height:1.16;margin:0 0 14px}
html.tj-mobile-active .screen>.lead{font-size:14px;line-height:1.5;margin:0 0 22px}
html.tj-mobile-active .actions{position:static;display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 0;padding:16px 0 0;min-height:64px;background:transparent;border-top:1px solid var(--line);box-shadow:none}
html.tj-mobile-active .actions>.btn{min-height:48px;flex:1;min-width:0;padding:12px 16px;font-size:14px;white-space:normal}
html.tj-mobile-active .btn,html.tj-mobile-active .counter button,html.tj-mobile-active .mini-counter button{min-height:44px;touch-action:manipulation}
html.tj-mobile-active input:not([type="checkbox"]):not([type="radio"]),html.tj-mobile-active textarea,html.tj-mobile-active select{font-size:16px;min-height:48px}
html.tj-mobile-active button:focus-visible,html.tj-mobile-active summary:focus-visible{outline:2px solid var(--olive);outline-offset:3px}
html.tj-mobile-active .tj-mobile-shell{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center;margin:0 -4px 20px;position:relative;z-index:30}
html.tj-mobile-active .tj-mobile-shell[hidden]{display:none}
html.tj-mobile-active .tj-mobile-back,html.tj-mobile-active .tj-mobile-tools>summary{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink);font:400 28px/1 var(--config-font);cursor:pointer;list-style:none}
html.tj-mobile-active .tj-mobile-back[hidden]{visibility:hidden;display:block}
html.tj-mobile-active .tj-mobile-tools>summary{font-size:23px;letter-spacing:2px}
html.tj-mobile-active .tj-mobile-tools>summary::-webkit-details-marker{display:none}
html.tj-mobile-active .tj-mobile-stage-label{min-width:0}
html.tj-mobile-active .tj-mobile-stage-label small{display:block;color:var(--muted);font-size:10px;margin:0 0 4px}
html.tj-mobile-active .tj-mobile-stage-label strong{display:block;color:var(--ink);font-size:14px;line-height:1.3;font-weight:650;overflow-wrap:anywhere}
html.tj-mobile-active .tj-mobile-tool-menu{position:absolute;right:0;top:50px;min-width:220px;max-width:calc(100vw - 36px);background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:var(--shadow);z-index:40}
html.tj-mobile-active .tj-mobile-tool-menu button{display:block;width:100%;min-height:48px;padding:12px;border:0;border-radius:6px;background:transparent;color:var(--ink);font-size:14px;text-align:left;cursor:pointer}
html.tj-mobile-active .tj-mobile-tool-menu button:hover{background:color-mix(in srgb,var(--olive) 10%,transparent)}
html.tj-mobile-active .tj-mobile-tool-menu button[hidden]{display:none}
html.tj-mobile-active .tj-mobile-parked-draft{display:grid;grid-template-columns:minmax(0,1fr) auto 32px;align-items:center;gap:8px;padding:12px;border:1px solid var(--olive);border-radius:10px;background:var(--paper);margin:14px 0 20px}
html.tj-mobile-active .tj-mobile-parked-draft strong{display:block;font-size:14px;overflow-wrap:anywhere}
html.tj-mobile-active .tj-mobile-parked-draft small{display:block;margin:4px 0 0;font-size:11px;line-height:1.35;color:var(--muted)}
html.tj-mobile-active .tj-mobile-parked-draft .btn{padding:8px 12px;font-size:13px}
html.tj-mobile-active .tj-mobile-draft-remove{border:0;background:transparent;color:var(--muted);font:24px/1 var(--config-font);width:32px;min-height:44px;cursor:pointer}
html.tj-mobile-active .tj-mobile-stages{position:fixed;inset:var(--tj-mobile-viewport-top) 0 auto;width:100vw;max-width:none;height:var(--tj-mobile-visible-height);max-height:none;margin:0;padding:18px;border:0;border-radius:0;background:var(--paper);color:var(--ink);overflow-y:auto;overscroll-behavior:contain}
html.tj-mobile-active .tj-mobile-stages::backdrop{background:var(--cream)}
html.tj-mobile-active .tj-mobile-stages-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
html.tj-mobile-active .tj-mobile-stages-heading h2{font-size:24px;font-weight:500;margin:0}
html.tj-mobile-active .tj-mobile-stages-heading button{width:44px;height:44px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:50%;font-size:24px;cursor:pointer}
html.tj-mobile-active .tj-mobile-stages-list{display:grid;gap:8px}
html.tj-mobile-active .tj-mobile-stages-list button{min-height:48px;text-align:left;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--cream);color:var(--ink);font-size:14px;line-height:1.4}
html.tj-mobile-active .tj-mobile-stages-list button:disabled{opacity:.45}
html.tj-mobile-active .tj-mobile-stages-list button[aria-current]{border-color:var(--olive);font-weight:700}
html.tj-mobile-active.tj-mobile-keyboard .tj-mobile-builder-footer{position:static}
html.tj-mobile-active.tj-mobile-keyboard .main{padding-bottom:calc(28px + var(--tj-mobile-keyboard-gap))}
html.tj-mobile-active body.tj-mobile-editing>.app>.house-margin,html.tj-mobile-active body.tj-mobile-editing .topbar{display:none}
html.tj-mobile-active body.tj-mobile-editing .main{padding:0 18px 18px}
@media(prefers-reduced-motion:reduce){html.tj-mobile-active *,html.tj-mobile-active *:before,html.tj-mobile-active *:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Always keep a reachable close target when options change the rendered view. */
html.tj-mobile-active .tj-mobile-stages-heading{align-items:flex-start}
html.tj-mobile-active .tj-mobile-stages-heading h2{min-width:0;overflow-wrap:break-word}
html.tj-mobile-active .tj-mobile-stages-heading button{flex:0 0 44px;min-width:44px;min-height:44px;display:grid;place-items:center;line-height:1;padding:0;touch-action:manipulation}
html.tj-mobile-active .tj-mobile-tool-menu .tj-mobile-tool-close{text-align:right;font-size:13px;border-bottom:1px solid var(--line);border-radius:0;margin-bottom:4px}
html.tj-mobile-active .tj-mobile-stages-list [data-mobile-reset="all"]{margin-top:8px;border-color:var(--olive);font-weight:650}
