:root {
  --bg-color: #f7f6f4;

  --header-color: #4846af;
  --header-color: oklch(0.428 0.231 285.8);
  --text-color: #3a3a3a;
  --surface: #ffffff;
  --rule: #e4e1dc;
  --muted: #6f6b66;
  --danger: #f10000;
  --danger: oklch(0.60 0.25 30);
  --toggle-off: #e0ddd8;
  --knob: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);
  --spot-rim: rgba(0, 0, 0, 0.07);
  --spot-depth: 0 3px 10px rgba(17, 20, 24, 0.16), 0 16px 44px rgba(17, 20, 24, 0.24), 0 34px 90px rgba(17, 20, 24, 0.2);
  --radius: 14px;
  --control-h: 2.45rem;
  --mark-size: 1.5rem;
  --ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --accent-soft: color-mix(in oklab, var(--header-color) 40%, transparent);

  --flag: #2e6be5;
  --flag: color(display-p3 0.169 0.408 0.871);

  --glass-fill: rgba(255, 255, 255, 0.62);
  --glass-top: rgba(255, 255, 255, 0.78);
  --glass-bottom: rgba(255, 255, 255, 0.3);
  --glass-edge: rgba(255, 255, 255, 0.78);
  --glass-shine: rgba(255, 255, 255, 0.9);
  --glass-under: rgba(0, 0, 0, 0.03);
  --glass-ring: rgba(0, 0, 0, 0.05);
  --glass-cast: rgba(0, 0, 0, 0.05);
  --glass-glyph: rgba(0, 0, 0, 0.66);

  --lift: 0 1px 2px rgba(0, 0, 0, 0.14), 0 4px 11px rgba(0, 0, 0, 0.1);
  --lift-press: 0 1px 2px rgba(0, 0, 0, 0.17);
  --lift-soft: 0 1px 1px rgba(0, 0, 0, 0.07), 0 3px 8px rgba(0, 0, 0, 0.06);
  --lift-soft-press: 0 1px 1px rgba(0, 0, 0, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-color: #000000;
    --header-color: #22a6b3;
    --header-color: oklch(0.685 0.165 204.6);
    --text-color: #f0efea;
    --surface: #121212;
    --rule: #2a2a2a;
    --muted: #9a9691;
    --danger: #f10000;
    --danger: oklch(0.60 0.25 30);
    --toggle-off: #39393d;
    --knob: #ffffff;
    --shadow: rgba(0, 0, 0, 0.4);
    --spot-rim: rgba(255, 255, 255, 0.09);
    --spot-depth: 0 4px 14px rgba(0, 0, 0, 0.5), 0 20px 55px rgba(0, 0, 0, 0.55), 0 40px 110px rgba(0, 0, 0, 0.45);

    --flag: #fb923c;
    --flag: oklch(0.76 0.16 55);

    --glass-fill: rgba(255, 255, 255, 0.055);
    --glass-top: rgba(255, 255, 255, 0.07);
    --glass-bottom: rgba(255, 255, 255, 0.05);
    --glass-edge: rgba(255, 255, 255, 0.13);
    --glass-shine: transparent;
    --glass-under: transparent;
    --glass-ring: transparent;
    --glass-cast: rgba(0, 0, 0, 0.28);
    --glass-glyph: rgba(255, 255, 255, 0.9);

    --lift: none;
    --lift-press: none;
    --lift-soft: none;
    --lift-soft-press: none;
  }
}

:root[data-theme="dark"] {
  --bg-color: #000000;
  --header-color: #22a6b3;
  --header-color: oklch(0.685 0.165 204.6);
  --text-color: #f0efea;
  --surface: #121212;
  --rule: #2a2a2a;
  --muted: #9a9691;
  --danger: #f10000;
  --danger: oklch(0.60 0.25 30);
  --toggle-off: #39393d;
  --knob: #ffffff;
  --shadow: rgba(0, 0, 0, 0.4);
  --spot-rim: rgba(255, 255, 255, 0.09);
  --spot-depth: 0 4px 14px rgba(0, 0, 0, 0.5), 0 20px 55px rgba(0, 0, 0, 0.55), 0 40px 110px rgba(0, 0, 0, 0.45);
  --flag: #fb923c;
  --flag: oklch(0.76 0.16 55);

  --glass-fill: rgba(255, 255, 255, 0.055);
  --glass-top: rgba(255, 255, 255, 0.07);
  --glass-bottom: rgba(255, 255, 255, 0.05);
  --glass-edge: rgba(255, 255, 255, 0.13);
  --glass-shine: transparent;
  --glass-under: transparent;
  --glass-ring: transparent;
  --glass-cast: rgba(0, 0, 0, 0.28);
  --glass-glyph: rgba(255, 255, 255, 0.9);

  --lift: none;
  --lift-press: none;
  --lift-soft: none;
  --lift-soft-press: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background-color: var(--bg-color);
  transition: background-color 0.3s ease;
}

body {
  font-family: var(--ui);
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100dvh;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

:focus-visible {
  outline: 2px solid var(--header-color);
  outline-offset: 2px;
}

.visually-hidden,
.field > span.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  gap: 1rem;
}

.container h1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--header-color);
  transition: color 0.3s ease;
}

.container p {
  font-size: 1.2rem;
  opacity: 0.8;
}

.quiet {
  font-size: 0.95rem !important;
  opacity: 0.5 !important;
}

.container .gone-brand {
  font-size: var(--mark-size);
  font-weight: 600;
  color: var(--header-color);
}

@media (min-height: 720px) {
  #token-dialog {
    max-height: min(92dvh, 52rem);
  }
}

.by-token {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-weight: 600;
}

.by-token-glyph {
  display: inline-flex;
  align-items: center;
  margin: 0 0.1rem;
}

.by-token-glyph svg {
  width: 14px;
  height: 14px;
}

.note .mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

#history-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.history {
  list-style: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 0.5rem;
}

.history li {
  padding: 0.55rem 0 0.55rem 0.75rem;
  border-left: 2px solid var(--rule);
  font-size: 0.9rem;
  line-height: 1.45;
}

.history li.mine {
  border-left: none;
  border-right: 2px solid var(--accent-soft);
  padding-left: 15%;
  padding-right: 0.75rem;
  text-align: right;
}

.history li.mine .who {
  color: var(--header-color);
}

.history .who {
  font-weight: 600;
}

.history .how {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
}

.history .when {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.history .empty {
  border-left: none;
  padding-left: 0;
  color: var(--muted);
}

.container .gone-note {
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-align: center;
  font-size: 1rem;
}

.container .gone-note .enter {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.95rem;
  color: inherit;
  text-decoration: none;
}

.container .gone-note .soon {
  display: block;
  margin-top: 0.35rem;
}

.container .gone-note .second {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

html:has(body.is-home),
body.is-home {
  overscroll-behavior: none;
}

@media (min-width: 700px) and (min-height: 760px) {
  html:has(body.is-home),
  body.is-home {
    height: 100%;
    overflow: hidden;
  }
}

.desk-row {
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.desk-row #support-manage {
  flex: none;
  height: var(--control-h);
}

#support-threads li {
  align-items: center;
  gap: 0.5rem;
}

#support-threads li + li {
  margin-top: 0.4rem;
}

#support-threads li.picked {
  background-color: var(--toggle-off);
}

.row-open {
  cursor: pointer;
}

#support-threads .file-main {
  flex: 1 1 auto;
  min-width: 0;
}

#support-subject-row {
  align-self: flex-start;
  flex: none;
}

#support-subject-row .select-wrap {
  flex: none;
  min-width: 0;
}

#support-subject-row select {
  min-width: 0;
  padding-right: 2.4rem;
}

.desk-row .field {
  flex: none;
}

.desk-row .select-wrap {
  flex: none;
  min-width: 0;
}

.desk-row .select-wrap select {
  min-width: 0;
  padding-right: 2.4rem;
}

.desk-row .sort-field {
  margin-left: auto;
}

.switch {
  flex: none;
  width: 51px;
  height: 31px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background-color: var(--toggle-off);
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.switch[aria-checked="true"] {
  background-color: var(--header-color);
}

.switch[aria-checked="true"]::after {
  transform: translateX(20px);
}

.switch:disabled {
  opacity: 0.45;
  cursor: default;
}

.switch-row {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.switch-row.is-off .file-name,
.switch-row.is-off .file-meta {
  opacity: 0.55;
}

#notify-kinds li,
#notify-devices li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0;
}

#notify-kinds li + li,
#notify-devices li + li {
  border-top: 1px solid var(--rule);
}

#notify-kinds .file-main,
#notify-devices .file-main {
  flex: 1 1 auto;
  min-width: 0;
}

#desk-admin,
#support-log {
  margin-top: 0;
}

#support-log .sub:first-child {
  margin-top: 0;
}

#log-list li {
  display: flex;
  align-items: center;
  padding: 0.55rem 0;
}

#log-list li + li {
  border-top: 1px solid var(--rule);
}

#log-list li.log-day {
  padding: 1.15rem 0 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

#log-list li.log-day:first-child {
  padding-top: 0.2rem;
}

#log-list li.log-day + li {
  border-top: 0;
}

#desk-admin .sub {
  margin: 2.25rem 0 0;
}

#desk-admin .sub:first-child {
  margin-top: 0;
}

#desk-admin .sub + .note {
  margin-top: 0.45rem;
  margin-bottom: 1rem;
}

#desk-list li,
#agent-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
}

#desk-list li + li,
#agent-list li + li {
  border-top: 1px solid var(--rule);
}

#desk-list .file-main,
#agent-list .file-main {
  flex: 1 1 auto;
  min-width: 0;
}

