@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg-page: #161927;
  --bg-surface: #252837;
  --bg-input: #1b2030;
  --text-primary: #f7f8fc;
  --text-secondary: #c0c5d6;
  --text-muted: #9ba4bb;
  --border-default: #424a60;
  --border-subtle: #353d52;
  --brand: #4c5c96;
  --brand-hover: #5b6ba6;
  --focus: #b6c7ff;
  --danger: #ffb0b5;
  --success: #b8dfcf;
  --font-display: "Raleway", Helvetica, sans-serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  min-width: 320px;
  min-height: 100%;
}
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  font: 400 16px/1.55 var(--font-body);
  background:
    radial-gradient(ellipse at top left, #5b6ba61f, transparent 52%),
    linear-gradient(160deg, #171b2a, #202534);
}
a {
  color: #ced8ff;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover {
  color: #fff;
}
.site-header {
  background: #161927e8;
  border-bottom: 1px solid #ffffff14;
}
.header-inner {
  max-width: 1240px;
  margin: auto;
  min-height: 72px;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: #fff;
}
.brand-name {
  font: 700 17px/1 var(--font-display);
  letter-spacing: 0.14em;
}
.brand-product {
  border-left: 1px solid #ffffff30;
  padding-left: 18px;
  color: var(--text-muted);
  font: 400 11px/1.5 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.site-nav a {
  font: 600 12px/1.4 var(--font-display);
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--text-secondary);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
}
.page-shell {
  flex: 1;
  width: calc(100% - 48px);
  max-width: 1160px;
  margin: 48px auto;
}
.container {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #5b6ba647;
  border-radius: 16px;
  background: linear-gradient(155deg, #2a3044, #242838 70%);
  box-shadow:
    0 18px 48px #05081040,
    inset 0 1px 0 #ffffff0a;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}
.eyebrow {
  margin: 0 0 10px;
  color: #b3bdd9;
  font: 400 10px/1.5 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font: 600 27px/1.25 var(--font-display);
  letter-spacing: 0.02em;
  color: #fff;
}
.page-description {
  margin: 0 0 28px;
  color: var(--text-secondary);
  max-width: 54ch;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.form-group {
  margin-bottom: 22px;
}
label {
  display: block;
  margin-bottom: 9px;
  color: #e0e4f1;
  font: 600 12px/1.4 var(--font-display);
  letter-spacing: 0.025em;
}
input:not([type="checkbox"]),
textarea,
select {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-default);
  border-radius: 7px;
  background: var(--bg-input);
  color: var(--text-primary);
  padding: 11px 13px;
  font: 400 16px/1.5 var(--font-body);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input[type="password"],
.passphrase-field input,
#max-views {
  font-family: var(--font-mono);
  font-size: 14px;
}
textarea {
  min-height: 136px;
  resize: vertical;
}
select {
  cursor: pointer;
  padding-right: 24px;
}
input:not([type="checkbox"]):hover,
textarea:hover,
select:hover {
  border-color: #677391;
}
input:not([type="checkbox"]):focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: #91a5e2;
}
button {
  font: 600 12px/1.4 var(--font-display);
  letter-spacing: 0.035em;
  cursor: pointer;
}
button:not(.passphrase-toggle) {
  border: 1px solid #596584;
  border-radius: 6px;
  padding: 10px 14px;
  min-height: 40px;
  color: #f1f4ff;
  background: #30384e;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
button:not(.passphrase-toggle):hover {
  background: #3c4764;
  border-color: #7e8eb8;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
button.submit-btn {
  width: 100%;
  margin-top: 8px;
  min-height: 48px;
  padding: 14px 20px;
  background: var(--brand);
  border-color: #6c7cb3;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: inset 0 1px 0 #ffffff0d;
}
button.submit-btn:hover {
  background: var(--brand-hover);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.actions button {
  flex: 1;
}
.help {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
#passphrase-status {
  margin-bottom: 4px;
}
#secret-size {
  font-size: 11px;
  font-family: var(--font-mono);
}
#secret-size.size-error {
  color: var(--danger);
}
#secret-text[aria-invalid="true"] {
  border-color: var(--danger);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 26px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.settings-grid .form-group {
  margin: 0;
}
.passphrase-field {
  position: relative;
}
.passphrase-field input {
  padding-right: 54px;
}
.passphrase-field .passphrase-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 40px;
  padding: 10px;
  margin: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #b9c3dd;
}
.passphrase-toggle:hover {
  color: #fff;
  background: #ffffff0a;
}
.passphrase-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.passphrase-toggle .eye-slash {
  display: none;
}
.passphrase-toggle[aria-pressed="true"] .eye-slash {
  display: block;
}
#result {
  display: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: #1a2030;
  color: var(--text-primary);
}
#result.error {
  display: block;
  border-color: #ad697a;
  color: #ffd5db;
  background: #342332;
}
#result.success {
  display: block;
  border-color: #64758a;
  color: #e5f1ec;
}
.link-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #506181;
  border-radius: 7px;
  background: #242d41;
}
.link-card > p:first-child {
  margin-top: 0;
  color: #e0e7fc;
  font-weight: 600;
}
.link-card a {
  display: block;
  font: 12px/1.75 var(--font-mono);
  overflow-wrap: anywhere;
}
.link-card button {
  margin-top: 14px;
}
.link-card p[role="status"] {
  font-size: 13px;
  margin-bottom: 0;
}
.private-link {
  border-color: #8d7955;
  background: #2d2c35;
}
.private-link > p:first-child {
  color: #efcf96;
}
.uuid-display {
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  background: #1f2535;
  overflow-wrap: anywhere;
}
.uuid-label {
  display: block;
  font: 600 10px/1.4 var(--font-display);
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.uuid-value {
  font: 11px/1.6 var(--font-mono);
  color: #cdd5ee;
}
#secret-details {
  margin: 12px 0 24px;
}
#copy-secret,
#retry-status {
  margin-top: 14px;
}
#copy-status {
  font-size: 13px;
  color: var(--text-secondary);
}
#revoke-btn {
  background: #735267;
  border-color: #987086;
}
#revoke-btn:hover {
  background: #866079;
}
.noscript-message {
  width: calc(100% - 48px);
  max-width: 660px;
  margin: 24px auto 0;
  padding: 16px;
  border: 1px solid #b78574;
  border-radius: 8px;
  color: #ffe0cf;
  background: #382c30;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: calc(100% - 64px);
  max-width: 1176px;
  margin: 0 auto;
  padding: 20px 0 24px;
  border-top: 1px solid #ffffff12;
  color: var(--text-muted);
  font-size: 12px;
}
.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}
@media (max-width: 600px) {
  .header-inner {
    min-height: 64px;
    padding: 16px 20px;
    gap: 16px;
  }
  .brand {
    gap: 12px;
  }
  .brand-name {
    font-size: 15px;
  }
  .brand-product {
    padding-left: 12px;
    font-size: 9px;
  }
  .site-nav {
    gap: 14px;
  }
  .site-nav a {
    font-size: 10px;
  }
  .site-nav .source-link {
    display: none;
  }
  .page-shell {
    width: calc(100% - 28px);
    margin: 24px auto;
  }
  .container {
    padding: 24px 20px;
    border-radius: 12px;
  }
  h1 {
    font-size: 24px;
  }
  .panel-heading {
    gap: 14px;
  }
  .page-description {
    font-size: 15px;
  }
  .settings-grid {
    gap: 14px;
  }
  .actions button {
    font-size: 11px;
    padding: 10px;
  }
  .passphrase-field input,
  #max-views {
    font-size: 16px;
  }
  .site-footer {
    width: calc(100% - 40px);
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

#max-views,
#expiration-time {
  height: 46px;
}
.view-limit-field {
  position: relative;
}
.view-limit-label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font: 400 14px/1.5 var(--font-body);
}
.view-limit-field.is-unlimited input:not(:focus) {
  color: transparent;
}
.view-limit-field:focus-within .view-limit-label {
  display: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.no-passphrase-option {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.no-passphrase-option input {
  flex: 0 0 auto;
}
.passphrase-field input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#receipt {
  margin-bottom: 22px;
}
#receipt p {
  margin: 10px 0;
}
#refresh-receipt {
  margin-right: 10px;
}
