/* axi0 share links (/s/): the viewer and the sender's list of links. The axi0 family look of Drive and Notes: true black or
   paper, Instrument Sans, the orange core as the one accent. No inline styles (the page runs under style-src 'self'); the
   header block is Drive's, unchanged (the launcher owns header geometry). */
@font-face {
  font-family: "Instrument Sans";
  src: url(/axi0/fonts/instrument-sans-latin-var.woff2) format("woff2");
  font-weight: 400 700;
  font-display: optional;
}
:root {
  --bg: #000; --panel: #0a0a0c; --panel2: #0d0d10; --panel-a: rgba(10, 10, 12, .9); --field: #050506; --hover: #141418; --raise: #18181d;
  --line: #1c1c21; --line1b: #1d1d23; --line2: #2a2a31; --line3b: #33333b; --line3: #3a3a42; --field-line: #2a2a31;
  --head: #fff; --ink: #f5f5f7; --ink2: #f1f1f4; --text: #d6d6dc; --text2: #c4c4cc; --icon: #b9b9c2; --soft: #b4b4bd; --soft2: #a9a9b3;
  --lede: #a3a3ad; --soft4: #9a9aa4; --mute: #8e8e98; --faint: #868692; --place: #7c7c87;
  --core: #f6a04d; --core-ink: #f6a04d; --core-hover: #ffb26a; --on-core: #000;
  --danger: #ff8f78; --danger-line: rgba(255, 143, 120, .4);
  --knob: #c8c8d0; --veil: rgba(255, 255, 255, .08); --uline: rgba(196, 196, 204, .45); --shade: rgba(0, 0, 0, .7); --code-bg: #15151a;
  color-scheme: dark;
}
html[data-axi0-theme="light"] {
  --bg: #f6f2ea; --panel: #fffdf9; --panel2: #fffdf9; --panel-a: rgba(255, 253, 249, .92); --field: #fffdf9; --hover: #efe8dc; --raise: #ece5d8;
  --line: #e6dfd3; --line1b: #e6dfd3; --line2: #d3cabb; --line3b: #b9ae9c; --line3: #8a8174; --field-line: #8a8174;
  --head: #17140f; --ink: #17140f; --ink2: #1f1b16; --text: #2c2823; --text2: #3d3730; --icon: #4f4940; --soft: #4a433b; --soft2: #50483f;
  --lede: #4f4940; --soft4: #5d554b; --mute: #675f54; --faint: #675f54; --place: #6f665a;
  --core-ink: #9a4a0a; --danger: #b3261e; --danger-line: rgba(179, 38, 30, .4);
  --knob: #6f665a; --veil: rgba(60, 40, 20, .07); --uline: rgba(61, 55, 48, .45); --shade: rgba(40, 30, 20, .45); --code-bg: #f1ece2;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html:not([data-axi0-theme="dark"]) {
    --bg: #f6f2ea; --panel: #fffdf9; --panel2: #fffdf9; --panel-a: rgba(255, 253, 249, .92); --field: #fffdf9; --hover: #efe8dc; --raise: #ece5d8;
    --line: #e6dfd3; --line1b: #e6dfd3; --line2: #d3cabb; --line3b: #b9ae9c; --line3: #8a8174; --field-line: #8a8174;
    --head: #17140f; --ink: #17140f; --ink2: #1f1b16; --text: #2c2823; --text2: #3d3730; --icon: #4f4940; --soft: #4a433b; --soft2: #50483f;
    --lede: #4f4940; --soft4: #5d554b; --mute: #675f54; --faint: #675f54; --place: #6f665a;
    --core-ink: #9a4a0a; --danger: #b3261e; --danger-line: rgba(179, 38, 30, .4);
    --knob: #6f665a; --veil: rgba(60, 40, 20, .07); --uline: rgba(61, 55, 48, .45); --shade: rgba(40, 30, 20, .45); --code-bg: #f1ece2;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 15px/1.55 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: var(--core-ink); text-underline-offset: 3px; }
::selection { background: rgba(246, 160, 77, .35); }
[hidden] { display: none !important; }
.is-locked .when-unlocked, .is-unlocked .when-locked { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 8px 14px; border-radius: 999px; background: var(--core); color: var(--on-core); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--core-ink); outline-offset: 2px; }