#desk-admin .row.end {
  margin-top: 0.9rem;
}

.home {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}

.home-mark {
  line-height: 1.6;
  text-decoration: none;
}

.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.home-signin {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: var(--control-h);
  padding: 0 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.95rem;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--lift);
}

.home-signin:active {
  box-shadow: var(--lift-press);
  transform: translateY(1px);
}

.home-lede {
  font-size: clamp(2rem, 7vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  max-width: 15ch;
  margin: clamp(2rem, 7vh, 4.25rem) 0 0;
}

.home-say {
  font-size: clamp(0.98rem, 3.4vw, 1.05rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 50ch;
  margin: clamp(1rem, 2.5vh, 1.4rem) 0 0;
}

.home-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: clamp(2.5rem, 7vh, 5rem);
  padding-bottom: clamp(1rem, 3vh, 2rem);
}

.home-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(0.85rem, 2.5vh, 1.1rem);
}

.home-card h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.home-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.home-more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--header-color);
  text-decoration: none;
}

.home-more::after {
  content: " \2192";
}

@media (min-width: 700px) {
  .home-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.home-foot {
  padding-top: clamp(1.5rem, 4vh, 3rem);
}

.home.is-page {
  height: auto;
  min-height: 100dvh;
  padding-bottom: 3rem;
}

.home.is-page .home-foot {
  margin-top: auto;
}

.feat-lede {
  margin-bottom: 0;
}

.feat {
  margin-top: clamp(3rem, 9vh, 5.5rem);
}

.feat h2 {
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}

.feat-say {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin: 0.75rem 0 0;
}

.feat-shot {
  margin-top: 1.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.feat-phone {
  aspect-ratio: 9 / 16;
  max-width: 17rem;
}

.feat-pad {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  padding-bottom: 0.5rem;
}

.home-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--header-color);
  text-decoration: none;
}

.home-rights {
  font-size: 0.85rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--text-color) 72%, var(--muted));
  margin: 0.45rem 0 0;
}

.app {
  margin: 0 auto;
  padding: 1.5rem max(1rem, env(safe-area-inset-left)) 3rem
           max(1rem, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.panel,
.row,
.file-main,
.files li {
  min-width: 0;
}

.file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  display: block;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bar h1 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--header-color);
}

.panel {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

#invite-admin-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

button,
a,
label,
summary,
input,
select,
textarea,
.menu-item,
[role="button"] {
  touch-action: manipulation;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: inherit;
  padding: 0.45rem 1rem;
}

button.primary {
  background-color: var(--header-color);
  border-color: var(--header-color);
  color: var(--bg-color);
  font-weight: 500;
}

button.linkish {
  border: none;
  padding: 0.25rem;
  color: var(--header-color);
}

button.danger {
  color: var(--danger);
  border-color: transparent;
  padding: 0.25rem 0.5rem;
}

button:disabled {
  opacity: 0.4;
  cursor: default;
}

input[type="text"],
input[type="search"],
input[type="password"],
input[type="number"] {
  font: inherit;
  font-size: 0.95rem;
  color: inherit;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  height: var(--control-h);
  min-width: 0;
}

textarea {
  font: inherit;
  font-size: 0.95rem;
  color: inherit;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  min-width: 0;
  width: 100%;
  resize: vertical;
  line-height: 1.45;
  appearance: none;
  -webkit-appearance: none;
}

input[type="search"] {
  flex: 1;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

select {
  font: inherit;
  font-size: 0.95rem;
  color: inherit;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.4rem 2.4rem 0.4rem 0.7rem;
  height: var(--control-h);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.select-wrap {
  position: relative;
  display: inline-flex;
  flex: 1;
  min-width: 9rem;
}

@media (max-width: 620px), (max-height: 520px) {

  .select-wrap {
    min-width: 0;
  }

}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.8rem;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.select-wrap .select-face {
  position: absolute;
  inset: 1px;
  display: flex;
  align-items: center;
  padding: 0 2.4rem 0 0.7rem;
  font-size: 0.95rem;
  pointer-events: none;
  overflow: hidden;
}

.select-wrap .select-face span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.select-wrap.is-tree select {
  color: transparent;
}

.select-wrap.is-tree select option {
  color: var(--text-color);
}

@media (max-width: 620px), (max-height: 520px) {
  .select-wrap .select-face {
    font-size: 16px;
  }
}

.field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  min-width: 0;
}

.field > span:first-child:not(.visually-hidden) {
  flex: none;
  width: 6.5rem;
}

.field input,
.field textarea,
.field .select-wrap {
  flex: 1;
  min-width: 0;
  width: auto;
}

.field.tall {
  align-items: flex-start;
}

.field.tall > span:first-child {
  padding-top: 0.55rem;
}

.field.wide {
  width: 100%;
}

.limit-row {
  flex-wrap: wrap;
  row-gap: 0.6rem;
}

.limit-row input {
  flex: 1 1 5rem;
  min-width: 5rem;
}

.limit-row .unit {
  flex: none;
}

.limit-row .per-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.field.wide.limit-row .select-wrap {
  flex: 0 0 8.5rem;
  width: 8.5rem;
  min-width: 8.5rem;
}

.field.wide.limit-row .select-wrap select {
  flex: none;
  width: 100%;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.count,
.status {
  font-size: 0.85rem;
  color: var(--muted);
}

.status:empty {
  display: none;
}

.status.is-error {
  color: var(--danger);
}

.theme {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-mark {
  font-size: 0.9rem;
  color: var(--muted);
}

.theme-toggle {
  position: relative;
  width: 52px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 16px;
  background-color: var(--toggle-off);
  transition: background-color 0.3s ease;
}

.theme-toggle[aria-checked="true"] {
  background-color: var(--header-color);
}

.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--knob);
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.theme-toggle[aria-checked="true"] .toggle-knob {
  transform: translateX(20px);
}

.queue,
.files {
  list-style: none;
  display: flex;
  flex-direction: column;

  margin-left: -0.6rem;
  margin-right: -0.6rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.queue:empty,
.files:empty {
  display: none;
}

.files li,
.queue li,
.shares li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

#vault-list li {
  border-top: 1px solid var(--rule);
}

#vault-list li:first-child {
  border-top: none;
}

.files li.file-row,
.files li.is-folder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6rem 11.5rem auto;
  column-gap: 1.25rem;
  align-items: center;
  min-height: 3.1rem;
}

.col {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.col-size {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.col-when {
  text-align: right;
}

button.more {
  border: none;
  padding: 0.2rem 0.6rem;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.tag-dot {
  display: inline-block;
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--tag, var(--muted));
  align-self: center;
}

.col-icon.is-tagged > svg,
.file-icon.is-tagged > svg {
  color: var(--tag);
}

.menu-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.3rem;
}

#actions-title > .menu-tag {
  width: 100%;
  padding-left: 0.25rem;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.25rem;
}

.tag-swatch {
  border: none;
  background: none;
  padding: 0.3rem;
  display: inline-flex;
}

.tag-swatch .tag-dot,
.tag-row > .tag-pick > .tag-dot {
  width: 14px;
  height: 14px;
}

.tag-pick {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: none;
  background: none;
  padding: 0.3rem 0.1rem;
  text-align: left;
  font-size: 1rem;
}

.tag-pick.is-here::after {
  content: "✓";
  color: var(--muted);
  margin-left: 0.4rem;
}

.tag-act {
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
}

.tag-custom {
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.tag-custom input[type="color"] {
  appearance: none;
  -webkit-appearance: none;
  width: var(--control-h);
  height: var(--control-h);
  flex: none;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: none;
}

.tag-custom input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 4px;
}

.tag-custom input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 7px;
}

.tag-custom .field {
  flex: 1;
}

.tag-custom #tag-color-hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
}

.menu-item.is-here::after {
  content: "✓";
  margin-left: auto;
  color: var(--muted);
}

.menu {
  list-style: none;
  margin-top: 0.55rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--rule);
}

#actions-title:empty + .menu {
  margin-top: 0.2rem;
  padding-top: 0;
  border-top: none;
}

#actions-title:empty + .menu .menu-item {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.menu-item {
  width: 100%;
  border: none;
  border-radius: 0;
  padding: 0.75rem 0.25rem;
  text-align: left;
  font-size: 1rem;
}

.menu .menu-item.danger {
  margin-top: 0.4rem;
  padding: 0.6rem 0.25rem;
  border: 1px solid var(--danger);
  border-radius: 10px;

  justify-content: center;
  text-align: center;
  color: var(--danger);
}

.menu li.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.25rem;
  font-size: 1rem;
}

.menu li.member-acts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.6rem 0.25rem 0.25rem;
}

.files li:first-child,
.queue li:first-child,
.shares li:first-child {
  border-top: none;
}

.file-main {
  flex: 1;
  min-width: 0;
}

.file-name {
  display: block;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

button.file-name:hover,
a.file-name:hover {
  color: var(--header-color);
}

span.file-name {
  cursor: default;
}

#vault-list button.file-name {
  color: inherit;
}

input.rename-field {
  width: 100%;
  height: auto;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.1rem 0.45rem;
}

.file-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.queue .file-meta.is-error {
  color: var(--danger);
}

.progress {
  width: 100%;
  height: 3px;
  margin-top: 0.4rem;
  border-radius: 999px;
  background-color: var(--rule);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background-color: var(--header-color);
  transition: width 0.2s linear;
}

