[data-theme="blush"] {
  --surface: #d3bda6;
  --foreground: #fdf5d3;
  --background: #d4ab91;
  --border: #39271d;
  --select: #a3c2d38c;
}

[data-theme="matcha"] {
  --surface: #c5d1b3;
  --foreground: #f5f7e6;
  --background: #98b379;
  --border: #2b3322;
  --select: #a3c2d38c;
}

.bff-signature {
  display: block;
  position: absolute;
  top: 0;
  left: 100%;
  --signature-translate-x: var(--signature-x, 0rem);
  width: var(--signature-size, 5.625rem);
  height: var(--signature-size, 5.625rem);
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  z-index: 0;
  color: var(--signature-color, var(--border));
  transform:
    translate(var(--signature-translate-x), var(--signature-y, 0rem))
    rotate(var(--signature-rotation, 0deg));
}

.bff-signature path {
  fill: currentColor;
}

.bff-signature[data-side="left"] {
  left: 0;
  --signature-translate-x: calc(-100% - var(--signature-x, 0rem));
}

.bff-signature--keevukiwi {
  --signature-size: 5.625rem;
  --signature-y: .5rem;
  --signature-x: 2rem;
}

@media (max-width: 950px) {
  .bff-signature {
    display: none;
  }
}

@font-face {
  font-family: "font";
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url("../fonts/font.woff2") format("woff2");
}

