:root {
  color-scheme: dark;
  --bg: #07100f;
  --panel: #0d1817;
  --panel-2: #101f1d;
  --text: #f2f7f6;
  --muted: #9fb3af;
  --line: rgba(255,255,255,.09);
  --accent: #4ae0b2;
  --accent-strong: #2fc999;
  --danger: #ffb760;
  --radius: 20px;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(45, 202, 154, .10), transparent 28rem),
    radial-gradient(circle at 100% 30%, rgba(62, 117, 111, .10), transparent 30rem),
    var(--bg);
  color: var(--text);
}
.shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 32px; }
.brand { display: flex; align-items: center; gap: 13px; margin: 0 4px 30px; }
.brand-logo { width: 48px; height: 48px; display: block; filter: drop-shadow(0 8px 20px rgba(0,0,0,.28)); }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: .01em; }
.brand-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }
.card { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 35%), var(--panel); box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.hidden { display: none !important; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #bcd0cc; font-size: 13px; font-weight: 650; margin-bottom: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(74,224,178,.08); }
.dot.warning { background: var(--danger); box-shadow: 0 0 0 5px rgba(255,183,96,.08); }
h1 { margin: 0; max-width: 640px; font-size: clamp(30px, 4.2vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.lead { max-width: 620px; margin: 16px 0 30px; color: var(--muted); font-size: 16px; line-height: 1.65; }
label { display: block; font-size: 13px; font-weight: 700; color: #cbd8d5; margin: 22px 0 9px; }
textarea, input, select {
  width: 100%; border: 1px solid var(--line); outline: none; border-radius: 12px; background: #091311; color: var(--text); font: inherit; padding: 14px 15px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 126px; line-height: 1.55; }
textarea:focus, input:focus, select:focus { border-color: rgba(74,224,178,.65); box-shadow: 0 0 0 4px rgba(74,224,178,.08); }
/* Visibility toggle removed in v4.7.4. */
button, .button-link { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
.primary { width: 100%; margin-top: 24px; border: 0; border-radius: 12px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #03110d; background: var(--accent); font-weight: 800; transition: transform .12s, background .12s; }
.primary:hover { background: #62e8c0; transform: translateY(-1px); }
.primary.compact { width: auto; margin: 0; justify-content: center; white-space: nowrap; }
.ghost { border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: #d7e2df; font-weight: 700; }
.ghost:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.045); }
.ghost.full { width: 100%; padding: 14px; margin-top: 16px; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.trust-row div { display: flex; flex-direction: column; gap: 3px; }
.trust-row strong { font-size: 14px; }
.trust-row span { color: var(--muted); font-size: 12px; }
.copy-row { display: flex; align-items: stretch; gap: 10px; }
.copy-row input { min-width: 0; }
.copy-row textarea { min-width: 0; }
.hint { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #869b96; }
.success-icon, .error-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; font-weight: 850; }
.success-icon { background: rgba(74,224,178,.1); border: 1px solid rgba(74,224,178,.25); color: var(--accent); }
.error-icon { background: rgba(255,183,96,.1); border: 1px solid rgba(255,183,96,.25); color: var(--danger); }
.warning-box { padding: 14px 16px; border: 1px solid rgba(255,183,96,.18); border-radius: 12px; color: #d9c6ad; background: rgba(255,183,96,.05); font-size: 13px; line-height: 1.55; }
.button-link { display: block; text-align: center; text-decoration: none; }
footer { padding: 20px 6px 0; color: #667a76; font-size: 11px; line-height: 1.55; text-align: center; }
@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 760px); padding-top: 22px; }
  .brand { margin-bottom: 18px; }
  .card { padding: 24px 20px; border-radius: 16px; }
  h1 { font-size: 30px; }
  .trust-row { grid-template-columns: 1fr; gap: 12px; }
  .copy-row { flex-direction: column; }
  .primary.compact { width: 100%; padding: 13px; }
}




/* Language switcher */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.topbar .brand {
  margin-bottom: 30px;
}
.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted, #91a39f);
  font-size: 12px;
  font-weight: 700;
  user-select: none;
}
.lang-btn {
  appearance: none;
  border: 0;
  padding: 4px 2px;
  background: transparent;
  color: var(--muted, #91a39f);
  font: inherit;
  cursor: pointer;
}
.lang-btn:hover,
.lang-btn:focus-visible,
.lang-btn.active {
  color: var(--accent, #4ae0b2);
}
.lang-btn.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 520px) {
  .topbar {
    gap: 10px;
  }
  .language-switcher {
    margin-top: 10px;
  }
}


/* Secondary copy action on the generated-link screen */
.copy-with-text {
  margin-top: 10px;
}

.copy-info-hint {
  margin: 7px 2px 0;
  color: var(--muted, #91a39f);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.field-meta { margin-top: 7px; text-align: right; color: var(--muted); font-size: 12px; }
.field-meta.limit-near { color: #e3a84f; font-weight: 700; }
.field-meta.limit-over { color: #ff6b6b; font-weight: 800; }
.notice { margin: -12px 0 22px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; background: rgba(255,255,255,.02); }

.post-reveal-notes {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.post-reveal-notes p {
  margin: 0;
}
.post-reveal-notes p + p {
  margin-top: 4px;
}

@media (min-width: 700px) {
  #revealView h1 {
    font-size: 32px;
  }
}

.footer-links {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
}
.footer-links a {
  color: var(--muted, #91a39f);
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent, #4ae0b2);
}

/* Revealed information: content-sized field with a compact copy action below it. */
.revealed-secret-wrap textarea {
  width: 100%;
  min-height: 58px;
  max-height: 420px;
  overflow-y: auto;
  resize: vertical;
}
.revealed-secret-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.revealed-secret-actions .primary.compact,
.revealed-secret-actions .ghost.compact {
  min-width: 112px;
  padding: 11px 16px;
}
@media (max-width: 620px) {
  .revealed-secret-actions .primary.compact,
  .revealed-secret-actions .ghost.compact {
    width: auto;
  }
}

.brand-home {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}
.brand-home:hover,
.brand-home:focus-visible {
  color: inherit;
}

@media (max-width: 720px) {
}

@media (max-width: 720px) {
}

.site-version {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  opacity: .55;
  font-size: 11px;
  line-height: 1.4;
}

/* Result page hierarchy refinement. */
.result-secondary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.result-secondary .copy-with-text {
  flex: 0 0 auto;
  width: auto;
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}
.result-secondary-info {
  min-width: 0;
}
.result-secondary-info .copy-info-hint,
.result-secondary-info .result-expiry {
  margin: 0;
  text-align: left;
}
.result-secondary-info .result-expiry {
  margin-top: 3px;
}
.result-new-link {
  margin-top: 22px;
}
@media (max-width: 720px) {
  .result-link-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .result-link-row .compact {
    width: 100%;
  }
  .result-secondary {
    display: block;
    margin-top: 14px;
  }
  .result-secondary .copy-with-text {
    width: 100%;
  }
  .result-secondary-info {
    margin-top: 9px;
  }
  .result-secondary-info .copy-info-hint,
  .result-secondary-info .result-expiry {
    text-align: center;
  }
  .result-new-link {
    margin-top: 20px;
  }
}

/* v4.6.11: expiry belongs to the one-time link, not the copy-with-info action. */
#resultView > .result-expiry {
  margin: 9px 0 0;
  text-align: left;
}
.result-secondary {
  display: block;
  margin-top: 18px;
}
.result-secondary .copy-with-text {
  width: auto;
}
.result-secondary > .copy-info-hint {
  margin: 7px 0 0;
  text-align: left;
}
@media (max-width: 720px) {
  #resultView > .result-expiry {
    margin-top: 8px;
    text-align: left;
  }
  .result-secondary {
    margin-top: 18px;
  }
  .result-secondary .copy-with-text {
    width: 100%;
  }
  .result-secondary > .copy-info-hint {
    text-align: center;
  }
}


/* v4.6.13: compact explanation below the primary create workflow. */
.why-onetime {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}
.why-item h2 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.35;
}
.why-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.why-more {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 720px) {
  .why-onetime {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
  }
}

/* v4.6.18: single homepage explanation uses the full card width. */
.why-onetime.single {
  display: block;
}
.why-onetime.single .why-item {
  width: 100%;
  max-width: none;
}
.why-onetime.single .why-item p {
  max-width: none;
}

/* v4.6.19: prominent secondary How SecureShare works link on homepage */
.how-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:14px;
  padding:10px 15px;
  border:1px solid #2a6f5e;
  border-radius:10px;
  color:#bdebdc;
  text-decoration:none;
  font-weight:700;
  transition:border-color .15s ease, background .15s ease;
}
.how-cta:hover,.how-cta:focus-visible{
  border-color:#49d8b3;
  background:#0d201c;
}

/* v4.6.22: password-like, single-line secrets can be shown with character classes. */
.password-preview {
  width: 100%;
  min-height: 58px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.16);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.45;
  overflow-wrap: anywhere;
  user-select: text;
}
.password-preview .pw-prefix {
  color: var(--text);
  opacity: .86;
}
.pw-upper { color: #78b7ff; }
.pw-lower { color: #74dfb8; }
.pw-digit { color: #ffd36e; }
.pw-special { color: #78b7ff; }

.password-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}
.password-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.legend-sample {
  min-width: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  text-align: center;
}
@media (max-width: 620px) {
  .password-preview {
    padding: 14px;
    font-size: 19px;
  }
  .password-legend {
    gap: 7px 11px;
  }
}

/* v4.6.24: compact password preview typography. */
.password-preview {
  min-height: 58px;
  padding: 13px 14px;
  font-size: 16px;
  line-height: 1.45;
}
.password-legend {
  margin-top: 7px;
  font-size: 11px;
}
.legend-sample {
  font-size: 13px;
}
@media (max-width: 620px) {
  .password-preview {
    padding: 13px 14px;
    font-size: 16px;
  }
}

/* v4.6.25: password preview uses the same font as the rest of SecureShare. */
.password-preview,
.legend-sample {
  font-family: inherit;
}

/* v4.6.26: use a clearer system monospace font only for the detected password. */
.password-preview {
  font-family: Consolas, "Courier New", monospace;
}
.password-preview .pw-prefix {
  font-family: inherit;
}
.password-legend,
.legend-sample {
  font-family: inherit;
}

/* v4.6.27: only the detected password uses monospace; surrounding text uses the normal site font. */
.password-preview {
  font-family: inherit;
}
.password-preview .pw-prefix {
  font-family: inherit;
}
.password-preview .pw-upper,
.password-preview .pw-lower,
.password-preview .pw-digit,
.password-preview .pw-special {
  font-family: Consolas, "Courier New", monospace;
}

/* v4.6.28: tighten reveal layout around legend, copy button and notes. */
.password-legend {
  margin-top: 6px;
}

.revealed-secret-actions {
  margin-top: 8px;
}

#secretView .post-reveal-notes {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

#secretView .post-reveal-notes p {
  margin: 0;
}

#secretView .post-reveal-notes p + p {
  margin-top: 4px;
}

@media (min-width: 621px) {
  #secretView .revealed-secret-actions {
    margin-top: 8px;
  }
}

/* v4.6.32: calmer password highlighting: letters one color, numbers and specials distinct. */
.password-preview .pw-upper,
.password-preview .pw-lower,
.legend-sample.pw-upper,
.legend-sample.pw-lower {
  color: var(--text);
}
.password-preview .pw-digit,
.legend-sample.pw-digit {
  color: #ffd36e;
}
.password-preview .pw-special,
.legend-sample.pw-special {
  color: #78b7ff;
}

/* v4.6.40: subtler password emphasis; all password characters stay the same size. */
.password-preview > .pw-letter,
.password-preview > .pw-digit,
.password-preview > .pw-special {
  font-size: 1.10em;
  font-weight: 400;
}

/* v4.6.40: preserve original line breaks in password preview. */
.password-preview {
  white-space: pre-wrap;
}

/* v4.6.74: clean visual pass */
body {
  background:
    radial-gradient(circle at 20% 0%, rgba(45, 202, 154, .075), transparent 30rem),
    var(--bg);
}
.card {
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}
.trust-row {
  gap: 18px;
}
.trust-row div {
  min-width: 0;
}
.site-version {
  margin-top: 18px;
  opacity: .42;
}
@media (max-width: 620px) {
  .trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .trust-row div {
    text-align: center;
    align-items: center;
  }
  .trust-row strong {
    font-size: 13px;
  }
  .trust-row span {
    font-size: 10px;
    line-height: 1.25;
  }
}


/* v4.6.74: subtle project-family attribution below the version. */
.site-version .site-parent {
  display: block;
  margin-top: 3px;
}
.site-version .site-parent a {
  color: inherit;
  text-decoration: none;
}
.site-version .site-parent a:hover,
.site-version .site-parent a:focus-visible {
  color: var(--accent);
  opacity: 1;
}


/* v4.6.74: cleaner homepage hierarchy.
   The brand already explains the product, so the create card goes straight to the task. */
#createView > h1 {
  margin-bottom: 4px;
}
#createView form {
  margin-top: 8px;
}
#createView form > label:first-child {
  margin-top: 18px;
}

/* v4.7.15: the visibility toggle was removed in v4.7.4.
   Use the normal textarea padding so text can use the full field width. */
.secret-wrap textarea {
  padding-right: 15px;
}

/* Slightly improve spacing for the three-part password legend. */
.password-legend {
  gap: 8px 16px;
}


/* v4.6.74: polished, restrained layout */
:root {
  --radius: 18px;
}

.shell {
  width: min(760px, calc(100% - 28px));
  padding-top: 36px;
}

.topbar {
  align-items: center;
}

.topbar .brand {
  margin-bottom: 24px;
}

.card {
  padding: 34px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0) 32%),
    var(--panel);
  box-shadow: 0 18px 52px rgba(0,0,0,.20);
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 12px;
}

#createView > h1 {
  max-width: 560px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
}

#createView form {
  margin-top: 20px;
}

