/* Readable controls and a compact, tabbed workspace at every width. */
.filter-tabs{display:flex;gap:6px;background:#e8eee7;border-radius:10px;padding:5px;margin:0 0 16px}.filter-tabs button{flex:1;border:0;border-radius:7px;background:none;padding:12px 8px;font-size:15px;font-weight:600;min-height:44px}.filter-tabs button[aria-selected=true]{background:#fff;color:var(--green);box-shadow:0 1px 4px #183a1712}.filter-grid[hidden]{display:none}.filter-title{font-size:16px}.filter p{font-size:14px}.filter-bottom strong{font-size:14px}.edit{font-size:14px;min-height:44px;min-width:44px}.switch{width:44px;height:28px;padding:3px}.switch:after{width:22px;height:22px}.switch[aria-checked=true]:after{transform:translateX(16px)}.filter-head>.switch{position:relative}.filter-head>.switch:before{content:'';position:absolute;inset:-8px 0}.result-reopen{display:none}.dialog-content p,.field{font-size:15px}.field input,.field select{font-size:16px;min-height:48px}.dialog-hint{font-size:14px}.dialog-actions .button,.selection-actions .button{font-size:15px;min-height:46px}.number-picker button{font-size:15px;min-height:40px}.dialog-head h2{font-size:21px}.close{min-height:44px;min-width:44px}.result-pager{display:flex;justify-content:space-between;gap:12px;margin:16px 0}.result-pager button{flex:1;min-height:46px;font-size:15px}button:disabled{opacity:.4;cursor:default}.result-panel .ball{font-size:15px}.result-panel .fineprint{font-size:14px}.filter{min-height:138px}.toolbar small{font-size:14px}.toolbar strong{font-size:15px}.button{font-size:14px}.section-top small{font-size:14px}.result-head p{font-size:14px}.generate-config{font-size:14px}.stepper button{min-width:40px;min-height:40px}.result-meta{font-size:14px}.result-meta small{font-size:14px}.ticket-top,.ticket-top button,.ticket-details{font-size:14px}.result-foot button{font-size:14px}.result-pager~.selection-actions>*{flex:1}#result-dialog{max-height:90dvh;overflow-y:auto}#result-dialog .balls{justify-content:space-between;gap:5px}#result-dialog .ball{width:40px;height:40px;font-size:16px}#result-dialog .ticket{padding:20px 12px}#result-dialog .ticket-top{margin-bottom:16px}#result-dialog .ticket-details{margin-top:16px}#result-dialog .dialog-content{padding:20px}.filter-bottom{margin-top:4px}
@media(max-width:900px){
 .rail{position:fixed;inset:auto 0 0;width:100%;height:calc(64px + env(safe-area-inset-bottom));padding:0 0 env(safe-area-inset-bottom);z-index:30;background:#fff;border-right:0;border-top:1px solid var(--line)}.brand,.rail-label,.rail-note,.rail-bottom{display:none}.rail nav{margin:0;display:flex;height:64px}.nav{width:25%;border-radius:0;margin:0;padding:5px;font-size:14px;display:flex;flex-direction:column;justify-content:center;gap:2px}.nav>span{font-size:23px;width:auto}.nav i{display:none}.shell{margin-left:0;padding-bottom:calc(70px + env(safe-area-inset-bottom))}header{height:48px;padding:0 18px;font-size:14px}.header-right{font-size:14px}.header-right .prototype,.breadcrumb,.slash{display:none}main{padding:20px 18px;max-width:700px}.page-heading{margin-bottom:16px;gap:10px}.eyebrow{display:none}h1{font-size:25px;margin:0 0 6px}.sub{font-size:14px;line-height:1.5}.page-heading>.button{font-size:14px;padding:8px;min-height:44px}.building .page-heading>.button{font-size:0;width:44px;padding:0;flex-shrink:0}.building .page-heading>.button:after{content:'불러오기';font-size:14px}.toolbar{padding:10px 12px;margin-bottom:16px;min-height:58px;align-items:center}.toolbar small{font-size:14px}.toolbar .count{display:none}.toolbar-actions{flex-direction:row}.toolbar-actions .button{font-size:14px;padding:8px;min-height:40px}.toolbar-actions .quiet{display:block;font-size:0;min-width:36px}.toolbar-actions .quiet:after{content:'↻';font-size:22px}.preset-icon{display:none}.build-layout{display:block}.section-top{margin-bottom:12px}.section-top h2{font-size:17px}.section-top small{display:none}.filter-tabs{margin-bottom:12px}.filter-tabs button{font-size:14px;padding:10px 5px}.filter-grid{grid-template-columns:1fr 1fr;gap:10px}.filter{padding:13px 12px 8px;min-height:102px}.filter-title{font-size:15px}.filter-icon,.filter p{display:none}.filter-bottom{margin-top:10px}.filter-bottom strong{font-size:14px;line-height:1.4}.edit{font-size:14px}.filter-head{gap:4px}.switch{width:38px;height:24px;padding:3px}.switch:after{width:18px;height:18px}.switch[aria-checked=true]:after{transform:translateX(14px)}.count{font-size:14px}.building .note-strip,.building footer{display:none}.building main{padding-bottom:130px}.result-panel{position:fixed;bottom:calc(64px + env(safe-area-inset-bottom));left:0;right:0;z-index:25;border:0;border-top:1px solid var(--line);border-radius:0;background:#fff;box-shadow:0 -6px 22px #17321b08}.result-head,.result-meta,.result-body>#tickets,.result-foot,.result-body>.fineprint{display:none}.result-body{padding:10px 18px 12px;max-width:700px;margin:auto}.generate-config{margin-bottom:8px;gap:10px;justify-content:flex-start;font-size:14px}.stepper{margin-left:auto}.stepper button{min-height:34px;min-width:36px;padding:0}.stepper span{font-size:16px}.result-reopen{display:block;font-size:14px;min-height:36px;padding:6px 9px}.generate{font-size:16px;padding:12px;min-height:48px}.generate span{margin-left:10px}.stat-card small{font-size:14px}.stat-card strong{font-size:25px}.stat-card p{font-size:14px}.stat-cards{gap:8px}.number-cell{min-height:53px}.number-cell strong{font-size:16px}.number-cell small{font-size:14px}.bar-row{font-size:14px;margin:20px 0}.bar-row>span{width:38px}.fineprint{font-size:14px}.panel{padding:18px}.saved-grid{grid-template-columns:1fr}.saved-controls{font-size:14px}.saved-controls button{font-size:14px;min-height:44px}.saved-controls input{width:18px;height:18px;vertical-align:middle}.saved-grid .ball{font-size:16px;width:39px;height:39px}.ticket-top,.ticket-top button,.ticket-details{font-size:14px}.history-row b{font-size:15px}.history-row small{font-size:14px}.history-row{flex-wrap:wrap}.history-row .balls{gap:5px}.history-row .ball{font-size:14px;width:32px;height:32px}.history-row .meta{display:none}.segmented button{font-size:14px;min-height:40px;padding:6px 9px}dialog{max-height:85dvh;overflow-y:auto}.dialog-content{padding:20px}.number-picker{grid-template-columns:repeat(7,1fr)}#toast{bottom:calc(205px + env(safe-area-inset-bottom));font-size:14px;max-width:90vw;width:max-content}footer{font-size:14px;padding:18px}.building .page-heading .sub{font-size:14px}
}
@media(max-width:900px){.result-panel{top:auto}.building .shell{min-height:100dvh}.building main{padding-bottom:125px}.building .page-heading .sub,.building .section-top{display:none}.building .toolbar-actions .button{white-space:nowrap}.building .toolbar{margin-bottom:12px}.building .page-heading{margin-bottom:12px}}
@media(max-width:360px){main{padding-left:12px;padding-right:12px}.filter{padding:12px 9px 6px}.filter-title{font-size:14px}.filter-bottom strong{font-size:14px}.filter-grid{gap:8px}.toolbar-left strong{font-size:14px}.building .toolbar small{display:none}h1{font-size:22px}}
@media(max-width:900px) and (max-height:700px){.building main{padding-top:12px}.building .page-heading{margin-bottom:10px}.building .page-heading .sub{display:none}.building .toolbar{margin-bottom:10px}.filter-tabs{margin-bottom:9px}.filter{min-height:93px}.filter-bottom{margin-top:4px}}
@media(max-width:900px){.rail nav{grid-template-columns:repeat(5,minmax(0,1fr))}.rail .nav{min-width:0;padding-left:2px;padding-right:2px;font-size:14px}.shell:has(#stores-frame) main{padding:10px 8px 85px}}
@media(max-width:900px){.rail .nav{width:20%;flex:1 1 0}}