:root {
  --font-ui: "font";
  --font-weight-ui: 400;
  --font-weight-strong: 700;
  --line-body: 1.35;
  --line-heading: 1.08;
  --tools-field-h: 3rem;
  --theme-picker-handle: 0.3846rem;
  --theme-picker-pad: 0.2885rem;
  --theme-picker-slider-margin: 0.5769rem;
  --page-padding: 1.5rem;
  --scan-min: calc(480px - 2 * var(--page-padding));
  --radius-md: 0.875rem;
  --radius-lg: 1.125rem;
  --radius-pill: 999px;
  --card-height: 12.5rem;
  --motion-hover-duration: 220ms;
  --motion-hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-press-duration: 100ms;
  --motion-press-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --px: calc(1rem / 20.8);
  --border-subtle: 1px solid var(--surface);
  --border-strong: 2px solid var(--border);
  --scale-press-sm: 0.96;
  --scale-press: 0.98;
  --scale-hover: 1.03;
  --scale-hover-lg: 1.1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

::selection {
  color: var(--border);
  background-color: var(--select);
}

::-moz-selection {
  color: var(--border);
  background-color: var(--select);
}

html {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

button,
.hero-mini-btn,
.home-btn {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

*:focus {
  outline: none;
}

*:focus-visible:not(input):not(textarea) {
  transform: scale(var(--scale-hover));
}

.icon-interactive:focus-visible {
  transform: scale(var(--scale-hover-lg));
}

html {
  font-size: 130%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--background);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}


@supports (transform: scale(calc(100vw / 480px))) {
  @media (max-width: 479px) {
    body {
      width: 480px;
      transform: scale(calc(100vw / 480px));
      transform-origin: top left;
    }
  }
}

@supports not (transform: scale(calc(100vw / 480px))) {
  html {
    font-size: min(1.3rem, 4.3333vw);
  }
}


html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-ui);
  font-weight: var(--font-weight-ui);
  line-height: var(--line-body);
  color: var(--border);
  background: var(--background);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
figure {
  margin: 0;
}

h1,
h2 {
  font: inherit;
  font-weight: var(--font-weight-ui);
  line-height: var(--line-heading);
  letter-spacing: 0.01em;
}

input,
button,
textarea {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

code,
pre {
  font-family: var(--font-ui);
  font-weight: var(--font-weight-strong);
}

pre.license-text {
  font-weight: var(--font-weight-ui);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  line-height: 1.5;
}

a {
  color: var(--border);
}


body.home-page {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body.home-page {
    overflow-x: clip;
  }
}



.icon-interactive {
  transition: transform var(--motion-hover-duration) var(--motion-hover-ease);
  touch-action: manipulation;
}

.icon-interactive:active {
  transition-duration: var(--motion-press-duration);
  transition-timing-function: var(--motion-press-ease);
  transform: scale(var(--scale-press-sm));
}

.toolbar-icon {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
  text-decoration: none;
  line-height: 0;
  color: var(--border);
}

.toolbar-icon svg,
.toolbar-icon img {
  width: auto;
  display: block;
  margin-block: -0.675rem;
  max-width: none;
}

.toolbar-icon--home svg {
  height: 2.75rem;
}

.toolbar-icon--about svg,
.toolbar-icon--about img {
  height: 2.25rem;
  transform: translateY(0.1rem);
}



.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 1.7rem;
}

.home {
  width: min(45rem, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  display: grid;
  align-content: start;
  gap: 2.4rem;
}


.home-hero-group {
  position: relative;
  display: grid;
  gap: 0.7rem;
}

.home-hero-wrap {
  position: relative;
}

.home-hero {
  position: relative;
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--foreground);
  min-height: 12.625rem;
  padding: 2rem 1.9rem 1.65rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: calc(var(--page-padding) / 2);
  overflow: hidden;
}

.home-hero-panels {
  position: relative;
  display: grid;
}

.home-hero-panels > * {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.home-hero-status {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html[data-hero-state="status"] .home-hero-body {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html[data-hero-state="status"] .home-hero-status {
  position: static;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.home-status-btn {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}

.home-status-label {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.home-status-back {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-align: left;
}

.home-title-row {
  position: relative;
  display: inline-block;
  width: max-content;
  padding-right: 4rem;
}

.home-title {
  font-size: 2.6rem;
  font-weight: var(--font-weight-strong);
  line-height: var(--line-heading);
}

.home-title-icon {
  position: absolute;
  top: 50%;
  right: 0;
  width: 4rem;
  height: 4rem;
  transform: translateY(-70%);
  pointer-events: none;
  isolation: isolate;
  z-index: 2;
  object-fit: contain;
}

.home-tagline {
  font-size: 1rem;
  line-height: var(--line-body);
  max-width: 42ch;
  margin-top: 0;
  margin-bottom: 0;
}

.home-hero-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(min-content, 1fr));
  gap: 0.75rem;
}

.hero-mini-btn {
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  border: var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--foreground);
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.35rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: var(--font-weight-strong);
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  opacity: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--motion-hover-duration) var(--motion-hover-ease);
}

@media (min-width: 713px) {
  .home-hero-group {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: stretch;
  }

  .home-hero-wrap {
    min-width: 0;
  }

  .home-hero-buttons {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    width: 9.75rem;
    height: 100%;
    fill: var(--surface);
  }

  .hero-mini-btn {
    height: 100%;
    min-height: 0;
    font-size: 0.98rem;
  }
}

.home-section {
  display: grid;
  gap: 1rem;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  position: relative;
}

.section-heading {
  font-weight: var(--font-weight-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading {
  font-size: 0.85rem;
}

.diary-secret {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  width: 1.3rem;
  margin-left: 0.3em;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: auto;
  cursor: default;
  --secret-shift: translateY(0);
  --secret-scale: 0.72;
  transform: var(--secret-shift) scale(var(--secret-scale));
  transform-origin: center;
  transition: transform var(--motion-hover-duration) var(--motion-hover-ease);
  touch-action: manipulation;
}

.diary-secret-icon {
  width: 1.3rem;
  height: 1.3rem;
  object-fit: contain;
}

.purse-secret,
.camera-secret {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  position: absolute;
  top: 50%;
  padding: 0;
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: auto;
  cursor: default;
  --secret-shift: translateY(0);
  --secret-scale: 0.72;
  transform: var(--secret-shift) scale(var(--secret-scale));
  transition: transform var(--motion-hover-duration) var(--motion-hover-ease);
  touch-action: manipulation;
}

.purse-secret {
  left: 100%;
  width: 1.13rem;
  height: 1.5rem;
  margin-left: 0.7em;
  --secret-shift: translateY(calc(-50% - 0.2rem));
  transform-origin: left center;
}

.camera-secret {
  right: 100%;
  width: 1.46rem;
  height: 1rem;
  margin-right: 0.7em;
  --secret-shift: translateY(-50%);
  transform-origin: right center;
}

[data-diary-open="true"] .diary-secret,
[data-purse-open="true"] .purse-secret,
[data-camera-open="true"] .camera-secret {
  opacity: 1;
  cursor: pointer;
  --secret-scale: 1;
}

[data-purse-open="true"] .purse-secret {
  --secret-shift: translateY(calc(-50% - 0.25rem));
}

.purse-secret-icon {
  width: 1.13rem;
  height: 1.5rem;
  object-fit: contain;
}

.camera-secret-icon {
  width: 1.46rem;
  height: 1rem;
  object-fit: contain;
}

.theme-pill-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--border);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  line-height: 1;
  min-width: 3.1rem;
  min-height: 1.35rem;
  padding: 0.2em 0.6em;
  border-radius: calc(var(--px) * 35);
  cursor: pointer;
  margin-left: auto;
  letter-spacing: 0.1em;
  transition: transform var(--motion-hover-duration) var(--motion-hover-ease);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9.75rem, (100% - 1rem) / 2), 1fr));
  align-items: start;
  gap: 1rem;
}