textarea,
input,
select {
  border-color: rgba(255,255,255,.11);
  background: #091412;
}

.secret-wrap textarea {
  min-height: 118px;
}

#secretSize {
  margin-top: 6px;
  opacity: .82;
}

.primary {
  min-height: 50px;
  border-radius: 11px;
}

.trust-row {
  margin-top: 24px;
  padding-top: 20px;
}

.why-onetime {
  margin-top: 24px;
  padding-top: 20px;
}

.why-item h2 {
  font-size: 14px;
}

.why-item p {
  font-size: 13px;
  line-height: 1.55;
}

.how-cta {
  margin-top: 12px;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 13px;
}

.notice {
  margin-top: -8px;
}

.password-preview {
  border-color: rgba(255,255,255,.11);
  background: rgba(0,0,0,.13);
}

.password-legend {
  opacity: .9;
}

.site-version {
  margin-top: 16px;
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 16px, 760px);
    padding-top: 16px;
  }

  .topbar .brand {
    margin-bottom: 14px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-sub {
    max-width: 230px;
    line-height: 1.3;
  }

  .card {
    padding: 22px 18px;
    border-radius: 15px;
  }

  #createView > h1 {
    font-size: 28px;
  }

  .trust-row {
    gap: 6px;
  }

  .trust-row span {
    font-size: 10px;
  }

  .how-cta {
    width: 100%;
  }
}


