:root {
  --bg: #000;
  --fg: #fff;
  --muted: #9b9b9b;
  --dim: #6e6e6e;
  --line: #242424;
  --line-2: #474747;
  --hover: #141414;
  --radius: 12px;
  --font: "Inter", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: 3px; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

.shell { width: min(1080px, calc(100% - 3rem)); margin-inline: auto; }
.page-shell { min-height: 100svh; display: flex; flex-direction: column; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: clamp(1.4rem, 3vh, 2.2rem) 0; }
.home-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 1rem clamp(1.5rem, 3vw, 2.5rem); }
.home-actions { display: flex; align-items: center; gap: 0.65rem; }
.language-picker { position: relative; }
.error-language-picker { margin-right: 0.5rem; }
.language-trigger { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.55rem; padding: 0.4rem 0.65rem; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 0.85rem; cursor: pointer; }
.language-trigger:hover, .language-trigger[aria-expanded="true"] { border-color: #fff; }
.language-trigger svg, .language-option svg { display: block; width: 1.25rem; height: 0.9rem; border-radius: 2px; }
.language-chevron { width: 0.45rem; height: 0.45rem; margin: -0.2rem 0 0 0.1rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.language-menu { position: absolute; z-index: 12; top: calc(100% + 0.5rem); right: 0; display: grid; min-width: 8rem; padding: 0.3rem; border: 1px solid var(--line-2); border-radius: 12px; background: #111; box-shadow: 0 12px 32px #000b; }
.language-option { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.65rem; border: 0; border-radius: 8px; background: transparent; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.language-option:hover, .language-option[aria-selected="true"] { background: #242424; }
.brand { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
.note { color: var(--muted); font-size: 0.9rem; }

.hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 10vh, 8rem) 0; }
.display {
  margin: 0;
  font-size: clamp(2.8rem, 9.5vw, 7.75rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.96;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.display-file { font-size: clamp(2rem, 6vw, 4.5rem); letter-spacing: -0.045em; line-height: 1.05; }
.lede { margin: 1.5rem 0 0; max-width: 46ch; color: var(--muted); font-size: 1.05rem; }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; margin-top: 2.2rem; }
.hint { color: var(--dim); font-size: 0.92rem; }

.btn {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.7rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff; color: #000;
  font: inherit; font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { background: #dcdcdc; border-color: #dcdcdc; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line-2); }
.btn-ghost:hover { background: transparent; border-color: #fff; }
.btn-sm { padding: 0.5rem 1.05rem; font-size: 0.9rem; }

.link-btn {
  appearance: none; background: none; border: 0; padding: 0;
  color: var(--muted); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
}
.link-btn:hover { color: #fff; text-decoration-color: #fff; }

.opts { margin: 2.6rem 0 0; padding: 0; border: 0; display: block; min-width: 0; }
.opts legend { float: left; width: 100%; margin: 0 0 0.7rem; padding: 0; color: var(--muted); font-size: 0.92rem; }
.opts legend + * { clear: left; }

.seg { display: flex; width: min(760px, 100%); align-items: stretch; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg label { position: relative; flex: 1; min-width: 0; text-align: center; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 0.4rem 0.5rem; border-radius: 999px; color: var(--muted); font-size: 0.92rem; white-space: nowrap; transition: background-color 0.18s ease, color 0.18s ease; }
.seg input:hover + span { color: #fff; }
.seg input:checked + span { background: #fff; color: #000; }
.seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

.check { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--muted); cursor: pointer; font-size: 0.95rem; }
.check:hover { color: #fff; }
.upload-options { display: grid; justify-items: start; gap: 0.8rem; margin-top: 0.9rem; }
.password-fields { display: grid; grid-template-rows: 0fr; width: min(760px, 100%); padding-left: 1.8rem; transition: grid-template-rows 0.24s ease; }
.password-fields[aria-hidden="false"] { grid-template-rows: 1fr; }
.password-fields-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; column-gap: 0.65rem; min-height: 0; overflow: hidden; }
.password-fields-inner .field { margin: 0.45rem 0 0.8rem; }
.password-fields-inner small { grid-column: 1 / -1; color: var(--dim); }
.sr-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.check input {
  appearance: none; margin: 0; flex: none;
  width: 1.15rem; height: 1.15rem;
  display: grid; place-content: center;
  border: 1px solid var(--line-2); border-radius: 5px; background: transparent;
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s;
}
.check input::before {
  content: ""; width: 0.6rem; height: 0.32rem; margin-top: -0.08rem;
  border-left: 2px solid #000; border-bottom: 2px solid #000;
  transform: rotate(-45deg) scale(0); transition: transform 0.12s;
}
.check input:checked { background: #fff; border-color: #fff; }
.check input:checked::before { transform: rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.notice { margin: 1.5rem 0 0; padding: 0.9rem 1.1rem; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); max-width: 46ch; }

.telegram-tab {
  position: fixed;
  top: 75%;
  right: 0;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.6rem 0.9rem 0.6rem 0.75rem;
  border: 1px solid var(--line-2);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #080808;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px #0008;
  transform: translateY(-50%);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.telegram-tab:hover { border-color: #fff; background: #151515; transform: translate(-4px, -50%); }
.telegram-tab:focus-visible { border-radius: 12px 0 0 12px; }
.telegram-tab svg { display: block; flex: none; width: 1.55rem; height: 1.55rem; }

body.dragging::after {
  content: ""; position: fixed; inset: 14px; z-index: 10;
  border: 1px solid #fff; border-radius: 22px; pointer-events: none;
}

.items { list-style: none; margin: 3.2rem 0 0; padding: 0; max-width: 760px; }
.items:empty { display: none; }
.item { padding: 1.15rem 0 1.3rem; border-top: 1px solid var(--line); animation: item-appear 0.24s ease-out both; }
.item:last-child { border-bottom: 1px solid var(--line); }
.item-head { display: flex; align-items: baseline; gap: 1rem; }
.item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.item-meta { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 2px; margin-top: 0.85rem; background: var(--line); }
.bar i { display: block; height: 100%; width: 0; background: #fff; transition: width 0.2s linear; }
.item-done { display: grid; gap: 0.8rem; margin-top: 1.1rem; }
.copyrow { display: flex; gap: 0.6rem; }
.url {
  flex: 1; min-width: 0; padding: 0.65rem 0.95rem;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: transparent; color: #fff; font: inherit; font-size: 0.95rem;
}
.url:focus { outline: none; border-color: #fff; }
.item-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.9rem; color: var(--muted); }
.item-links a { color: var(--muted); }
.item-links a:hover { color: #fff; }
.item-error { margin: 0.7rem 0 0; color: #fff; font-size: 0.92rem; }
.item-error { font-weight: 500; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 2.2rem; margin: 2.2rem 0 0; max-width: 560px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.preview { margin: 2.2rem 0 0; max-width: 760px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.preview img, .preview video { display: block; max-width: 100%; max-height: 62vh; margin: 0 auto; object-fit: contain; }
.preview audio { display: block; width: 100%; padding: 0.8rem; }
.zone { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); max-width: 560px; color: var(--muted); }
.zone h2 { margin: 0 0 0.4rem; color: #fff; font-size: 1rem; font-weight: 500; }
.zone p { margin: 0 0 1rem; }
.field {
  display: block; width: 100%; margin: 0.8rem 0; padding: 0.7rem 0.95rem;
  border: 1px solid var(--line-2); border-radius: 10px; background: transparent; color: #fff;
  font: inherit; resize: vertical;
}
.field:focus { outline: none; border-color: #fff; }
.status { margin: 0.8rem 0 0; color: var(--muted); min-height: 1.5em; }

.site-dialog { width: min(440px, calc(100% - 2rem)); padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: #101010; color: #fff; box-shadow: 0 24px 80px #000c; }
.site-dialog::backdrop { background: #000b; backdrop-filter: blur(4px); }
.site-dialog form { padding: 1.5rem; }
.site-dialog h2 { margin: 0; font-size: 1.25rem; font-weight: 500; }
.site-dialog p { margin: 0.8rem 0 0; color: var(--muted); white-space: pre-wrap; }
.site-dialog .field { margin-top: 1.1rem; }
.site-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }
.site-dialog .error { min-height: 1.2em; margin: 0.55rem 0 0; color: #ff8585; font-size: 0.9rem; }
.legal-consent-check { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 1rem; color: #fff; }
.legal-consent-check input { flex: 0 0 auto; margin-top: 0.25rem; }
.legal-register-check { margin-top: 1rem; }
.legal-register-links { display: flex; gap: 0.6rem; margin: 0.5rem 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.legal-links a, .legal-register-links a { color: inherit; text-underline-offset: 0.18em; }
.legal-page { max-width: 860px; margin: 0 auto; padding: 3rem 0 5rem; }
.legal-page h1 { margin-bottom: 0.5rem; }
.legal-page h2 { margin: 2.4rem 0 0.8rem; font-size: 1.45rem; font-weight: 500; }
.legal-page h3 { margin: 1.6rem 0 0.5rem; font-size: 1.08rem; }
.legal-page p, .legal-page li { color: var(--muted); line-height: 1.7; }
.legal-page ul { padding-left: 1.3rem; }
.legal-callout { padding: 1rem 1.2rem; border: 1px solid var(--line-2); border-radius: 12px; }
.legal-back { display: inline-block; margin-top: 2rem; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: auto; padding: 2rem 0 clamp(1.6rem, 4vh, 2.5rem); color: var(--dim); font-size: 0.88rem; }

@media (max-width: 640px) {
  .shell { width: calc(100% - 2rem); }
  .topbar { align-items: flex-start; }
  .home-links { align-items: flex-end; flex-direction: column; gap: 0.65rem; }
  .hero { padding-block: 4rem; }
  .password-fields { height: 8rem; }
  .foot { flex-direction: column; gap: 0.45rem; }
  .copyrow { flex-direction: column; }
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.7rem; }
  body.dragging::after { inset: 8px; border-radius: 16px; }
  .telegram-tab { width: 3rem; min-height: 3rem; justify-content: center; padding: 0.55rem; }
  .telegram-tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

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

@keyframes item-appear {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.sr-copy { position: fixed; top: 0; left: -9999px; opacity: 0; }