@media (min-width: 58.5rem) {
  .home-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--surface);
  height: var(--card-height);
  cursor: pointer;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  transition: transform var(--motion-hover-duration) var(--motion-hover-ease);
  overflow: hidden;
  text-align: left;
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  position: relative;
}

.home-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.btn-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.9rem;
  background: var(--foreground);
}

.btn-icon {
  width: var(--btn-icon-size, 75%);
  height: var(--btn-icon-size, 75%);
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transform: translateY(var(--btn-icon-offset, 0px));
}

.btn-label {
  display: block;
  font-size: 0.82rem;
  font-weight: var(--font-weight-strong);
  padding: 0.7rem 0.85rem;
}

.notes-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}

.notes-col {
  padding: 0 1.1rem;
}

.notes-col:first-child {
  padding-left: 0;
  border-right: 1px solid var(--border);
}

.notes-col:last-child {
  padding-right: 0;
}

@media (max-width: 540px) {
  .notes-hero {
    grid-template-columns: 1fr;
  }

  .notes-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-left: 0;
    padding-bottom: 1rem;
  }

  .notes-col:last-child {
    padding-top: 1rem;
  }
}


body.gate-page,
body.info-page {
  padding: var(--page-padding);
}

body.gate-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-page .gate {
  width: min(520px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.gate-page .verify-result-home-link,
.info-page .verify-result-home-link {
  text-align: center;
  padding-top: 1.5rem;
}

.gate-page .gate-form {
  display: grid;
  gap: 0.9rem;
}

.gate-page .prompt {
  font-size: 1.65rem;
  line-height: 1.2;
  text-align: left;
}

.gate-page .field-input {
  -webkit-appearance: none;
  width: 100%;
  appearance: none;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--foreground);
  color: var(--border);
  padding: 0.78rem 0.92rem;
  font-size: 1.03rem;
  caret-color: var(--border);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gate-page .field-input::placeholder {
  color: var(--surface);
}

.gate-page .field-input:focus {
  outline: none;
}

.gate-page .gate-form[data-state="working"] .prompt,
.gate-page .gate-form[data-state="offline"] .prompt {
  color: var(--surface);
}

.gate-page .gate-form[data-state="ready"] .prompt,
.gate-page .gate-form[data-state="error"] .prompt {
  color: var(--border);
}

.gate-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.gate-icon-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: block;
  position: absolute;
  right: 0;
  bottom: -0.5rem;
}

.gate-icon {
  display: block;
  width: 2.75rem;
  height: auto;
}


.info-page main {
  width: min(45rem, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.05rem;
}

.info-page h1 {
  font-size: 3rem;
}

.info-page .info-grid {
  display: grid;
  gap: 1.05rem;
}

.info-page figure {
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  background: var(--foreground);
}

.info-page .info-list {
  display: grid;
  gap: 1rem;
}

.info-page .info-item {
  display: grid;
  gap: 0.85rem;
}

.info-page .info-copy {
  max-width: 58ch;
}

.info-page .info-ama>.info-copy+.info-copy {
  margin-top: 0.85rem;
}

.info-page .verify-section {
  gap: 0.75rem;
}

.info-page .message-section {
  gap: 0.9rem;
}

.info-page .info-grid+.verify-section,
.info-page .info-grid+.message-section,
.info-page .verify-section+.verify-section,
.info-page .message-section+.message-section {
  margin-top: 1rem;
}

.info-page .verify-section .section-heading {
  letter-spacing: 0.16em;
}

.info-page .verify-upload,
.gate-page .verify-upload {
  position: relative;
  min-height: 0;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--foreground);
  padding: 0.78rem 0.92rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  transition:
    transform var(--motion-hover-duration) var(--motion-hover-ease),
    border-width var(--motion-hover-duration) var(--motion-hover-ease),
    border-style var(--motion-hover-duration) var(--motion-hover-ease);
}

.info-page .verify-upload-input,
.gate-page .verify-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.info-page .verify-upload-label,
.gate-page .verify-upload-label {
  display: block;
  width: 100%;
  font-size: 1.03rem;
  line-height: 1.4;
  min-height: 1.4em;
  padding: 0;
  color: var(--surface);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.info-page .verify-upload.has-file .verify-upload-label,
.gate-page .verify-upload.has-file .verify-upload-label {
  color: var(--border);
}

.info-page .encrypt-upload-box {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  cursor: default;
  padding: 0;
}

.info-page .encrypt-upload-row {
  display: flex;
  align-items: stretch;
}

.info-page .encrypt-upload-half {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0.78rem 0.92rem;
  cursor: pointer;
  min-width: 0;
}

.info-page .encrypt-upload-half .verify-upload-label,
.info-page .verify-upload.has-file .encrypt-upload-half .verify-upload-label {
  color: var(--surface);
}

.info-page .encrypt-upload-half.has-file .verify-upload-label {
  color: var(--border);
}

.info-page .encrypt-upload-divider {
  flex-shrink: 0;
  width: 0;
  border-left: var(--border-strong);
}

.info-page .tools-pw-box {
  display: flex;
  align-items: stretch;
  padding: 0;
  cursor: default;
  overflow: hidden;
}

.info-page .tools-pw-box .tools-split-input.verify-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.info-page .verify-input:-webkit-autofill,
.info-page .verify-input:-webkit-autofill:hover,
.info-page .verify-input:-webkit-autofill:focus,
.info-page .verify-input:-webkit-autofill:active,
.info-page .verify-input:autofill,
.gate-page .field-input:-webkit-autofill,
.gate-page .field-input:-webkit-autofill:hover,
.gate-page .field-input:-webkit-autofill:focus,
.gate-page .field-input:-webkit-autofill:active,
.gate-page .field-input:autofill {
  -webkit-box-shadow: inset 0 0 0 1000px var(--foreground);
  box-shadow: inset 0 0 0 1000px var(--foreground);
  -webkit-text-fill-color: var(--border);
  caret-color: var(--border);
  transition:
    background-color 600000s ease-in-out 0s,
    color 600000s ease-in-out 0s;
}

.info-page .tools-panel-heading-row,
.info-page .scan-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.info-page .scan-heading-row {
  margin-top: 0.45rem;
  margin-bottom: -0.3rem;
}

.info-page .tools-panel-heading-row .section-heading,
.info-page .scan-heading-row .section-heading {
  margin: 0;
}

.info-page .scan-heading-row .section-heading {
  min-height: calc(var(--line-heading) * 1em);
}

.info-page .tools-mode-toggle,
.info-page .scan-source-toggle {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.82rem;
  line-height: var(--line-heading);
  color: var(--border);
  cursor: pointer;
  touch-action: manipulation;
}

.info-page .tools-pw-box[hidden] {
  display: none;
}

.info-page .encrypt-file-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.92rem 0.78rem;
  border-top: var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 9.6rem;
  overflow-y: auto;
}

.info-page .encrypt-file-list[hidden] {
  display: none;
}

.info-page .encrypt-file-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.92rem;
  line-height: 1.2;
  color: var(--border);
}

