@font-face {
  font-family: Inter;
  src: url("/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/space-grotesk-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F6F6F2;
  --white: #FFFFFF;
  --ink: #14181F;
  --muted: #4B5563;
  --rule: #DADAD2;
  --control: #8B8F96;
  --accent: #0F766E;
  --focus: #2A78D6;
  --success: #0B5750;
  --error: #B42318;
  --sans: Inter, system-ui, sans-serif;
  --display: "Space Grotesk", Inter, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.165,.84,.44,1);
  --site-header-height: 76px;
  scroll-padding-block-start: calc(var(--site-header-height) + 8px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
main { flex: 1; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; transition: filter 120ms var(--ease), background-color 120ms var(--ease); }
button:not(:disabled):hover { filter: brightness(.96); }
button:disabled { cursor: default; opacity: .65; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus, .noscript { position: fixed; z-index: 2; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--white); }
.skip:focus { top: 10px; left: 10px; z-index: 5; }
.noscript { inset: auto 12px 12px; text-align: center; }

.site-header { position: sticky; top: 0; z-index: 4; background: var(--white); border-bottom: 1px solid var(--rule); }
.nav-inner, .footer-inner {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-inner { min-height: 72px; gap: 4px 24px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font: 700 24px/1.5 var(--display);
}
.accent { color: var(--accent); }
.nav-inner nav, .footer-inner nav { display: flex; flex-wrap: wrap; }
.nav-inner nav { gap: 0 28px; font-size: 15px; font-weight: 500; }
.nav-inner nav a, .footer-inner nav a { display: inline-block; color: var(--ink); text-decoration: none; }
.nav-inner nav a { padding: 12px 0; }
.nav-inner nav { align-items: center; }
.nav-localized nav { margin-inline-start: auto; }
.site-languages { position: relative; }
.site-languages summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.site-languages summary::-webkit-details-marker { display: none; }
.site-languages summary::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-bottom: 3px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.site-languages[open] summary::after { transform: rotate(225deg); margin-block: 3px 0; }
.site-languages ul {
  position: absolute;
  z-index: 3;
  inset: 100% 0 auto auto;
  box-sizing: border-box;
  min-width: 148px;
  max-height: min(68vh, 390px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 6px 0 0;
  padding: 5px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 9px;
  box-shadow: 0 8px 24px rgb(20 24 31 / .10);
  list-style: none;
}
.site-language {
  display: block;
  padding: 7px 10px;
  color: var(--ink);
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
}
.site-language:hover, .site-language[aria-current] { background: var(--paper); color: var(--accent); }
.language-banner { border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--accent) 7%, var(--paper)); }
.language-banner-inner {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 22px;
  max-width: 1120px;
  margin: auto;
  padding: 8px clamp(16px, 3vw, 24px);
  font-size: 13px;
}
.language-banner-inner p { margin: 0; }
.language-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.language-banner-actions :is(a, button) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 9px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  text-align: start;
}
.language-banner-actions a { color: var(--white); background: var(--accent); text-decoration: none; }
.language-banner-actions a:hover { filter: brightness(.93); }
.language-banner-actions button { background: transparent; color: var(--ink); cursor: pointer; }
.language-banner-actions button:hover { background: var(--white); }
.language-banner-close { font-size: 17px; line-height: 1; }
.site-footer { background: var(--white); border-top: 1px solid var(--rule); }
.footer-inner { gap: 8px 24px; padding: 28px 24px; color: var(--muted); font-size: 14px; }
.footer-inner nav { gap: 0 24px; }
.footer-inner nav a { padding: 10px 0; }

.clipboard-wrap { box-sizing: border-box; width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.clipboard-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 2px rgb(20 24 31 / .06);
}

.clip-workspace {
  box-sizing: border-box;
  width: 100%;
  max-width: 1470px;
  padding: 32px clamp(16px, 4vw, 52px) 48px;
  margin: 0 auto;
}
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.workspace-heading > div:first-child { min-width: 0; }
.workspace-heading-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.workspace-language .field-input { min-height: 36px; padding-inline: 8px; font-size: 13px; }
.workspace-heading h1 { margin: 0; font: 700 clamp(27px, 4vw, 37px)/1.1 var(--display); }
.workspace-address { margin: 5px 0 0; color: var(--muted); font: 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(246px, 298px); gap: 18px; align-items: start; }
.workspace-composer, .workspace-sidebar {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(20 24 31 / .06);
}
.workspace-composer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: clamp(480px, 70svh, 960px);
  transition: border-color 150ms var(--ease), box-shadow 200ms var(--ease);
}
.workspace-composer:hover { border-color: #949990; }
.workspace-composer:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px #2a78d61d; }
.workspace-toolbar, .workspace-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 16px;
}
.workspace-toolbar { border-bottom: 1px solid var(--rule); font-size: 14px; font-weight: 600; }
.workspace-meta { border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; }
.workspace-meta span:last-child { font-variant-numeric: tabular-nums; margin-left: auto; }
#workspace-count[data-error="true"] { color: var(--error); font-weight: 600; }
#workspace-text {
  box-sizing: border-box;
  width: 100%;
  max-height: 1080px;
  min-height: 360px;
  padding: clamp(14px, 2vw, 24px);
  border: 0;
  resize: vertical;
  background: var(--white);
  color: var(--ink);
  font: 15px/1.65 var(--mono);
}
#workspace-text:focus { outline: none; }
.workspace-sidebar { position: sticky; top: calc(var(--site-header-height) + 16px); padding: 16px; scroll-margin-top: 12px; }
.workspace-sidebar h2 { margin: 0 0 16px; font: 700 19px/1.25 var(--display); }
.workspace-field { display: block; margin-top: 13px; font-size: 14px; font-weight: 600; }
.workspace-field .field-input { box-sizing: border-box; display: block; width: 100%; margin-top: 4px; font-size: 14px; }
.workspace-field select { background: var(--white); }
.workspace-check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; }
.workspace-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.workspace-hint { color: var(--muted); font-size: 12px; margin: 8px 0; }
.workspace-hint:empty { display: none; }
.workspace-share { width: 100%; min-height: 42px; margin-top: 8px; }
.workspace-links { border-top: 1px solid var(--rule); margin-top: 16px; padding-top: 14px; }
.workspace-share-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 8px; }
.workspace-links button { min-height: 36px; font-size: 13px; }
.workspace-links button svg { flex: none; }
.workspace-share-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.workspace-share-url {
  display: block;
  margin-top: 5px;
  padding: 8px;
  border-radius: 6px;
  background: var(--paper);
  overflow-wrap: anywhere;
  font: 13px/1.5 var(--mono);
}
.workspace-code { margin-top: 12px; }
.workspace-code code { display: block; font: 700 18px/1.45 var(--mono); letter-spacing: .09em; }
.workspace-edit-copy { margin-top: 8px; }
.workspace-links .workspace-hint[data-error="true"] { color: var(--error); }
.editor-unlock { max-width: 560px; }
.workspace-qr { border-top: 1px solid var(--rule); margin-top: 12px; padding-top: 10px; font-size: 13px; }
.workspace-qr summary { font-weight: 600; cursor: pointer; }
.workspace-qr-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.workspace-qr img { display: block; border: 1px solid var(--rule); border-radius: 6px; }
.workspace-qr-actions { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.workspace-qr-actions a { padding-block: 4px; color: var(--accent); text-underline-offset: 3px; }
.workspace-delete { display: inline-block; margin-top: 14px; color: var(--error); font-size: 13px; }
.mobile-settings.secondary { display: none; }

.pickup-composer {
  grid-template-rows: auto minmax(0, 1fr);
  height: clamp(480px, 70svh, 960px);
}
.pickup-composer h2 { margin: 0; font: inherit; }
.pickup-read-only { color: var(--muted); font-size: 12px; font-weight: 500; }
.pickup-pane { display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.pickup-prompts {
  align-self: center;
  justify-self: center;
  box-sizing: border-box;
  width: min(100%, 420px);
  max-height: 100%;
  padding: 20px;
  overflow: auto;
}
.pickup-prompts .unlock-form { margin: 0; max-width: none; }
#pickup-status { margin: 0; color: var(--muted); }
#pickup-status:empty { display: none; }
.found-text {
  box-sizing: border-box;
  height: 100%;
  padding: clamp(14px, 2vw, 24px);
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 15px/1.65 var(--mono);
}
.found-text:focus { outline: none; }
.pickup-copy-actions .primary { width: 100%; }
.pickup-copy-actions .workspace-hint[data-error="true"] { color: var(--error); }
.pickup-links { display: grid; gap: 8px; margin-top: 12px; }
.pickup-links .secondary { display: flex; align-items: center; text-decoration: none; }
.pickup-links .secondary:hover { background: var(--paper); }
.pickup-similar {
  justify-self: start;
  padding-block: 4px;
  color: var(--accent);
  font-size: 13px;
  text-underline-offset: 3px;
}

@media (max-width: 740px) {
  .clip-workspace { padding-top: 22px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .workspace-sidebar { position: static; }
  .workspace-composer { min-height: max(390px, 60svh); }
  .pickup-composer { height: max(390px, 60svh); }
  .found-text { font-size: 16px; }
  #workspace-text { min-height: 290px; font-size: 16px; }
  .mobile-settings.secondary { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 36px; padding-inline: 8px; font-size: 12px; text-decoration: none; }
}

.field-label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.field-label.compact { margin-bottom: 6px; }
.paste-button.secondary { min-height: 34px; padding-inline: 11px; font-size: 13px; }
.expiry-option { position: relative; cursor: pointer; }
.expiry-option span {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--control);
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.expiry-option input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--white); }
.expiry-option input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.field-input {
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--control);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
}
.primary, .secondary { min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.primary { border: 0; background: var(--accent); color: var(--white); }
.secondary { border: 1px solid var(--control); background: var(--white); color: var(--ink); }
.with-icon { display: flex; align-items: center; gap: 8px; }
.error-message { color: var(--error); font-size: 15px; font-weight: 500; }
.wrong-password { margin: 8px 0 0; }

.result-note { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.another-button { margin-top: 8px; min-height: 48px; padding: 0 24px; font-size: 16px; }

.open-button { min-height: 52px; padding: 0 28px; font-size: 16px; }
.unlock-form { margin-top: 20px; max-width: 360px; }
.unlock-input { flex: 1 1 160px; min-height: 48px; }
.unlock-button { min-height: 48px; padding: 0 20px; }
.missing-clip { padding: 16px; background: var(--paper); border-radius: 10px; }
.missing-clip strong { font-weight: 600; }
.missing-clip p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.subpage { padding-block: 44px 60px; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--success); font-size: 14px; }
.inner-title { margin: 0; font: 700 clamp(28px, 6vw, 42px)/1.1 var(--display); }
.article h2 { margin: 16px 0 0; font: 700 22px/1.2 var(--display); }
.article p { margin: 8px 0 0; color: var(--muted); }
.report-form { display: grid; justify-items: start; gap: 9px; margin-top: 12px; }
.report-form label, .report-form input, .report-form textarea, .report-form select { width: 100%; }
.report-form textarea { padding-top: 8px; }
#delete-form { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.direct-open { margin-top: 12px; }

.tool-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 38px 24px 66px;
}
.tool-page-header { margin-bottom: 22px; }
.tool-page-header .section-lead { margin-top: 9px; }
.tool-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.tool-toolbar-end { justify-content: flex-end; }
.tool-modes { display: flex; flex-wrap: wrap; min-width: 0; gap: 6px; margin: 0; padding: 0; border: 0; }
.tool-modes .expiry-option span { min-height: 36px; padding-inline: 12px; font-size: 13px; }
.tool-example, .tool-copy, .tool-send { min-height: 36px; padding-inline: 12px; font-size: 13px; }
.tool-output-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tool-field { min-width: 0; }
.tool-field-heading { display: flex; justify-content: space-between; align-items: center; gap: 9px; min-height: 36px; margin-bottom: 5px; }
.tool-field-heading .field-label { margin: 0; }
.tool-field-heading h2 { margin: 0; font-size: 15px; font-weight: 600; }
.tool-editor {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 206px;
  padding: 12px;
  border: 1px solid var(--control);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  font: 14px/1.6 var(--mono);
  resize: vertical;
  transition: border-color 150ms var(--ease), box-shadow 200ms var(--ease);
}
.tool-editor:hover { border-color: #626b75; }
.tool-editor:focus-visible { box-shadow: 0 0 0 3px #2a78d61d; outline-offset: 1px; }
.tool-output, .tool-code { background: #f8f9f6; }
.tool-status { min-height: 22px; margin: 8px 0 0; color: var(--success); font-size: 13px; }
.tool-status[data-error="true"] { color: var(--error); }
.tool-hint, .tool-privacy { color: var(--muted); font-size: 13px; }
.tool-hint { margin: 10px 0 0; }
.tool-privacy { margin: 10px 0 0; }
.tool-guide { margin-top: 40px; max-width: 760px; }
.tool-guide :is(h3, h4) { margin: 20px 0 8px; }
.tool-guide p { margin: 8px 0 0; color: var(--muted); line-height: 1.65; }
.tool-guide details { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.tool-guide summary { cursor: pointer; font-weight: 600; }
.tool-related { margin-top: 43px; }
.tool-actions { margin-top: 13px; }
.word-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}
.word-stats div { min-width: 0; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 9px; background: #f8f9f6; }
.word-stats dt { color: var(--muted); font-size: 12px; }
.word-stats dd { margin: 0; font: 600 clamp(17px, 3vw, 24px)/1.4 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tool-code {
  box-sizing: border-box;
  overflow: auto;
  max-height: 340px;
  margin: 0;
  padding: 8px 0;
  border: 1px solid var(--rule);
  border-radius: 9px;
  font: 14px/1.6 var(--mono);
}
.tool-code span { display: block; min-width: max-content; padding-inline: 10px; }
.tool-code [data-change="added"] { color: #165643; background: #e5f3eb; }
.tool-code [data-change="removed"] { color: #862522; background: #f9e5e3; }
.tool-diff-result { margin-top: 6px; }
.qr-workspace { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); }
.qr-preview {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 206px;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fafbf8;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.qr-preview canvas { width: min(192px, 100%); height: auto; }
.tool-download {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  text-decoration: none;
}
.tool-download:hover { filter: brightness(.96); }

@media (max-width: 560px) {
  :root { --site-header-height: 81px; }
  .nav-inner { min-height: 58px; gap: 0 9px; padding-inline: 15px; }
  .brand { gap: 5px; font-size: 20px; }
  .brand svg { width: 22px; height: 22px; }
  .nav-inner nav { gap: 0 12px; font-size: 12px; }
  .nav-inner.nav-localized {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand language" "navigation navigation";
  }
  .nav-localized .brand { grid-area: brand; justify-self: start; }
  .nav-localized nav { grid-area: navigation; margin: 0; }
  .nav-localized nav a { padding-block: 7px; }
  .site-languages { grid-area: language; }
  .site-languages summary { font-size: 12px; }
  .clipboard-wrap { padding-inline: 14px; }
  .clipboard-card { padding: 14px; }
  .expiry, .clip-options { margin-top: 12px; }
  .expiry-options { gap: 5px; }
  .expiry-option span { padding-inline: 9px; font-size: 14px; }
  .clip-options { gap: 0 12px; }
  .clip-options label { min-height: 40px; font-size: 14px; }
  .send-actions { margin-top: 14px; column-gap: 10px; }
  .tool-page { padding: 26px 14px 44px; }
  .tool-columns, .qr-workspace { grid-template-columns: 1fr; gap: 9px; }
  .tool-field-heading:has(.tool-output-actions) { flex-wrap: wrap; }
  .tool-editor { font-size: 16px; min-height: 150px; }
  .tool-related { margin-top: 30px; }
  .word-stats div { padding: 7px; }
}
