/* Controls and navigation share one scale. Print styles remain in style.css. */
@media screen {
  .mobile-game-title,.brand .mobile-back{display:none}
  .ui-icon{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  button,a,input,select,textarea{scroll-margin:16px}
  .login-card{border-radius:16px}
  .primary-button,.secondary-button{min-height:44px;padding:10px 16px;border-radius:7px;font-size:14px;font-weight:600;line-height:1.35}
  .text-button{min-height:40px;font-size:14px;line-height:1.4}
  .icon-button{min-width:40px;min-height:40px;height:40px;font-size:22px;border-radius:7px}
  button:active:not(:disabled){filter:brightness(.93)}
  .header-tools{gap:12px}.settings-button{min-height:44px;font-size:14px;gap:8px}
  .profile-button{min-height:44px;padding:4px 8px;border-radius:8px;font-size:14px}
  .profile-button:hover{background:var(--soft)}.profile-button .avatar{width:36px;height:36px;font-size:20px}
  .room-picker{display:inline-flex;align-items:center;gap:8px;min-height:40px;max-width:320px;padding:4px 10px;border:1px solid var(--line);border-radius:7px;font-size:13px;text-align:left;background:var(--white)}
  .room-picker .ui-icon{width:18px;height:18px}.room-picker #room-label{color:var(--ink)}
  .collaboration-bar{height:44px;max-height:44px;gap:10px;margin-bottom:8px}
  #collaborate-button{min-height:40px;padding:4px 12px;font-size:13px;border-radius:7px}
  #collaborate-button:hover{background:var(--soft)}
  #game .board-toolbar{height:48px}#game .board-toolbar .icon-button{min-width:40px;height:40px}
  #game .board-actions .primary-button,#game .board-actions .secondary-button{min-height:44px;font-size:14px;padding:9px 14px}
  #game .clue-kicker .icon-button{min-width:40px;min-height:40px;height:40px;font-size:24px}
  #game .entry-hint .text-button{font-size:13px}
  .more-menu{min-width:240px;padding:6px;border-radius:12px;border:1px solid var(--line);background:var(--white)}
  .more-menu button{width:100%;min-height:44px;padding:10px 14px;font-size:14px;text-align:left;border-radius:6px}
  .action-menu-group+.action-menu-group{border-top:1px solid var(--line);padding-top:5px;margin-top:5px}
  .action-choices{display:grid;gap:10px}.action-choices button{min-height:56px;text-align:left;font-size:16px}
  .zoom-controls{display:grid;grid-template-columns:64px 1fr 64px;gap:16px;align-items:center;text-align:center;font-size:20px;margin:8px 0 20px}
  .zoom-controls button{height:56px;font-size:28px}
  dialog[open]{display:flex;flex-direction:column;width:min(640px,calc(100vw - 40px));max-height:calc(var(--visible-height,100dvh) - 40px);padding:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--white);color:var(--ink)}
  dialog::backdrop{background:#0007}
  .dialog-top{flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0;padding:16px 20px;border-bottom:1px solid var(--line)}
  #dialog-eyebrow{display:none}.dialog-top h2{font:600 21px/1.3 var(--sans);letter-spacing:-.3px;margin:0;overflow-wrap:anywhere}
  #close-dialog{flex:none;width:44px;height:44px;font-size:26px;background:var(--soft);border-radius:50%}
  #dialog-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px;font-size:14px;line-height:1.55}
  #dialog-content p:first-child{margin-top:0}#dialog-content h3{font:600 16px/1.4 var(--sans);margin:24px 0 12px}
  #dialog-content form>label{display:block;margin-top:14px;font-size:14px}
  #dialog-content input:not([type=checkbox]):not([type=radio]):not([type=file]),#dialog-content select,#dialog-content textarea{font-size:16px;min-height:46px;border-radius:6px;padding:10px 12px}
  .dialog-actions,.management-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
  .account-row,.profile-choice{min-height:56px;font-size:15px;padding:12px;gap:12px;border-radius:8px}
  .account-row small,.dialog-note{font-size:13px;line-height:1.5}
  .account-identity{display:flex;flex-direction:column;gap:4px;margin-bottom:24px;font-size:16px}.account-identity>span{color:var(--muted);font-size:14px}
  .account-section{border-top:1px solid var(--line);margin-bottom:16px}.account-section>summary{min-height:56px;padding:16px 0;cursor:pointer;font-weight:600}
  #account-offline,#account-offline-clear,#admin-users,#account-logout{display:block;width:100%;text-align:left;margin:8px 0}
  .check-label{display:flex;align-items:center;gap:12px;min-height:48px;font-size:14px}
  .check-label input{width:22px;height:22px;flex:none;accent-color:var(--green)}
  dialog.settings-dialog{width:min(820px,calc(100vw - 40px));max-height:calc(var(--visible-height,100dvh) - 40px);overflow:hidden}
  .settings-dialog #dialog-content{padding:0 24px 20px;scroll-padding-top:68px}
  .settings-tabs{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:0 -24px 24px;padding:10px 24px;background:var(--white);border-bottom:1px solid var(--line)}
  .settings-tabs button{min-height:44px;font-size:14px;border:0;border-radius:7px;padding:8px;background:transparent;color:var(--muted)}
  .settings-tabs button.active{background:var(--soft);color:var(--ink);font-weight:650}
  .settings-group{display:block;min-width:0;margin:0 0 24px;padding:0;border:0;border-radius:0}
  .settings-group>legend,.settings-group>h3{float:none;padding:0;font:650 15px/1.4 var(--sans);margin:0 0 4px;color:var(--ink)}
  .setting-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,44%);align-items:center;gap:20px;min-height:64px;padding:12px 0;margin:0;border-bottom:1px solid var(--line);font-size:14px}
  .setting-row>span{min-width:0;font-size:14px;line-height:1.45}.setting-row small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:3px}
  .setting-row select{width:100%;min-width:0;font-size:14px}
  .setting-check{grid-template-columns:minmax(0,1fr) 44px;cursor:pointer}
  .setting-check input[type=checkbox]{appearance:none;position:relative;width:44px;height:26px;min-height:0;margin:0;border:1px solid var(--line);border-radius:20px;background:var(--track);cursor:pointer;flex:none}
  .setting-check input[type=checkbox]::before{content:'';position:absolute;width:20px;height:20px;left:2px;top:2px;border-radius:50%;background:var(--muted)}
  .setting-check input[type=checkbox]:checked{background:var(--green);border-color:var(--green)}
  .setting-check input[type=checkbox]:checked::before{left:20px;background:var(--button-text)}
  .theme-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:0;margin:0 0 24px;padding:0}
  .theme-options>legend{font-size:15px;font-weight:650;padding:0;margin-bottom:12px}
  .theme-option{min-height:80px;display:flex;align-items:center;gap:12px;padding:14px;border-radius:10px;font-size:15px;cursor:pointer;border:1px solid var(--line)}
  .theme-option:has(input:checked){border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);background:var(--soft)}
  .theme-option input{width:20px;height:20px;flex:none;accent-color:var(--green)}
  .theme-option small{font-size:12px}.theme-swatch{width:26px;height:32px;flex:none;border-radius:5px}
  .settings-note,.settings-status{font-size:13px;line-height:1.5;color:var(--muted)}
  .settings-status{min-height:20px;margin:12px 0 0}.settings-presets>div{display:flex;gap:10px;margin:12px 0}
  .settings-transfer{margin:14px 0}.settings-transfer summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:14px;list-style:revert}
  .settings-transfer summary::after{content:'⌄';font-size:20px;margin-left:auto}
  .reference-label{font-size:12px}.reference-text{font-size:16px}
  .settings-transfer .text-button{padding:8px 16px}
  .key-binding{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,1.5fr);gap:16px;align-items:center;min-height:60px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
  .key-binding>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.binding-chip,.binding-add{min-height:36px;padding:7px 10px;border-radius:6px;font-size:13px}
  .archive-facet{font-size:13px}.archive-toolbar select,.archive-toolbar input{font-size:14px}
}
@media screen and (max-width:760px),screen and (max-width:1000px) and (pointer:coarse){
  /* Touch controls use visible 48px surfaces rather than oversized invisible hit boxes. */
  .primary-button,.secondary-button,.text-button,.icon-button,.settings-button,.profile-button{min-height:48px;font-size:15px}
  .icon-button{min-width:48px;height:48px}.ui-icon{width:24px;height:24px}
  .text-button{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px}
  .nav-link{min-height:48px;font-size:15px}
  .login-card button{min-height:48px}
  .site-header .brand{min-height:48px}.header-tools{gap:4px}.profile-button{padding:4px 8px}
  html[data-view="spielen"] body{grid-template-rows:calc(56px + env(safe-area-inset-top)) minmax(0,1fr)}
  html[data-view="spielen"] .site-header{height:calc(56px + env(safe-area-inset-top));min-height:56px;padding-left:12px;padding-right:8px}
  html[data-view="spielen"] .site-header .brand{width:48px;min-width:48px;justify-content:center}
  html[data-view="spielen"] .site-header .brand>span,html[data-view="spielen"] .site-header .brand>svg:not(.mobile-back){display:none}
  html[data-view="spielen"] .site-header .brand .mobile-back{display:block;width:24px;height:24px;fill:none}
  html[data-view="spielen"] .mobile-game-title{display:flex;flex-direction:column;justify-content:center;gap:1px;flex:1;font-size:16px;line-height:1.25}
  html[data-view="spielen"] #mobile-header-timer{font-size:16px;color:var(--muted);font-variant-numeric:tabular-nums}
  html[data-view="spielen"] #game .puzzle-heading{display:none}
  html[data-view="spielen"] .settings-button{min-width:48px;min-height:48px;padding:10px}
  html[data-view="spielen"] .profile-button{min-height:48px;gap:4px}
  html[data-view="spielen"] #game .collaboration-bar{height:48px;min-height:48px;max-height:48px;gap:8px;margin-bottom:6px}
  html[data-view="spielen"] #room-switch-button{flex:1;min-width:0;min-height:48px;max-width:58%;font-size:14px;padding:8px 10px;gap:4px}
  html[data-view="spielen"] #room-label{max-width:none;font-size:14px}
  html[data-view="spielen"] #collaborate-button{min-height:48px;border:1px solid var(--line);background:var(--white);font-size:14px;padding:8px 10px;white-space:nowrap;margin-left:auto}
  html[data-view="spielen"] #live-status{display:none}
  html[data-view="spielen"] #game .board-toolbar{height:56px;padding:4px 6px;gap:4px}
  html[data-view="spielen"] #game .save-status{font-size:11px;gap:4px}
  html[data-view="spielen"] #game .tool-group{gap:4px}
  html[data-view="spielen"] #game .board-toolbar .icon-button{width:48px;min-width:48px;height:48px;min-height:48px;padding:10px;border-radius:8px}
  html[data-view="spielen"] #game #clues-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:100px;font-size:14px;background:var(--soft)}
  html[data-view="spielen"] #game #zoom-in,html[data-view="spielen"] #game #zoom-out{display:none}
  html[data-view="spielen"] #game #undo-button{background:var(--soft)}
  html[data-view="spielen"] #game .board-bottom{padding:6px}
  html[data-view="spielen"] #game .board-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px;gap:8px;margin-top:6px}
  html[data-view="spielen"] #game .board-actions button{min-height:48px;font-size:15px!important;padding:10px 8px;border-radius:8px}
  html[data-view="spielen"] #game .board-actions>.icon-button{width:48px;background:var(--soft)}
  html[data-view="spielen"] #source-button,html[data-view="spielen"] #game-settings-button,html[data-view="spielen"] #game-groups-button{display:none}
  html[data-view="spielen"] #game #reveal-cell-button,html[data-view="spielen"] #game #reveal-button{display:none}
  html[data-view="spielen"] #game #mobile-hint-button{display:block}
  html[data-view="spielen"] #game .progress-info{font-size:11px}
  html[data-view="spielen"] #game .solution-notice{font-size:11px}
  html[data-view="spielen"] #game .active-clue{padding:8px 12px 10px;border-radius:10px}
  html[data-view="spielen"] #game .clue-kicker{min-height:48px;gap:4px;margin-bottom:4px}
  html[data-view="spielen"] #game .clue-kicker>div{gap:4px}
  html[data-view="spielen"] #game .clue-kicker .icon-button{width:48px;min-width:48px;height:48px;min-height:48px;font-size:25px;padding:8px;background:var(--white);border:1px solid var(--line);border-radius:8px}
  html[data-view="spielen"] #game #mobile-direction{min-height:48px;padding:8px 0;font-size:14px;line-height:1.3;letter-spacing:0;text-transform:none}
  html[data-view="spielen"] #game #clue-details-toggle{min-width:64px;min-height:48px;padding:8px;font-size:13px;line-height:1.3;border-radius:8px;background:var(--white)}
  html[data-view="spielen"] #game #clue-details-toggle:disabled{visibility:hidden}
  html[data-view="spielen"] #game .clue-copy h3{font-size:19px;line-height:1.4}
  html[data-view="spielen"] #game .clue-copy>span{font-size:28px;line-height:1.3}
  html[data-view="spielen"] #game .answer-input{font-size:24px;min-height:48px}
  html[data-view="spielen"] #game .editor-switch{display:none}
  html[data-view="spielen"] #game .notes-details{height:60px;min-height:60px}
  html[data-view="spielen"] #game #note-input{min-height:48px;font-size:16px;border-radius:8px;padding:10px}
  html.keyboard-open[data-view="spielen"] #game .editor-switch{display:block;position:absolute;right:12px;bottom:12px;z-index:2;margin:0;padding:0;background:transparent}
  html.keyboard-open[data-view="spielen"] #game .editor-switch button{min-width:84px;min-height:48px;padding:8px;font-size:15px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--white)}
  html.keyboard-open[data-view="spielen"] #game .editor-switch #mobile-answer-button{display:none}
  html.keyboard-open.editing-notes[data-view="spielen"] #game .editor-switch #mobile-answer-button{display:block}
  html.keyboard-open.editing-notes[data-view="spielen"] #game .editor-switch #mobile-notes-button{display:none}
  html.keyboard-open[data-view="spielen"] #game .answer-fields,html.keyboard-open.editing-notes[data-view="spielen"] #game .active-clue .notes-details{width:calc(100% - 94px)}
  html.keyboard-open[data-view="spielen"] #game .compact-timer{font-size:16px;margin:0 4px}
  html.keyboard-open[data-view="spielen"] #game #clues-toggle{width:48px;min-width:48px}
  html.keyboard-open[data-view="spielen"] #game #clues-toggle>span{display:none}
  html.keyboard-open[data-view="spielen"] #game #keyboard-dismiss{background:var(--soft)}
  html.keyboard-open[data-view="spielen"] #game .notes-details{padding:0;margin:0}
  html.keyboard-open.editing-notes[data-view="spielen"] #game .active-clue .notes-details{height:60px;min-height:60px;max-height:60px;margin:0}
  html[data-view="spielen"] #game .completion-banner{padding:12px;gap:8px}
  html[data-view="spielen"] #game .completion-copy{padding-right:40px}
  html[data-view="spielen"] #game .completion-actions{display:grid;grid-template-columns:1fr 1fr;flex:1 0 100%;gap:4px;min-width:0}
  html[data-view="spielen"] #game #close-completion{width:48px;min-width:48px;height:48px;min-height:48px;top:4px;right:4px}
  #close-reveal-requests{width:48px;min-width:48px;height:48px}
  html[data-view="spielen"] #game #reference-back{min-height:48px;font-size:14px;padding:8px}
  html[data-view="spielen"] #game .picture-gap input{min-height:48px}
  html[data-view="spielen"] #game .completion-banner .text-button{min-height:48px;font-size:13px;padding:8px}
  .clue-reference{min-height:56px;padding:10px 8px}.reference-label{font-size:13px}.reference-text{font-size:17px;line-height:1.45}
  html[data-view="spielen"] #game .clue-tab{font-size:15px;min-height:48px;padding:8px}
  html[data-view="spielen"] #game #clues-close{min-width:48px;height:48px}
  html[data-view="spielen"] #game .clue-item{min-height:56px;padding:12px 8px}
  html[data-view="spielen"] #game .clue-item .clue-text{font-size:17px}
  .more-menu{min-width:260px;max-width:calc(100vw - 16px);border-radius:14px}
  .more-menu button{min-height:48px;font-size:16px;padding:12px 14px}
  dialog[open],dialog.settings-dialog{left:0;right:0;top:auto;bottom:max(0px,calc(100dvh - var(--visible-height,100dvh) - var(--viewport-top,0px)));width:100%;max-width:none;max-height:calc(var(--visible-height,100dvh) - 8px);margin:0;border-radius:20px 20px 0 0}
  dialog.settings-dialog{height:calc(var(--visible-height,100dvh) - 8px)}
  .dialog-top{padding:10px 16px;gap:8px}.dialog-top h2{font-size:21px}#close-dialog{width:48px;height:48px;min-width:48px}
  #dialog-content{padding:20px 16px max(20px,env(safe-area-inset-bottom));font-size:16px}
  #dialog-content h3{font-size:17px}#dialog-content p{line-height:1.5}
  #dialog-content .primary-button,#dialog-content .secondary-button{min-height:48px;font-size:16px}
  .dialog-actions>button{flex:1}.account-row{flex-wrap:wrap}.profile-choice{min-height:64px;font-size:16px}
  .settings-dialog #dialog-content{padding:0 16px max(16px,env(safe-area-inset-bottom));scroll-padding-top:74px}
  .settings-tabs{margin:0 -16px 20px;padding:8px 12px;gap:4px}
  .settings-tabs button{min-height:48px;font-size:15px}
  .setting-row{grid-template-columns:minmax(0,1fr);gap:8px;min-height:64px;padding:14px 0;font-size:16px}
  .setting-row>span{font-size:16px}.setting-row small{font-size:13px}
  .setting-row select{font-size:16px}.setting-check{grid-template-columns:minmax(0,1fr) 52px;gap:12px;min-height:64px}
  .setting-check input[type=checkbox]{width:52px;height:32px}
  .setting-check input[type=checkbox]::before{width:26px;height:26px}
  .setting-check input[type=checkbox]:checked::before{left:22px}
  .settings-group>legend,.settings-group>h3{font-size:17px}.theme-option{min-height:88px;padding:12px;gap:8px;font-size:16px}
  .theme-option small{font-size:12px}.theme-swatch{display:none}
  .key-binding{grid-template-columns:minmax(0,1fr);gap:8px;min-height:80px;font-size:16px}.key-binding>div{justify-content:flex-start}
  .binding-chip,.binding-add{min-height:48px;font-size:14px;padding:10px 12px}
  .settings-presets>div>button{flex:1}.settings-transfer summary{min-height:48px;font-size:16px}
  .archive-toolbar{gap:12px}.archive-toolbar input,.archive-toolbar select{font-size:16px!important;min-height:48px!important;height:48px!important}
  .archive-toolbar .search-wrap{height:48px;min-height:48px}.archive-toolbar #archive-room-button{height:48px;font-size:15px}
  .archive-facet{font-size:14px}.solution-badge{font-size:11px}.archive-card{padding:20px;border-radius:10px}
  .archive-card .card-status{font-size:13px}.archive-card .card-action{font-size:15px}
}
@media screen and (max-width:760px) and (orientation:portrait),screen and (max-width:1000px) and (pointer:coarse) and (orientation:portrait){
  html[data-view="spielen"] #game .game-layout{grid-template-rows:minmax(218px,min(calc((100vw - 36px) / var(--puzzle-ratio,1.5) + 142px),calc(100% - 256px))) minmax(0,1fr)}
  html[data-view="spielen"] #game .clue-context{max-height:calc(100% - 180px)}
  html.keyboard-open[data-view="spielen"] #game .game-layout{grid-template-rows:minmax(144px,min(calc((100vw - 36px) / var(--puzzle-ratio,1.5) + 74px),calc(100% - 232px))) minmax(0,1fr)}
  html.keyboard-open[data-view="spielen"] #game .clue-context{flex:1;max-height:none}
}
@media screen and (min-width:761px) and (max-height:500px) and (pointer:fine){
  #game .board-toolbar{height:40px}#game .board-toolbar .icon-button,#game .clue-kicker .icon-button{min-width:32px;min-height:32px;height:32px}
  #game .board-actions .primary-button,#game .board-actions .secondary-button{min-height:34px;font-size:12px;padding:6px 10px}
}
@media (forced-colors:active){.setting-check input[type=checkbox]{appearance:auto}.setting-check input[type=checkbox]::before{display:none}}
@media screen and (min-width:761px) and (pointer:fine),screen and (min-width:1001px){
  html[data-view="spielen"] .site-footer .text-button{min-height:24px}
  #game .under-board{height:20px;min-height:20px;padding:0;max-height:20px;line-height:20px}
  #game #shortcut-hints,#game #original-link{display:none}
}
/* Short and very wide desktop windows keep controls beside the grid. */
@media screen and (min-width:1100px) and (pointer:fine) and (max-height:800px),screen and (min-width:1100px) and (max-height:800px),screen and (min-width:1001px) and (min-aspect-ratio:21/9){
  #game .board-panel{display:grid;grid-template-columns:minmax(0,1fr) 176px;grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:"grid complete" "grid tools" "grid actions"}
  #game .board-scroll{grid-area:grid}
  #game .board-toolbar{grid-area:tools;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;height:auto;padding:8px;border-left:1px solid var(--line);border-bottom:0}
  #game .tool-group{flex-wrap:wrap;gap:4px}#game .board-toolbar .tool-divider{display:none}
  #game .board-bottom{grid-area:actions;min-height:0;padding:6px 8px 10px;border-left:1px solid var(--line);overflow:auto}
  #game .board-actions{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:6px}
  #game .board-actions>.icon-button{margin-left:0;width:100%}
  #game .progress-info{flex-wrap:wrap;gap:2px;font-size:11px}
}