.empty {
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .container h1 {
    font-size: 2rem;
  }

  .container p {
    font-size: 1rem;
  }

  .field input {
    width: 100%;
  }

  .field {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.crumb {
  border: none;
  padding: 0.2rem 0.35rem;
  color: var(--header-color);
}

.crumb:disabled {
  color: var(--text-color);
  cursor: default;
  opacity: 1;
}

.crumb-sep {
  color: var(--muted);
}

.badge {
  margin-left: 0.4rem;
  padding: 0.18rem 0.55rem 0.22rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--muted);
}

.badge.is-live {
  border-color: color-mix(in oklab, var(--header-color) 45%, transparent);
  background-color: color-mix(in oklab, var(--header-color) 12%, transparent);
  color: var(--header-color);
  font-weight: 500;
}

#token-list .file-main .file-meta,
#embed-list .file-main .file-meta,
#read-list .file-main .file-meta,
#webhook-list .file-main .file-meta,
#secret-live .file-main .file-meta,
#secret-past .file-main .file-meta,
#secrets-brief .file-main .file-meta {
  display: block;
  margin-top: 0.15rem;
}

#token-list li,
#embed-list li,
#read-list li,
#webhook-list li,
#collab-list li:not(.share-heading),
#secret-live li:not(.share-heading),
#secret-past li:not(.share-heading),
#secrets-brief li:not(.share-heading) {
  display: block;
  padding: 0.95rem 0;
}

#token-list li:first-child,
#embed-list li:first-child,
#read-list li:first-child,
#webhook-list li:first-child,
#collab-list li:not(.share-heading):first-child,
#secret-live li:not(.share-heading):first-child,
#secret-past li:not(.share-heading):first-child,
#secrets-brief li:not(.share-heading):first-child {
  padding-top: 0.35rem;
}

#collab-list li.share-heading:first-child {
  margin-top: 0;
}

#collab-list li.share-heading + li {
  padding-top: 0.4rem;
}

.row-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.row-head > .file-name {
  padding-left: 0;
}

.row-head > button.file-name {
  padding-left: 0.25rem;
  margin-left: -0.25rem;
}

.file-meta .linkish {
  font-size: inherit;
  padding: 0;
  vertical-align: baseline;
}

.row-acts {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex: none;
}

.row-note {
  display: block;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
}

.token-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.token-form .note {
  margin: 0;
}

.token-form .check {
  margin: 0;
}

#vault-list .badge,
#vault-list .folder-from {
  display: none;
}

@media (min-width: 700px) {
  #vault-list .badge {
    display: inline-block;
    flex: none;
  }

  #vault-list .folder-from {
    display: inline;
    flex: none;
    margin-left: 0.2rem;
  }
}

button.secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  color: var(--text-color);
}

button.secondary svg {
  color: var(--muted);
  flex: none;
}

.folder-open {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-start;
  border: none;
  padding: 0.35rem 0;
  text-align: left;
  font-size: 0.95rem;
}

.folder-open.is-drops > svg {
  color: #a9762a;
  color: oklch(0.62 0.11 76);
}

@media (prefers-color-scheme: dark) {
  .folder-open.is-drops > svg {
    color: #d9b25f;
    color: oklch(0.79 0.1 84);
  }
}

.folder-open > svg {
  color: var(--header-color);
  flex: none;
}

#vault-list .folder-open:not(.is-drops) > svg {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.actions button {
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
}

.sheet {

  margin: auto;
  max-height: min(90dvh, 44rem);
  overflow-y: auto;
  width: min(30rem, calc(100vw - 2rem));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--surface);
  color: var(--text-color);
  padding: 1.25rem;
}

.menu-badge {
  display: inline-block;
  margin: 0.45rem 0.3rem 0 0;
}

.menu-marks {
  display: block;
  margin-top: 0.5rem;
}

.menu-marks .badge {
  margin: 0 0.4rem 0 0;
}

#mylinks-summary {
  display: block;
  margin-top: 0.9rem;
}

#actions-dialog {
  max-height: 92dvh;
}

#share-dialog {
  max-height: 92dvh;
}

.sheet::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.sheet h2:focus,
.sheet h2:focus-visible {
  outline: none;
}

.sheet h2 {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}

.sheet .row {
  margin-top: 0.75rem;
}

.sheet .row.end {
  justify-content: flex-end;
}

.sheet input[type="text"] {
  font: inherit;
  font-size: 0.95rem;
  color: inherit;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
}

.shares {
  list-style: none;
  margin-top: 0.75rem;
}

.shares li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
}

.unlock {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.unlock input {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
}

.note {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  border-left: 2px solid var(--rule);
  padding-left: 0.75rem;

  max-width: 72ch;
}

.field.wide {
  flex: 1;
}

.field.wide select {
  flex: 1;
  min-width: 0;
}

.sheet select {
  max-width: 100%;
}

.shares li.spent .file-name {
  text-decoration: line-through;
  opacity: 0.6;
}

.shares li.spent .file-meta {
  color: var(--danger);
}

button.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-h);
  height: var(--control-h);
  padding: 0;

  font-size: 1.25rem;
  line-height: 1;
}

.row .field .select-wrap {
  flex: 1;
}

.field.wide .select-wrap {
  flex: 1;
}

@media (max-width: 620px), (max-height: 520px) {
  .col-when {
    display: none;
  }
}

.sheet.popover {
  position: fixed;
  margin: 0;

  width: 19rem;
  max-height: none;
  padding: 0.6rem 0.75rem 0.75rem;
  overflow: visible;
}

.sheet.popover.menu-dates {
  width: 15rem;
}

.sheet.popover.menu-slim {
  width: 12rem;
}

.sheet.popover.menu-people {
  width: 15.5rem;
}

.sheet.popover.narrow {
  width: max-content;
  min-width: 9rem;
  max-width: min(16rem, calc(100vw - 1.5rem));
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.sheet.popover::backdrop {
  background: transparent;
}

.sheet.popover h2 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.35rem;
}

.sheet.popover .menu-item {
  padding: 0.5rem 0.25rem;
  font-size: 0.95rem;
}

.sheet.popover .row.end {
  display: none;
}

.sheet.popover.adrift::before,
.sheet.popover.adrift::after {
  display: none;
}

.sheet.popover.adrift {
  max-height: calc(100dvh - 1rem);
  overflow-y: auto;
}

.sheet.popover.adrift,
.sheet.popover .menu {
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

.sheet.popover.adrift::-webkit-scrollbar,
.sheet.popover .menu::-webkit-scrollbar {
  width: 8px;
}

.sheet.popover.adrift::-webkit-scrollbar-track,
.sheet.popover .menu::-webkit-scrollbar-track {
  background: transparent;
}

.sheet.popover.adrift::-webkit-scrollbar-thumb,
.sheet.popover .menu::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 4px;
}

.sheet.popover::before,
.sheet.popover::after {
  content: "";
  position: absolute;
  left: var(--caret-x, 50%);
  transform: translateX(-50%);
  border: 8px solid transparent;
}

.sheet.popover:not(.below)::before {
  top: 100%;
  border-top-color: var(--rule);
}

.sheet.popover:not(.below)::after {
  top: calc(100% - 1px);
  border-top-color: var(--surface);
}

.sheet.popover.below::before {
  bottom: 100%;
  border-bottom-color: var(--rule);
}