.info-page .encrypt-file-name {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  padding-block-end: 0.12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-page .encrypt-file-remove {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
  padding: 0.1rem 0.3rem;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--surface);
  cursor: pointer;
  border-radius: calc(var(--px) * 2);
}

.info-page .encrypt-file-remove:hover,
.info-page .encrypt-file-remove:focus-visible {
  color: var(--border);
}

.info-page .verify-upload.is-drag-over,
.gate-page .verify-upload.is-drag-over {
  border-width: 3px;
  border-style: dashed;
  transform: scale(var(--scale-hover));
}

.info-page .verify-upload:focus-within {
  outline: none;
}

.info-page .verify-input {
  display: block;
  appearance: none;
  width: 100%;
  -webkit-appearance: none;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--foreground);
  padding: 0.78rem 0.92rem;
  font-size: 1.03rem;
  color: var(--border);
  caret-color: var(--border);
  text-decoration: none;
}

.info-page .verify-input:not(.tools-textarea) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-page .verify-input:focus {
  outline: none;
}

.info-page .verify-input[readonly] {
  cursor: default;
  caret-color: transparent;
}

.message-page .verify-input.tools-textarea[readonly],
.tools-page #tools-message[readonly],
.tools-page #tools-lock-msg-text[readonly] {
  word-break: break-all;
}