/* v4.6.74: refine select arrow alignment and form control consistency. */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px;
  background-image:
    linear-gradient(45deg, transparent 50%, #9fb3af 50%),
    linear-gradient(135deg, #9fb3af 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

select::-ms-expand {
  display: none;
}

textarea,
input,
select,
.primary {
  border-radius: 11px;
}

@media (max-width: 620px) {
  select {
    padding-right: 44px;
    background-position:
      calc(100% - 18px) 50%,
      calc(100% - 13px) 50%;
  }
}


/* v4.6.77: subtle conversion path after viewing a secret. */
.post-reveal-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color .15s ease;
}
.post-reveal-cta:hover,
.post-reveal-cta:focus-visible {
  color: var(--accent);
}
@media (max-width: 620px) {
  .post-reveal-cta { margin-top: 16px; }
}

/* v4.7.15: small responsive polish without changing the visual identity. */
@media (min-width: 621px) {
  .card { padding: 40px; }
  textarea, input, select { min-height: 48px; }
  .why-onetime { margin-top: 30px; }
}
@media (max-width: 620px) {
  .shell { padding-bottom: 24px; }
  .card { padding: 23px 18px; }
  .lead { margin-bottom: 25px; font-size: 15px; line-height: 1.6; }
  textarea, input, select { font-size: 16px; } /* prevents iOS form zoom */
  textarea { min-height: 118px; }
  label { margin-top: 20px; }
  .primary { min-height: 50px; }
  .trust-row { grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
  .trust-row div { align-items: center; }
  .trust-row strong { font-size: 13px; }
  .trust-row span { font-size: 11px; }
  .revealed-secret-actions { flex-direction: column; }
  .revealed-secret-actions .compact { width: 100%; min-height: 46px; }
  .footer-links { margin-top: 15px; }
}
@media (max-width: 360px) {
  .card { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 28px; }
}


/* v4.7.15: optional client-side password generator. */
.password-generator { margin-top: 12px; }
.generator-toggle { padding: 9px 12px; font-size: 13px; }
.generator-panel { margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.generator-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.generator-head strong { font-size: 14px; }
.generator-head span { color: var(--muted); font-size: 11px; text-align: right; }
.generator-panel > label { margin-top: 16px; }
.generator-panel input[type="range"] { min-height: 0; padding: 0; accent-color: var(--accent); }
.generator-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 28px; margin-top: 14px; }
.generator-options label { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0; font-weight: 600; color: #cbd8d5; }
.generator-options label:last-child { grid-column: 1 / -1; white-space: nowrap; }
.generator-options input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); }
.generator-actions { display: flex; gap: 10px; margin-top: 16px; }
.generator-actions .compact { flex: 1; padding: 11px 13px; margin: 0; }
.generator-preview { margin-top: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #091311; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; line-height: 1.5; }
@media (max-width: 620px) {
  .generator-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .generator-head span { text-align: left; }
  .generator-options { grid-template-columns: 1fr; }
  .generator-options label:last-child { grid-column: auto; white-space: normal; }
  .generator-actions { flex-direction: column; }
  .generator-actions .compact { width: 100%; }
}


/* v4.7.15: responsive UI polish.
   Keep the password generator visually attached to the secret field while
   preserving the create button as the single primary action. */
.secret-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}
.secret-toolbar .generator-toggle {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  margin: 0;
}
.secret-toolbar .field-meta {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}
.password-generator {
  margin-top: 0;
}
.generator-panel {
  margin-top: 10px;
}
.generator-toggle:focus-visible {
  outline: 2px solid rgba(74,224,178,.72);
  outline-offset: 2px;
}

/* Keep labels and controls visually grouped without making the form feel dense. */
#expiry {
  margin-top: 0;
}
#createView form > label[for="expiry"] {
  margin-top: 21px;
}