.sheet.popover.below::after {
  bottom: calc(100% - 1px);
  border-bottom-color: var(--surface);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background-color: var(--surface);
  box-shadow: 0 6px 24px var(--shadow);
  font-size: 0.9rem;
  opacity: 0;
  transform: translate(-50%, 0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast button {
  pointer-events: auto;
}

.toast svg {
  color: var(--header-color);
  flex: none;
  display: block;
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.field.wide input[type="text"] {
  flex: 1;
  width: 100%;
}

button.danger-action {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--danger);
  color: var(--danger);
}

.sub {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.panel h2 {
  font-size: 1rem;
  font-weight: 500;
}

.field input[type="number"] {
  width: 5rem;
}

#invite-link {
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}

.redemption {
  display: block;
  padding-left: 0.9rem;
  border-left: 2px solid var(--rule);
  margin-top: 0.25rem;
}

@media (min-width: 700px) and (min-height: 521px) {
  .field.wide input,
  .field.wide .select-wrap {
    max-width: 22rem;
  }
}

@media (max-width: 620px), (max-height: 520px) {
  .field {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .field > span:first-child:not(.visually-hidden) {
    width: 100%;
  }

  .row {
    gap: 0.5rem;
  }
}

.badge {
  white-space: nowrap;
}

.crumb-root {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 0;
}

.crumb-root.is-home {
  visibility: hidden;
}

.crumb-root svg {

  color: var(--muted);

  margin-left: -2px;
  width: 21px;
  height: 21px;
  flex: none;
}

.crumbs {
  padding-left: 0;
}

.folder-open {
  gap: 0.6rem;
}

.viewer {
  max-width: 900px;
  margin: 0 auto;

  padding: 1rem max(1rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom))
           max(1rem, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.viewer-bar {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.viewer-brand {
  font-size: var(--mark-size);
  font-weight: 600;
  color: var(--header-color);
}

.viewer-name {
  font-size: 0.9rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .viewer-name {
    color: #d4d1cb;
  }
}

:root[data-theme="dark"] .viewer-name {
  color: #d4d1cb;
}

.viewer-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.viewer-media {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

video.viewer-media {
  width: 100%;
  min-height: 0;
  background: #000;
}

.viewer-audio {
  width: 100%;
}

.viewer-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 8px;
  background: #fff;
}

.viewer-text {
  width: 100%;
  max-height: 100%;
  align-self: stretch;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.viewer-headline {
  font-family: var(--mono);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.viewer-lock,

.viewer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  min-height: var(--control-h);
}

.viewer-foot .file-meta {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewer-foot .primary {
  flex: none;
}

.viewer-foot .primary,
.plan-pick button,
.plan-side .row button,
#redeem-dialog .primary {
  box-shadow: var(--lift);
  transition: box-shadow 0.15s ease, transform 0.12s ease;
}

.viewer-foot .primary:active,
.plan-pick button:active,
.plan-side .row button:active,
#redeem-dialog .primary:active {
  box-shadow: var(--lift-press);
  transform: translateY(1px);
}

.plan-pick .secondary,
.plan-side .row button {
  box-shadow: var(--lift-soft);
}

.plan-pick .secondary:active,
.plan-side .row button:active {
  box-shadow: var(--lift-soft-press);
}

.viewer-lock {
  flex-direction: column;
  align-items: stretch;
}

.viewer-slot {
  flex: none;
  margin: 0;
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-align: center;
}

.viewer-slot .file-meta {
  line-height: 1.55;
}

#view-settings .row.end {
  margin-top: 0.9rem;
}

#view-settings .sub {
  margin-top: 1.75rem;
}

#versions-setting {
  display: contents;
}

.link-memo {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.plan-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.75rem;
}

.plan-mark {
  margin: 0;
  font-size: var(--mark-size);
  font-weight: 600;
  color: var(--header-color);
}

.plan-now {
  font-size: 1.05rem;
  margin: 0;
}

.plan-card .plan-perks {
  flex: 1 1 50%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding-left: 1.75rem;
  border-left: 1px solid var(--rule);
}

@container (max-width: 38rem) {
  .plan-card .plan-side {
    flex-basis: 100%;
  }

  .plan-card .plan-perks {
    flex-basis: 100%;
    padding-left: 0;
    padding-top: 1.05rem;
    border-left: none;
    border-top: 1px solid var(--rule);
  }
}

.plan-side {
  flex: 1 1 calc(50% - 1.75rem);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

#plan-manage-row {
  margin-top: auto;
  padding-top: 0.75rem;
}

#plan-manage-row button {
  color: var(--muted);
  box-shadow: none;
}

.plan-side .row {
  margin-top: 0.5rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.plan-grid .plan-pick:last-child {
  grid-column: 1 / -1;
}

@media (min-width: 700px) {
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .plan-grid .plan-pick:last-child {
    grid-column: auto;
  }
}

.plan-pick {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem;
}

.plan-price {
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 300;
}

.plan-cadence {
  font-size: 0.85rem;
  color: var(--muted);
}

.plan-why {
  margin: 0.55rem 0 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
}

.plan-pick button {
  align-self: flex-start;
}

.plan-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.redeem-row {
  width: 15rem;
  max-width: 100%;
}

.redeem-row .field.wide {
  width: 100%;
}

.redeem-row input {
  flex: none;
  width: 100%;
}

.qplus {
  color: var(--muted);
  margin-left: 0.12em;
}

.plan-card .free-more {
  flex: 1 1 100%;
  max-width: none;
  margin: 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
  display: block;
  columns: 3;
  column-gap: 1.75rem;
}

.plan-card .free-more li {
  break-inside: avoid;
  margin-bottom: 0.45rem;
}

@container (max-width: 38rem) {
  .plan-card .free-more {
    columns: 1;
  }
}



.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 46rem;
}

.plan-list li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--rule);
}

.plan-list.is-plus li::before {
  background-color: var(--muted);
}

.check input[type="checkbox"],
.row-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: transparent;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.check input[type="checkbox"]::after,
.row-check input[type="checkbox"]::after {
  content: "";
  width: 0.6rem;
  height: 0.32rem;
  border-left: 2px solid var(--bg-color);
  border-bottom: 2px solid var(--bg-color);
  transform: rotate(-45deg) scale(0);
  transition: transform 0.15s ease;
}

.check input[type="checkbox"]:checked,
.row-check input[type="checkbox"]:checked {
  background-color: var(--header-color);
  border-color: var(--header-color);
}

.check input[type="checkbox"]:checked::after,
.row-check input[type="checkbox"]:checked::after {
  transform: rotate(-45deg) scale(1);
}

.check {
  gap: 0.6rem;
  cursor: pointer;
}

.file-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.file-icon {
  display: inline-flex;
  flex: none;
  color: var(--muted);
}

.file-head .file-name {
  padding-left: 0;
  padding-right: 0;
  text-align: left;
}

.file-path {
  padding-left: calc(20px + 0.6rem);
}

.app {
  padding-top: 1rem;
  padding-bottom: calc(3rem + env(safe-area-inset-bottom));
}

.viewer {
  padding-top: calc(1rem + env(safe-area-inset-top));
}

@media (display-mode: standalone) {

  .viewer {
    padding-top: calc(0.35rem + env(safe-area-inset-top));
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
  }
}

.sheet h2 .menu-glyph {
  margin-right: 0;
  align-self: flex-start;
  margin-top: 0.1rem;
  flex: none;
}

.sheet h2 .menu-name {
  flex: 1 1 0;
  min-width: 0;
}

.menu-glyph {
  display: inline-flex;
  color: var(--muted);
  margin-right: 0.5rem;
  vertical-align: -4px;
}

.menu-when {
  display: block;
  font-weight: 400;
  white-space: nowrap;

  margin-top: 0.5rem;
}

.menu-when + .menu-when {
  margin-top: 0;
}

.field .unit {
  flex: none;
  margin-left: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

#collab-list .file-main .file-meta {
  display: block;
  margin-top: 0.15rem;
}

.receive-stage {
  display: block;
  overflow-y: auto;
}

.receive-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 34rem;
  margin: 0 auto;
}

.lede {
  font-size: 1rem;
  line-height: 1.55;
}

.page-brand {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--header-color);
}

.checksum-block {

  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.checksum-note {
  display: inline-block;
  max-width: 30rem;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

.sheet.popover .checksum-note {
  font-size: 0.7rem;
}

.checksum {
  margin-top: 0.5rem;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--flag);
  border-radius: 10px;
  color: var(--flag);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
}

.file-ext {
  flex: none;
}

.sheet .file-ext {
  display: inline;
}

html.booting .app {
  visibility: hidden;
  opacity: 0;
}

html:not(.booting) .app {
  animation: app-in 140ms ease-out;
}

@keyframes app-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

html.booting body * {
  transition: none !important;
}

#decrypt-dialog .progress {
  height: 5px;
  margin-top: 0.9rem;
}

.progress-note {
  margin-top: 0.5rem;
  min-height: 1.2em;
  overflow-wrap: anywhere;
}

.files li.spent .file-name {
  text-decoration: none;
  opacity: 0.5;
}

.files li.spent .file-icon {
  opacity: 0.4;
}

.account-links {
  justify-content: flex-start;
  gap: 1.25rem;
}

.account-links .linkish {
  padding-left: 0;
  padding-right: 0;
}

.files .file-main .linkish {
  padding-left: 0;
  padding-right: 0;
  text-align: left;
}

.star {
  display: inline-flex;
  color: var(--muted);
  flex: none;
}

.share-mark {
  display: inline-flex;
  color: var(--muted);
  flex: none;
}

.share-mark svg {
  width: 18px;
  height: 18px;
}

.col-row .share-mark svg {
  width: 13px;
  height: 13px;
}

button.arrow {
  color: var(--muted);
}

.codes-sheet {
  text-align: center;
}

.codes-sheet h2,
.codes-sheet .note,
.codes-sheet .row {
  text-align: left;
}

.codes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.codes li {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.25rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.code-number {
  flex: none;
  min-width: 1ch;
  text-align: right;
  font-weight: 400;
  color: var(--muted);
  -webkit-user-select: none;
  user-select: none;
}

.code-text {
  -webkit-user-select: all;
  user-select: all;
}

#codes-answer {
  font-family: var(--mono);
  text-transform: uppercase;
}

@media (max-width: 620px), (max-height: 520px) {

  input[type="text"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px;
  }

  .codes {
    grid-template-columns: minmax(0, 1fr);
  }
}

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  overscroll-behavior-x: none;
}

.files li > *,
.queue li > * {
  min-width: 0;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  height: 100%;
}

html {
  scrollbar-gutter: stable;
}

.panel,
.toolbar,
.crumbs,
.files,
.queue {
  max-width: 100%;
  overflow-x: clip;
}

.app {
  max-width: min(1080px, 100%);
  overflow-x: clip;
}

.row {
  max-width: 100%;
}

.toast {
  width: max-content;
  max-width: calc(100vw - 2rem);
  text-align: left;
}

.toast span {
  overflow-wrap: anywhere;
}

.passkey-used::before {
  content: " · ";
  color: var(--muted);
}

@media (max-width: 620px), (max-height: 520px) {

  .delete-row {
    flex-direction: column;
    align-items: stretch;
  }

  .delete-row .danger-action,
  .delete-row .primary {
    width: 100%;
  }

  .passkey-used {
    display: block;
  }

  .passkey-used::before {
    content: none;
  }
}

.toolbar-more {
  display: none;
  margin-left: auto;
  align-self: flex-start;
}

@media (max-width: 620px), (max-height: 520px) {
  .pill-row {
    gap: 0.75rem;
  }

  .toolbar-more {
    display: inline-flex;
    margin-left: 0;
    width: var(--control-h);
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
  }

  .pill-row #vault-select {
    margin-left: auto;
    margin-right: -1.5px;
  }

  #vault-add-share,
  #vault-trash,
  #vault-new-doc,
  #vault-new-folder {
    display: none;
  }
}

#confirm-note {
  line-height: 1.55;
  margin-bottom: 0.5rem;

  white-space: pre-line;
}

.support-foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.support-foot .spacer {
  flex: 1;
}