/* ---- header ------------------------------------------------------------------------------------------------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 22px 20px 8px; }
.mark { display: inline-flex; align-items: baseline; gap: .12em; color: var(--head); text-decoration: none; font-size: 26px; font-weight: 600; letter-spacing: -.045em; white-space: nowrap; }
.mark-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--core); box-shadow: 0 0 9px var(--core); transform: translateY(-2px); }
.mark-s { color: var(--mute); font-weight: 500; }
.top-nav { display: flex; gap: 20px; }
.top-nav a { color: var(--soft); text-decoration: none; font-size: 14px; }
.top-nav a:hover { color: var(--head); text-decoration: underline; }
.top-right { display: flex; align-items: center; gap: 14px; }
.top-nav a { line-height: 44px; }
.theme-btn {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line2); border-radius: 50%;
  background: var(--panel); color: var(--icon); cursor: pointer; transition: border-color .15s, color .15s;
}
.theme-btn:hover { border-color: var(--core); color: var(--head); }
.theme-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-moon, html[data-axi0-theme="light"] .theme-btn .i-sun { display: none; }
html[data-axi0-theme="light"] .theme-btn .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  html:not([data-axi0-theme="dark"]) .theme-btn .i-sun { display: none; }
  html:not([data-axi0-theme="dark"]) .theme-btn .i-moon { display: block; }
}
.me-slot { position: relative; flex: none; width: 36px; height: 36px; }
.me-slot:empty { display: none; }

/* ---- layout ------------------------------------------------------------------------------------------------- */
main { max-width: 1080px; margin: 0 auto; padding: 4px 20px 24px; }
h1 { margin: 22px 0 8px; color: var(--head); font-size: clamp(32px, 5vw, 44px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.lede { max-width: 46em; margin: 0; color: var(--lede); }
.is-unlocked h1 { margin-top: 12px; font-size: 30px; }
.is-unlocked .lede { font-size: 14px; }
.card { margin-top: 18px; padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
h2 { margin: 0 0 12px; color: var(--head); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
h3 { margin: 22px 0 6px; color: var(--head); font-size: 15px; font-weight: 600; }
.card > p { margin: 0 0 10px; }
.facts { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--lede); font-size: 14px; }
.facts li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; }
.facts strong { display: block; margin-bottom: 4px; color: var(--head); font-weight: 600; }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- form controls ------------------------------------------------------------------------------------------- */
label { display: block; margin: 16px 0 6px; color: var(--head); font-size: 14px; }
input[type="text"], input[type="search"], select {
  width: 100%; min-height: 42px; padding: 9px 13px; border: 1px solid var(--field-line); border-radius: 12px;
  background: var(--field); color: var(--head); font: inherit; font-size: 15px;
}
select { width: auto; min-width: 120px; }
input::placeholder { color: var(--place); }
input[type="text"]:focus, input[type="search"]:focus, select:focus { outline: none; border-color: var(--core); box-shadow: 0 0 0 3px rgba(246, 160, 77, .18); }
.hint { margin: 6px 0 0; color: var(--mute); font-size: 13px; }
.error { margin: 6px 0 0; color: var(--danger); font-size: 13px; }
.error:empty, .note:empty { display: none; }
.note { margin: 8px 0 0; color: var(--core-ink); font-size: 13px; }
.warn { color: var(--head); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.row.tight { flex-wrap: nowrap; margin-top: 0; }
.row.tight input { flex: 1 1 auto; min-width: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; margin: 0;
  border: 1px solid var(--line2); border-radius: 999px; background: var(--panel); color: var(--head); font: inherit; font-size: 14px;
  white-space: nowrap; cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s;
}
.btn:hover { border-color: rgba(246, 160, 77, .7); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { border-color: var(--core); background: var(--core); color: var(--on-core); font-weight: 600; }
.btn.primary:hover { background: var(--core-hover); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn.file { position: relative; overflow: hidden; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.btn.file:focus-within { outline: 2px solid var(--core-ink); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--core); }
.icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--soft2); cursor: pointer; }
.icon:hover { background: var(--hover); color: var(--head); }
.icon svg { width: 18px; height: 18px; }


.keytext { margin: 10px 0 0; padding: 14px 16px; border: 1px dashed rgba(246, 160, 77, .55); border-radius: 12px; background: rgba(246, 160, 77, .05);
  color: var(--head); font: 15px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; overflow-wrap: anywhere; user-select: all; }
input[type="password"] {
  width: 100%; min-height: 42px; padding: 9px 13px; border: 1px solid var(--field-line); border-radius: 12px;
  background: var(--field); color: var(--head); font: inherit; font-size: 15px;
}
input[type="password"]:focus { outline: none; border-color: var(--core); box-shadow: 0 0 0 3px rgba(246, 160, 77, .18); }
.linkish { padding: 0; border: 0; background: none; color: var(--core-ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- the states: decided before the first paint by s-early.js (html.is-share), then by s.js (html.is-gone) ------ */
html:not(.is-share) .view, html:not(.is-share) .gone, html.is-share .intro, html.is-share .mine { display: none; }
html.is-share:not(.is-gone) .gone, html.is-gone .view { display: none; }
.view, .gone { min-height: 100vh; }      /* the footer starts below the fold, so the item arriving moves nothing in view */
.mine { margin-top: 26px; }

/* ---- the viewer --------------------------------------------------------------------------------------------- */
.view h1 { overflow-wrap: anywhere; font-size: clamp(26px, 4.2vw, 36px); }
.v-meta { margin: 0; color: var(--lede); font-size: 14px; }
.v-meta span + span::before { content: " \b7\a0"; color: var(--faint); }
.v-pw { max-width: 420px; }
.v-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; min-height: 40px; }
#v-report { margin-left: auto; }        /* at the end of the row: a Download button arriving on its left moves nothing */
.v-prog { display: block; width: min(100%, 420px); height: 8px; margin-top: 14px; accent-color: var(--core); }
.v-body { margin-top: 18px; }
.v-body:empty { display: none; }
.v-fig { margin: 0; }
.v-fig img, .v-fig video { display: block; width: auto; height: auto; max-width: 100%; max-height: 72vh; margin: 0 auto; border-radius: 14px; background: var(--panel2); }
.v-fig audio { width: 100%; }
.v-doc { padding: 22px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.v-file { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.v-file svg { flex: none; width: 40px; height: 40px; color: var(--icon); }
.v-file p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.v-file strong { display: block; color: var(--head); }
.v-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.v-tab { min-height: 34px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: var(--panel); color: var(--soft); font: inherit; font-size: 13.5px; cursor: pointer; }
.v-tab[aria-selected="true"] { border-color: var(--core); color: var(--head); background: rgba(246, 160, 77, .1); }
.v-grid { max-width: 100%; max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.v-grid table { border-collapse: separate; border-spacing: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.v-grid th, .v-grid td { min-width: 64px; max-width: 320px; padding: 5px 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; vertical-align: top; color: var(--ink2); }
.v-grid thead th { position: sticky; top: 0; z-index: 2; background: var(--panel2); color: var(--soft); font-weight: 600; text-align: center; }
.v-grid tbody th { position: sticky; left: 0; z-index: 1; min-width: 44px; background: var(--panel2); color: var(--soft); font-weight: 500; text-align: right; }
.v-grid thead th:first-child { left: 0; z-index: 3; }
.v-grid td.num { text-align: right; }
.v-more { margin: 8px 0 0; color: var(--mute); font-size: 13px; }
.v-report { margin-top: 26px; color: var(--mute); font-size: 13px; }
.gone h1 { font-size: clamp(26px, 4.2vw, 36px); }

/* ---- your links --------------------------------------------------------------------------------------------- */
.mine-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.mine-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.mine-list .m-name { margin: 0; min-width: 0; color: var(--head); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-list .m-info { margin: 0; color: var(--mute); font-size: 13px; }
.mine-list .m-acts { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 2; grid-row: 1 / span 2; }
.mine-list .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.mine-list .is-gone .m-name { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--uline); }
.m-empty { margin: 12px 0 0; color: var(--lede); }

.foot { max-width: 1080px; margin: 0 auto; padding: 4px 20px 44px; color: var(--faint); font-size: 12.5px; }
.foot p { margin: 0 0 6px; max-width: 60em; }
.foot a { color: var(--text2); text-decoration: underline; text-decoration-color: var(--uline); }
.foot a:hover { text-decoration-color: currentColor; }
.foot .btn { text-decoration: none; }
.dlg { width: min(92vw, 440px); padding: 22px 24px 20px; border: 1px solid var(--line2); border-radius: 20px; background: var(--panel); color: var(--text); }
.dlg::backdrop { background: var(--shade); }
.dlg h2 { margin: 0 0 8px; }
.dlg p { margin: 0 0 8px; color: var(--lede); font-size: 14px; }
.dlg fieldset { margin: 6px 0 0; padding: 0; border: 0; }
.dlg legend { margin: 0 0 6px; color: var(--head); font-size: 14px; }
.dlg .check { display: flex; margin: 8px 0; }
.dlg .row { justify-content: flex-end; margin-top: 18px; }

@media (max-width: 600px) {
  .top { padding: 16px 16px 4px; }
  .mark { font-size: 22px; }
  .top { flex-wrap: wrap; gap: 4px 12px; padding-bottom: 2px; }
  .mark { margin-right: auto; }
  .top-right { display: contents; }
  main { padding: 0 14px 20px; }
  .card { padding: 18px 16px 20px; border-radius: 18px; }
  .row.tight { flex-wrap: wrap; }
  .row.tight input { flex-basis: 100%; }
  .foot { padding: 4px 16px 36px; }
  .v-doc { padding: 16px 14px; }
  .mine-list li { grid-template-columns: minmax(0, 1fr); }
  .mine-list .m-acts { grid-column: 1; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* the document renderer's output (the same rules as Docs) */
.md { color: var(--ink2); font-size: 16px; line-height: 1.6; }
.md > :first-child { margin-top: 4px; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { margin: 1.3em 0 .45em; color: var(--head); line-height: 1.2; letter-spacing: -.015em; font-weight: 600; }
.md h1 { font-size: 1.9em; } .md h2 { font-size: 1.45em; } .md h3 { font-size: 1.2em; } .md h4 { font-size: 1.05em; } .md h5, .md h6 { font-size: 1em; }
.md p, .md ul, .md ol, .md pre, .md table, .md blockquote { margin: 0 0 1em; }
.md a { color: var(--core-ink); }
.md code { padding: .1em .35em; border-radius: 5px; background: var(--code-bg); font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.md pre { padding: 12px 14px; border-radius: 10px; background: var(--code-bg); overflow: auto; }
.md pre code { padding: 0; background: none; font-size: .88em; }
.md blockquote { margin-left: 0; padding: 2px 16px; border-left: 3px solid var(--line3b); color: var(--lede); }
.md ul, .md ol { padding-left: 1.6em; }
.md li > ul, .md li > ol { margin: .2em 0; }
.md ul.md-tasks { list-style: none; padding-left: .3em; }
.md li.task input { margin: 0 .45em 0 0; vertical-align: -1px; accent-color: var(--core); }
.md li.task.done { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--uline); }
.md table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.md th, .md td { padding: 6px 10px; border: 1px solid var(--line2); text-align: left; vertical-align: top; }
.md th { color: var(--head); background: var(--panel2); }
.md .md-center { text-align: center; } .md .md-right { text-align: right; }
.md hr { height: 0; margin: 1.6em 0; border: 0; border-top: 1px solid var(--line2); }
.md .md-img { color: var(--mute); font-style: italic; }
.md .md-img::before { content: "image: "; }
.md del { color: var(--mute); }