.info-page .verify-input::placeholder {
  color: var(--surface);
}

.info-page .verify-input.tools-textarea {
  min-height: calc(1lh + 1.56rem + 4px);
  overflow-y: hidden;
  overflow-x: hidden;
  resize: none;
  overflow-wrap: break-word;
}

.info-page .verify-input.tools-textarea[data-min-lines="1.5"] {
  min-height: calc(1.5lh + 1.56rem + 4px);
}

.tools-page .verify-input.tools-textarea {
  overflow-y: hidden;
  resize: none;
}

.info-page .verify-input[hidden] {
  display: none;
}

.info-page .info-action-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  min-height: 3.35rem;
}

.info-page .info-action-row .info-action-end {
  margin-left: auto;
}

.info-page .tools-columns {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-page .tools-column {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-page .tools-file-panel {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

@media (max-width: 699px) {
  .info-page .tools-columns {
    flex-direction: column;
    align-items: stretch;
  }

  .info-page .tools-column {
    display: contents;
  }
}

.info-page .tools-file-panel .section-heading {
  min-height: 1.2em;
}

.tools-page .tools-file-panel > .verify-upload,
.tools-page .tools-file-panel > .verify-input:not(.tools-textarea) {
  height: var(--tools-field-h);
}

.tools-page .tools-file-panel > .verify-upload.encrypt-upload-box {
  height: auto;
  min-height: var(--tools-field-h);
}

.tools-page .encrypt-upload-row {
  min-height: calc(var(--tools-field-h) - 4px);
}

.tools-page .tools-file-panel > .verify-upload,
.tools-page .tools-file-panel > .verify-input:not(.tools-textarea),
.tools-page .tools-pw-box .tools-split-input,
.tools-page .encrypt-upload-half {
  padding-block: 0;
  min-height: 0;
}

.tools-page .tools-pw-box .tools-split-input {
  -webkit-appearance: none;
  appearance: none;
}


.info-page .theme-swatch-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(8.2rem, (100% - 1rem) / 2), 1fr));
  gap: 1rem;
}

@media (min-width: 62.4rem) {
  .info-page .theme-swatch-row {
    grid-template-columns: repeat(5, 1fr);
  }
}

.info-page .theme-swatch {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  min-height: var(--tools-field-h);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--theme-swatch-color, var(--foreground));
  color: var(--theme-swatch-ink, var(--border));
  font-family: var(--font-ui);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.6rem 0.85rem;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--motion-hover-duration) var(--motion-hover-ease);
}