.support-foot .danger-action,
.support-foot .restore-action {
  height: var(--control-h);
  padding: 0 0.9rem;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  background: transparent;
  cursor: pointer;
}

.support-foot .danger-action {
  color: var(--danger);
  border: 1px solid var(--danger);
}

.support-foot .restore-action {
  color: var(--header-color);
  border: 1px solid var(--header-color);
}

#vault-filter::placeholder {
  color: color-mix(in oklab, var(--muted) 65%, transparent);
  opacity: 1;
}

#share-once-row {
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 700px) and (min-height: 521px) {
  #share-dialog .field.wide {
    flex: 1;
  }

  #share-dialog .field.wide input,
  #share-dialog .field.wide .select-wrap {
    flex: 1;
    max-width: none;
  }
}

#share-opens {
  width: 4rem;
  flex: none;
}

.check-tail {
  font-size: 0.95rem;
  color: var(--text-color);
}

#share-once-row .check {
  flex: none;
}

.field.wide #invite-uses {
  max-width: 6rem;
}

.crumb-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.crumb-row:has(#vault-crumbs) {
  margin-top: 0.6rem;
}

.crumb-row .crumbs {
  flex: 1;
  min-width: 0;
}

.crumb-row .count {
  flex: none;

  margin-left: auto;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 500;
}

.crumb-row:has(.sub) {
  align-items: baseline;
  margin-top: 1rem;
}

.crumb-row:has(.sub.first) {
  margin-top: 0;
}

.crumb-row .sub {
  margin-top: 0;
}

.viewer-name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.viewer-name svg {
  color: var(--header-color);
  flex: none;
}

@media (max-width: 620px), (max-height: 520px) {
  .sheet input[type="text"],
  .sheet input[type="password"],
  .sheet textarea,
  .sheet select {
    font-size: 16px;
  }
}

.meta-line {
  display: block;
  margin-top: 0.2rem;
}

.is-standalone .viewer {
  height: 100%;
  max-height: 100%;
  padding-top: max(0.75rem, env(safe-area-inset-top));
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.is-standalone body {
  overflow: hidden;
}

#trash-list .actions {
  justify-content: flex-end;
}

@media (max-width: 620px), (max-height: 520px) {
  #trash-list .col-size {
    display: none;
  }

  #trash-list .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 620px), (max-height: 520px) {

  .files li.file-row,
  .files li.is-folder {
    grid-template-columns: minmax(0, 1fr) 4.5rem auto;
    column-gap: 0.9rem;
  }
}

.files li.file-row > .col,
.files li.is-folder > .col {
  justify-self: end;
}

.files li.file-row > .more,
.files li.is-folder > .more,
.files li.file-row > .actions,
.files li.is-folder > .actions {
  justify-self: end;
}

.files li.trash-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: center;
  min-height: 3.1rem;
}

.files li.trash-row .actions {
  justify-self: end;
}

.app.is-auth {
  min-height: 100dvh;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.app.is-auth .panel {
  width: min(30rem, 100%);
}

.app.is-auth .field > span:first-child:not(.visually-hidden) {
  width: 5.5rem;
}

@media (max-width: 620px), (max-height: 520px) {

  .app.is-auth .panel {
    width: 100%;
  }
}

.auth-actions {
  margin-top: 1rem;
  gap: 0.6rem;
}

.auth-actions button {
  flex: 1;
}

.auth-links {
  margin-top: 0.9rem;
  justify-content: space-between;
  gap: 0.75rem;
}

.auth-links .linkish {
  padding-left: 0;
  padding-right: 0;
  font-size: 0.9rem;
}

.auth-actions .secondary {
  justify-content: center;
}

#view-signup .row.end,
#view-recovery .row.end {
  justify-content: space-between;
}

#view-trash .row.end {
  justify-content: space-between;
}

#signin-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#signup-password-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#view-settings .field > span:first-child:not(.visually-hidden),
#view-admin .field > span:first-child:not(.visually-hidden) {
  width: 5.5rem;
  flex: none;
}

@media (max-width: 620px), (max-height: 520px) {
  #view-settings .field,
  #view-admin .field {
    flex-wrap: nowrap;
  }
}

#view-settings .row + .row {
  margin-top: 0.35rem;
}

#view-settings .sub.first,
.sub.first {
  margin-top: 0;
}

#account-list .file-meta .at-limit {
  color: var(--danger);
}

#account-list .file-main .meta-line {
  margin-top: 0.4rem;
}

#account-list .file-name .badge {
  display: inline-block;
  vertical-align: 3px;
}

#account-name .badge {
  margin-left: 0;
  flex: none;
}

#embed-list li:first-child {
  padding-top: 1.1rem;
}

#embed-list .row-head {
  flex-wrap: wrap;
  row-gap: 0.85rem;
}

#embed-list .file-main {
  margin-top: 0.55rem;
}

#embed-list .row-head > .file-name {
  flex: 1 0 100%;
}

#embed-list .row-acts {
  margin-left: 0;
  flex-wrap: wrap;
}

#token-list .file-meta.at-limit,
#read-list .file-meta.at-limit,
#history-list .at-limit {
  color: var(--danger);
}

#account-list li.spent .file-name {
  text-decoration: none;
  opacity: 0.55;
}

.check.remember {
  justify-content: flex-end;
}

.files.is-selecting li.file-row,
.files.is-selecting li.is-folder {
  grid-template-columns: auto minmax(0, 1fr) 6rem 11.5rem auto;
}

@media (max-width: 620px), (max-height: 520px) {
  .files.is-selecting li.file-row,
  .files.is-selecting li.is-folder {
    grid-template-columns: auto minmax(0, 1fr) 4.5rem auto;
  }
}

.row-check {
  display: flex;
  align-items: center;
  padding-right: 0.25rem;
}

.files li.picked {
  background-color: color-mix(in oklab, var(--header-color) 12%, transparent);
  border-radius: 10px;
  margin-left: -0.6rem;
  margin-right: -0.6rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.select-bar {
  align-items: center;
  gap: 0.6rem;
  margin-top: -0.2rem;
  padding: 0.35rem 0 0.75rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.select-bar .count {
  margin-right: auto;
}

@media (max-width: 620px), (max-height: 520px) {

  .select-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: center;
  }

  .select-bar .count {
    grid-column: 1 / 3;
    margin-right: 0;
  }

  .select-bar #select-all {
    grid-column: 3;
    justify-self: end;
    padding-right: 0;
  }

  .select-bar #select-download,
  .select-bar #select-move,
  .select-bar #select-delete {
    width: 100%;
    min-width: 0;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    text-align: center;
  }
}

.select-bar button[disabled] {
  opacity: 0.4;
}

.files li.file-row {
  position: relative;
  transform: translateX(var(--swipe, 0));
  transition: transform 0.18s ease;
}

.files li.file-row.swiped {
  transition: transform 0.2s ease;
}

.swipe-delete {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  right: calc(-1 * var(--swipe, 0px) * -1 - 84px);
  right: -84px;
  width: 76px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background-color: var(--danger);
  color: #fff;
}

.files li.file-row[style*="--swipe"] .swipe-delete {
  display: flex;
}

.files li.dragging {
  opacity: 0.45;
}

.files li.is-folder.drop-target {
  background-color: color-mix(in oklab, var(--header-color) 16%, transparent);
  border-radius: 10px;
  outline: 2px solid var(--header-color);
  outline-offset: 0;
  margin-left: -0.3rem;
  margin-right: -0.3rem;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}

button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

button.primary svg,
button.secondary svg {
  flex: none;
  display: block;
}

button.primary,
button.secondary {
  line-height: 1.15;
}

.select-bar button {
  justify-content: center;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.menu-item .menu-glyph {
  margin-right: 0;
  vertical-align: baseline;
}

#vault-select {
  min-width: 7.4rem;
  justify-content: center;
}

.pill-row {
  gap: 0.6rem;
}

@media (min-width: 700px) and (min-height: 521px) {
  .pill-row {
    gap: 0.8rem;
  }
}

.files li.trash-row .file-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.files li.trash-row .file-main > * {
  max-width: 100%;
}

.files li.trash-row .folder-open {
  min-width: 0;
}

.files li.trash-row .folder-open span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

#signup-form,
#password-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.account-who {
  min-width: 0;
}

.account-head .account-links {
  margin: 0;
  flex: none;

  justify-content: flex-end;

}

#account-stats {
  align-items: baseline;
}

#account-stats #meter-note {
  margin-right: auto;
}

@media (max-width: 799px) {
  .account-bars .meter-track {
    max-width: 46%;
  }
}

.meter {
  margin-top: 1.1rem;
}

.meter-track {
  display: flex;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background-color: color-mix(in oklab, var(--text-color) 12%, transparent);
}

.meter-files {
  background-color: color-mix(in oklab, var(--text-color) 45%, transparent);
}

.meter-trash {
  background-color: color-mix(in oklab, var(--text-color) 24%, transparent);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.9rem;
}

.stat {
  font-size: 0.85rem;
  color: var(--muted);
}

button.stat {
  padding: 0;
  color: var(--header-color);
}

.share-subject {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.9rem;
}

#receive-list li.share-subject {
  cursor: pointer;
}

.files li.share-subject,
.shares li.share-subject {
  gap: 0.6rem;
}

.share-subject:first-child {
  padding-top: 0;
}

.share-subject .count,
.share-heading .count {
  flex: none;
  margin-left: auto;
  text-align: right;
  padding-right: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
}

#shares-list li.share-link,
#receive-list li.share-link,
.files li.share-link,
.shares li.share-link {
  display: block;
  padding: 0.7rem 0 0.7rem calc(21px + 0.6rem);
  border-top: none;
}