/* Result actions: keep secondary actions visually secondary on larger screens. */
@media (min-width: 621px) {
  .result-secondary .ghost,
  .result-new-link {
    max-width: 360px;
  }
}

/* Mobile: keep the helper action close to the field, and stack only on very
   narrow screens where the Dutch/English label could otherwise feel cramped. */
@media (max-width: 620px) {
  .secret-toolbar {
    margin-top: 8px;
    gap: 10px;
  }
  .secret-toolbar .generator-toggle {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 13px;
  }
  .generator-panel {
    padding: 15px;
  }
}
@media (max-width: 360px) {
  .secret-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .secret-toolbar .generator-toggle {
    width: 100%;
  }
  .secret-toolbar .field-meta {
    align-self: flex-end;
  }
}


/* v4.7.15: generator has three explicit actions: regenerate, copy and use. */
.generator-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 620px) {
  .generator-actions {
    grid-template-columns: 1fr 1fr;
  }
  .generator-actions #usePassword {
    grid-column: 1 / -1;
  }
}
@media (max-width: 390px) {
  .generator-actions {
    grid-template-columns: 1fr;
  }
  .generator-actions #usePassword {
    grid-column: auto;
  }
}


/* v5.0: small encrypted file sharing */
.file-divider{display:flex;align-items:center;gap:12px;margin:22px 0 14px;color:var(--muted);font-size:12px}.file-divider::before,.file-divider::after{content:"";height:1px;background:var(--line);flex:1}.file-picker{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.015)}.file-input{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}.file-button{display:inline-flex;align-items:center;justify-content:center;padding:11px 14px;margin:0;cursor:pointer;white-space:nowrap}.file-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.file-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-copy span{color:var(--muted);font-size:11px;line-height:1.4}.revealed-file{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:13px;align-items:center;padding:15px;border:1px solid var(--line);border-radius:12px;background:#091311}.file-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:rgba(74,224,178,.08);color:var(--accent);font-size:20px;font-weight:800}.revealed-file-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.revealed-file-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.revealed-file-copy span{color:var(--muted);font-size:12px}@media(max-width:620px){.file-picker{grid-template-columns:1fr}.file-button{width:100%}.revealed-file{grid-template-columns:42px minmax(0,1fr)}.revealed-file .primary{grid-column:1/-1;width:100%}}

/* v5.0.5: drag-and-drop file selection */
.file-picker{transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.file-picker.drag-over{border-color:var(--accent);background:rgba(74,224,178,.06);box-shadow:0 0 0 2px rgba(74,224,178,.10)}.file-drop-hint{display:block;color:var(--muted);font-size:11px;line-height:1.4}@media(max-width:620px){.file-drop-hint{display:none}}

/* v5.0.5: password generator modal on desktop and bottom sheet on mobile. */
body.modal-open { overflow: hidden; }
.generator-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.generator-backdrop { position: absolute; inset: 0; background: rgba(2, 8, 7, .72); backdrop-filter: blur(3px); }
.generator-sheet { position: relative; z-index: 1; width: min(560px, 100%); max-height: min(720px, calc(100vh - 48px)); overflow: auto; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #0d1816; box-shadow: 0 24px 70px rgba(0,0,0,.46); }
.generator-head { align-items: flex-start; }
.generator-head > div { display: flex; flex-direction: column; gap: 4px; }
.generator-head span { text-align: left; }
.generator-close { flex: 0 0 auto; width: 38px; height: 38px; min-height: 0; margin: -7px -7px 0 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 25px; line-height: 1; cursor: pointer; }
.generator-close:hover { background: rgba(255,255,255,.055); color: #fff; }
.generator-close:focus-visible { outline: 2px solid rgba(74,224,178,.72); outline-offset: 2px; }
.generator-grab { display: none; }
.generator-sheet > label { margin-top: 20px; }
@media (max-width: 620px) {
  .generator-modal { place-items: end stretch; padding: 0; }
  .generator-backdrop { background: rgba(2, 8, 7, .66); }
  .generator-sheet { width: 100%; max-height: min(88dvh, 760px); padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 20px 20px 0 0; box-shadow: 0 -18px 55px rgba(0,0,0,.42); }
  .generator-grab { display: block; width: 42px; height: 4px; margin: 0 auto 13px; border-radius: 999px; background: rgba(255,255,255,.22); }
  .generator-head { flex-direction: row; align-items: flex-start; gap: 12px; }
  .generator-head > div { min-width: 0; }
  .generator-close { margin: -5px -5px 0 0; width: 42px; height: 42px; }
  .generator-options label { min-height: 36px; }
  .generator-options input[type="checkbox"] { width: 19px; height: 19px; }
  .generator-sheet input[type="range"] { min-height: 34px; }
  .generator-actions .compact { min-height: 46px; }
}
.generator-sheet input[type="range"] { min-height: 0; padding: 0; accent-color: var(--accent); }

/* v5.1.0 retrieval status */
.top-actions-public { display:flex; align-items:center; gap:16px; margin-top:8px; }
.top-actions-public .language-switcher { margin-top:0; }
.status-nav { color:var(--muted); text-decoration:none; font-size:12px; font-weight:750; padding:6px 0; }
.status-nav:hover,.status-nav:focus-visible { color:var(--accent); }
.status-option { display:flex; align-items:flex-start; gap:11px; margin:18px 0 0; padding:13px 14px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.018); cursor:pointer; }
.status-option input { width:18px; height:18px; min-height:0; margin:1px 0 0; padding:0; flex:0 0 auto; accent-color:var(--accent); }
.status-option span { display:flex; flex-direction:column; gap:3px; }
.status-option strong { color:#dce7e4; font-size:13px; }
.status-option small { color:var(--muted); font-size:12px; line-height:1.45; font-weight:500; }
.status-created { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:16px 0 0; padding:13px 14px; border:1px solid rgba(74,224,178,.18); border-radius:12px; background:rgba(74,224,178,.045); }
.status-created div { display:flex; flex-direction:column; gap:3px; }
.status-created strong { font-size:13px; }
.status-created span { color:var(--muted); font-size:12px; line-height:1.4; }
.status-created a { color:var(--accent); font-size:12px; font-weight:800; text-decoration:none; white-space:nowrap; }
@media(max-width:520px){
  .top-actions-public { gap:10px; }
  .status-created { align-items:flex-start; flex-direction:column; gap:9px; }
}

/* v5.1.3: compact create flow. Keep the full feature set while reducing vertical travel. */
@media (min-width: 621px) {
  .shell { padding-top: 24px; }
  .topbar .brand { margin-bottom: 16px; }
  .brand-logo { width: 44px; height: 44px; }
  .card { padding: 30px 34px; }
  .eyebrow { margin-bottom: 10px; }
  #createView > h1 { font-size: 32px; }
  #createView > .lead { margin: 10px 0 18px; line-height: 1.5; }
  #createView form { margin-top: 12px; }
  .secret-wrap textarea { min-height: 96px; }
  .secret-toolbar { margin-top: 6px; }
  .file-divider { margin: 14px 0 10px; }
  .file-picker { padding: 10px 12px; }
  .file-button { padding: 9px 12px; }
  #createView form > label[for="expiry"] { margin-top: 14px; margin-bottom: 7px; }
  #expiry { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
  .status-option { margin-top: 12px; padding: 10px 12px; }
  .status-option small { line-height: 1.35; }
  #createBtn { margin-top: 14px; min-height: 46px; padding: 12px 16px; }
  .trust-row { margin-top: 18px; padding-top: 15px; }
  .why-onetime { margin-top: 16px; padding-top: 15px; }
  .why-item p { margin-top: 6px; line-height: 1.45; }
  .how-cta { margin-top: 8px; padding: 8px 12px; }
  .site-version { margin-top: 10px; }
}

@media (max-width: 620px) {
  .shell { padding-top: 10px; padding-bottom: 18px; }
  .topbar .brand { margin-bottom: 10px; }
  .card { padding: 19px 16px; }
  .eyebrow { margin-bottom: 9px; }
  #createView > h1 { font-size: 26px; }
  #createView > .lead { margin: 9px 0 17px; line-height: 1.48; }
  #createView form { margin-top: 10px; }
  textarea { min-height: 100px; }
  .secret-toolbar { margin-top: 6px; }
  .file-divider { margin: 14px 0 10px; }
  .file-picker { padding: 10px; }
  #createView form > label[for="expiry"] { margin-top: 14px; margin-bottom: 7px; }
  .status-option { margin-top: 12px; padding: 10px 11px; }
  #createBtn { margin-top: 14px; min-height: 48px; }
  .trust-row { margin-top: 17px; padding-top: 14px; }
  .why-onetime { margin-top: 16px; padding-top: 14px; }
  .site-version { margin-top: 10px; }
}

/* v5.1.4: retrieval status is deliberately secondary to the primary create action. */
.status-option {
  gap:9px; margin-top:12px; padding:2px 0; border:0; border-radius:0; background:transparent;
}
.status-option input { width:16px; height:16px; margin-top:2px; }
.status-option span { gap:1px; }
.status-option strong { font-size:12px; font-weight:750; color:#b9c9c5; }
.status-option small { font-size:11px; line-height:1.35; color:#7f9691; }
.status-nav { font-weight:650; color:#879b97; }
.status-nav::after { content:none; }

/* v5.1.18: final responsive polish. Clear hierarchy, compact desktop flow and comfortable mobile targets. */
#createView { overflow: hidden; }
#createView .lead { max-width: 600px; }
#createView textarea { background: #081210; }
#createView textarea::placeholder { color: #718783; }
#expiry { cursor: pointer; }
.status-option:has(input:focus-visible) { outline: 2px solid rgba(74,224,178,.58); outline-offset: 4px; border-radius: 4px; }
.status-option:hover strong { color: #d5e2df; }
#createBtn { box-shadow: 0 8px 24px rgba(47,201,153,.10); }
#createBtn:focus-visible, .ghost:focus-visible, .file-button:focus-visible, .how-cta:focus-visible, .status-nav:focus-visible { outline: 2px solid rgba(74,224,178,.72); outline-offset: 3px; }

@media (min-width: 621px) {
  .shell { width: min(720px, calc(100% - 40px)); }
  .topbar { align-items: center; }
  .top-actions-public { margin-top: 0; }
  .card { padding: 28px 32px; }
  #createView > .lead { max-width: 570px; font-size: 14px; }
  .file-picker { min-height: 58px; }
  #createBtn { font-size: 15px; }
  .trust-row div { align-items: center; text-align: center; }
  .why-onetime.single .why-item { max-width: none; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 16px, 760px); padding-top: 8px; }
  .topbar { align-items: center; margin: 0 2px; }
  .brand-home { gap: 9px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-name { font-size: 14px; }
  .brand-sub { display: none; }
  .top-actions-public { gap: 9px; margin-top: 0; }
  .status-nav { font-size: 11.5px; padding: 10px 0; }
  .language-switcher { margin-top: 0; }
  .lang-btn { min-width: 28px; min-height: 40px; }
  .card { padding: 18px 15px; border-radius: 15px; }
  .eyebrow { font-size: 11.5px; }
  #createView > h1 { font-size: clamp(24px, 7.5vw, 28px); }
  #createView > .lead { font-size: 13.5px; line-height: 1.48; }
  textarea { min-height: 92px; padding: 12px 13px; }
  .secret-toolbar .generator-toggle { min-height: 40px; }
  .file-picker { gap: 8px; }
  .file-button { min-height: 42px; }
  #expiry { min-height: 46px; }
  .status-option { align-items: flex-start; padding: 3px 1px; }
  .status-option input { width: 18px; height: 18px; }
  .status-option strong { font-size: 12.5px; }
  .status-option small { font-size: 11.5px; }
  #createBtn { min-height: 50px; font-size: 14px; border-radius: 11px; }
  .trust-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .trust-row div { align-items: center; text-align: center; }
  .trust-row strong { font-size: 13px; }
  .trust-row span { font-size: 10.5px; }
  .why-item h2 { font-size: 14px; }
  .why-item p { font-size: 12px; }
  footer { padding-top: 15px; }
}

@media (max-width: 390px) {
  .status-nav { max-width: 112px; line-height: 1.2; text-align: right; }
  .status-nav::after { display: none; }
  .top-actions-public { gap: 6px; }
  .trust-row { gap: 3px; }
}

/* v5.1.21: canonical shared site shell. */
@media (min-width:621px){
  .shell{width:min(720px,calc(100% - 40px));padding-top:24px}
  .topbar .brand{margin-bottom:16px}
  .brand-logo{width:44px;height:44px}
  .card{padding:28px 32px}
}
@media (max-width:620px){
  .shell{width:min(100% - 16px,760px);padding-top:8px;padding-bottom:18px}
  .topbar{align-items:center;margin:0 2px}
  .topbar .brand{margin-bottom:10px;gap:9px}
  .brand-logo{width:38px;height:38px}
  .brand-name{font-size:14px}
  .brand-sub{display:none}
  .card{padding:18px 15px;border-radius:15px}
}

/* v5.1.21: stable header geometry and a little more desktop breathing room. */
@media (min-width:621px){
  .shell{width:min(800px,calc(100% - 48px))}
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) 164px;align-items:center;column-gap:20px}
  .top-actions-public{width:164px;display:grid;grid-template-columns:78px 78px;align-items:center;justify-content:end;gap:8px;margin-top:0}
  .status-nav{justify-self:end;text-align:right;white-space:nowrap}
  .top-actions-public .language-switcher{width:78px;justify-content:flex-end;margin-top:0}
}