.info-page .theme-swatch[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.info-page .theme-swatch[data-prop="--background"] { background: var(--theme-swatch-color, var(--background)); }
.info-page .theme-swatch[data-prop="--foreground"] { background: var(--theme-swatch-color, var(--foreground)); }
.info-page .theme-swatch[data-prop="--surface"] { background: var(--theme-swatch-color, var(--surface)); }
.info-page .theme-swatch[data-prop="--select"] { background: var(--theme-swatch-color, var(--select)); }

.info-page .theme-swatch[data-prop="--border"] {
  background: var(--theme-swatch-color, var(--border));
  color: var(--theme-swatch-ink, var(--foreground));
}

.info-page .theme-swatch-name,
.info-page .theme-swatch-hex {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.4;
  min-height: 1.4em;
}

.info-page .theme-swatch-name {
  font-size: 0.82rem;
}

.info-page .theme-swatch-hex {
  font-size: 1.03rem;
}

.info-page .theme-sign-heading {
  margin-top: 0.75rem;
}

.info-page .theme-picker-popup {
  position: absolute;
  z-index: 2;
  border: var(--border-strong);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--foreground);
  padding: 0.75rem;
}

.info-page .theme-picker-popup[hidden] {
  display: none;
}

.info-page .theme-picker-hex {
  width: 100%;
  min-width: 0;
  margin-top: 0.75rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.88rem;
  text-align: center;
}


.info-page .verify-submit[hidden] {
  display: none;
}

.info-page .verify-submit {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0.78rem 1rem;
  text-decoration: none;
  font-weight: var(--font-weight-strong);
  transition: transform var(--motion-hover-duration) var(--motion-hover-ease);
  touch-action: manipulation;
  cursor: pointer;
}

.info-page .verify-submit {
  align-self: start;
  justify-self: start;
  width: auto;
  font-size: 0.88rem;
}

.hero-mini-btn.is-pressed,
.home-btn.is-pressed,
.info-page .verify-submit:active,
.info-page .verify-submit.is-pressed,
.info-page .theme-swatch:active,
.info-page .theme-swatch.is-pressed {
  transition-duration: var(--motion-press-duration);
  transition-timing-function: var(--motion-press-ease);
  transform: scale(var(--scale-press));
}

[data-diary-open="true"] .diary-secret:focus-visible,
[data-purse-open="true"] .purse-secret:focus-visible,
[data-camera-open="true"] .camera-secret:focus-visible {
  --secret-scale: var(--scale-hover);
}

[data-diary-open="true"] .diary-secret:active,
[data-purse-open="true"] .purse-secret:active,
[data-camera-open="true"] .camera-secret:active {
  transition-duration: var(--motion-press-duration);
  transition-timing-function: var(--motion-press-ease);
  --secret-scale: var(--scale-press);
}

.info-page .verify-submit:focus,
.info-page .theme-swatch:focus {
  outline: none;
}

.info-page .info-attribution-list {
  margin: 0.15rem 0 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.2rem;
}

.info-page .info-attribution-item {
  max-width: 58ch;
}

.info-page .info-attribution-item a {
  text-decoration-thickness: var(--px);
  text-underline-offset: 0.12em;
}


.site-footer {
  padding: 1.2rem 1.5rem;
  text-align: center;
}

.home > .site-footer {
  padding: 0 0 0.4rem;
}

.footer-text {
  position: relative;
  display: inline-block;
  font-size: 0.82rem;
}


body.verify-result-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--page-padding);
}

.verify-result-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  width: min(520px, 100%);
}

.verify-result-heading {
  font-size: 2rem;
  font-weight: var(--font-weight-strong);
  letter-spacing: 0.02em;
}

.verify-result-icon {
  width: 18rem;
  height: 18rem;
  display: flex;
  justify-content: center;
  color: var(--border);
  margin-bottom: -7rem;
}

.verify-result-icon img,
.verify-result-icon svg {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.result-icon {
  display: none;
  width: 100%;
  height: 100%;
}

.verify-result-message-box {
  background: var(--foreground);
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  max-width: 26rem;
  width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: var(--line-body);
  text-align: left;
}

.verify-result-home-link {
  font-size: 0.9rem;
  font-weight: var(--font-weight-strong);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.verify-result-page .verify-result-home-link {
  visibility: hidden;
}

.verify-result-page[data-outcome] .verify-result-home-link {
  visibility: visible;
}

[data-outcome="match"] .result-icon--check {
  display: block;
}

[data-outcome="no-match"] .result-icon--cross {
  display: block;
}


@media (min-width: 480px) {
  .info-page main.scan {
    width: clamp(var(--scan-min), min(100%, calc(100vh - 11rem)), 45rem);
    width: clamp(var(--scan-min), min(100%, calc(100svh - 11rem)), 45rem);
  }
}

.scan-frame {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--foreground);
}

.scan-stage,
.scan-preview {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.scan-stage[hidden],
.scan-preview[hidden] {
  display: none;
}

.scan-code {
  display: block;
  image-rendering: pixelated;
}

.scan-preview {
  background: var(--border);
}

.scan-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 2px);
}

