[data-screen-toggle]{touch-action:manipulation;white-space:nowrap}
[data-screen-toggle]:focus-visible{outline:2px solid #edca94;outline-offset:2px}
.cover-screen-tools,.wake-screen-tools{position:absolute;top:max(10px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:2}
#cover-screen,#gate-screen,#wake-screen{min-width:44px;min-height:44px;padding:0 9px;color:#efdfc6;font:14px/1.2 var(--serif);border:1px solid #9c8667;border-radius:3px;background:#211d20dc}
#gate-screen{border:0;border-left:1px solid #8d806d85;border-radius:0;background:transparent}
.screen-setting{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}
#av-screen,#reading-screen{min-width:7.2em;min-height:44px}
.screen-setting small,.reader-screen-status{display:block;color:var(--muted,#bcb6b1);font:13px/1.5 system-ui,sans-serif}
.reader-screen-status{text-align:end}
.screen-notice:not([hidden]){display:block;position:absolute;z-index:2;top:100%;right:0;width:max-content;max-width:min(260px,calc(100vw - 28px));margin:4px 0 0;padding:5px 9px;pointer-events:none;color:#f1e4d2;background:#242026f5;border:1px solid #6f6053;border-radius:3px;font:13px/1.5 system-ui,sans-serif}
.masthead>.screen-notice:not([hidden]){right:max(8px,env(safe-area-inset-right))}
