.puk-ink-fullscreen {
  box-sizing: border-box; position: fixed; inset: 0; margin: 0;
  width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none;
  border: 0; border-radius: 0; padding: 0; background: #f0f5f2; color: #183b2a;
  font: 15px/1.4 system-ui, sans-serif; overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.puk-ink-fullscreen[open] { display: flex; flex-direction: column; }
.puk-ink-fullscreen::backdrop { background: #f0f5f2; }
.puk-ink-fullscreen *, .puk-ink-fullscreen *::before { box-sizing: border-box; }
.puk-ink-fullscreen__header, .puk-ink-fullscreen__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 12px; flex: 0 0 auto; background: #fff;
}
.puk-ink-fullscreen__header strong { font-size: 16px; }
.puk-ink-fullscreen button, .puk-ink-fullscreen select, .puk-ink-fullscreen summary {
  min-height: 44px; min-width: 44px; border-radius: 9px; font: inherit; cursor: pointer;
}
.puk-ink-fullscreen button, .puk-ink-fullscreen select {
  padding: 6px 10px; border: 1px solid #d5e2db; background: #fff; color: #183b2a;
}
.puk-ink-fullscreen button[aria-pressed="true"] { background: #e0f7e9; border-color: #239b59; color: #12683d; }
.puk-ink-fullscreen__header button { background: #12683d; border-color: #12683d; color: white; font-weight: 700; }
.puk-ink-fullscreen :focus-visible { outline: 3px solid #057db3; outline-offset: 2px; }
.puk-ink-fullscreen__question { flex: 0 0 auto; background: #fff; border-top: 1px solid #e2ebe6; }
.puk-ink-fullscreen summary { padding: 11px 12px; font-weight: 600; }
.puk-ink-fullscreen__question-body { max-height: 28vh; overflow: auto; padding: 0 12px 12px; color: #25394b; }
.puk-ink-fullscreen__question-body img { max-width: 100%; height: auto; }
.puk-ink-fullscreen__tools { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px; flex: 0 0 auto; border-block: 1px solid #d5e2db; }
.puk-ink-fullscreen__settings { position: relative; margin-left: auto; }
.puk-ink-fullscreen__tools button { padding-inline: 8px; font-size: 14px; }
.puk-ink-fullscreen__settings summary { padding-inline: 8px; font-size: 14px; }
.puk-ink-fullscreen__settings-body {
  position: absolute; right: 0; top: 100%; z-index: 2; min-width: 220px; padding: 12px;
  background: white; border: 1px solid #d5e2db; border-radius: 10px; box-shadow: 0 6px 20px #183b2a20;
}
.puk-ink-fullscreen__settings-body label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0; }
.puk-ink-fullscreen__viewport {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  overscroll-behavior: contain; touch-action: pan-x pan-y;
}
.puk-ink-fullscreen .puk-ink-fullscreen__page { width: 100%; max-width: none; border: 0; border-radius: 0; }
.puk-ink-fullscreen__page.is-moving canvas { cursor: grab; }
.puk-ink-fullscreen__footer { border-top: 1px solid #d5e2db; font-size: 12px; }
.puk-ink-fullscreen__footer button { white-space: nowrap; font-size: 14px; }
@media (max-height: 480px) and (orientation: landscape) {
  .puk-ink-fullscreen__header { padding-block: 0; }
  .puk-ink-fullscreen__question { position: absolute; right: 90px; top: env(safe-area-inset-top); z-index: 3; max-width: calc(100% - 200px); }
  .puk-ink-fullscreen__question[open] { left: 0; right: 0; top: 44px; max-width: none; }
  .puk-ink-fullscreen__question-body { max-height: 42vh; }
  .puk-ink-fullscreen__tools { padding-block: 2px; }
  .puk-ink-fullscreen__footer { padding-block: 0; }
}
@media (pointer: coarse) {
  .puk-inline-editor__toolbar button, .puk-inline-editor__toolbar select,
  .pp-stylus__toolbar button, .pp-stylus__toolbar select, .pp-stylus-part__foot button { min-width: 44px; min-height: 44px; }
}
@media (pointer: fine) {
  .puk-ink-fullscreen__viewport { scrollbar-gutter: stable; }
}
