@charset "UTF-8";
@font-face { font-family: "Instrument Sans Variable"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/instrument-sans.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans Variable"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/instrument-sans-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono Variable"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); }
/* Tokens follow the miszori.dev brand: black and white, with vault's project colour (blue) for its actions. Light and dark follow the system preference. */
:root {
  color-scheme: light dark;
  --background: #ffffff;
  --surface: #ffffff;
  --input: #ffffff;
  --text: #0a0a0a;
  --muted: #454545;
  --sub: #6b6b6b;
  --line: #6b6b6b;
  --hairline: #e4e4e4;
  --line-strong: #c8c8c8;
  --blue: #3d5afe;
  --on-blue: #ffffff;
  --focus: #0a0a0a;
  --danger: #c81e1e;
  --warning: #6b6b6b;
  --success: #15803d;
  --pending: #a16207;
  --mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: "Instrument Sans Variable", "Instrument Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --surface: #000000;
    --input: #000000;
    --text: #f5f5f5;
    --muted: #c4c4c4;
    --sub: #8f8f8f;
    --line: #8f8f8f;
    --hairline: #262626;
    --line-strong: #3a3a3a;
    --blue: #8197ff;
    --on-blue: #0a0a0a;
    --focus: #f5f5f5;
    --danger: #f87171;
    --warning: #8f8f8f;
    --success: #4ade80;
    --pending: #facc15;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; font-size: 15px; line-height: 1.6; background: var(--background); }
button, input, select, textarea { font: inherit; }
button, a, input, select, .file-picker { touch-action: manipulation; }
a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button { color: inherit; cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
code, kbd, samp, .mono { font-family: var(--mono); }
h1, h2, h3, p { margin: 0 0 16px; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: 28px; letter-spacing: -0.035em; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
input:not([type="checkbox"]):not([type="file"]), select {
  width: 100%; min-width: 0; max-width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 14px;
  color: var(--text); background: var(--input);
}
input:not([type="checkbox"]):not([type="file"]):hover, select:hover, textarea:hover { border-color: var(--text); }
input[type="checkbox"] { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); flex-shrink: 0; }
label:not(.check-row):not(.file-picker) { display: block; margin-bottom: 6px; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 10px 16px; background: var(--text); color: var(--background); z-index: 20; border-radius: 14px; }
.skip-link:focus { top: 12px; }
.admin-actions { display: flex; justify-content: flex-end; }
.admin-actions:has([hidden]) { display: none; }
.admin-actions:has(button:not([hidden])) { padding-top: 24px; }
.public-shell { flex: 1 0 auto; width: 100%; max-width: 900px; margin: 0 auto; padding: 32px 24px; display: flex; flex-direction: column; }
.public-main { width: 100%; margin-block: auto; }
.admin-main { width: 100%; margin: auto; }
.admin-body { flex: 1 0 auto; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px 40px; }
.admin-main { padding-top: 32px; }
.login-panel, .composer, .result-panel, .audit-panel { width: 100%; }
#login-form input { margin-bottom: 18px; }
#workspace { display: flex; flex-direction: column; gap: 24px; }
.panel, .transfer-card { min-width: 0; padding: 32px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; }
.panel-heading, .selection-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-heading h1, .panel-heading h2 { margin-bottom: 0; }
.package-state { color: var(--sub); font-family: var(--mono); font-size: 13px; text-transform: lowercase; }
#package-description:empty { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 1px solid transparent; border-radius: 14px; font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; }
.button.primary { color: var(--on-blue); background: var(--blue); }
.button.primary:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
.button.quiet { color: var(--text); background: transparent; border-color: var(--line); }
.button.quiet:hover:not(:disabled) { border-color: var(--text); }
.button.destructive { color: var(--on-blue); background: var(--blue); }
.button.destructive:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
#rename-name { margin-bottom: 16px; }
.error { font-weight: 600; }
td .text-button + .text-button { margin-left: 12px; }
.button.small { min-height: 44px; padding: 9px 13px; }
.full-width { width: 100%; }
.text-button { min-height: 44px; border: 0; padding: 10px 0; background: transparent; color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-button:hover:not(:disabled) { text-decoration-thickness: 2px; }
.danger, .error { color: var(--danger); }
.muted { color: var(--muted); }
.fine-print { color: var(--sub); }
.fine-print { margin: 14px 0 0; font-size: 13px; }
.status-message { margin: 14px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.status-message:empty { display: none; }
.package-facts { margin: 18px 0; padding: 12px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.package-facts > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 4px 0; }
dt { color: var(--sub); }
dd { margin: 0; overflow-wrap: anywhere; }
.notice { margin: 18px 0; padding: 12px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); font-size: 14px; }
.notice strong { color: var(--text); }
.notice p { margin: 6px 0 0; }
.notice p:first-child { margin-top: 0; }
.notice.one-time-warning { border-color: var(--danger); color: var(--danger); }
.notice.one-time-warning strong { color: var(--danger); }
.check-row { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; font-size: 14px; cursor: pointer; }
.progress-area { margin-top: 20px; }
.progress-copy { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; font-size: 13px; }
.progress-copy span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; }
progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--hairline); accent-color: var(--blue); }
progress::-webkit-progress-bar { background: var(--hairline); }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
progress.is-complete { accent-color: var(--success); }
progress.is-complete::-webkit-progress-value { background: var(--success); }
progress.is-complete::-moz-progress-bar { background: var(--success); }
#save-archive { margin-top: 16px; }
textarea { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 160px; max-height: 60vh; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: var(--input); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.format-picker { max-width: 320px; margin-bottom: 14px; }
#text-result { margin-top: 18px; }
#copy-text { margin-top: 12px; }
.composer { padding: 28px; }
.composer h1 { margin-bottom: 12px; }
.drop-zone { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 14px; }
.drop-zone > p { margin: 0; }
.drop-zone > .fine-print { flex-basis: 100%; }
.upload-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 16px; margin: 16px 0; }
.upload-options > div { min-width: 0; }
.upload-options .fine-print { margin-top: 6px; }
@media (max-width: 600px) {
  .upload-options { grid-template-columns: minmax(0, 1fr); }
}
.drop-zone.drag-over { border-color: var(--blue); }
.drop-zone.disabled { opacity: .55; }
.file-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.file-picker { position: relative; cursor: pointer; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-picker:focus-within { outline: 2px solid var(--focus); outline-offset: 4px; }
.file-picker:has(input:disabled) { cursor: not-allowed; }
.selection { margin-top: 18px; }
.selection-heading { margin-bottom: 4px; }
.file-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.file-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.file-list li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.file-list li span:last-child { flex-shrink: 0; color: var(--sub); font-family: var(--mono); font-size: 13px; }
.field-row { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
#share-link { font-family: var(--mono); font-size: 13px; margin-bottom: 12px; }
.table-scroll { position: relative; min-width: 0; max-width: 100%; overflow-x: auto; margin-top: 18px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th, td { padding: 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { color: var(--sub); font-weight: 600; white-space: nowrap; }
td { min-width: 100px; }
.package-id { white-space: nowrap; font-family: var(--mono); }
.table-secondary { display: block; margin-top: 4px; color: var(--sub); }
.status-badge { font-weight: 600; }
.status-ready { color: var(--success); }
.status-downloading { color: var(--pending); }
.status-uploading, .status-consuming { color: var(--blue); }
.status-consumed, .status-expired, .status-deleted, .status-unknown { color: var(--sub); }
.status-failed, .status-unavailable { color: var(--danger); }
.empty-state { margin-top: 18px; color: var(--sub); }
.empty-state p { margin-bottom: 0; }
dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; padding: 24px; color: var(--text); background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
#delete-description, #retrieval-package { overflow-wrap: anywhere; }
#retrieval-dialog { width: min(760px, calc(100% - 32px)); }
#retrieval-dialog .table-scroll { margin-bottom: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
/* Endorsement footer: the project's name on the left, "by miszori.dev" and the GM tile on the right */
.project-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 18px 28px; color: var(--sub); font-size: 14px; }
.endorse { display: inline-flex; align-items: center; gap: 8px; }
.endorse a { font-weight: 600; text-underline-offset: 3px; }
.gm-tile { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 22%; background: var(--text); color: var(--background); font-size: 9px; font-weight: 700; letter-spacing: -0.06em; line-height: 1; }
@media (max-width: 540px) {
  .public-shell { padding: 20px 16px; }
  .admin-body { padding: 0 16px 24px; }
  .admin-main { padding-top: 20px; }
  .project-footer { padding: 16px; }
  .panel, .transfer-card { padding: 20px; }
  h1 { font-size: 24px; }
  .drop-zone { padding: 16px; }
  .file-actions .button { flex: 1; }
  .dialog-actions .button { flex: 1; }
}
/* Homepage */
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-shell { flex: 1 0 auto; width: 100%; max-width: 1280px; margin: 0 auto; padding: 40px 24px 56px; display: flex; flex-direction: column; }
.home-shell > main { margin-block: auto; }
.home-intro { max-width: 680px; margin-bottom: 72px; }
.home-title { margin-bottom: 24px; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 0.95; letter-spacing: -0.045em; }
.home-lede { margin: 0; color: var(--muted); font-size: 1.3rem; line-height: 1.45; }
.flow-panel { padding: 0; border: 0; border-radius: 0; }
.flow-panel h2 { margin-bottom: 28px; font-size: 1.6rem; }
.flow { --gap: 64px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; }
.flow-zone, .zone-steps { display: contents; }
.zone-steps { margin: 0; padding: 0; list-style: none; }
.zone-head { grid-row: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.sender .zone-head { grid-column: 1 / 3; }
.server-zone .zone-head { grid-column: 3; }
.recipient .zone-head { grid-column: 4 / 6; }
.zone-tag { color: var(--sub); font-family: var(--mono); font-size: 13px; font-weight: 400; }
.flow-step { grid-row: 2; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 16px; border: 1px solid var(--line-strong); border-radius: 14px; }
.flow-step.server { border-style: dashed; border-color: var(--blue); }
.flow-head { display: flex; align-items: center; gap: 10px; min-width: 0; height: 28px; }
.flow-icon { display: inline-flex; flex-shrink: 0; color: var(--text); }
.flow-icon.accent { color: var(--blue); }
.flow-icon .icon { width: 22px; height: 22px; }
.flow-step h4 { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.flow-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.flow-sample { max-width: 100%; margin-top: auto; color: var(--sub); font-size: 13px; overflow-wrap: anywhere; }
.flow-step.server .flow-sample { color: var(--blue); }
.flow-link { position: absolute; top: 29px; left: calc(100% + 7px); width: calc(var(--gap) - 14px); height: 2px; background: var(--line-strong); }
.flow-link::after { content: ""; position: absolute; right: 2px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg); }
.flow-label { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); color: var(--sub); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.packet { position: absolute; inset: -4px 0; opacity: 0; animation: travel-x 8s ease-in-out infinite; }
.packet::before { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--text); }
.packet.sealed::before { border-radius: 0; background: var(--blue); }
.packet.d1 { animation-delay: 1.6s; }
.packet.d2 { animation-delay: 3.2s; }
.packet.d3 { animation-delay: 4.8s; }
@keyframes travel-x {
  0% { opacity: 0; transform: translateX(0); }
  3% { opacity: 1; }
  17% { opacity: 1; transform: translateX(calc(100% - 14px)); }
  20%, 100% { opacity: 0; transform: translateX(calc(100% - 14px)); }
}
.key-lane { position: relative; margin-top: 28px; margin-left: calc(30% - 12.8px); width: calc(40% + 25.6px); }
.key-path { display: block; width: 100%; height: 40px; overflow: visible; fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; animation: key-march 1.2s linear infinite; }
.key-path path { vector-effect: non-scaling-stroke; }
@keyframes key-march { to { stroke-dashoffset: -12; } }
.key-note { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: -11px; text-align: center; }
.key-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--background); color: var(--blue); }
.key-pill code { font-size: 13px; color: var(--text); }
.key-pill strong { color: var(--blue); font-weight: 700; }
.key-note p { max-width: 420px; margin: 0; color: var(--muted); font-size: 14px; }
.home-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 0; }
@media (max-width: 1200px) {
  .flow { --gap: 36px; display: block; max-width: 560px; }
  .flow-zone { display: block; }
  .zone-steps { display: grid; gap: var(--gap); }
  .zone-head { height: var(--gap); align-items: center; padding: 0 0 0 52px; border: 0; }
  .sender .zone-head { height: auto; margin-bottom: 16px; padding: 0 0 10px; border-bottom: 1px solid var(--hairline); }
  .flow-step { grid-row: auto; }
  .flow-link { top: calc(100% + 7px); left: 26px; width: 2px; height: calc(var(--gap) - 14px); }
  .flow-link::after { right: -4px; top: auto; bottom: 2px; transform: rotate(135deg); }
  .flow-label { display: none; }
  .packet { inset: 0 -4px; animation-name: travel-y; }
  @keyframes travel-y {
    0% { opacity: 0; transform: translateY(0); }
    3% { opacity: 1; }
    17% { opacity: 1; transform: translateY(calc(100% - 14px)); }
    20%, 100% { opacity: 0; transform: translateY(calc(100% - 14px)); }
  }
  .key-lane { width: auto; max-width: 560px; margin: 40px 0 0; }
  .key-path { display: none; }
  .key-note { align-items: flex-start; margin: 0; padding-top: 16px; border-top: 1px dashed var(--blue); text-align: left; }
  .key-pill { padding: 0; }
}
@media (max-width: 540px) {
  .home-shell { padding: 24px 16px; }
  .home-intro { margin-bottom: 48px; }
  .home-lede { font-size: 1.15rem; }
  .key-pill code { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .packet { display: none; }
}