.share-link .file-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.share-link .file-name,
#collab-list .row-head .file-name {
  font-size: 0.82rem;
}

.share-link .link-made {
  margin-top: 0.15rem;
}

#account-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.shield {
  display: inline-flex;
  color: var(--header-color);
  flex: none;
}

#account-list .shield {
  margin-left: 0.4rem;
  vertical-align: -3px;
}

@media (max-width: 620px), (max-height: 520px) {

  .account-head {
    gap: 0.75rem 1rem;
  }

  .account-head .account-links {
    gap: 1rem;
  }
}

.files li.share-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 0;
  border-top: none;
}

.files li.share-heading + li {
  border-top: none;
}

.files li.show-all {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.share-link.spent .file-name {
  color: var(--muted);
}

@media (max-width: 620px), (max-height: 520px) {
  .account-head {
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .account-head .account-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 0.9rem;
    max-width: 55%;
  }
}

.shield svg {
  width: 20px;
  height: 20px;
}

#account-list .shield svg {
  width: 17px;
  height: 17px;
}

#account-list .shield {
  display: inline-flex;
  margin-left: 0.35rem;
  vertical-align: -3px;
}

#view-vault.drop-here {
  outline: 2px dashed var(--header-color);
  outline-offset: -6px;
  background-color: color-mix(in oklab, var(--header-color) 6%, transparent);
}

#view-vault.drop-here * {
  pointer-events: none;
}

#view-vault.drop-here .files li.is-folder {
  pointer-events: auto;
}

.split {
  display: inline-flex;
  align-items: stretch;
}

.split .secondary:not(.caret) {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding-right: 0.85rem;
}

.split .caret {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
  padding: 0 0.875rem;
  margin-left: 0;
  gap: 0;
}

.files {
  width: calc(100% + 1.2rem);
  max-width: none;
}

@media (min-width: 700px) and (min-height: 521px) {

  .pill-row #vault-select {
    margin-left: auto;
  }
}

.crumb-row .count {
  padding-right: 0.6rem;
}

.codes-key {
  font-family: var(--mono);
  font-size: clamp(0.7rem, 4.4vw, 0.95rem);
  line-height: 1.9;
  letter-spacing: 0;
  padding: 0.7rem 0.6rem;
  margin: 0.25rem 0 0.9rem;
  border-radius: 10px;
  background-color: color-mix(in oklab, var(--text-color) 6%, transparent);
  white-space: pre;
  text-align: center;
  overflow: hidden;
}

.totp-copy-row {
  justify-content: center;
  margin-top: -0.4rem;
  margin-bottom: 0.4rem;
}

.totp-code-row {
  justify-content: center;
}

.totp-code-row input {
  width: 9rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  padding: 0.55rem 0.5rem;
}

#totp-list {
  width: 100%;
  margin: 0;
  padding: 0;
}

a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
}

#totp-code,
#signin-code {
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
}

.code-note {
  text-align: center;
  margin: 0;
}

#signin-status:empty {
  display: none;
}

.code-note:not([hidden]) ~ .auth-actions {
  margin-top: 0.75rem;
}

.queue li.done {
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.queue li .retry {
  margin-left: auto;
  flex: none;
  padding-left: 0;
  padding-right: 0;
}

.slot-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.8rem;
  vertical-align: -3px;
  color: var(--muted);
}

.viewer-slot.is-filled {
  border-style: solid;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
}

.slot-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 7.5rem;
  object-fit: contain;
}

@media (max-width: 620px), (max-height: 520px) {
  .slot-image {
    max-height: 5.5rem;
  }
}

.analytics-controls {
  gap: 0.75rem;
  margin-top: 1.1rem;
  margin-bottom: 0.9rem;
}

.chart {
  margin-top: 0.25rem;
}

.chart-frame {
  display: flex;

  gap: 0.35rem;
  height: 10rem;
}

.chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  align-items: flex-start;
  padding-bottom: 1.6rem;
  font-size: 0.7rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex: none;

  min-width: 1.1rem;
}

.chart-plot {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  flex: 1;
  min-width: 0;

  overflow: visible;
}

.chart-grid {
  position: absolute;
  inset: 0 0 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.chart-grid span {
  height: 1px;
  background-color: color-mix(in oklab, var(--rule) 55%, transparent);
}

.chart-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;

  min-width: 0.5rem;
  height: 100%;

  position: relative;
  z-index: 1;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  flex: 1;
  width: 100%;
  border-bottom: 1px solid var(--rule);
}

.chart-bar {
  width: 40%;
  max-width: 0.6rem;
  min-height: 1px;
  border-radius: 2px 2px 0 0;
}

.chart-bar.served {
  background-color: var(--accent-soft);
}

.chart-bar.viewed {
  background-color: var(--header-color);
}

.chart-label {
  width: 0;
  height: 1rem;
  line-height: 1rem;
  display: flex;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: visible;
}

.trash-actions {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

input[type="date"],
input[type="datetime-local"] {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  font-size: 1rem;
  color: inherit;
  background-color: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  width: 100%;
  min-height: var(--control-h);
  color-scheme: dark light;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6);
  cursor: pointer;
}

.messages {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 26rem;
  overflow-y: auto;
  margin: 0.5rem 0 1rem;
  padding: 0;
}

.message {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 85%;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--rule);
}

.message.mine {
  align-self: flex-end;
  background-color: color-mix(in oklab, var(--header-color) 12%, transparent);
}

.message.theirs {
  align-self: flex-start;
}

.message-body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#support-body {
  width: 100%;
  min-height: 5rem;
  resize: vertical;
  font: inherit;
  font-size: 1rem;
  color: inherit;
  background-color: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

.linkish.has-unread {
  color: #b45309;
  color: oklch(0.62 0.16 68);

  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .linkish.has-unread {
    color: #ffd60a;
    color: oklch(0.88 0.19 97);
  }
}

#support-conversation .row.end {
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

#support-conversation .row.end:has(#support-back:not([hidden])) {
  justify-content: space-between;
}

#support-status:empty {
  display: none;
}

html.auth-locked,
html.auth-locked body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.account-links .linkish::after {
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 600;
  pointer-events: none;
}

#go-vault::after { content: "Vault"; }
#go-settings::after { content: "Settings"; }
#go-support::after { content: "Support"; }
#go-admin::after { content: "Admin"; }
#do-signout::after { content: "Sign Out"; }

#moderate-result .check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

#moderate-result .row.end {
  justify-content: flex-start;
  margin-top: 1rem;
}

.share-link.was-removed .file-name {
  color: var(--danger);
}

#request-meter {
  margin-top: 0.6rem;
}

.meter-requests {
  background-color: #00c853;
  background-color: oklch(0.74 0.24 147);
}

.meter-requests.warm {
  background-color: #ff8c00;
  background-color: oklch(0.74 0.19 55);
}

.meter-requests.hot {
  background-color: #f10000;
  background-color: oklch(0.60 0.25 30);
}

.meter #request-note {
  margin-top: 0.4rem;
}

#hotlink-detail .crumb-row {
  align-items: baseline;
  gap: 1rem;
}

#hotlink-chart,
#hotlink-total-chart,
#share-chart,
#stats-chart {
  margin-bottom: 0.5rem;
}

#hotlink-summary,
#hotlink-total-summary,
#share-summary,
#stats-summary {
  margin-top: 0.5rem;
}

.sub.first {
  margin-top: 0;
}

.hotlink-path {
  font-family: var(--mono);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
  margin: -0.25rem 0 0.75rem;
}

#hotlink-total-summary {
  margin-bottom: 1.4rem;
}

.chart-tick {
  width: 1px;
  height: 4px;
  background-color: color-mix(in oklab, var(--rule) 80%, transparent);
  flex: none;
}

#hotlink-chart .chart-bar,
#hotlink-total-chart .chart-bar {
  width: 78%;
  max-width: 1.1rem;
}

#view-analytics .sub {
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
}

#view-analytics .sub.first {
  margin-top: 0;
}

#view-analytics .analytics-controls {
  margin-top: 1.1rem;
  margin-bottom: 0.9rem;
}

.crumb-row .sub.first {
  margin-top: 0;
}

#account-links {
  display: none;
}

.nav-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  align-self: flex-start;
  border-radius: 10px;
  padding-right: 0.875rem;
}

.mode-toggle .glyph-slot:not([hidden]) {
  display: inline-flex;
}

.nav-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  margin-left: auto;
  flex: none;
}

.nav-stack .nav-menu {
  align-self: flex-end;
}

.nav-menu .nav-glyph {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.nav-menu.has-unread .nav-glyph {
  color: inherit;
}

button.nav-menu.has-unread .nav-glyph svg {
  color: inherit;
}

.nav-menu::after,
.split .caret::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;

  border-top: 6px solid var(--muted);
}

.nav-menu.has-unread::after {
  border-top-color: currentColor;
}

.nav-menu::after {
  margin-left: 0.1rem;
}

.nav-menu.has-unread {
  color: #b45309;
  color: oklch(0.62 0.16 68);
  border-color: currentColor;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .nav-menu.has-unread {
    color: #ffd60a;
    color: oklch(0.88 0.19 97);
  }
}

.menu-item.has-unread {
  color: #b45309;
  color: oklch(0.62 0.16 68);
  font-weight: 600;
}

.menu-item.has-unread .menu-glyph {
  color: inherit;
}

@media (prefers-color-scheme: dark) {
  .menu-item.has-unread {
    color: #ffd60a;
    color: oklch(0.88 0.19 97);
  }
}

