@media(min-width:1550px){main{padding:0 50px}.app-header{margin:0 30px;padding:0 20px}.hero{min-height:210px}}
@media(max-width:1250px){.app-header{gap:16px;padding:0 8px}.brand{font-size:33px;padding-right:22px;gap:9px}.brand img{width:42px;height:42px}.primary-nav>a,.primary-nav summary{font-size:14px;padding:10px 13px}.project-menu>summary{font-size:14px}.history-link{font-size:14px;padding-left:12px}.project-menu{max-width:210px}.project-menu #project-label{max-width:140px}main{padding:0 28px}.hero{min-height:180px}.mode-icon{width:120px;height:120px}#page-heading{gap:16px}h1{font-size:43px}#page-heading p{font-size:18px}#save-status{left:136px;bottom:23px;font-size:12px;padding:7px 10px}.hero-action-row{gap:8px}.hero-action-row button{font-size:14px;padding:9px 13px;min-height:50px;gap:6px}.export-menu>summary{min-height:50px}.hero-action-row .ui-icon{width:26px;height:26px}.preparation-strip{gap:20px;grid-template-columns:minmax(230px,1.2fr) minmax(220px,1fr) minmax(240px,1fr)}.run-actions,.settings-panel{padding-left:20px}.primary{font-size:18px;padding:12px 17px;min-height:58px}}
@media(max-width:1000px){.app-header{gap:12px}.brand{font-size:30px;padding-right:16px}.project-menu{max-width:150px}.project-menu #project-label{max-width:100px}.history-link{font-size:0;padding-left:6px}.primary-nav>a,.primary-nav summary{padding:10px;font-size:13px}.hero{flex-wrap:wrap;min-height:185px;padding-bottom:26px}#page-heading{flex-basis:100%}h1{font-size:43px}.heading-copy{padding-top:8px}#page-heading p{max-width:620px}#hero-actions{position:absolute;right:0;bottom:10px;padding:0}#save-status{position:static;max-width:none;font-size:10px;margin-right:12px;background:none;padding:0}#save-status:before{display:none}.mode-icon{width:105px;height:105px}#result{min-height:340px}.preparation-strip{grid-template-columns:1fr 1fr;gap:22px}.run-actions{grid-column:1/-1;border:0;padding:8px 0 0;justify-self:end;width:min(400px,100%)}.preparation-strip .settings-panel{padding-left:22px}}
@media(max-width:700px){.app-header{height:auto;min-height:126px;flex-wrap:wrap;margin:0 16px;padding:15px 0 11px;gap:12px;justify-content:space-between}.brand{font-size:30px;padding:0;border:0;gap:8px}.brand img{width:38px;height:38px}.primary-nav{order:4;width:100%;justify-content:space-between;gap:3px}.primary-nav>a,.primary-nav summary{font-size:12px;padding:9px 13px;min-height:38px}.primary-nav .nav-more{flex:0 1 auto;max-width:42%}#more-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.nav-more .nav-menu{left:auto;right:0}.project-menu{margin-left:auto;max-width:140px}.project-menu>summary{padding:0;gap:5px;font-size:11px}.project-menu #project-label{max-width:90px}.project-menu .ui-icon{width:27px;height:27px}.history-link{border:0;padding:0}.history-link .ui-icon{width:28px;height:28px}.project-popover{position:fixed;top:66px;right:16px;width:min(320px,calc(100% - 32px))}main{padding:0 18px}.hero{padding:22px 0 15px;min-height:190px;gap:12px}.mode-icon{width:72px;height:72px}#page-heading{gap:10px;align-items:flex-start}.heading-copy{padding-top:4px}h1{font-size:32px;letter-spacing:-1px;line-height:1.05;margin-bottom:8px}#page-heading p{font-size:14px;line-height:1.4;font-weight:450;letter-spacing:0}#hero-actions{position:static;width:100%;padding:0;display:flex;justify-content:space-between;align-items:center;min-height:38px}#save-status{font-size:9px;max-width:40%;margin-right:5px;white-space:normal;line-height:1.4}#result-actions{margin-left:auto}.hero-action-row{gap:6px}.hero-action-row button{font-size:10px;min-height:38px;padding:7px 9px;gap:4px;border-radius:11px}.hero-action-row .ui-icon{width:22px;height:22px}.export-menu>summary{font-size:10px;min-height:38px;padding:8px;border-radius:11px}.hero-action-row .nav-menu{min-width:150px}#result{padding:12px 0 0;min-height:0}.preparation-strip,.preparation-strip:not(:has(>#run-actions)),body[data-mode=numbers] .preparation-strip{grid-template-columns:1fr;gap:20px;margin-top:20px;padding-top:20px}.settings-panel,.preparation-strip .settings-panel{border:0;border-top:1px solid var(--line);padding:20px 0 0}.run-actions{width:100%;justify-self:stretch;margin:0;grid-column:auto;padding:0}.run-button{min-height:58px;font-size:19px;border-radius:17px}.run-note{font-size:11px;margin-top:10px}.section-title h2{font-size:18px}#admission-count{font-size:13px}.input-panel #raw{height:125px;font-size:16px;line-height:1.45}.list-tools{gap:14px}.file-button,.text-button{min-height:36px;font-size:12px}.settings-panel input,.settings-panel select,#list-options input,#list-options select,#list-options textarea{font-size:16px;min-height:45px}.settings-panel details textarea{font-size:16px}.check{font-size:14px;margin:15px 0}.advanced-settings>summary,#list-options>summary,#audit>summary{min-height:34px;padding-top:5px;font-size:12px}.fields-grid{gap:15px}.settings-panel label{font-size:13px}.protocol-meta{font-size:9px;margin:22px 0 12px}.project-row,.history-row{align-items:flex-start;flex-direction:column;gap:12px}.row-actions{width:100%}.row-actions button{min-height:42px;font-size:12px}.page-toolbar button{font-size:13px;padding:10px 14px}.prose h2{font-size:22px}.prose p{font-size:14px}.presenter-toolbar{flex-direction:column;align-items:flex-start;margin-bottom:25px}.presenter-toolbar strong span{display:none}.presenter-toolbar button{font-size:11px;padding:8px 10px;min-height:38px}#presenter{padding:20px 18px}.presenter-toolbar>div{gap:6px}footer{font-size:9px;gap:15px;line-height:1.5;padding:17px 0 max(20px,env(safe-area-inset-bottom))}#notice{bottom:15px;font-size:12px;width:max-content;padding:12px 16px;max-width:calc(100% - 26px)}}
@media(max-width:380px){.brand{font-size:27px}.brand img{width:34px;height:34px}.project-menu .ui-icon{display:none}.project-menu{max-width:118px}.project-menu #project-label{max-width:95px}.app-header{gap:8px}.primary-nav>a,.primary-nav summary{padding:8px 10px;font-size:11px}h1{font-size:28px}.mode-icon{width:64px;height:64px}#page-heading{gap:8px}.hero-action-row button{font-size:9px;padding:7px;gap:3px}.hero-action-row .ui-icon{width:19px;height:19px}#save-status{font-size:8px;max-width:33%}.primary{font-size:18px}}
@media(max-width:700px){.app-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;min-height:120px}.brand{grid-column:1;grid-row:1}.project-menu{grid-column:2;grid-row:1;width:auto;min-width:0;max-width:100%;justify-self:end}.project-menu>summary{min-width:0;min-height:44px}.project-menu #project-label{min-width:0;max-width:90px}.history-link{grid-column:3;grid-row:1;min-width:34px;min-height:44px}.primary-nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,max-content) minmax(0,1fr);justify-content:normal;min-width:0}.primary-nav .nav-more{min-width:0;max-width:none;width:100%}.primary-nav>a,.primary-nav summary{min-height:44px;justify-content:center}#more-label{min-width:0;text-align:center;line-height:26px}.hero{min-height:200px}#hero-actions{display:block}#save-status{display:block;max-width:100%;margin:0 0 12px;font-size:11px;line-height:1.5}#result-actions{width:100%}.hero-action-row>button{flex:1;min-height:44px;font-size:12px}.export-menu>summary{min-height:44px;min-width:44px;font-size:12px}.hero-action-row .ui-icon{width:24px;height:24px}.file-button,.text-button{min-height:44px}.project-row .row-actions button{min-height:44px}}
@media(max-width:380px){.brand{font-size:25px}.project-menu #project-label{max-width:70px}.hero-action-row>button{font-size:11px}.primary-nav>a,.primary-nav summary{padding-left:9px;padding-right:9px}}
@media(max-width:420px){.result-view .pair-ticket{display:flex;flex-direction:column;align-items:stretch;padding:20px 24px;gap:8px}.result-view .pair-rank{padding-right:65px}.result-view .pair-person{font-size:24px;text-align:left}.result-view .pair-link{transform:rotate(90deg);align-self:center;font-size:22px;line-height:1}.result-view .pair-ticket>.ticket-icon{position:absolute;width:55px;height:55px;right:12px;top:10px}.result-view .santa-columns{display:none}.result-view .santa-ticket{grid-template-columns:minmax(0,1fr);padding:22px 24px;gap:8px}.result-view .santa-giver,.result-view .santa-recipient{grid-column:1;grid-row:auto;font-size:24px}.result-view .santa-giver{padding-right:36px}.result-view .santa-arrow{grid-column:1;grid-row:auto;transform:rotate(90deg);justify-self:center;font-size:24px;line-height:1}.result-view .santa-gift{position:absolute;right:12px;top:12px;width:45px;height:45px}.result-view .bingo-cell.is-free strong{font-size:11px;white-space:nowrap;letter-spacing:-.3px}.result-view .cols-5 .bingo-cell.is-free strong{font-size:8px}}
