@view-transition {
  navigation: auto;
}

@font-face {
  font-family: "General";
  src: url("/static/assets/general-cyrillic-ext.woff2?v=1") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "General";
  src: url("/static/assets/general-cyrillic.woff2?v=1") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "General";
  src: url("/static/assets/general-latin-ext.woff2?v=1") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "General";
  src: url("/static/assets/general-latin.woff2?v=1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Secondary";
  src: url("/static/assets/secondary.woff2?v=1") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Num";
  src: url("/static/assets/num.woff2?v=1") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unifont";
  src: url("/static/assets/unifont.woff2?v=1") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --juice-950: #0a0908;
  --juice-900: #1a1613;
  --juice-800: #2a211d;
  --juice-700: #40342d;
  --juice-600: #54453c;
  --juice-500: #726057;
  --juice-400: #a29188;
  --juice-300: #d5c7bc;
  --juice-200: #e5dbd2;
  --juice-100: #f5edea;

  --juice-900-rgb: 26, 22, 19;
  --juice-800-rgb: 42, 33, 29;

  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-500-10: rgba(249, 115, 22, 0.1);
  --orange-500-15: rgba(249, 115, 22, 0.15);
  --orange-500-20: rgba(249, 115, 22, 0.2);
  --orange-500-50: rgba(249, 115, 22, 0.5);

  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-400: #f87171;

  --green-600: #16a34a;
  --green-500: #22c55e;

  --blue-900: #1e3a8a;
  --blue-700: #1d4ed8;
  --blue-500: #3b82f6;

  --clr-text: #d5c7bc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "General",
    "Unifont",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background-color: var(--juice-950);
  color: var(--juice-100);
  background-image:
    linear-gradient(to right, rgba(63, 63, 70, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(63, 63, 70, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
}

.upload-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.upload-page main {
  width: 100%;
}

.upload-card {
  width: 100%;
  max-width: 42rem;
  background-color: var(--juice-900);
  border-radius: 1rem;
  border: 1px solid var(--juice-800);
  padding: clamp(2rem, 4vw, 3rem);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.upload-header {
  margin: 0 0 2rem;
  text-align: center;
  overflow: hidden;
}

.upload-header h1 {
  margin: 0 0 0.75rem;
  color: var(--orange-500);
  font-size: 2.25rem;
}

.upload-header p {
  margin: 0;
  color: var(--juice-300);
  line-height: 1.25;
}

.drop-zone {
  position: relative;
  border: 2px dashed var(--orange-600);
  background-color: var(--orange-500-10);
  border-radius: 0.5rem;
  padding: 3rem 2rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
  mask-image: -webkit-radial-gradient(white, black);
}

.drop-zone:hover {
  border-color: var(--orange-500);
  background-color: var(--orange-500-15);
}

.drop-zone.dragging {
  border-color: var(--orange-500);
  background-color: var(--orange-500-20);
}

.drop-zone:focus-within {
  border-color: var(--orange-400);
  border-style: solid;
  background-color: var(--orange-500-20);
  box-shadow:
    0 0 0 3px var(--orange-500-20),
    0 0 20px rgba(249, 115, 22, 0.15);
}

.drop-zone canvas.dither-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: encrypted-fade 0.5s ease-out;
}

@keyframes encrypted-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drop-zone canvas.dither-layer {
    animation: none;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.drop-zone--shake {
  animation: shake 0.5s ease-in-out;
  border-color: var(--red-500, #ef4444) !important;
  background-color: rgba(239, 68, 68, 0.08) !important;
}

.drop-zone--app-mode {
  border-color: #7c5eb5;
  background-color: rgba(124, 94, 181, 0.06);
}
.drop-zone--app-mode:hover {
  border-color: #8b6fc0;
  background-color: rgba(124, 94, 181, 0.09);
}
.drop-zone--app-mode:focus-within {
  border-color: #8b6fc0;
  border-style: solid;
  background-color: rgba(124, 94, 181, 0.1);
  box-shadow:
    0 0 0 3px rgba(124, 94, 181, 0.1),
    0 0 20px rgba(124, 94, 181, 0.06);
}

.drop-zone--app-mode .drop-icon {
  color: #a855f7;
}

.drop-zone--app-mode .animated-grid {
  background-image: linear-gradient(
    45deg,
    #5b3d8a 25%,
    #4c3375 25%,
    #4c3375 50%,
    #5b3d8a 50%,
    #5b3d8a 75%,
    #4c3375 75%,
    #4c3375 100%
  );
}

.drop-zone-offline {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(24, 24, 27, 0.92);
  border-radius: inherit;
  z-index: 20;
}
.drop-offline-icon {
  width: 3rem;
  height: 3rem;
  color: var(--juice-500);
  margin: 0;
}
.drop-offline-primary {
  color: var(--juice-400);

  font-size: 1rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}
.drop-offline-secondary {
  color: var(--juice-500);
  font-size: 0.8rem;
  text-align: center;
  max-width: 24rem;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
html[data-backend-offline] .drop-zone-offline,
html[data-banned] .drop-zone-offline {
  display: flex;
  position: absolute;
  background: transparent;
}
html[data-backend-offline] .drop-zone,
html[data-banned] .drop-zone {
  border: 2px dashed var(--juice-700) !important;
  border-radius: 0.5rem !important;
  margin-bottom: 1.5rem !important;
  background-color: rgba(63, 63, 70, 0.1) !important;
  pointer-events: none;
  cursor: not-allowed;
}
html[data-backend-offline] .drop-zone .animated-grid,
html[data-banned] .drop-zone .animated-grid {
  background-image: linear-gradient(
    45deg,
    #40342d 25%,
    #2a211d 25%,
    #2a211d 50%,
    #40342d 50%,
    #40342d 75%,
    #2a211d 75%,
    #2a211d 100%
  ) !important;
  animation-play-state: paused;
}
html[data-backend-offline] .drop-zone .drop-icon-wrapper,
html[data-backend-offline] .drop-zone .drop-text,
html[data-backend-offline] .drop-zone .drop-zone__input,
html[data-banned] .drop-zone .drop-icon-wrapper,
html[data-banned] .drop-zone .drop-text,
html[data-banned] .drop-zone .drop-zone__input {
  visibility: hidden;
}
html[data-backend-offline] .upload-mode-text,
html[data-banned] .upload-mode-text {
  display: none !important;
}
html[data-backend-offline] .upload-submit,
html[data-banned] .upload-submit {
  display: none !important;
}
html[data-backend-offline] .upload-tabs,
html[data-banned] .upload-tabs {
  display: none !important;
}

.drop-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.drop-lock {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-500);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.drop-lock[hidden] {
  display: none;
}

.drop-zone.is-encrypted .drop-icon {
  display: none;
}

.drop-icon {
  width: 64px;
  height: 64px;
  color: var(--orange-500);
  position: relative;
  z-index: 10;
  transition: color 0.2s;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.drop-zone.dragging .drop-icon {
  color: var(--orange-400);
}

.drop-text {
  text-align: center;
  position: relative;
  z-index: 10;
}

.drop-text-primary {
  color: var(--juice-100);
  font-weight: bold;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.drop-file-selected {
  display: none;
  color: #22c55e;
  font-weight: bold;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.drop-zone:has(.drop-zone__input:valid) .drop-text-primary {
  display: none;
}

.drop-zone:has(.drop-zone__input:valid) .drop-file-selected {
  display: block;
}

.drop-zone:has(.drop-zone__input:valid) .drop-icon {
  color: #22c55e;
}

.drop-text-secondary {
  color: var(--juice-300);
  font-size: 0.875rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.drop-text-meta {
  color: var(--juice-400);
  font-size: 0.75rem;
  font-family: "General", "Unifont", monospace;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q5 1 10 5 T20 5 T30 5 T40 5' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: top center;
  background-size: 40px 10px;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.tab-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.upload-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.upload-form .drop-zone,
.upload-form .text-editor {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.services-info {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 50;
}

.services-info summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  color: var(--juice-400);
  cursor: pointer;
  list-style: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.services-info summary::-webkit-details-marker {
  display: none;
}

.services-info summary:hover,
.services-info summary:focus-visible,
.services-info[open] summary {
  color: var(--juice-200);
  background: var(--juice-800);
}

.services-info__tip {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(22rem, 80vw);
  padding: 0.6rem 0.75rem;
  background: var(--juice-900);
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 0.8rem;
  color: var(--juice-300);
}

.services-info__tip strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--juice-200);
}

.services-info__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.services-info__card {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 0.1rem 0.45rem;
  background: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-radius: 4px;
  color: var(--juice-300);
  white-space: nowrap;
}

.services-info__loading {
  color: var(--juice-500);
}

.upload-tab,
.url-variant {
  flex: 1;
  text-align: center;
  color: var(--juice-400);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s,
    color 0.15s;
  box-shadow:
    inset 1px 0 0 0 var(--juice-700),
    inset -1px 0 0 0 var(--juice-700);
}

.upload-tab {
  background: var(--juice-800);
}

.url-variant {
  background: var(--juice-900);
}

.upload-tab:hover,
.url-variant:hover {
  background: var(--juice-700);
  color: var(--juice-200);
}

.upload-tab {
  padding: 0.6rem 0.6rem;
  font-size: 0.85rem;
  box-shadow:
    inset 1px 0 0 0 var(--juice-700),
    inset -1px 0 0 0 var(--juice-700),
    inset 0 2px 0 0 var(--juice-700);
}

.upload-tab:first-child {
  border-top-left-radius: 0.5rem;
  box-shadow:
    inset 2px 0 0 0 var(--juice-700),
    inset -1px 0 0 0 var(--juice-700),
    inset 0 2px 0 0 var(--juice-700);
}

.upload-tab:last-child {
  border-top-right-radius: 0.5rem;
  box-shadow:
    inset 1px 0 0 0 var(--juice-700),
    inset -2px 0 0 0 var(--juice-700),
    inset 0 2px 0 0 var(--juice-700);
}

.upload-tab:hover {
  background: var(--juice-700);
  color: var(--juice-200);
}

#mode-file:checked ~ .upload-tabs label[for="mode-file"],
#mode-text:checked ~ .upload-tabs label[for="mode-text"],
#mode-cobalt:checked ~ .upload-tabs label[for="mode-cobalt"] {
  background: var(--orange-500-15);
  color: var(--orange-500);
  box-shadow:
    inset 2px 0 0 0 var(--orange-600),
    inset -2px 0 0 0 var(--orange-600),
    inset 0 2px 0 0 var(--orange-600);
  position: relative;
  z-index: 1;
}

.text-editor {
  border: 2px dashed var(--orange-600);
  background-color: var(--orange-500-10);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.text-editor > .animated-grid-container {
  opacity: 0.2;
}

.text-editor-textarea,
.text-editor-actions {
  position: relative;
  z-index: 10;
}

.text-editor-textarea {
  flex: 1;
  width: 100%;
  min-height: 120px;
  max-height: 350px;
  background: var(--juice-900);
  border: 1px solid var(--juice-700);
  border-radius: 0.375rem;
  color: var(--juice-200);
  padding: 0.75rem;
  font-family: "General", "Unifont", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

.text-editor-textarea:focus {
  outline: none;
  border-color: var(--orange-500);
}

.text-editor-textarea:focus-visible {
  box-shadow: 0 0 0 3px var(--orange-500-20);
}

.text-editor-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.text-editor-cancel {
  padding: 0.4rem 0.8rem;
  border-radius: 9999px 0 0 9999px;
  background: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-right: none;
  color: var(--juice-300);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  transition:
    background-color 0.15s,
    color 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.text-editor-cancel:hover {
  background: var(--juice-700);
  color: var(--juice-100);
}

.text-editor-cancel:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

.text-editor-upload,
.text-editor-submit {
  padding: 0.4rem 0.8rem;
  border-radius: 0 9999px 9999px 0;
  background: var(--orange-600);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 0.8rem;

  font-family: inherit;
  transition: background-color 0.15s;
}

.text-editor-upload:hover,
.text-editor-submit:hover {
  background: var(--orange-500);
}

.text-editor-upload:focus-visible,
.text-editor-submit:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

.upload-mode-wrapper {
  display: grid;
}

.upload-mode-file,
.upload-mode-text {
  grid-column: 1;
  grid-row: 1;
  transition:
    opacity 0.25s ease,
    pointer-events 0s 0.25s;
  display: flex;
  flex-direction: column;
}

.upload-mode-file {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.upload-mode-text {
  opacity: 0;
  pointer-events: none;
}

.upload-mode-text .text-editor {
  flex: 1;
}

.upload-form.text-mode .upload-mode-file,
#mode-text:checked ~ .upload-mode-wrapper .upload-mode-file {
  opacity: 0;
  pointer-events: none;
}

.upload-form.text-mode .upload-mode-text,
#mode-text:checked ~ .upload-mode-wrapper .upload-mode-text {
  opacity: 1;
  pointer-events: auto;
}

.cobalt-branding {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.25rem 0.75rem;
  font-size: 0.95rem;
  color: var(--juice-200);
}

.cobalt-branding img {
  display: block;
  object-fit: contain;
  border-radius: 5px;
}

.cobalt-branding__name {
  font-family: "Title", "Unifont", monospace;
  text-transform: uppercase;
  color: var(--orange-500);
  text-shadow:
    2px 0 0 #000,
    -2px 0 0 #000,
    0 2px 0 #000,
    0 -2px 0 #000;
  margin-right: 0.1rem;
}

.cobalt-branding__x {
  font-family: "Pixel Modal", monospace;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.cobalt-branding__link {
  color: var(--orange-400);
  text-decoration: none;
  transition: color 0.15s;
}

.cobalt-branding__link:hover {
  color: var(--orange-500);
  text-decoration: underline;
}

.cobalt-branding__link:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
  border-radius: 2px;
}

.cobalt-bottom {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  min-width: 0;
}

.cobalt-bottom .cobalt-settings {
  padding: 0;
  min-width: 0;
}

.cobalt-bottom .text-editor-actions {
  margin-top: 0;
  flex-shrink: 0;
}

.upload-mode-cobalt {
  grid-column: 1;
  grid-row: 1;
  transition:
    opacity 0.25s ease,
    pointer-events 0s 0.25s;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
}

.upload-mode-cobalt .cobalt-editor {
  flex: 1;
}

#mode-cobalt:checked ~ .upload-mode-wrapper .upload-mode-file,
#mode-cobalt:checked ~ .upload-mode-wrapper .upload-mode-text {
  opacity: 0;
  pointer-events: none;
}

#mode-text:checked ~ .upload-mode-wrapper .upload-mode-cobalt {
  opacity: 0;
  pointer-events: none;
}

#mode-cobalt:checked ~ .upload-mode-wrapper .upload-mode-cobalt {
  opacity: 1;
  pointer-events: auto;
}

.cobalt-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.25rem 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: var(--juice-300);
}

.cobalt-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.cobalt-option[hidden] {
  display: none;
}

.cobalt-option select {
  background: var(--juice-800);
  color: var(--juice-200);
  border: 1px solid var(--juice-700);
  border-radius: 9999px;
  width: auto;
  padding: clamp(0.18rem, 0.5vw, 0.28rem) clamp(0.45rem, 1.4vw, 0.65rem);
  font-size: clamp(0.72rem, 1.6vw, 0.8rem);
  font-family: inherit;
  cursor: pointer;
}

.cobalt-option select:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

@keyframes slideLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-67.88px);
  }
}

.animated-grid-container {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  overflow: hidden;
  pointer-events: none;
}

.animated-grid {
  width: 200%;
  height: 100%;
  background-image: linear-gradient(
    45deg,
    #824a00 25%,
    #693800 25%,
    #693800 50%,
    #824a00 50%,
    #824a00 75%,
    #693800 75%,
    #693800 100%
  );
  background-size: 67.88px 67.88px;
  will-change: transform;
  animation: slideLeft 10s linear infinite;
}

.upload-paste-hint {
  margin: 0 0 0.75rem;
  line-height: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--juice-500);
}

.file-list-container {
  position: relative;
  background-color: var(--juice-900);
  border: 1px solid var(--juice-800);
  border-radius: 0.75rem;
  min-height: 180px;
  max-height: min(60vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.scroll-element {
  height: 20px;
  flex-shrink: 0;
  pointer-events: none;
  width: 100%;
}

.scroll-cover-top,
.scroll-cover-bottom {
  background: var(--juice-900);
  z-index: 20;
  position: relative;
}

.scroll-cover-bottom {
  margin-top: -20px;
}

.sticky-shadow-top {
  position: sticky;
  top: 0;
  margin-top: -20px;
  z-index: 10;
  background: radial-gradient(
    farthest-side at 50% 0,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0)
  );
}

.sticky-shadow-bottom {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: radial-gradient(
    farthest-side at 50% 100%,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0)
  );
}

.file-list-content {
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.empty-text {
  text-align: center;
  color: var(--juice-400);
  font-style: italic;
  font-size: 0.9rem;
  padding: 3rem 0;
  display: none;
}

.empty-text.visible {
  display: block;
}

.file-list-container::-webkit-scrollbar {
  width: 6px;
}

.file-list-container::-webkit-scrollbar-track {
  background: var(--juice-900);
  border-radius: 3px;
  margin-block: 5px;
}

.file-list-container::-webkit-scrollbar-thumb {
  background: var(--juice-700);
  border-radius: 3px;
}

.file-list-container::-webkit-scrollbar-thumb:hover {
  background: var(--juice-600);
}

.file-item {
  background-color: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
  padding: 1rem;
  flex-shrink: 0;
  position: relative;
  animation: file-item-entry 0.3s ease-out backwards;
  transform-origin: center;
}

@keyframes file-item-entry {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes file-item-exit {
  0% {
    opacity: 1;
    max-height: 150px;
    margin-bottom: 0;
    padding: 1rem;
    border-width: 1px;
  }
  100% {
    opacity: 0;
    max-height: 0;
    margin-bottom: -1rem;
    padding: 0;
    border-width: 0;
  }
}

.file-item.exiting {
  animation: file-item-exit 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.file-item.delegated .status-pill {
  background: var(--blue-900);
  border-color: var(--blue-700);
}

.file-item.delegated .progress-fill {
  background: var(--blue-500);
}

.file-item-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.file-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--juice-800);
  color: var(--juice-400);
}

.file-info-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
  flex: 1;
}

.file-name {
  color: var(--juice-100);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  font-family: "Secondary", "Unifont", monospace;
}

.file-name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.file-name-row .file-name {
  flex: 0 1 auto;
  min-width: 0;
}

.file-protected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--juice-400);
}

.file-protected svg {
  display: block;
}

.file-size {
  color: var(--juice-500);
  font-size: 0.875rem;
  font-family: "General", "Unifont", monospace;
}

.delete-btn {
  background: none;
  border: none;
  color: var(--juice-500);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.delete-btn:hover {
  background-color: var(--juice-700);
  color: var(--orange-500);
}

.delete-btn:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

.delete-btn.armed {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.12);
}

.delete-btn.armed:hover {
  color: #fff;
  background-color: #ef4444;
}

.delete-btn:active {
  transform: scale(0.95);
  background-color: var(--juice-800);
}

.delete-btn:active svg {
  transform: scale(1.2);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.file-action-area {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.progress-divider {
  position: relative;
  width: 100%;
  height: 6px;
  background-color: var(--juice-950);
  border-radius: 3px;
  overflow: hidden;
  transition:
    height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0;
}

.file-action-area.complete .progress-divider {
  height: 2px;
  background-color: var(--juice-700);
  border-radius: 1px;
  margin-bottom: 0;
}

.progress-fill {
  height: 100%;
  background-color: var(--orange-500);
  width: var(--progress, 0%);
  transition:
    width 0.3s ease-out,
    opacity 0.2s ease-out;
  border-radius: 3px;
  opacity: 1;
}

.file-action-area.complete .progress-fill {
  opacity: 0;
}

.progress-fill.finalizing {
  width: 100% !important;
  background: linear-gradient(
    90deg,
    var(--orange-500) 0%,
    var(--orange-500) 20%,
    #fdba74 40%,
    #fff7ed 50%,
    #fdba74 60%,
    var(--orange-500) 80%,
    var(--orange-500) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% 0;
  }
  50% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

.progress-fill.error {
  background-color: #ef4444 !important;
  width: 100% !important;
  animation: none;
}

.status-pill.error {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.status-pill.error .spinner {
  display: none;
}

[data-quick-link] .status-pill.error + .copy-bar {
  border-color: #ef4444 !important;
  border-top-color: var(--juice-700) !important;
}

[data-quick-link].file-item.error .copy-bar__url {
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  color: #ef4444;
}

.status-pill {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  background-color: var(--juice-900);
  border: 1px solid var(--juice-700);
  border-radius: 2rem;
  padding: 0.35rem 0.85rem;
  color: var(--juice-400);
  font-family: "General", "Unifont", monospace;
  font-size: 0.75rem;
  cursor: default;
  margin-top: 0.5rem;
  transition:
    border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.status-pill:disabled {
  cursor: default;
}

.status-content,
.link-content {
  user-select: text;
  cursor: text;
}

.status-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-quick-link] .status-pill + .copy-bar {
  margin-top: -1px;
  margin-bottom: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  transition:
    border-radius 0.5s ease,
    margin-top 0.5s ease;
}

[data-quick-link] .status-pill:has(+ .copy-bar) {
  border-radius: 0.5rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 0;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease,
    height 0.5s ease,
    margin-top 0.5s ease;
}

.copy-bar--rounded {
  border-radius: 0.5rem !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.status-pill.sliding {
  transform: translateY(calc(100% + 1px));
  opacity: 0;
  height: 0;
  margin-top: 0;
  padding: 0;
  border-width: 0;
  overflow: hidden;
  pointer-events: none;
}

.copy-bar:has(+ .delete-btn) {
  margin-bottom: 0;
}

.spinner {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.act {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.action-btn {
  width: 100%;
  background-color: var(--juice-800);
  color: var(--juice-300);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  font-family: "Secondary", "Unifont", monospace;
  font-size: 18px;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

@media (hover: hover) {
  .action-btn:hover {
    background-color: var(--juice-700);
    color: var(--juice-100);
  }
}

.action-btn:active {
  background-color: var(--juice-900);
  color: var(--juice-100);
}

.action-btn:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

.action-btn:active svg,
.action-btn:active .action-btn__icon svg {
  color: var(--orange-500);
  transition:
    transform 0.1s ease,
    color 0.1s ease;
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-2px);
  box-shadow:
    0 2px 0 0 var(--juice-900),
    0 2px 0 1px var(--juice-700),
    0 3px 4px rgba(0, 0, 0, 0.2);
}

.action-btn svg,
.action-btn__icon svg {
  transition:
    color 0.2s,
    transform 0.15s ease;
}

.action-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.action-btn:hover svg,
.action-btn:hover .action-btn__icon svg {
  color: var(--orange-400);
}

.footr {
  text-align: center;
  color: var(--juice-500);
  border-top: 1px solid var(--juice-800);
  padding-top: 1rem;
  font-size: 0.875rem;
  font-family: "General", "Unifont", monospace;
}

@media (max-width: 768px) {
  .upload-page {
    padding: 0;
    align-items: flex-start;
  }

  .upload-page main {
    width: 100%;
    padding: 0 0;
  }

  .upload-card {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 2rem 1.5rem 2.5rem;
    min-height: 100vh;
  }

  .act {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animated-grid {
    animation: none;
  }

  .spinner {
    animation: none;
  }

  .file-item {
    animation: none;
  }

  .file-item.exiting {
    animation: none;
    opacity: 0;
    transition: opacity 0.1s ease-out;
  }

  .progress-fill {
    transition: width 0.1s ease-out;
  }

  .progress-fill.finalizing {
    animation: none;
  }

  .status-pill {
    transition: none;
  }

  .status-pill.complete .status-content,
  .status-pill.complete .link-content {
    transition: none;
  }

  .copy-bar__url,
  .copy-bar__copied-text {
    transition: none;
  }

  .link-url,
  .copied-text {
    transition: none;
  }

  .file-confirm {
    animation: none;
  }

  .select-menu--details {
    transition: none;
  }

  .select-details[open] .select-menu--details {
    animation: none;
  }

  a.action-btn,
  summary.action-btn {
    transition: none;
  }

  .ripple-wave,
  .ripple-wave--hold,
  .ripple-wave--release {
    transition: none;
    display: none;
  }

  ::view-transition-old(page-content),
  ::view-transition-new(page-content) {
    animation: none;
  }
}

@keyframes smooth-slide-from-right {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes smooth-slide-to-left {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-30px);
  }
}

::view-transition-old(page-content) {
  animation: smooth-slide-to-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

::view-transition-new(page-content) {
  animation: smooth-slide-from-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn:active,
.select-wrapper[data-open="true"] .action-btn {
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--orange-500);
  color: #000;

  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
  white-space: nowrap;
}
.skip-link:focus {
  top: 0;
}
.skip-link--actions:focus {
  top: 2.25rem;
}

.host-btn {
  padding: 0.4rem 0.6rem;
  border-radius: 0.375rem;
  background: var(--juice-800);
  border: 1px solid var(--juice-700);
  color: var(--juice-400);
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.host-btn:hover {
  background: var(--juice-700);
  color: var(--juice-100);
}

.host-btn:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

.host-btn--card {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.upload-mode-radios {
  display: flex;
  gap: 0.5rem;
}
.upload-mode-radios .radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-radius: 0.375rem;
  color: var(--juice-200);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.upload-mode-radios .radio-option:hover {
  background-color: var(--juice-700);
  border-color: var(--juice-600);
}
.upload-mode-radios .radio-option:has(input:checked) {
  border-color: var(--orange-500);
  color: var(--juice-100);
  box-shadow: 0 0 0 1px var(--orange-500);
}
.upload-mode-radios .radio-option input[type="radio"] {
  accent-color: var(--orange-500);
}
.host-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: -1px;
}

.host-input {
  border-bottom-left-radius: 0 !important;
}

.host-check-btn {
  border-radius: 0.5rem !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  white-space: nowrap;
}

.host-options-group .form-label {

  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .host-input {
    border-bottom-right-radius: 0 !important;
  }

  .host-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .host-check-btn {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .host-check-btn {
    border-bottom-right-radius: 0 !important;
  }

  .host-apply-btn {
    border-radius: 0 !important;
    border-bottom-right-radius: 0.5rem !important;
  }

  .host-check-btn + .host-apply-btn {
    margin-left: -1px;
  }

  .host-modal-actions {
    gap: 0;
  }

  .host-status {
    margin-left: 0.75rem;
  }
}

.host-modal__hint {
  margin: 0 0 0.75rem;
  color: var(--juice-400);
  font-size: 0.875rem;
}

.host-status {
  font-size: 0.8rem;
  color: var(--juice-500);
}

.blocked-types-info {
  padding: 0.5rem 0.75rem;
  background: var(--juice-900, #1a1614);
  border-radius: 0.375rem;
  border: 1px solid var(--juice-800, #2a2320);
}

.blocked-types-text {
  font-size: 0.8rem;
  color: var(--juice-300, #d5c7bc);
  line-height: 1.5;
  margin: 0;
}

.pair-device-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}
.pair-status-label {
  color: var(--juice-400);
  font-size: 0.8rem;
}
.pair-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--orange-400, #fb923c);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.pair-download-link:hover {
  color: var(--orange-500, #f97316);
  text-decoration: underline;
}
.pair-section { text-align: center; padding: 1rem 0; }
.pair-hint { color: var(--juice-400); margin-bottom: 1rem; }
.pair-code-display { margin-top: 1rem; }
.pair-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 22rem;
  margin: 0.75rem auto;
  background-color: var(--juice-900);
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--juice-300);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  gap: 0.75rem;
}
.pair-code:hover {
  border-color: var(--juice-600);
  background-color: var(--juice-800);
  color: var(--juice-200);
}
.pair-code:hover .pair-code__copy-icon {
  color: var(--juice-300);
}
.pair-code:active {
  transform: scale(0.98);
  background-color: var(--juice-950);
}
.pair-code--copied {
  border-color: #10b981;
  color: #10b981;
}
.pair-code--copied .pair-code__copy-icon {
  color: #10b981;
}
.pair-code__text-wrapper {
  flex-grow: 1;
  overflow: hidden;
  display: grid;
  grid-template-areas: "text";
  align-items: center;
  min-width: 0;
}
.pair-code__code,
.pair-code__copied-text {
  grid-area: text;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pair-code__code {
  opacity: 1;
  transform: translateY(0);
  font-family: "Num", "Unifont", monospace;
  font-size: 2rem;
  letter-spacing: 0.15em;
  color: var(--juice-100);
}
.pair-code--copied .pair-code__code {
  opacity: 0;
  transform: translateY(-100%);
}
.pair-code__copied-text {
  opacity: 0;
  transform: translateY(100%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #10b981;
  font-size: 1.125rem;
}
.pair-code--copied .pair-code__copied-text {
  opacity: 1;
  transform: translateY(0);
}
.pair-code__copy-icon {
  color: var(--juice-500);
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.pair-expires { color: var(--juice-500); font-size: 0.875rem; }
.pair-device-name { font-size: 1.125rem; color: var(--juice-100); margin-bottom: 0.25rem; }
.pair-paired-date { color: var(--juice-500); font-size: 0.875rem; margin-bottom: 1rem; }
.pair-status { margin-top: 0.75rem; font-size: 0.875rem; }
.pair-status--success { color: var(--green-500, #22c55e); }
.pair-status--error { color: var(--red-500, #ef4444); }

.host-btn--glow {
  animation: host-glow 2s ease-in-out infinite;
}

.host-btn--glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--juice-400), var(--green-500, #22c55e));
  opacity: 0;
  z-index: -1;
  animation: host-glow-pulse 2s ease-in-out infinite;
}

@keyframes host-glow {
  0%, 100% { border-color: var(--juice-700); }
  50% { border-color: var(--green-500, #22c55e); }
}

@keyframes host-glow-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}

@import "./RetentionToolbarShared.css";

.rttoolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background-color: var(--juice-900);
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  gap: 0.75rem;
  -webkit-tap-highlight-color: transparent;
}

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

.host-btn--toolbar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

.rttlabel {
  flex: none;
  margin: 0;
  color: var(--juice-100);
  font-size: 16bpx;
  font-weight: 400;
  white-space: nowrap;
}

.rttlabel-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.rtticon {
  display: inline-flex;
  flex: none;
  color: var(--juice-300);
}

.rtticon svg {
  display: block;
}

.rttvalue-container {
  width: max-content;
  height: 1.5em;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex: none;
}

.rttvalue-wrapper {
  display: flex;
  align-items: center;
  gap: 0.3em;
  position: relative;
  font-family: "Secondary", "Unifont", monospace;
  font-size: 18px;
  color: var(--juice-200);
}

.rttnumber,
.rttunit-base,
.rttunit-s {
  display: inline-block;
}

.rttnumber {
  white-space: pre;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rttunit-s {
  margin-left: -0.3em;
}

.animate-up-enter {
  animation: slide-up-enter 0.15s ease-out forwards;
}

.animate-down-enter {
  animation: slide-down-enter 0.15s ease-out forwards;
}

.animate-up-exit {
  animation: slide-up-exit 0.15s ease-out forwards;
}

.animate-down-exit {
  animation: slide-down-exit 0.15s ease-out forwards;
}

@keyframes slide-up-enter {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-down-enter {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-up-exit {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

@keyframes slide-down-exit {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.rtt-options {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: stretch;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  background-color: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-radius: 9999px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.rtt-dragthumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: var(--orange-600);
  color: #fff;
  font-family: "Num", "General", "Unifont", monospace;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out;
  z-index: 3;
}

.rtt-dragthumb.on {
  opacity: 1;
}

.rtt-options.rtt-dragging .rtt-option:has(input:checked) {
  background-color: transparent;
}

.rtt-options.rtt-dragging .rtt-option:has(input:checked) span {
  color: var(--juice-400);
}

.rtt-options::-webkit-scrollbar {
  display: none;
}

.rtt-options[hidden] {
  display: none !important;
}

.rtt-tier {
  display: contents;
}

.rtt-option {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease;
}

.rtt-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rtt-option span {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-size: 16px;
  font-weight: normal;
  white-space: nowrap;
  cursor: pointer;
  color: var(--juice-400);
  font-family: "Num", "General", "Unifont", monospace;
  transition: color 0.15s ease;
}

.rtt-option:hover {
  background-color: var(--juice-700);
}

.rtt-option:hover span {
  color: var(--juice-100);
}

.rtt-option:has(input:checked) {
  background-color: var(--orange-600);
}

.rtt-option:has(input:checked) span {
  color: #fff;
}

.rtt-option:has(input:checked):hover {
  background-color: var(--orange-500);
}

.rtt-option input:focus-visible + span {
  outline: 2px solid var(--orange-400);
  outline-offset: -2px;
}

.rtt-divider {
  flex: none;
  width: 1px;
  align-self: stretch;
  background-color: var(--juice-700);
}

@media (max-width: 480px) {
  .rttoolbar {
    padding: 0.6rem 0.75rem;
    gap: 0.6rem;
  }

  .rtt-options {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
    overflow: visible;
    touch-action: none;
    overscroll-behavior: contain;
  }

  /* touch-action intersects up the ancestor chain: children defaulting
     to auto can re-enable panning even when the fieldset is none.
     Pin descendants too so a scrub drag never starts a page scroll. */
  .rtt-options .rtt-tier,
  .rtt-options .rtt-option,
  .rtt-options .rtt-option span {
    touch-action: none;
  }

  .rtt-tier {
    display: flex;
    align-items: stretch;
    min-width: 0;
  }

  .rtt-option {
    margin-left: -1px;
    border: 1px solid var(--juice-700);
    border-radius: 0;
    background-color: var(--juice-800);
  }

  .rtt-tier > .rtt-option:first-child {
    margin-left: 0;
    border-top-left-radius: 9999px;
    border-bottom-left-radius: 9999px;
  }

  .rtt-tier > .rtt-option:last-child {
    border-top-right-radius: 9999px;
    border-bottom-right-radius: 9999px;
  }

  .rtt-option:has(input:checked) {
    border-color: transparent;
    z-index: 1;
  }

  .rtt-option span {
    padding: 0.45rem 0.75rem;
  }

  .rtt-divider {
    display: none;
  }
}

/* While a retention scrub drag is active, JS adds .rtt-scrolllock to
   <body> and <html> to keep the page from scrolling under the finger.
   Removed on pointerup/pointercancel/destroy. */
body.rtt-scrolllock,
html.rtt-scrolllock {
  overscroll-behavior: none !important;
}

body.rtt-scrolllock {
  overflow: hidden !important;
}

/* JS measures the scrollbar width before locking the page and sets this
   variable, keeping the layout from widening (and centered content from
   jumping right) once the scrollbar is gone. */
html.rtt-scrollbar-compensate {
  padding-right: var(--rtt-scrollbar-width, 0px);
}

/* Extra guard while dragging: no panning starting anywhere in the pill. */
.rtt-options.rtt-dragging,
.rtt-options.rtt-dragging * {
  touch-action: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .rtt-option {
    transition: none;
  }

  .rtt-option span {
    transition: none;
  }

  .animate-up-enter,
  .animate-down-enter,
  .animate-up-exit,
  .animate-down-exit {
    animation: none;
  }
}

:root {
    --container-max-width: 1200px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.content {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--juice-950);
}

::-webkit-scrollbar-thumb {
    background: var(--juice-700);
    border-radius: 4px;
    border: 2px solid var(--juice-950);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--juice-600);
}

::-webkit-scrollbar-corner {
    background: var(--juice-950);
}

html.no-scroll,
body.no-scroll {
    height: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: auto;
}

@media (max-width: 768px) {
    html,
    body {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .upload-page,
    .files-page,
    .report-page {
        padding: 0;
        margin: 0;
    }

    .content {
        padding: 0;
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    main,
    .content > main,
    .upload-page main,
    .files-page main,
    .report-page main {
        width: 100%;
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    .upload-card,
    .files-card,
    .report-card {
        margin: 0;
        max-width: 100%;
        width: 100%;
    }
}

@font-face {
  font-family: "Title";
  src: url("/static/assets/title.woff2?v=1") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.upload-header--centered {
  text-align: center;
  container-type: inline-size;
}

.upload-header--left {
  text-align: left;
  container-type: inline-size;
}

.upload-header__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--orange-400);
  margin-bottom: 0.5rem;
  display: inline-block;
  animation: fade-in-up 0.5s ease-out backwards;
  animation-delay: 0.1s;
}

.upload-header__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--orange-500);
  font-size: 2.5rem;

  font-family: "Title", "Unifont", monospace;
  text-transform: uppercase;
  text-shadow:
    4px 0 0 #000,
    -4px 0 0 #000,
    0 4px 0 #000,
    0 -4px 0 #000;
  animation: fade-in-up 0.5s ease-out backwards;
  animation-delay: 0.2s;
}
.upload-header__logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

@container (max-width: 320px) {
  .upload-header__logo {
    display: none;
  }
}
.upload-header--left .upload-header__title {
  justify-content: flex-start;
}

.upload-header__subtitle {
  color: var(--juice-300);
  line-height: 1.6;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  font-family: "Secondary", "Unifont", monospace;
  font-size: 18px;
  animation: fade-in-up 0.5s ease-out backwards;
  animation-delay: 0.3s;
}

.upload-header--left .upload-header__subtitle {
  margin-left: 0;
  margin-right: 0;
}

.footr {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--juice-400);
  font-size: 0.85rem;
}

.footr--divd {
  border-top: 1px solid var(--juice-800);
  padding-top: 1rem;
}

.footr__primary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footr__commit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "General", "Unifont", monospace;
  color: var(--juice-300);
  margin: 0 auto;
}

.footr__link {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.footr__link:hover {
  color: var(--orange-400);
}

.footr__message {
  margin: 0;
  line-height: 1.5;
  color: var(--juice-400);
}

.footr__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--juice-300);
}

.footr__link--nav {
  font-weight: 500;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footr {
    text-align: center;
    align-items: center;
  }
}

.select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.select-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-radius: 0.75rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 0.5rem;
  z-index: 40;
  display: flex;
  flex-direction: column-reverse;
  transition:
    border-radius 0.2s ease,
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.select-menu.opening {
  animation: raise-up 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.select-menu.closing {
  animation: lower-down 0.15s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes raise-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lower-down {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes slide-up-item {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.select-menu[data-side="top"] {
  bottom: calc(100% + 0.5rem);
}

.select-menu[data-side="bottom"] {
  top: calc(100% + 0.5rem);
}

.select-menu[data-align="center"] {
  left: 50%;
  transform: translateX(-50%);
}

.select-trigger {
  border-radius: 0.75rem;
}

.select-trigger[data-open="true"] {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.select-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition:
    background-color 0.15s ease-out,
    opacity 0.15s ease;
  color: var(--juice-200);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
}

.select-wrapper[data-open="true"]:not([data-opening="true"]) .select-option {
  opacity: 1;
}

.select-menu.opening .select-option {
  animation: slide-up-item 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(50ms + var(--i) * 25ms);
}

.select-menu.closing .select-option {
  opacity: 0;
}

.select-option:hover,
.select-option:focus {
  background-color: var(--juice-700);
  color: var(--juice-100);
  outline: none;
}

.select-option:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: -2px;
}

.select-option:hover .select-option__icon,
.select-option:focus .select-option__icon {
  color: var(--orange-400);
}

.select-option__icon {
  color: var(--juice-400);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease-out;
}

.select-option__label {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.select-option--divider {
  height: 1px;
  background-color: var(--juice-700);
  margin: 0.5rem -0.5rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch-checkbox {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch-track {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--juice-900);
  transition: 0.2s;
  border-radius: 22px;
}

.toggle-switch-thumb {
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--juice-100);
  transition: 0.2s;
  border-radius: 50%;
}

.toggle-switch-checkbox:checked + .toggle-switch-track {
  background-color: var(--orange-500);
}

.toggle-switch-checkbox:checked + .toggle-switch-track .toggle-switch-thumb {
  transform: translateX(16px);
}

@media (min-width: 769px) {
  .select-wrapper[data-open="true"] .action-btn {
    z-index: 50;
    position: relative;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    transform: translateY(0);
    box-shadow:
      0 0 0 0 var(--juice-950),
      0 0 0 1px var(--orange-500),
      0 1px 2px rgba(0, 0, 0, 0.2),
      inset 0 1px 3px rgba(0, 0, 0, 0.2);
  }
  .select-wrapper[data-closing="true"] .action-btn {
    z-index: 50;
    position: relative;
  }
  .upload-page main {
    width: 100%;
    padding: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}

@media (max-width: 768px) {
  .select-wrapper {
    position: static;
  }

  .select-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;

    background-color: var(--juice-800);
    border-radius: 0.75rem 0.75rem 0 0;
    border: 1px solid var(--juice-700);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
    transform-origin: bottom center;
    -webkit-overflow-scrolling: touch;
    transform: translateY(0);
    box-sizing: border-box;
  }

  .select-details .select-menu--details {
    transform: translateY(100%);
    transition:
      visibility 0.2s ease,
      opacity 0.2s ease,
      transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .select-details[open] .select-menu--details {
    transform: translateY(0);
  }

  .select-options-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
    flex-shrink: 1;
  }

  html:not(.js) .select-details .select-options-list {
    padding-bottom: calc(2.75rem + env(safe-area-inset-bottom));
  }

  .select-drag-area {
    padding: 0.6rem 0.5rem;
    cursor: grab;
    touch-action: none;
  }

  .select-drag-area:active {
    cursor: grabbing;
  }

  .select-drag-handle {
    width: 36px;
    height: 4px;
    display: block;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 auto;
  }

  .select-menu.opening {
    animation: sheet-in 260ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .select-menu.closing {
    animation: sheet-out 220ms cubic-bezier(0.4, 0, 1, 1) forwards;
  }

  @keyframes sheet-in {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes sheet-out {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(100%);
    }
  }

  .select-menu.opening .select-option {
    animation: slide-up-item 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(40ms + var(--i) * 16ms);
  }
  .select-menu.closing .select-option {
    opacity: 0;
  }

  .select-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    pointer-events: auto;
    transition:
      opacity 0.18s ease,
      backdrop-filter 0.18s ease;
    opacity: 1;
    touch-action: none;
    overscroll-behavior: none;
  }

  .select-overlay[data-closing="true"],
  .select-overlay.closing {
    opacity: 0;
    backdrop-filter: blur(1px);
  }

  .select-menu {
    z-index: 99999;
  }

  html.js .select-option.js-only {
    display: none !important;
  }
}

.upldfs {
  position: relative;
  background-color: transparent;
  border: 1px solid var(--juice-800);
  border-radius: 1rem;
  padding: 0 1.5rem;
  min-height: 300px;
}

.uploaded-files-content {
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.files-page .upldfs {
  max-height: min(60vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.files-page .uploaded-files-content {
  flex: 1 0 auto;
}

.upldfs .scroll-element {
  display: none;
  height: 20px;
  flex-shrink: 0;
  pointer-events: none;
  width: 100%;
}

.files-page .upldfs .scroll-element {
  display: block;
}

.files-page .upldfs .scroll-cover-top,
.files-page .upldfs .scroll-cover-bottom {
  background: var(--juice-900);
  z-index: 20;
  position: relative;
}

.files-page .upldfs .scroll-cover-bottom {
  margin-top: -20px;
}

.files-page .upldfs .sticky-shadow-top {
  position: sticky;
  top: 0;
  margin-top: -20px;
  z-index: 10;
  background: radial-gradient(
    farthest-side at 50% 0,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0)
  );
}

.files-page .upldfs .sticky-shadow-bottom {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: radial-gradient(
    farthest-side at 50% 100%,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0)
  );
}

.files-page .upldfs::-webkit-scrollbar {
  width: 8px;
}

.files-page .upldfs::-webkit-scrollbar-track {
  background: transparent;
}

.files-page .upldfs::-webkit-scrollbar-thumb {
  background-color: var(--juice-700);
  border-radius: 999px;
}

.files-page .upldfs::-webkit-scrollbar-thumb:hover {
  background-color: var(--juice-600);
}

.nothin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}
.nothin[hidden] {
  display: none !important;
}

.nothin-icon {
  color: var(--juice-600);
  margin-bottom: 1rem;
}

.nothin-text {
  color: var(--juice-500);
  font-size: 0.95rem;
  margin: 0;
}

.files-offline {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 0.5rem;
}
html[data-backend-offline] .files-offline,
html[data-banned] .files-offline {
  display: flex;
}
html[data-backend-offline] .files-grid,
html[data-backend-offline] [data-files-empty],
html[data-banned] .files-grid,
html[data-banned] [data-files-empty] {
  display: none;
}
.files-offline .offline-icon {
  width: 3rem;
  height: 3rem;
  color: var(--juice-500);
  margin: 0;
}
.files-offline .offline-primary {
  color: var(--juice-400);

  font-size: 1rem;
  margin: 0;
}
.files-offline .offline-secondary {
  color: var(--juice-500);
  font-size: 0.8rem;
  text-align: center;
  max-width: 24rem;
  margin: 0;
}

.files-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.files-grid[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .files-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .file-card {
    max-width: calc(100% - 2rem);
    margin: 0 1rem;
    overflow: hidden;
  }
}

.file-card {
  background-color: rgba(var(--juice-800-rgb), 0.5);
  border: 1px solid var(--juice-700);
  border-radius: 0.75rem;
  padding: 1rem;
}

.files-grid .file-card {
  animation: fade-in-up 0.5s ease-out backwards;
  animation-delay: calc(min(var(--file-card-index, 0), 10) * 0.06s);
}

@media (prefers-reduced-motion: reduce) {
  .files-grid .file-card {
    animation: none;
  }
}

.file-card.exiting {
  animation: file-card-exit 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes file-card-exit {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.92);
  }
}

.file-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.file-card-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--orange-400);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--juice-900);
  border-radius: 0.5rem;
}

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

.file-card-name {
  font-size: 18px;
  font-weight: normal;
  color: var(--juice-100);
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  font-family: "Secondary", "Unifont", monospace;
}

.file-card-meta {
  font-size: 0.8rem;
  color: var(--juice-400);
  margin: 0;
}

.storage-host-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--juice-500);
  margin-top: 0.25rem;
  margin-left: auto;
  align-self: flex-start;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45%;
}

.file-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.file-card-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.delete-form {
  display: contents;
}

.file-card-ttl {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
  min-height: 40px;
}

.file-card-ttl-icon {
  color: var(--orange-500);
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.file-card-ttl.expired .file-card-ttl-icon {
  color: var(--red-500, #ef4444);
}

.file-card-ttl-label {
  font-size: 16px;
  color: var(--juice-300);
  font-family: "General", "Unifont", monospace;

  white-space: nowrap;
  flex-shrink: 0;
}

.file-card-ttl.expired .file-card-ttl-label {
  color: var(--red-500, #ef4444);
}

.file-card-ttl-bar {
  position: relative;
  display: block;
  flex: 1;
  max-width: 100%;
  height: 6px;
  border-radius: 999px;
  background-color: var(--juice-800);
  overflow: hidden;
}

.file-card-ttl-fill {
  display: block;
  height: 100%;
  width: var(--ttl, 0%);
  border-radius: 999px;
  background-color: var(--orange-500);
  transition: width 0.3s ease;
}

.file-card-ttl.expired .file-card-ttl-fill {
  background-color: var(--red-500, #ef4444);
}

.file-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background-color: var(--juice-700);
  border: 1px solid var(--juice-600);
  border-radius: 0.5rem;
  color: var(--juice-300);
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-action-btn:hover {
  background-color: var(--juice-600);
  border-color: var(--juice-500);
  color: var(--juice-100);
  transform: translateY(-1px);
}

.file-action-btn:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

.file-action-btn:active {
  transform: translateY(0);
}

.file-action-btn.success {
  background-color: var(--green-600);
  border-color: var(--green-500);
  color: white;
}

.files-notice {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
  background-color: var(--juice-800);
  color: var(--juice-200);
  font-family: "General", "Unifont", monospace;
  font-size: 0.85rem;
  text-align: center;
}

.file-action-btn--danger:hover {
  background-color: var(--red-600);
  border-color: var(--red-500);
  color: white;
}

.shift-delete .file-action-btn--danger:not(.confirming) {
  background-color: #dc2626;
  border-color: #ef4444;
  color: white;
}

.file-action-btn--danger.spinning .spinner-icon {
  display: inline-block;
}

.confirm-text {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.2s ease;
  white-space: nowrap;
  vertical-align: middle;
}

.confirming .confirm-text {
  max-width: 100px;
}

.file-action-btn--danger.confirming,
.file-action-btn--danger.confirming:hover {
  background-color: #dc2626 !important;
  border-color: #ef4444 !important;
  color: white !important;
  font-family: "Secondary", "Unifont", monospace;
  font-size: 18px;
  gap: 0.35rem;
  white-space: nowrap;
  transform: none;
}

.file-card-link {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  width: auto;
  background-color: var(--juice-900);
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  color: var(--juice-300);
  font-family: "General", "Unifont", monospace;
  font-size: 0.8rem;
  text-align: left;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-sizing: border-box;
  text-decoration: none;
}

.file-card-link-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--juice-400);
  font-size: 16px;
}

.copy-bar-wrapper > .file-card-link {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
  border-radius: 0.5rem 0 0 0.5rem;
}

@media (max-width: 768px) {
  .upldfs {
    padding: 0;
    min-height: 200px;
    max-width: 100%;
    overflow: hidden;
  }

  .uploaded-files-content {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .file-card {
    padding: 0.875rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .file-card-name {
    white-space: normal;
    word-break: break-word;
  }

  .file-card-header {
    max-width: 100%;
    overflow: hidden;
  }

  .file-card-info {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .file-card-meta {
    font-size: 0.75rem;
  }

  .file-card-actions {
    gap: 0.375rem;
  }

  .file-action-btn {
    padding: 0.4rem;
  }

  .file-action-btn svg {
    width: 16px;
    height: 16px;
  }
}

.mdloverlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: mdlfade-in 0.2s ease-out;
  pointer-events: auto;
}

@font-face {
  font-family: "Pixel Modal";
  src: url("/static/assets/modal.woff2?v=2") format("woff2"),
    url("/static/assets/legacy/modal.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@media (max-width: 768px) {
  .mdloverlay {
    padding: 0;
    align-items: stretch;
  }
}

.mdloverlay.closing {
  animation: mdlfade-out 0.2s ease-out;
}

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

@keyframes mdlfade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.mdlcontent {
  background-color: var(--juice-900);
  border: 1px solid var(--juice-700);
  border-radius: 1rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: mdlslide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
  .mdlcontent {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }
}

.mdlcontent.closing {
  animation: mdlslide-out 0.2s ease-out;
}

#settings-modal .mdlcontent {
  height: min(680px, calc(100vh - 2rem));
}

@media (max-width: 768px) {
  #settings-modal .mdlcontent {
    height: 100%;
    max-height: 100%;
  }
}

@keyframes mdlslide-in {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mdlslide-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

.mdlheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--juice-800);
}

.mdltitle {
  font-family: "Pixel Modal", monospace;
  font-size: 1.25rem;
  font-weight: normal;
  color: var(--juice-100);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mdltitle-icon {
  flex-shrink: 0;
  color: var(--juice-100);
}

.mdlclose {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: transparent;
  border: none;
  color: var(--juice-400);
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.mdlclose:hover {
  background-color: var(--juice-800);
  color: var(--juice-100);
}

.mdlform {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.mdlbody {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.form-field:last-child {
  margin-bottom: 0;
}

.form-label {
     margin-top: 1rem;
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--juice-300);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
  color: var(--juice-100);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-input:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 1px;
  border-color: var(--orange-500);
}

.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-help-text {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--juice-500);
}

.link-preview {
  background-color: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
  padding: 0.75rem;
  overflow: hidden;
}

.link-preview--copyable {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.link-preview--copyable:hover {
  border-color: var(--orange-500);
  background-color: var(--juice-700);
}

.link-preview--copyable code {
  flex: 1;
  min-width: 0;
}

.link-preview--copyable svg {
  flex-shrink: 0;
  color: var(--juice-400);
}

.link-preview--copyable:hover svg {
  color: var(--orange-400);
}

.mdlerror {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  margin-bottom: 1.25rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--red-500, #ef4444);
  border-radius: 0.5rem;
  color: var(--red-500, #ef4444);
  font-size: 0.85rem;
}

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

.mdlid-value {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 0.65rem 0.75rem;
  background-color: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
  color: var(--juice-100);
  font-family: "General", "Unifont", monospace;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mdlrenew-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mdlrenew-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mdlspin {
  animation: mdlspin 0.8s linear infinite;
}

@keyframes mdlspin {
  to {
    transform: rotate(360deg);
  }
}

.link-preview-text {
  display: block;
  font-size: 0.85rem;
  color: var(--orange-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "General", "Unifont", monospace;
}

.mdlfooter {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1.5rem;
  border-top: 1px solid var(--juice-800);
}

.mdlbtn {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.mdlbtn--secondary {
  background-color: var(--juice-800);
  border-color: var(--juice-700);
  color: var(--juice-300);
}

.mdlbtn--secondary:hover {
  background-color: var(--juice-700);
  color: var(--juice-100);
}

.mdlbtn--primary {
  background-color: var(--orange-600);
  color: white;
}

.mdlbtn--primary:hover {
  background-color: var(--orange-500);
}

.mdlbtn--primary:active {
  background-color: var(--orange-600);
}

.mdlbtn:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.share-grid__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--juice-700);
  background: var(--juice-800);
  color: var(--juice-300);
  cursor: pointer;
  font-size: 0.7rem;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.share-grid__btn:hover {
  background: var(--juice-700);
  color: var(--juice-100);
}

.share-grid__btn--bluesky:hover {
  border-color: #0085ff;
  color: #0085ff;
}

.share-grid__btn--twitter:hover {
  border-color: #fff;
  color: #fff;
}

.share-grid__btn--reddit:hover {
  border-color: #ff4500;
  color: #ff4500;
}

.share-grid__btn--mastodon:hover {
  border-color: #6364ff;
  color: #6364ff;
}

.share-grid__btn--linkedin:hover {
  border-color: #0a66c2;
  color: #0a66c2;
}

.share-grid__btn--telegram:hover {
  border-color: #0088cc;
  color: #0088cc;
}

.share-grid__btn--whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
}

.share-grid__btn--email:hover {
  border-color: var(--orange-400);
  color: var(--orange-400);
}

.share-grid__btn--copy:hover {
  border-color: var(--orange-400);
  color: var(--orange-400);
}

.share-grid__btn--more {
  border-style: dashed;
}

.share-grid__btn--more:hover {
  border-color: var(--juice-500);
  color: var(--juice-100);
}

.share-grid__btn:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

.share-native {
  text-align: center;
}

.share-native__hint {
  color: var(--juice-400);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.share-native__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .mdlheader {
    padding: 1rem;
  }

  .mdltitle {
    font-size: 1.1rem;
  }

  .mdlbody {
    padding: 1rem;
  }

  .mdlfooter {
    padding: 1rem;
    flex-direction: column-reverse;
  }

  .mdlbtn {
    width: 100%;
  }

  .mdlrenew-btn {
    width: auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .form-input {
    font-size: 16px;
  }

  .link-preview-text {
    font-size: 0.75rem;
  }
}

.share-url-field {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.share-url-field .form-label {
  font-size: 0.75rem;
  color: var(--juice-400);
}

.share-url-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-family: monospace;
  background: var(--juice-900);
  border: 1px solid var(--juice-600);
  border-radius: 0.375rem;
  color: var(--juice-200);
  cursor: text;
  user-select: all;
}

.files-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.files-page main {
  width: 100%;
}

.files-card .act {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .files-page {
    padding: 0;
  }

  .upload-card {
    padding: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .upload-page main,
  .files-page main {
    width: 100%;
    max-width: var(--container-max-width);
    overflow-x: hidden;
    margin: 0 auto;
  }

  .upload-header,
  .rttoolbar,
  .drop-zone,
  .file-list-container,
  .act {
    max-width: 100%;
  }
}

.content-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.content-page main {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0;
}

.content-card .act {
  margin-top: 1.5rem;
}

.content-body {
  position: relative;
  background-color: rgba(var(--juice-900-rgb), 0.8);
  border: 1px solid var(--juice-800);
  border-radius: 1rem;
  padding: 2rem;
  color: var(--juice-300);
  font-size: 0.95rem;
  line-height: 1.6;
  max-height: 70vh;
  overflow-y: auto;
}

.content-body h2 {
  font-size: 1.25rem;

  color: var(--juice-100);
  margin: 1.5rem 0 0.75rem 0;
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body h3 {
  font-size: 1rem;

  color: var(--juice-100);
  margin: 1.25rem 0 0.5rem 0;
}

.content-body p {
  margin: 0 0 1rem 0;
}

.content-body p:last-child {
  margin-bottom: 0;
}

.content-body a {
  color: var(--orange-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

.content-body a:hover {
  color: var(--orange-500);
  text-decoration: underline;
}

.content-body ul {
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
}

.content-body li {
  margin-bottom: 0.5rem;
}

.content-body code,
.content-body kbd {
  font-family: "General", "Unifont", monospace;
  font-size: 0.85em;
  background-color: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-radius: 0.35rem;
  padding: 0.1rem 0.4rem;
  color: var(--juice-100);
}

.shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  background-color: rgba(var(--juice-800-rgb), 0.5);
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
}

.shortcut-row .shortcut-keys {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 768px) {
  .content-page {
    padding: 0;
  }

  .content-body {
    padding: 1.5rem;
  }
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--juice-800);
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: rgba(var(--juice-800-rgb), 0.4);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] {
  background-color: rgba(var(--juice-800-rgb), 0.6);
  border-color: var(--juice-700);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--juice-100);
  font-size: 0.95rem;
  list-style: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
  user-select: none;
}

.faq-question:active {
  transform: scale(0.985);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: "";
}

.faq-question:hover {
  background-color: rgba(var(--juice-700), 0.3);
}

.faq-chevron {
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--juice-400);
  border-bottom: 2px solid var(--juice-400);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2px;
}

.faq-item[open] .faq-chevron {
  transform: rotate(-135deg);
  margin-bottom: -2px;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  padding: 0 1rem 0.85rem 1.75rem;
  overflow: hidden;
  min-height: 0;
}

.faq-answer p {
  margin: 0;
  color: var(--juice-300);
}

@keyframes faq-slide-down {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-question {
    transition: none;
  }

  .faq-chevron {
    transition: none;
  }

  .faq-answer {
    transition: none;
  }
}

.language-modal__hint {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  color: var(--juice-400);
}

.language-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.language-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  background-color: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
  color: var(--juice-200);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.language-option:hover {
  background-color: var(--juice-700);
  color: var(--juice-100);
}

.language-option--active {
  border-color: var(--orange-500);
  background-color: var(--juice-700);
}

.language-option__label {
  font-weight: 500;
}

.language-option__code {
  font-family: "General", "Unifont", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--juice-500);
}


.copy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: var(--juice-900);
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  color: var(--juice-300);
  font-family: "General", "Unifont", monospace;
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  text-align: left;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.copy-bar:hover {
  border-color: var(--juice-600);
  background-color: var(--juice-800);
  color: var(--juice-200);
}

.copy-bar:hover .copy-bar__copy-icon {
  color: var(--juice-300);
}

.copy-bar:active {
  transform: scale(0.98);
  background-color: var(--juice-950);
}

.copy-bar--copied {
  border-color: #10b981;
  color: #10b981;
}

.copy-bar--copied .copy-bar__copy-icon {
  color: #10b981;
}

.copy-bar__text-wrapper {
  flex-grow: 1;
  overflow: hidden;
  display: grid;
  grid-template-areas: "text";
  align-items: center;
  min-width: 0;
}

.copy-bar__url,
.copy-bar__copied-text {
  grid-area: text;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.copy-bar__url {
  opacity: 1;
  transform: translateY(0);
  color: var(--juice-400);
  font-size: 16px;
}

.copy-bar--copied .copy-bar__url {
  opacity: 0;
  transform: translateY(-100%);
}

.copy-bar__copied-text {
  opacity: 0;
  transform: translateY(100%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #10b981;
  font-size: 16px;
}

.copy-bar--copied .copy-bar__copied-text {
  opacity: 1;
  transform: translateY(0);
}

.copy-bar__copy-icon {
  color: var(--juice-500);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.copy-bar-wrapper {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0.75rem;
}

.copy-bar-wrapper .copy-bar {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
  border-radius: 0.5rem 0 0 0.5rem;
}

.copy-bar-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0.625rem;
  flex-shrink: 0;
  background-color: var(--juice-900);
  border: 1px solid var(--juice-700);
  border-left: none;
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--juice-400);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
}

.copy-bar-edit:hover {
  border-color: var(--juice-600);
  background-color: var(--juice-800);
  color: var(--juice-200);
}

.copy-bar-edit:active {
  background-color: var(--juice-950);
}

.copy-bar-edit__icon {
  color: inherit;
}

.copy-bar-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0.625rem;
  flex-shrink: 0;
  background-color: var(--juice-900);
  border: 1px solid var(--juice-700);
  border-left: none;
  border-radius: 0;
  color: var(--juice-400);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
}

.copy-bar-wrapper .copy-bar-qr:last-child {
  border-radius: 0 0.5rem 0.5rem 0;
}

.copy-bar-qr:hover {
  border-color: var(--juice-600);
  background-color: var(--juice-800);
  color: var(--juice-200);
}

.copy-bar-qr:active {
  background-color: var(--juice-950);
}

.copy-bar-qr:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

.copy-bar-qr__icon {
  color: inherit;
}

.rename-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.rename-input {
  width: 100%;
  font-family: "General", "Unifont", monospace;
}

.rename-input-group {
  display: flex;
  align-items: center;
  background-color: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.rename-input-group:focus-within {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.rename-input-prefix {
  display: flex;
  align-items: center;
  padding: 0.75rem 0 0.75rem 0.75rem;
  color: var(--juice-400);
  font-family: "General", "Unifont", monospace;
  font-size: 0.9rem;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}

.rename-input-group .rename-input {
  border: none;
  background: transparent;
  border-radius: 0;
  padding-left: 0.25rem;
  box-shadow: none;
}

.rename-input-group .rename-input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}

.rename-error {
  color: var(--red-500, #ef4444);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.rename-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.url-variants {
  display: flex;
  gap: 0;
  margin-top: 0;
  margin-bottom: 0;
}

body.hide-url-variants [data-url-variants] {
  display: none;
}

body:not(.hide-url-variants) .copy-bar-wrapper:has(+ .url-variants) > :is(.file-card-link, .copy-bar, .copy-bar-qr, .copy-bar-edit),
body:not(.hide-url-variants) .copy-bar:has(+ .url-variants),
body:not(.hide-url-variants) .copy-bar--rounded:has(+ .url-variants) {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

body:not(.hide-url-variants) .copy-bar-wrapper:has(+ .url-variants),
body:not(.hide-url-variants) .copy-bar:has(+ .url-variants) {
  margin-bottom: 0;
}

.url-variant {
  display: block;
  padding: 0.3rem 0.25rem;
  font-family: "General", "Unifont", monospace;
  font-size: 0.72rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow:
    inset 1px 0 0 0 var(--juice-700),
    inset -1px 0 0 0 var(--juice-700),
    inset 0 -1px 0 0 var(--juice-700);
  border: none;
  border-radius: 0;
}

.url-variant:first-child {
  border-bottom-left-radius: 0.5rem;
  box-shadow:
    inset 1px 0 0 0 var(--juice-700),
    inset -1px 0 0 0 var(--juice-700),
    inset 0 -1px 0 0 var(--juice-700);
}

.url-variant:last-child {
  border-bottom-right-radius: 0.5rem;
  box-shadow:
    inset 1px 0 0 0 var(--juice-700),
    inset -1px 0 0 0 var(--juice-700),
    inset 0 -1px 0 0 var(--juice-700);
}

.url-variant.is-active {
  background: var(--orange-500-15);
  color: var(--orange-500);
  box-shadow:
    inset 1px 0 0 0 var(--orange-600),
    inset -1px 0 0 0 var(--orange-600),
    inset 0 -1px 0 0 var(--orange-600);
  position: relative;
  z-index: 1;
}


.qr-modal[hidden] {
  display: none !important;
}

.qr-modal__content {
  width: 100%;
  max-width: 600px;
}

.qr-modal__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  text-align: center;
}

.qr-modal__canvas-wrap {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
  line-height: 0;
}

.qr-modal__canvas {
  width: min(100%, 62vh);
  height: auto;
  aspect-ratio: 1;
  image-rendering: pixelated;
  border-radius: 0.25rem;
}

.qr-modal__url {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--juice-300);
  font-family: "General", "Unifont", monospace;
  font-size: 0.8rem;
  user-select: all;
}

.qr-modal__hint {
  margin: 0;
  color: var(--juice-500);
  font-size: 0.8rem;
}

.qr-modal__footer {
  flex-wrap: wrap;
}

.qr-modal__copied {
  border-color: #10b981 !important;
  color: #10b981 !important;
}

@import "./RetentionToolbarShared.css";

.js-only {
  display: none !important;
}
html.js .js-only {
  display: flex !important;
}

a.action-btn,
summary.action-btn {
  text-decoration: none;
  color: var(--juice-200);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  position: relative;
  padding: 0.6rem 1rem;
  background: var(--juice-800);
  border: none;
  border-radius: 12px;
  transform: translateY(-4px);
  box-shadow: 0 4px 0 var(--juice-700);
  outline: 1px solid var(--juice-700);
  outline-offset: -1px;
  transition:
    transform 0.15s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.15s ease,
    outline-color 0.1s ease,
    background-color 0.1s ease,
    color 0.1s ease;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
a.action-btn:hover,
summary.action-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 0 var(--juice-700);
  outline-color: var(--juice-600);
  background: var(--juice-700);
  color: var(--juice-100);
}
a.action-btn:active,
summary.action-btn:active {
  transform: translateY(-4px);
  box-shadow: 0 4px 0 var(--juice-900);
  outline-color: var(--juice-600);
  background: var(--juice-900);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    outline-color 0.08s ease,
    background-color 0.08s ease;
}

a.action-btn:focus-visible,
a.action-btn:focus,
summary.action-btn:focus,
summary.action-btn:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

.select-details {
  position: relative;
  display: block;
  width: 100%;
}
.select-details > summary {
  list-style: none;
  cursor: pointer;
}
.select-details > summary::-webkit-details-marker {
  display: none;
}

.select-details[open] > summary.action-btn {
  z-index: 50;
  position: relative;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  transform: translateY(0);
  background: var(--juice-900);
  box-shadow: 0 0 0 1px var(--orange-500);
}

details.select-details > .select-menu--details {
  display: block;
}

.select-menu--details {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  pointer-events: none;
}

.select-details[open] .select-menu--details {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: details-pop 0.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes details-pop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.select-menu--details .select-option {
  opacity: 1;
}
.select-menu--details a.select-option {
  text-decoration: none;
  color: var(--juice-200);
}
.select-option--toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
  -webkit-user-select: none;
  user-select: none;
}
.select-option--toggle input {
  position: absolute;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.select-option--toggle:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}
.select-option--toggle:active:not(:has(input:disabled)) .select-option__check {
  transform: scale(0.85);
}
.select-option--toggle .select-option__check {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.select-option--toggle .select-option__check .check-off,
.select-option--toggle .select-option__check .check-on {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.select-option--toggle .select-option__check .check-on {
  opacity: 0;
  pointer-events: none;
}
.select-option--toggle input:checked ~ .select-option__check .check-off {
  opacity: 0;
  pointer-events: none;
}
.select-option--toggle input:checked ~ .select-option__check .check-on {
  opacity: 1;
}
.select-option__text {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.select-option__desc {
  font-size: 0.7rem;
  color: var(--juice-500);
  font-weight: 400;
}

.mdl-target {
  display: none;
}
.mdl-target:target {
  display: flex;
}

body:has(.mdl-target:target) > .skip-link,
body:has(.mdl-target:target) > .content {
  pointer-events: none;
}
.mdl-target__backdrop {
  position: absolute;
  inset: 0;
}
.mdl-target .mdlcontent {
  position: relative;
  z-index: 1;
}
a.mdlclose {
  text-decoration: none;
  color: var(--juice-400);
}
a.mdlbtn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

form.upload-form {
  display: contents;
}

.upload-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--juice-800);
  border: 2px dashed var(--orange-600);
  border-radius: 9999px;
  color: var(--orange-500);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  overflow: hidden;

  transition:
    background-color 0.15s ease,
    color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  margin-bottom: 0.75rem;
}
.upload-submit:hover {
  background: var(--juice-700);
  color: var(--juice-100);
}
.upload-submit:active {
  background: var(--juice-900);
}
.upload-submit .animated-grid-container {
  position: absolute;
  inset: -10px;
  filter: blur(10px);
  opacity: 0.35;
  pointer-events: none;
}

.drop-zone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 0;
}

.nothin-hint {
  margin-top: 8px;
  font-size: 0.9rem;
}
.nothin-hint a {
  color: inherit;
  text-decoration: underline;
}

.shortcut-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.shortcut-keys {
  display: flex;
  gap: 4px;
}
.shortcut-keys kbd {
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0.8;
}

.language-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}
label.language-option input {
  margin-left: auto;
}

html.js .nojs-only {
  display: none !important;
}

html:not(.js) .file-list-container {
  max-height: none;
}

html:not(.js) .upload-tabs {
  border: 2px dashed var(--orange-600);
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
}
html:not(.js) .upload-tab {
  border: none;
  border-radius: 0;
}
html:not(.js) .drop-zone {
  border-top: none;
  border-bottom: none;
  border-radius: 0;
  margin-bottom: 0;
}
html:not(.js) .text-editor {
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  margin-bottom: 1rem;
}
html:not(.js)
  #mode-text:checked
  ~ .upload-mode-wrapper
  .upload-mode-file
  .drop-zone__input {
  display: none;
}
html:not(.js) .upload-submit {
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
}
html.js .upload-submit {
  display: none !important;
}

.select-backdrop {
  display: none;
}
@media (max-width: 768px) {
  .select-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    touch-action: none;
    cursor: default;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .select-backdrop::-webkit-details-marker {
    display: none;
  }
  .select-backdrop::marker {
    content: "";
  }
}

.select-close-btn {
  display: none;
}
@media (max-width: 768px) {
  .select-close-btn {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 100000;
    list-style: none;
    cursor: pointer;
    text-align: center;
    padding: 0.75rem;
    color: var(--juice-400);
    font-size: 0.825rem;
    font-weight: 500;
    background: var(--juice-800);
    border: none;
    border-top: 1px solid var(--juice-700);
    border-radius: 0 0 0.75rem 0.75rem;
  }
  .select-close-btn::-webkit-details-marker {
    display: none;
  }
  .select-close-btn::marker {
    content: "";
  }
  .select-close-btn:hover {
    color: var(--orange-400);
  }
}

.upload-stack:has(.announcement-banner) .upload-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}

.announcement-banner {
  position: relative;
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
  background: var(--juice-900);
  border: 1px solid var(--juice-800);
  border-bottom: none;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.upload-stack:has(.announcement-banner) .announcement-banner {
  border-radius: 0.5rem 0.5rem 0 0;
}

.announcement-banner__body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
}

.announcement-banner__icon {
  flex-shrink: 0;
  color: white;
  filter: brightness(0) invert(1);
  width: 24px;
  height: 24px;
}

.announcement-banner__message {
  flex: 1;
  color: var(--juice-200);
  font-size: 0.8rem;
  line-height: 1.3;
  margin: 0;
}

.announcement-banner__link {
  flex-shrink: 0;
  color: var(--orange-400);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.15s;
}

.announcement-banner__link:hover {
  color: var(--orange-500);
  text-decoration: underline;
}

.announcement-banner__link:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
  border-radius: 2px;
}

.announcement-banner__stripes {
  position: absolute;
  top: 0;
  left: -20px;
  right: -20px;
  height: 8px;
  pointer-events: none;
  will-change: transform;
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  animation: stripe-scroll 1.2s linear infinite;
}

@keyframes stripe-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(17px); }
}

.announcement-banner--info .announcement-banner__stripes {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(148, 163, 184, 0.35) 0px,
      rgba(148, 163, 184, 0.35) 6px,
      transparent 6px,
      transparent 12px
    );
}

.announcement-banner--warning .announcement-banner__stripes {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(249, 115, 22, 0.35) 0px,
      rgba(249, 115, 22, 0.35) 6px,
      transparent 6px,
      transparent 12px
    );
}

.announcement-banner--danger .announcement-banner__stripes {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(239, 68, 68, 0.35) 0px,
      rgba(239, 68, 68, 0.35) 6px,
      transparent 6px,
      transparent 12px
    );
}

.announcement-banner--danger .announcement-banner__link {
  color: var(--red-400);
}

.announcement-banner--danger .announcement-banner__link:hover {
  color: var(--red-500);
}

.upload-tray {
  position: fixed;
  right: 1.25rem;
  bottom: 0;
  z-index: 5000;
  font-family: "General", "Unifont", monospace;
}

::view-transition-group(upload-tray),
::view-transition-group(upload-tray-toggle) {
  z-index: 1000;
}

.upload-tray__toggle-wrap {
  --r: 18px;
  --tab-border: var(--juice-600);
  position: absolute;
  right: 1rem;
  bottom: -1px;
  z-index: 10;
  display: inline-block;
  padding: 1px;
  background: var(--tab-border);
  border-radius: calc(var(--r) + 1px) calc(var(--r) + 1px) 0 0;
  transition: background 0.15s ease;
}

.upload-tray__toggle-wrap--enter {
  animation: tray-toggle-rise 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes tray-toggle-rise {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tray-toggle-lower {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

.upload-tray__toggle-wrap--leaving {
  animation: tray-toggle-lower 0.35s ease-in 1s forwards;
}

.upload-tray__toggle-wrap::before,
.upload-tray__toggle-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: calc(var(--r) + 2px);
  height: calc(var(--r) + 2px);
}

.upload-tray__toggle-wrap::before {
  left: calc(var(--r) * -1);
  background: radial-gradient(
    circle at 1px 1px,
    transparent calc(var(--r) - 1px),
    var(--tab-border) calc(var(--r) - 0.5px)
  );
}

.upload-tray__toggle-wrap::after {
  right: calc(var(--r) * -1);
  background: radial-gradient(
    circle at calc(var(--r) + 1px) 1px,
    transparent calc(var(--r) - 1px),
    var(--tab-border) calc(var(--r) - 0.5px)
  );
}

.upload-tray__toggle-wrap:hover {
  --tab-border: var(--orange-500);
}

.upload-tray__toggle {
  --tab-bg: var(--juice-900);
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  background: var(--tab-bg);
  color: var(--juice-200);
  font-family: "General", "Unifont", monospace;
  font-size: 0.75rem;
  cursor: pointer;
  border: none;
  border-radius: var(--r) var(--r) 0 0;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.upload-tray__toggle::before,
.upload-tray__toggle::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: var(--r);
  height: var(--r);
}

.upload-tray__toggle::before {
  left: calc(var(--r) * -1);
  background: radial-gradient(
    circle at top left,
    transparent var(--r),
    var(--tab-bg) calc(var(--r) + 0.5px)
  );
}

.upload-tray__toggle::after {
  right: calc(var(--r) * -1);
  background: radial-gradient(
    circle at top right,
    transparent var(--r),
    var(--tab-bg) calc(var(--r) + 0.5px)
  );
}

.upload-tray__toggle:hover {
  --tab-bg: var(--juice-800);
  color: var(--juice-100);
}

.upload-tray__toggle:active {
  --tab-bg: var(--juice-800);
  transform: none;
  background: var(--tab-bg);
}

.upload-tray__toggle:active .upload-tray__icon,
.upload-tray__toggle:active .upload-tray__chevron {
  transform: translateY(1px);
}

.upload-tray__toggle:active .upload-tray__chevron--open {
  transform: rotate(180deg) translateY(1px);
}

.upload-tray__toggle:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

.upload-tray__icon,
.upload-tray__chevron {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upload-tray__icon {
  color: var(--orange-400);
}

.upload-tray__chevron {
  color: var(--juice-400);
}

.upload-tray__chevron--open {
  transform: rotate(180deg);
}

.upload-tray__badge {
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--orange-500);
  color: var(--juice-900);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.upload-tray__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: min(42rem, calc(100vw - 2.5rem));
  max-height: min(60vh, 640px);
  display: flex;
  flex-direction: column;
  background-color: var(--juice-900);
  border: 1px solid var(--juice-600);
  border-radius: 1rem 1rem 0 0;
  padding: 1rem 0 5rem;
  overflow: hidden;
}

.upload-tray__panel--enter {
  animation: tray-panel-rise 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes tray-panel-rise {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.upload-tray__panel--closing {
  animation: tray-panel-lower 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes tray-panel-lower {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

.upload-tray__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 1rem 0.75rem;
  border-bottom: 1px solid var(--juice-800);
  font-family: "Secondary", "Unifont", monospace;
  font-size: 0.9rem;
  color: var(--juice-200);
}

.upload-tray__count {
  font-size: 0.75rem;
  font-family: "General", "Unifont", monospace;
  color: var(--orange-400);
}

.upload-tray__list {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  flex-grow: 1;
}

.upload-tray__list::-webkit-scrollbar {
  width: 6px;
}

.upload-tray__list::-webkit-scrollbar-track {
  background: var(--juice-900);
  border-radius: 3px;
  margin-block: 5px;
}

.upload-tray__list::-webkit-scrollbar-thumb {
  background: var(--juice-700);
  border-radius: 3px;
}

.upload-tray__list::-webkit-scrollbar-thumb:hover {
  background: var(--juice-600);
}

.upload-tray__card {
  flex-shrink: 0;
}

.upload-tray__card--enter {
  animation: tray-card-entry 0.3s ease-out backwards;
}

.upload-tray__card--leaving {
  transition:
    height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    margin-bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  pointer-events: none;
}

@keyframes tray-card-entry {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.upload-tray [data-quick-link].file-card.error .copy-bar__url {
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  color: #ef4444;
}

@media (prefers-reduced-motion: reduce) {
  .upload-tray__toggle-wrap--enter,
  .upload-tray__panel--enter,
  .upload-tray__card--enter {
    animation: none;
  }
}

.report-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.report-page main {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0;
}

.report-card .act {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .report-page {
        padding: 0;
    }
}

.rpfcontainer {
  position: relative;
  background-color: rgba(var(--juice-900-rgb), 0.8);
  border: 1px solid var(--juice-800);
  border-radius: 1rem;
  padding: 2rem;
}

.rpfcontent {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.rpfheader {
  text-align: center;
  margin-bottom: 2rem;
}

.report-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.report-icon {
  color: var(--orange-400);
}

.rpftitle {
  font-size: 1.75rem;

  color: var(--juice-100);
  margin: 0 0 0.5rem 0;
}

.rpfsubtitle {
  font-size: 0.95rem;
  color: var(--juice-400);
  margin: 0;
}

.report-form {
  display: flex;
  flex-direction: column;
}

.rpferror {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--red-500);
  border-radius: 0.5rem;
  color: var(--red-500);
  font-size: 0.875rem;
}

.rpferror svg {
  flex-shrink: 0;
}

.report-success-banner {
  padding: 0.875rem 1rem;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  border-radius: 0.5rem;
  color: #22c55e;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.report-success-banner p {
  margin: 0;
}

.form-select {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
  color: var(--juice-100);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--orange-500);
}

.form-select:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 1px;
}

.form-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--juice-800);
  border: 1px solid var(--juice-700);
  border-radius: 0.5rem;
  color: var(--juice-100);
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  transition: all 0.2s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--orange-500);
}

.form-textarea:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 1px;
}

.form-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.required {
  color: var(--red-500);
}

.rpfactions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.report-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.1s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.report-btn--secondary {
  background-color: var(--juice-800);
  border-color: var(--juice-700);
  color: var(--juice-300);
}

.report-btn--secondary:hover:not(:disabled) {
  background-color: var(--juice-700);
  color: var(--juice-100);
}

.report-btn--primary {
  background-color: var(--juice-800);
  color: white;
}

.report-btn--primary:hover:not(:disabled) {
  background-color: var(--orange-600);
}

.report-btn--primary:active:not(:disabled) {
  background-color: var(--orange-600);
}

.report-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.report-btn:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 2px;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.rpffooter {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--juice-800);
}

.report-footer-text {
  font-size: 0.85rem;
  color: var(--juice-500);
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .rpfcontainer {
    padding: 1.5rem;
  }

  .rpfcontent {
    max-width: 100%;
  }

  .rpftitle {
    font-size: 1.5rem;
  }

  .rpfactions {
    flex-direction: column-reverse;
  }

  .report-btn {
    width: 100%;
    justify-content: center;
  }
}

.download-cards {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: center;
  padding: 1rem 0;
}
.download-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  gap: 0;
}
.download-card__icon {
  color: var(--juice-300, #d5c7bc);
  margin-bottom: 0.25rem;
}
.download-card__name {
  font-family: "Pixel Modal", "Primary", monospace;
  font-size: 2rem;
  color: var(--juice-100, #f5edea);
  margin: 0.5rem 0 0;
}
.download-card__desc {
  color: var(--juice-500, #726057);
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}
.download-card__btn {
  margin-top: auto;
  height: 2.75rem;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.download-cards a.mdlbtn {
  color: white;
}
.download-cards a.mdlbtn:hover {
  color: white;
  text-decoration: none;
}
.download-split {
  margin-top: auto;
  display: flex;
  position: relative;
  height: 2.75rem;
}
.download-split__main {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
  height: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
}
.download-split__details {
  position: static;
  display: flex;
  height: 100%;
  flex: 0 0 auto;
  width: auto;
}
.download-split__arrow {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 0 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  overflow: hidden;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}
.download-split__arrow::-webkit-details-marker {
  display: none;
}
.download-split__arrow::marker {
  content: "";
}
.download-split__arrow:hover {
  background-color: var(--orange-500);
}
@media (min-width: 769px) {
  .download-split__menu {
    position: absolute;
    bottom: 100%;
    top: auto;
    left: auto;
    right: 0;
    z-index: 100;
    min-width: 10rem;
    margin-bottom: 0.25rem;
    border-radius: 0.75rem;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
  }
}
.download-divider {
  width: 1px;
  background-color: var(--juice-700, #40342d);
  align-self: stretch;
  margin: 0.5rem 0;
}
.download-soon {
  text-align: center;
  color: var(--juice-500, #726057);
  font-size: 0.8rem;
  margin: 0.75rem 0 0;
}

.download-nojs-warning {
  margin: 1rem auto 0;
  max-width: 28rem;
  padding: 0.75rem 1rem;
  border: 2px dashed var(--orange-600);
  border-radius: 0.75rem;
  background: var(--juice-900);
  color: var(--juice-200);
  font-size: 0.85rem;
  text-align: center;
}

:global(.upload-header__logo) {
  image-rendering: auto;
}

@media (max-width: 480px) {
  .download-cards {
    flex-direction: column;
    align-items: center;
  }
  .download-card {
    padding: 1.25rem 1rem;
  }
  .download-divider {
    width: 80%;
    height: 1px;
    align-self: center;
    margin: 0;
  }
}

.content {
    display: grid;
    grid-template-columns: 160px minmax(0, 42rem) 160px;
    column-gap: 1rem;
    row-gap: 1rem;
    align-items: start;
    justify-content: center;
  }

  .content > main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .box-rail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    align-self: stretch;
  }

  .box-rail--left {
    grid-column: 1;
    grid-row: 1;
  }

  .box-rail--right {
    grid-column: 3;
    grid-row: 1;
  }

  .content:has(.files-card [data-files-empty]:not([hidden])) .box-rail--right {
    display: none;
  }

  .content:has(.files-card [data-files-empty]:not([hidden])) .box-rail--left .box-slot[data-box-w="160"][data-box-h="300"] {
    display: none;
  }

  .box-below {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
  }

  .box-slot {
    position: relative;
    max-width: 100%;
  }

  html.no-js .box-slot {
    display: none;
  }

  .box-slot[data-box-loading],
  .box-slot[data-box-ok],
  .box-slot[data-box-blocked] {
    width: var(--box-w, 160px);
    height: var(--box-h, 600px);
  }

  .box-slot--mobile {
    display: none;
  }

  .box-note {
    display: none;
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    padding: 0.6rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    color: var(--juice-400);
    background: var(--juice-900);
    border: 1px solid var(--juice-800);
    border-radius: 0.5rem;
    overflow: hidden;
  }

  .box-slot[data-box-blocked] .box-note {
    display: flex;
    animation: box-note-in 0.3s ease both;
  }

  .box-shimmer {
    display: none;
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    border-radius: 0.5rem;
    border: 1px solid var(--juice-800);
    background-color: var(--juice-900);
    overflow: hidden;
  }

  .box-shimmer::before {
    content: "";
    position: absolute;
    inset: -100%;
    background-image: linear-gradient(
      90deg,
      rgba(245, 237, 234, 0) 30%,
      rgba(245, 237, 234, 0.08) 50%,
      rgba(245, 237, 234, 0) 70%
    );
    background-size: 60% 100%;
    background-repeat: repeat;
    animation: box-shimmer-anim 0.8s linear infinite;
    transform: rotate(-4deg);
    will-change: transform;
    pointer-events: none;
  }

  .box-slot[data-box-loading] .box-shimmer {
    display: block;
    opacity: 1;
    animation: box-shimmer-in 0.25s ease both;
  }

  .box-slot[data-box-ok] .box-shimmer,
  .box-slot[data-box-blocked] .box-shimmer {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    animation: none;
  }

  @keyframes box-shimmer-anim {
    from {
      transform: rotate(-4deg) translateX(0);
    }
    to {
      transform: rotate(-4deg) translateX(-60%);
    }
  }

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

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

  @media (prefers-reduced-motion: reduce) {
    .box-shimmer::before {
      animation: none;
      background-image: none;
    }

    .box-shimmer,
    .box-note {
      animation: none;
      transition: none;
    }
  }

  .box-note__icon {
    display: inline-flex;
    flex-shrink: 0;
    margin-bottom: 0.4rem;
  }

  .box-note__icon svg {
    width: 36px;
    height: 36px;
    display: block;
  }

  .box-note__title {
    font-size: clamp(0.72rem, 1.2vw, 0.9rem);
    font-weight: 600;
    line-height: 1.2;
  }

  .box-note__text {
    font-size: clamp(0.58rem, 0.9vw, 0.72rem);
    line-height: 1.25;
  }

  .box-slot[data-box-orient="wide"][data-box-blocked] .box-note {
    flex-direction: row;
    gap: 0.6rem;
    padding: 0.35rem 0.75rem;
    text-align: left;
  }

  .box-slot[data-box-orient="wide"][data-box-blocked] .box-note__icon {
    margin-bottom: 0;
  }

  @media (max-width: 960px) {
    .content {
      grid-template-columns: 1fr;
    }

    .content > main {
      grid-column: 1;
    }

    .box-rail {
      display: none;
    }

    .box-below {
      grid-column: 1;
    }
  }

  @media (max-height: 900px) {
    .box-slot[data-box-w="160"][data-box-h="300"] {
      display: none;
    }
  }

  @media (max-width: 700px) {
    .box-slot--banner {
      display: none;
    }

    .box-slot--mobile {
      display: block;
    }
  }

.mdlcontent--wide {
    max-width: 560px;
  }
  .hostsel__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
  }
  .hostsel-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .hostsel-toolbar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .hostsel-search {
    flex: 1;
    min-width: 0;
  }
  .hostsel-refresh {
    flex-shrink: 0;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }
  .hostsel-statusline {
    margin: 0;
    font-size: 0.75rem;
    color: var(--juice-400);
  }
  .hostsel-statusline:empty {
    display: none;
  }
  .hostsel__group-title {
    margin: 0.5rem 0 0.15rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--juice-400);
  }
  .hostsel-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }
  .hostsel-row {
    border-top: 1px solid var(--juice-700);
    cursor: pointer;
  }
  .hostsel-row:last-child {
    border-bottom: 1px solid var(--juice-700);
  }
  .hostsel-row:hover {
    background-color: var(--juice-800);
  }
  .hostsel-row:focus-visible {
    outline: 2px solid var(--orange-500);
    outline-offset: -2px;
  }
  .hostsel-row[data-selected] {
    background-color: var(--juice-800);
  }
  .hostsel-cell {
    padding: 0.4rem 0.5rem;
    vertical-align: middle;
  }
  .hostsel-cell--dot {
    width: 1.1rem;
    padding-right: 0;
  }
  .hostsel-dot {
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background-color: var(--juice-600);
  }
  .hostsel-dot[data-state="checking"] {
    background-color: var(--orange-400);
  }
  .hostsel-dot[data-state="online"] {
    background-color: var(--green-500);
  }
  .hostsel-dot[data-state="offline"] {
    background-color: var(--red-500);
  }
  .hostsel-cell--meta {
    min-width: 0;
  }
  .hostsel-name {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--juice-100);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hostsel-url {
    display: block;
    font-size: 0.75rem;
    color: var(--juice-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hostsel-url:empty {
    display: none;
  }
  .hostsel-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .hostsel-badges:empty {
    display: none;
  }
  .hostsel-cell--caps {
    width: 45%;
  }
  .hostsel-chips {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
  }
  .hostsel-chips .hostsel-badge {
    flex-shrink: 0;
  }
  .hostsel-more {
    position: relative;
    flex-shrink: 0;
  }
  .hostsel-more summary {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px dashed var(--juice-600);
    color: var(--juice-300);
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
  }
  .hostsel-more summary::-webkit-details-marker {
    display: none;
  }
  .hostsel-more summary:hover {
    color: var(--juice-100);
    border-color: var(--juice-400);
  }
  .hostsel-more__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 10rem;
    max-width: min(16rem, 70vw);
    padding: 0.55rem 0.65rem;
    background: var(--juice-900);
    border: 1px solid var(--juice-700);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
  .hostsel-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background-color: var(--juice-700);
    color: var(--juice-200);
    white-space: nowrap;
  }
  .hostsel-badge--legacy {
    background-color: transparent;
    border: 1px dashed var(--orange-400);
    color: var(--orange-400);
  }
  .hostsel-cell--latency {
    width: 4.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 0.8rem;
    color: var(--juice-200);
    white-space: nowrap;
  }
  .hostsel-empty {
    margin: 0.25rem 0;
    font-size: 0.8rem;
    color: var(--juice-400);
  }
  .hostsel-add {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-top: 0.25rem;
    padding: 0.6rem 0.75rem;
    background-color: var(--juice-800);
    border: 1px dashed var(--juice-600);
    border-radius: 0.5rem;
  }
  .hostsel-add__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
    color: var(--juice-300);
  }
  .hostsel-add__text strong {
    color: var(--juice-100);
  }

.chord-indicator {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 1.75rem 1.75rem;
    background: none;
    box-shadow: inset 120px -100px 120px -60px rgba(0, 0, 0, 0.5);
    font-family: "Secondary", "Unifont", monospace;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
  }


.mdl-alias {
    display: none;
}
  .chord-indicator[hidden] {
    display: flex;
    opacity: 0;
  }
  .chord-indicator--active {
    opacity: 1;
  }
  .chord-indicator__keys {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .chord-indicator__keys span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 9rem;
    height: 4rem;
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--clr-text, #555) 45%, transparent);
  }








#settings-tab-connection:checked ~ .full-tab label[for="settings-tab-connection"],
#settings-tab-upload:checked ~ .full-tab label[for="settings-tab-upload"],
#settings-tab-preferences:checked ~ .full-tab label[for="settings-tab-preferences"] {
  background: var(--orange-500-15);
  color: var(--orange-500);
  box-shadow: inset 0 -2px 0 0 var(--orange-600);
  position: relative;
  z-index: 1;
}

.settings-panels [data-settings-panel] {
  display: none;
}

#settings-tab-connection:checked ~ .settings-panels [data-settings-panel="connection"],
#settings-tab-upload:checked ~ .settings-panels [data-settings-panel="upload"],
#settings-tab-preferences:checked ~ .settings-panels [data-settings-panel="preferences"] {
  display: block;
}



[data-settings-panel="connection"] .form-field:last-child {
  margin-top: 1.25rem;
}



html[data-motion-reduce] *,
html[data-motion-reduce] *::before,
html[data-motion-reduce] *::after {
  animation: none !important;
  transition: none !important;
}












.full-tab {
  display: flex;
  gap: 0;
  margin: -1.5rem -1.5rem 1.5rem;
  border-bottom: 1px solid var(--juice-700);
  border-radius: 0;
}

.full-tab__tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 0.6rem;
  text-align: center;
  background: var(--juice-800);
  color: var(--juice-400);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 0;
  border-right: 1px solid var(--juice-700);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.full-tab__tab:last-child {
  border-right: none;
}

.full-tab__tab:hover {
  background: var(--juice-700);
  color: var(--juice-200);
}

@media (max-width: 768px) {
  .full-tab {
    margin: -1rem -1rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .full-tab__tab {
    transition: none;
  }
}

#jb-net-debug {
    position: fixed;
    top: 8px;
    left: 10px;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    padding: 8px 11px;
    border-radius: 10px;
    pointer-events: none;
    max-width: min(74vw, 462px);
  }
  #jb-net-text {
    white-space: pre-wrap;
  }
  #jb-net-canvas {
    display: block;
    width: 100%;
    height: 88px;
    margin-bottom: 4px;
  }
  #jb-net-actions {
    display: flex;
    gap: 6px;
    margin-top: 7px;
    pointer-events: auto;
  }
  #jb-net-actions button {
    flex: 1;
    font: 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
  }
  #jb-net-actions button:active {
    background: rgba(255, 255, 255, 0.22);
  }

.content-card th, .content-card td {
        text-align: left;
        padding: 0.25rem 0.5rem;
    }