/* Picture inspection shares the site's modal controls and never changes entries. */
.grid-artwork[data-artwork]{pointer-events:auto;cursor:zoom-in;color:var(--ink)}
.grid-artwork[data-artwork]:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.artwork-enlarge{position:absolute;right:3px;bottom:3px;display:grid;place-items:center;width:25px;height:25px;border-radius:4px;background:var(--white);border:1px solid var(--line)}
.artwork-enlarge .ui-icon{width:19px;height:19px}
dialog.image-dialog[open]{width:min(1100px,calc(100vw - 24px));max-height:calc(var(--visible-height,100dvh) - 24px)}
.image-dialog #dialog-content{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding:16px;min-height:0}
.image-viewer-controls{display:flex;align-items:center;justify-content:center;gap:12px;flex:none}
.image-viewer-controls button{min-width:48px;min-height:48px;padding:8px 14px}
.image-viewer-controls output{min-width:65px;text-align:center;font-variant-numeric:tabular-nums}
.image-viewer-stage{overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;width:100%;height:min(65dvh,780px);min-height:120px;background:var(--white)}
.puzzle-image-large{display:block;width:100%;height:100%;max-width:none;object-fit:contain;object-position:center}
@media(max-width:760px){dialog.image-dialog[open]{width:100%;max-height:calc(var(--visible-height,100dvh) - 8px)}.image-dialog #dialog-content{padding:12px}.image-viewer-stage{height:calc(var(--visible-height,100dvh) - 210px)}}
@media print{.artwork-enlarge{display:none!important}}
:root[data-theme="dark"][data-pictures="dim"] .puzzle-image-large{filter:brightness(.72)}
:root[data-theme="night"][data-pictures="dim"] .puzzle-image-large{filter:brightness(.5)}
:root:not([data-theme="light"])[data-pictures="invert"] .puzzle-image-large{filter:invert(1) hue-rotate(180deg) brightness(.82)}