#actions-title {
  margin-bottom: 0;
  overflow-wrap: anywhere;
  flex-wrap: wrap;
  row-gap: 0;
}

#actions-title > .menu-when,
#actions-title > .menu-marks {
  width: 100%;
  padding-left: 0.25rem;
}

.menu li:first-child .menu-item {
  padding-top: 0.55rem;
}

#actions-title:empty {
  display: none;
}

.sheet:focus,
.sheet:focus-visible {
  outline: none;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.viewer-brand {
  font-weight: 600;
  font-size: var(--mark-size);
}

.archive-note {
  border-left-color: #b45309;
  border-left-color: oklch(0.62 0.16 68);
  margin-top: 0.6rem;
}

@media (prefers-color-scheme: dark) {
  .archive-note {
    border-left-color: #ffd60a;
    border-left-color: oklch(0.88 0.19 97);
  }
}

.view-toggle {
  display: inline-flex;
  height: var(--control-h);
  border: 1px solid var(--rule);
  border-radius: calc(var(--control-h) / 2);
  overflow: hidden;
  flex: none;
}

.view-toggle .view-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.view-toggle .view-choice + .view-choice {
  border-left: 1px solid var(--rule);
}

.view-toggle .view-choice.is-on {
  background: var(--rule);
  color: var(--text-color);
}

.app:has(#view-vault:not([hidden])):has(#vault-columns:not([hidden])) {
  max-width: min(1500px, 100%);
  padding-bottom: 1rem;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .app:has(#view-vault:not([hidden])):has(#vault-columns:not([hidden])) {
    padding-bottom: max(0.25rem, env(safe-area-inset-bottom));
  }
}

html.web-app .app:has(#view-vault:not([hidden])):has(#vault-columns:not([hidden])) {
  padding-bottom: max(0.25rem, env(safe-area-inset-bottom));
}

html:has(#view-vault:not([hidden])):has(#vault-columns:not([hidden])) {
  overflow: hidden;
}

html:has(#view-vault:not([hidden])):has(#vault-columns:not([hidden])):not(:has(dialog[open])) body {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
}

#toast-undo[hidden] {
  display: none;
}

.toast[hidden] {
  display: none;
}

.app:has(#view-vault:not([hidden])):has(#vault-columns:not([hidden])) #vault-status:empty {
  display: none;
}

@media (hover: hover) and (pointer: fine) and (not (any-pointer: coarse)) {
  .app {
    padding-top: 1.25rem;
  }
}

#vault-columns {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  height: min(64vh, 640px);
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

#vault-columns::-webkit-scrollbar {
  height: 8px;
}

#vault-columns::-webkit-scrollbar-track {
  background: transparent;
}

#vault-columns::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 4px;
}

#vault-columns.is-shallow {
  align-self: flex-start;
  width: 252px;
}

#vault-columns.is-shallow > .column {
  flex: 0 0 250px;
}

.column {
  flex: 1 1 0;
  min-width: 250px;
  overflow-y: auto;
  border-right: 1px solid var(--rule);
  padding: 0.35rem;
  scrollbar-width: none;
}

.column::-webkit-scrollbar {
  display: none;
}

.col-preview {
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

.col-preview::-webkit-scrollbar {
  display: block;
  width: 8px;
}

.col-preview::-webkit-scrollbar-track {
  background: transparent;
}

.col-preview::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 4px;
}

.col-preview.has-more {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent);
}

.column:last-child {
  border-right: none;
}

.col-list {
  list-style: none;
}

.col-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

.col-row .col-icon {
  display: inline-flex;
  flex: none;
  color: var(--muted);
}

.col-row .col-icon svg {
  width: 17px;
  height: 17px;
}

.col-row .star svg {
  width: 13px;
  height: 13px;
}

.col-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.col-next {
  display: inline-flex;
  flex: none;
  color: var(--muted);
}

.col-next svg {
  width: 13px;
  height: 13px;
}

.col-row.is-picked {
  background: var(--toggle-off);
}

.column.is-live .col-row.is-picked {
  background: var(--header-color);
  color: #ffffff;
}

.column.is-live .col-row.is-picked .col-icon,
.column.is-live .col-row.is-picked .col-next,
.column.is-live .col-row.is-picked .star,
.column.is-live .col-row.is-picked .share-mark {
  color: #ffffff;
}

@media (hover: hover) {
  .col-row:hover:not(.is-picked) {
    background: color-mix(in oklab, var(--text-color) 8%, transparent);
  }
}

.col-row.drop-target {
  outline: 2px solid var(--header-color);
  outline-offset: -2px;
}

.col-empty {
  padding: 1.2rem 0.6rem;
  text-align: center;
}

.col-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  padding: 1.2rem 0.9rem;
}

.col-preview .preview-glyph {
  color: var(--muted);
}

.col-preview .preview-glyph svg {
  width: 58px;
  height: 58px;
}

.col-preview .preview-name {
  margin-top: 0.25rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.col-preview .file-meta {
  display: block;
}

.col-preview .badge {
  margin: 0.2rem 0.15rem 0;
}

.col-preview .menu {
  width: min(100%, 24rem);
  text-align: left;
  margin-top: 0.5rem;
}

.col-preview .checksum-block {
  width: min(100%, 24rem);
}

.col-preview .checksum-note {
  font-size: 0.7rem;
}

.col-row .row-check {
  display: inline-flex;
  flex: none;
}

.col-row.picked {
  background: var(--toggle-off);
}

@media (pointer: coarse) {
  .col-row {
    padding: 0.55rem 0.5rem;
  }

  .column {
    min-width: clamp(190px, 17vw, 250px);
  }
}

@media (max-width: 620px), (max-height: 520px) {
  #view-toggle {
    display: none;
  }
}

.tool-row .field {
  flex: none;
}

.tool-row .field .select-wrap {
  flex: none;
  min-width: 0;
}

.tool-row .field .select-wrap select {
  padding-left: 0.6rem;
  padding-right: 1.7rem;
}

.select-like {
  font: inherit;
  font-size: 0.95rem;
  color: inherit;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.4rem 1.7rem 0.4rem 0.6rem;
  height: var(--control-h);
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-field .select-wrap .view-dot {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  pointer-events: none;
}

.tag-field .select-wrap .view-dot[hidden] {
  display: none;
}

.tag-field .select-wrap.is-tinted .select-like {
  padding-left: 1.55rem;
}

@media (max-width: 620px), (max-height: 520px) {
  .tool-row .field.tag-field {
    display: none;
  }

  .tool-row .tag-field + .field {
    margin-left: auto;
  }
}

.tool-row .select-wrap::after {
  right: calc(0.875rem + 1px);
}

.tool-row .sort-field {
  margin-left: auto;
}

.spot {
  width: min(34rem, 92vw);
  margin: min(26dvh, 16rem) auto auto;
  padding: 0.45rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-color);
  box-shadow: 0 0 0 1px var(--spot-rim), var(--spot-depth);
}

.spot[open] {
  animation: spot-in 150ms ease-out;
}

@keyframes spot-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

.keys {
  width: min(21rem, 92vw);
  padding: 1rem 1.1rem 0.95rem;
}

.keys h2 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.keys-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.keys-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.keys-combo {
  flex: none;
  width: 4.9rem;
  display: inline-flex;
  gap: 0.25rem;
}

.keys kbd {
  font: inherit;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.28rem 0.42rem;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--toggle-off);
  color: var(--text-color);
}

.keys-what {
  color: var(--muted);
  font-size: 0.9rem;
}

.viewer-count {
  flex: none;
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.spot::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.spot-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.45rem;
  color: var(--muted);
}

.spot-field input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--text-color);
}

.spot-field input[type="search"]:focus,
.spot-field input[type="search"]:focus-visible {
  outline: none;
  box-shadow: none;
}

.search-hits {
  margin-top: 0.4rem;
  padding: 0.3rem 0.15rem 0.15rem;
  list-style: none;
  border-top: 1px solid var(--rule);
  max-height: min(22rem, 46dvh);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

.search-hits::-webkit-scrollbar {
  width: 8px;
}

.search-hits::-webkit-scrollbar-track {
  background: transparent;
}

.search-hits::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 4px;
}

.search-hits .hit {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-color);
  text-align: left;
  font-size: 0.95rem;
}

@media (hover: hover) {
  .search-hits .hit:hover {
    background: color-mix(in oklab, var(--text-color) 8%, transparent);
  }
}

.search-hits .hit .col-icon svg {
  width: 17px;
  height: 17px;
}

.search-hits .hit-name {
  flex: none;
  max-width: 55%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-hits .hit-path {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: right;
}

.search-hits .hit.is-hot {
  background: color-mix(in oklab, var(--text-color) 12%, transparent);
}

.search-hits .hit-empty {
  padding: 0.6rem;
  text-align: center;
}

.viewer-standby {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 34rem;
  text-align: center;
}

.viewer-standby .note {
  text-align: left;
}

#toast-undo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.6rem;
  padding: 0.15rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}

.rename-input {
  width: 100%;
  min-width: 8ch;
  font: inherit;
  color: inherit;
  background: var(--toggle-off);
  border: 1px solid var(--header-color);
  border-radius: 6px;
  padding: 0 0.3rem;
}

body {
  padding-top: env(safe-area-inset-top, 0px);
}

.quicklook .viewer,
.texted .viewer {
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
}

.texted {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg-color);
  overflow: hidden;
}

.texted[hidden] {
  display: none;
}

.texted .viewer {
  height: 100%;
}

html:has(#texted:not([hidden])) {
  overflow: hidden;
}

.texted .viewer {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.texted .viewer-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

#ted-status {
  grid-column: 1;
  justify-self: start;
  margin: 0;
}