.scan-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.scan-sliders {
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
  display: grid;
  gap: 0.25rem;
}

.scan-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: var(--line-heading);
}

.scan-slider-name {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scan-slider-value {
  min-width: 2.5ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.scan-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  background: transparent;
  color: var(--border);
  cursor: pointer;
  touch-action: manipulation;
}

.scan-range::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--border);
}

.scan-range::-moz-range-track {
  height: 2px;
  background: var(--border);
}

.scan-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0.55rem;
  height: 1.05rem;
  margin-top: calc((2px - 1.05rem) / 2);
  border: 0;
  border-radius: calc(var(--px) * 3);
  background: var(--border);
}

.scan-range::-moz-range-thumb {
  width: 0.55rem;
  height: 1.05rem;
  border: 0;
  border-radius: calc(var(--px) * 3);
  background: var(--border);
}

.scan[data-mode="receive"] #scan-url,
.scan[data-mode="receive"] #scan-text,
.scan[data-mode="receive"] #scan-upload,
.scan[data-mode="receive"] #scan-source,
.scan[data-mode="send"] #scan-result,
.scan[data-mode="send"] #scan-save,
.scan[data-mode="send"] #scan-progress,
.scan[data-source="text"] #scan-url,
.scan[data-source="file"] #scan-url,
.scan[data-source="link"] #scan-text,
.scan[data-source="file"] #scan-text,
.scan[data-source="link"] #scan-upload,
.scan[data-source="text"] #scan-upload {
  display: none;
}

.scan[data-mode="receive"] .scan-sliders {
  visibility: hidden;
}

.scan-progress {
  width: 100%;
  height: 0.5rem;
  accent-color: var(--border);
}

.info-page.scan-page .verify-upload-label {
  line-height: var(--line-body);
  min-height: 0;
}


@media (max-width: 540px) {
  .info-page h1 {
    font-size: 2.35rem;
  }

  .site-nav {
    gap: 1rem;
  }
}

@media (max-width: 500px) {
  .home-hero {
    padding: 2rem 1.4rem 1.65rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .icon-interactive:hover {
    transform: scale(var(--scale-hover-lg));
  }

  .home-btn:hover,
  .hero-mini-btn:hover,
  .theme-pill-btn:hover,
  .info-page .verify-submit:hover,
  .info-page .theme-swatch:hover {
    transform: scale(var(--scale-hover));
  }

  [data-diary-open="true"] .diary-secret:hover,
  [data-purse-open="true"] .purse-secret:hover,
  [data-camera-open="true"] .camera-secret:hover {
    --secret-scale: var(--scale-hover);
  }

  .hero-mini-btn.is-pressed,
  .home-btn.is-pressed,
  .info-page .verify-submit:active,
  .info-page .verify-submit.is-pressed,
  .info-page .theme-swatch:active,
  .info-page .theme-swatch.is-pressed {
    transform: scale(var(--scale-press));
  }

  [data-diary-open="true"] .diary-secret:active,
  [data-purse-open="true"] .purse-secret:active,
  [data-camera-open="true"] .camera-secret:active {
    --secret-scale: var(--scale-press);
  }
}

.info-page .theme-swatch[aria-expanded="true"],
.info-page .theme-swatch[aria-expanded="true"]:hover,
.info-page .theme-swatch[aria-expanded="true"]:active,
.info-page .theme-swatch[aria-expanded="true"].is-pressed,
.info-page .theme-swatch[aria-expanded="true"]:focus-visible {
  transform: none;
}

.info-page .tools-download-row {
  width: 100%;
}

.info-page .tools-download-row .verify-submit {
  width: 100%;
  flex: 1 1 100%;
}
