html, body { height: 100%; overflow: hidden; }
html { touch-action: pan-x pan-y; }
body { background: #ebece5; }
/* WebKit can expose the document canvas above and below the standalone viewport. */
html[data-native-theme] { background-color: var(--webclip-native-top); }
.webclip-status-fill { display:none; }
@supports (-webkit-touch-callout: none) {
  html[data-native-theme] body:not(:has([aria-modal="true"])) > .webclip-status-fill:not([hidden]) {
    display:block;
    position:fixed;
    inset:0 0 auto;
    height:max(12px, env(safe-area-inset-top, 0px));
    background:var(--webclip-native-top);
    pointer-events:none;
    z-index:5000;
  }
}
html[data-native-theme] body, html[data-native-theme] #shell {
  background: linear-gradient(var(--webclip-native-top) 50%, var(--webclip-native-bottom) 50%);
}
#shell {
  margin: 0 auto;
  width: min(100%, 560px);
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
.system-bottom { height: env(safe-area-inset-bottom); }
#app { -webkit-overflow-scrolling: touch; }
#app-layer { padding-top: env(safe-area-inset-top); }
#watermark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='88'%3E%3Ctext x='64' y='44' text-anchor='middle' dominant-baseline='central' transform='rotate(-27 64 44)' font-family='PingFang SC,sans-serif' font-size='15' fill='%23343c34'%3E%E7%95%AA%E8%8C%84%E6%88%AA%E5%9B%BE%3C/text%3E%3C/svg%3E");
  background-size: 128px 88px;
  opacity: .28;
}
.device-shell[data-dark="true"] #watermark { opacity: .32; }
/* The preview already contains the watermark baked into the downloadable PNG. */
#app-layer:has(.st-export-area) + #watermark { z-index: 64; }
.ac-identity h2 { min-width: 0; overflow-wrap: anywhere; }
/* Reserve room for re-verification so the help links below the card stay under the finger. */
.ac-pass-hint[data-reserve] { display: grid; }
.ac-pass-hint[data-reserve] > span, .ac-pass-hint[data-reserve]::after { grid-area: 1 / 1; }
.ac-pass-hint[data-reserve]::after { content: attr(data-reserve); visibility: hidden; }
.boot { padding: 1.25rem; }
.st-export-area img { -webkit-touch-callout: default; }
@supports (-webkit-touch-callout: none) {
  #app input:not([type="checkbox"]):focus, #app select:focus, #app textarea:focus { font-size: max(16px, 1em); }
}