#ted-toggle {
  grid-column: 2;
  justify-self: center;
}

#ted-save {
  grid-column: 3;
  justify-self: end;
}

.ted-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

#ted-text {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  padding: 1rem 1.25rem;
  font: 0.92rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (pointer: coarse) {
  #ted-text {
    font-size: 16px;
  }
}

.ted-preview {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 1rem 1.25rem;
  border-left: 1px solid var(--rule);
  line-height: 1.6;
}

.top-charts {
  display: block;
  margin-top: 0.35rem;
}

.top-charts li.top-chart {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
}

.top-charts .chart-rank {
  color: var(--muted);
  font-size: 0.8rem;
  width: 1.1rem;
  flex: none;
  text-align: right;
}

.top-charts .file-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-charts .chart-state {
  flex: none;
}

.top-charts .chart-opens {
  flex: none;
  margin-left: auto;
}

.top-charts li.is-empty {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.4rem 0;
}

.qcli {
  color: var(--muted);
}

.cli-card {
  margin-top: 0.5rem;
  border: none;
  border-radius: 0;
  padding: 0;
}

#cli-get-row {
  margin-top: auto;
  padding-top: 0.9rem;
}

.cli-card a.secondary {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
}

.cli-about {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.cli-hash {
  display: block;
  margin-top: 0.3rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--flag);
  border-radius: 10px;
  color: var(--flag);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
  width: 16ch;
  max-width: 100%;
  box-sizing: content-box;
}

.cli-card .plan-perks {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 0.95rem 1.5rem;
}

.cli-card .plan-perks li {
  padding-left: 0;
  color: var(--text-color);
}

.cli-card .plan-perks li::before {
  content: none;
}

.doc-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0 0 1.15rem;
}

.doc-topics button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
}

.doc-topics button svg {
  flex: none;
}

.doc-topics button.is-here {
  background: var(--rule);
  border-color: var(--rule);
  color: var(--text-color);
}

.doc a {
  color: var(--header-color);
}

.doc .sub {
  margin-top: 1.7rem;
  margin-bottom: 0.6rem;
}

.doc .sub:first-child {
  margin-top: 0.35rem;
}

.doc-list {
  margin: 0.7rem 0 1.1rem;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.doc-list li {
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

.doc-list li:last-child {
  margin-bottom: 0;
}

.doc-list code {
  font-size: 0.9em;
}

.doc pre {
  background: #15171c;
  border: 1px solid #262a33;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  margin: 0.35rem 0 0.85rem;
  position: relative;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.doc pre .lines {
  overflow-x: auto;
  padding: 1.85rem 1.1rem 0.85rem;
}

.doc pre .lines {
  scrollbar-width: thin;
  scrollbar-color: #363c48 transparent;
}

.doc pre .lines::-webkit-scrollbar {
  height: 8px;
}

.doc pre .lines::-webkit-scrollbar-track {
  background: transparent;
}

.doc pre .lines::-webkit-scrollbar-thumb {
  background: #363c48;
  border-radius: 4px;
}

.doc pre::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ff5f57;
  background: color(display-p3 1 0.34 0.3);
  box-shadow: 1.05rem 0 0 #febc2e, 2.1rem 0 0 #28c840;
  box-shadow: 1.05rem 0 0 color(display-p3 1 0.75 0.15), 2.1rem 0 0 color(display-p3 0.12 0.8 0.24);
}

.doc pre code {
  display: block;
  color: #dfe3ec;
  line-height: 1.75;
  white-space: pre;
}

.doc pre code::before {
  content: "% ";
  color: #697080;
}

.doc pre code,
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.doc .note code {
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 92%, var(--text-color));
  border: 1px solid var(--flag);
  border-color: color-mix(in srgb, var(--flag) 45%, var(--rule));
  border-radius: 5px;
  color: var(--text-color);
  display: inline-block;
  max-width: 100%;
  line-height: 1.35;
  margin: 0.12rem 0;
  padding: 0.1rem 0.35rem;
}

.doc .note {
  max-width: 46rem;
  line-height: 1.7;
}

.doc .note + .note {
  margin-top: 0.8rem;
}

.doc-cmd {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1.15rem 1.75rem;
  margin-top: 1.9rem;
}

.doc-cmd .doc-say {
  flex: 1 1 calc(50% - 1.75rem);
  min-width: 0;
}

.doc-cmd .doc-say .sub {
  margin-top: 0;
}

.doc-cmd .doc-show {
  flex: 1 1 50%;
  min-width: 0;
  padding-left: 1.75rem;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
}

.doc-cmd .doc-show pre {
  margin: 0;
}

@media (max-width: 900px) {
  .doc-cmd .doc-say,
  .doc-cmd .doc-show {
    flex-basis: 100%;
  }

  .doc-cmd .doc-show {
    padding-left: 0;
    padding-top: 1.15rem;
    border-left: none;
    border-top: 1px solid var(--rule);
  }
}

.ted-preview pre {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  overflow: auto;
}

.ted-preview code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.ted-preview blockquote {
  border-left: 3px solid var(--rule);
  margin: 0.6rem 0;
  padding: 0.1rem 0 0.1rem 0.9rem;
  color: #6d7278;
}

.ted-preview em {
  color: #b4571e;
}

.ted-preview strong {
  color: #166534;
}

.ted-preview a {
  color: #c02765;
}

.ted-preview code {
  color: #1e6fb8;
}

.ted-preview pre code {
  color: inherit;
}

@media (prefers-color-scheme: dark) {
  .ted-preview blockquote {
    color: #a2a7ad;
  }

  .ted-preview em {
    color: #e0a06a;
  }

  .ted-preview strong {
    color: #63bd88;
  }

  .ted-preview a {
    color: #f0a1c6;
  }

  .ted-preview code {
    color: #8ec2ee;
  }
}

.ted-preview :first-child {
  margin-top: 0;
}

@media (max-width: 720px) {
  .ted-body.split #ted-text {
    display: none;
  }

  .ted-preview {
    border-left: 0;
  }
}

#history-list .file-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

#history-list .file-name {
  overflow: visible;
  white-space: nowrap;
}

#history-list .peek {
  padding: 0;
  font-size: inherit;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.history-acts {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.2rem;
}

#vault-list > li.kb-picked {
  background: var(--toggle-off);
  border-radius: 10px;
  margin-left: -0.6rem;
  margin-right: -0.6rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}


.quicklook {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg-color);
  height: 100dvh;
  overscroll-behavior: none;
}

html.ql-open,
html.ql-open body {
  height: 100%;
  overflow: hidden;
}

.quicklook .viewer {
  height: 100%;
}

.quicklook .viewer-bar {
  align-items: center;
}

.ql-close {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid var(--glass-edge);
  border-radius: 50%;
  background-color: transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 var(--glass-shine),
    inset 0 -1px 0 var(--glass-under),
    0 0 0 0.5px var(--glass-ring),
    0 1px 2px var(--glass-cast);
  color: var(--glass-glyph);
  flex: none;
  transition: transform 0.12s ease;
}

.ql-close::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-color: var(--glass-fill);
  background-image: linear-gradient(var(--glass-top), var(--glass-bottom));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  pointer-events: none;
}

.ql-close:active {
  transform: scale(0.94);
}

html:has(#quicklook:not([hidden])) {
  overflow: hidden;
}

html:has(> body > .viewer),
html:has(> body > .viewer) body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
.container .gone-note.secret-pill {
  position: relative;
  width: 100%;
  min-height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.secret-veil {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  filter: blur(7px);
  opacity: 1;
  transition: opacity 260ms ease;
}

.secret-veil span {
  display: block;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--rule);
}

.secret-veil span:nth-child(1) {
  width: 72%;
}

.secret-veil span:nth-child(2) {
  width: 88%;
}

.secret-veil span:nth-child(3) {
  width: 54%;
}

.secret-body {
  position: absolute;
  left: 1rem;
  right: 1rem;
  margin: 0;
  opacity: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  max-height: 40dvh;
  overflow-y: auto;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.secret-body.is-long {
  text-align: left;
}

.secret-pill.is-open .secret-veil {
  opacity: 0;
}

.secret-pill.is-open .secret-body {
  opacity: 1;
  pointer-events: auto;
}

.secret-pill.is-open .secret-reveal {
  opacity: 0;
  pointer-events: none;
}

button.primary.secret-reveal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 200ms ease;
}

button.secondary.secret-copy {
  align-self: center;
}

.container .secret-warn {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 1;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .secret-veil,
  .secret-body,
  button.primary.secret-reveal {
    transition: none;
  }
}

#link-topics {
  margin-bottom: 1.6rem;
}

@media (max-width: 620px) {
  #link-topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  #link-topics button {
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
    font-size: 0.9rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    gap: 0.35rem;
  }

  #link-topics .count-word {
    display: none;
  }
}

#link-topics .count {
  margin-left: 0.15rem;
  opacity: 0.75;
}

.link-topic {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-topic > .note:first-child {
  margin-bottom: 0.75rem;
}

.links-foot .primary {
  margin-left: auto;
}

.secret-page {
  max-width: 900px;
  margin: 0 auto;

  padding: calc(1rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
           max(0.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.secret-page > .container {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  padding: 1rem 0;
}

@media (display-mode: standalone) {
  .secret-page {
    padding-top: calc(0.35rem + env(safe-area-inset-top));
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
  }
}

#embed-accent {
  width: 4.75rem;
  height: var(--control-h);
  padding: 0.25rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
}

#embed-accent::-webkit-color-swatch-wrapper {
  padding: 0;
}

#embed-accent::-webkit-color-swatch {
  border: none;
  border-radius: 7px;
}
