:root {
  --bg: #08090b;
  --bg-soft: #0d0f12;
  --panel: #111318;
  --panel-raised: #15181e;
  --panel-hover: #191c22;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f2;
  --text-soft: #c5c7c9;
  --muted: #82868c;
  --accent: #ff5b3d;
  --accent-bright: #ff765d;
  --accent-soft: rgba(255, 91, 61, 0.12);
  --green: #69d49b;
  --green-soft: rgba(105, 212, 155, 0.11);
  --amber: #efbd62;
  --amber-soft: rgba(239, 189, 98, 0.11);
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, 0.11);
  --blue: #78a9ff;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --sidebar-width: 270px;
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 91, 61, 0.16);
}

.button--primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 13px 35px rgba(255, 91, 61, 0.24);
}

.button--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.button--danger-ghost {
  border-color: rgba(255, 107, 107, 0.24);
  color: #ff9696;
}

.button--danger-ghost:hover {
  background: var(--red-soft);
}

.button--small {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 0.76rem;
}

.button--wide {
  width: 100%;
}

.text-button {
  padding: 3px 0;
  border: 0;
  background: none;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 700;
}

.text-button:hover {
  color: var(--text);
}

.text-button--danger {
  color: var(--red);
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.77rem;
  font-weight: 650;
}

.field > span em {
  margin-left: 5px;
  color: var(--muted);
  font-style: normal;
  font-weight: 450;
}

.field input,
.field select,
.search-field input,
.table-tools select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0c0e11;
  color: var(--text);
  outline: none;
  transition: 160ms ease;
}

.field input,
.field select {
  padding: 0 14px;
}

.field input::placeholder,
.search-field input::placeholder {
  color: #595d63;
}

.field input:focus,
.field select:focus,
.search-field:focus-within,
.table-tools select:focus {
  border-color: rgba(255, 91, 61, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 91, 61, 0.08);
}

.field small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 450;
  line-height: 1.5;
}

.password-generator-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.password-generator-control .button,
.password-reveal {
  min-height: 46px;
  white-space: nowrap;
}

.password-reveal {
  min-width: 64px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #101216;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 750;
}

.password-reveal:hover,
.password-reveal:focus-visible {
  border-color: var(--line-strong);
  color: var(--text);
}

.password-generate {
  padding-inline: 17px;
}

.password-generator-status {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(105, 212, 155, 0.16);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 700;
}

.password-generator-status[hidden] {
  display: none;
}

.password-generator-status button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 13px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #1a1d22;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Login */

.login-page {
  overflow-x: hidden;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
}

.login-brand {
  position: relative;
  display: flex;
  min-height: 680px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(38px, 5vw, 78px);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 65% 75%, rgba(255, 91, 61, 0.08), transparent 34%),
    linear-gradient(145deg, #0c0e11 0%, #070809 75%);
}

.login-wordmark {
  width: min(330px, 58%);
}

.login-brand__copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.product-kicker {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-brand__copy h1 {
  margin: 16px 0 12px;
  font-size: clamp(4.2rem, 9vw, 8.5rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.login-brand__copy p {
  max-width: 540px;
  margin: 0;
  color: #aaaeb2;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.login-watermark {
  position: absolute;
  right: -13vw;
  bottom: -21vw;
  width: min(65vw, 950px);
  opacity: 0.055;
  transform: rotate(-10deg);
}

.login-panel {
  display: flex;
  min-height: 680px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px;
  background: #0a0b0d;
}

.login-card {
  width: min(100%, 420px);
}

.login-card h2 {
  margin-bottom: 9px;
  font-size: 2rem;
  letter-spacing: -0.045em;
}

.login-card > .muted {
  margin-bottom: 34px;
  font-size: 0.9rem;
}

.prototype-pill {
  display: inline-flex;
  margin-bottom: 35px;
  padding: 6px 9px;
  border: 1px solid rgba(239, 189, 98, 0.22);
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack-form .button {
  margin-top: 6px;
}

.totp-input {
  letter-spacing: 0.3em;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.security-note span {
  color: var(--green);
  font-size: 1.1rem;
}

.login-panel footer {
  width: min(100%, 420px);
  margin-top: 60px;
  color: #55595f;
  font-size: 0.67rem;
}

/* Admin shell */

.admin-layout {
  background: #0a0b0e;
}

.admin-sidebar {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 34px 22px 24px;
  border-right: 1px solid var(--line);
  background: #0b0c0f;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand--admin {
  display: block;
  padding: 0 9px;
}

.brand--admin img {
  width: 190px;
}

.brand--admin > span {
  display: block;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 62px;
}

.admin-nav__link {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 9px;
  color: #898d92;
  font-size: 0.79rem;
  font-weight: 650;
  transition: 150ms ease;
}

.admin-nav__link:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.admin-nav__link.is-active {
  background: var(--accent-soft);
  color: #ff8a72;
}

.nav-glyph {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-size: 0.85rem;
}

.preview-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding: 22px 11px;
  border-top: 1px solid var(--line);
}

.preview-links .eyebrow {
  margin-bottom: 9px;
}

.preview-links a {
  padding: 5px 0;
  color: #74787e;
  font-size: 0.7rem;
}

.preview-links a:hover {
  color: var(--text-soft);
}

.admin-profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 20px 10px 0;
  border-top: 1px solid var(--line);
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #25282e;
  color: var(--text-soft);
  font-size: 0.65rem;
  font-weight: 800;
}

.admin-profile strong,
.admin-profile small {
  display: block;
}

.admin-profile strong {
  font-size: 0.73rem;
}

.admin-profile small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
}

.admin-profile > a {
  color: var(--muted);
}

.logout-form,
.logout-form button {
  margin: 0;
}

.logout-form button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.admin-stage {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.preview-banner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-bottom: 1px solid rgba(239, 189, 98, 0.16);
  background: rgba(239, 189, 98, 0.045);
  color: #85827a;
  font-size: 0.65rem;
}

.preview-banner span {
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-main {
  width: min(100%, 1520px);
  margin: 0 auto;
  padding: 52px clamp(30px, 4vw, 68px) 80px;
}

.mobile-admin-header,
.nav-backdrop {
  display: none;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.page-header h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.page-header--compact {
  margin-bottom: 30px;
}

.page-lead {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.back-link:hover {
  color: var(--text);
}

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}

.surface-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.surface-header h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.surface-header p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 24px;
}

.metric-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #13161a, #101216);
}

.metric-card::after {
  position: absolute;
  right: -20px;
  bottom: -54px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  content: "";
}

.metric-card--alert {
  border-color: rgba(239, 189, 98, 0.18);
  background: linear-gradient(145deg, rgba(239, 189, 98, 0.07), #101216 70%);
}

.metric-card__label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.metric-card > strong {
  display: block;
  margin: 18px 0 10px;
  font-size: 1.75rem;
  font-weight: 620;
  letter-spacing: -0.05em;
}

.metric-card small {
  color: #686c72;
  font-size: 0.63rem;
}

.trend {
  margin-right: 4px;
  color: var(--green);
}

.storage-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 345px;
  margin-bottom: 24px;
  overflow: hidden;
}

.storage-main {
  padding: 25px;
}

.storage-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 25px 0 22px;
}

.storage-numbers > div {
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.storage-numbers > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.storage-numbers strong,
.storage-numbers span {
  display: block;
}

.storage-numbers strong {
  margin-bottom: 6px;
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.storage-numbers span {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.4;
}

.storage-bar-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.64rem;
}

.storage-bar-copy strong {
  color: var(--amber);
}

.storage-progress {
  height: 8px;
}

.storage-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent), var(--amber));
}

.storage-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--accent), var(--amber));
}

.storage-caption {
  margin: 10px 0 0;
  color: #5f6369;
  font-size: 0.59rem;
  line-height: 1.5;
}

.cleanup-advice {
  padding: 25px;
  border-left: 1px solid rgba(239, 189, 98, 0.15);
  background: linear-gradient(145deg, rgba(239, 189, 98, 0.07), rgba(239, 189, 98, 0.025));
}

.cleanup-advice__header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.cleanup-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(239, 189, 98, 0.23);
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 800;
}

.cleanup-advice strong,
.cleanup-advice small {
  display: block;
}

.cleanup-advice strong {
  font-size: 0.76rem;
}

.cleanup-advice small {
  margin-top: 5px;
  color: #8d887e;
  font-size: 0.6rem;
  line-height: 1.4;
}

.cleanup-advice ul {
  margin: 20px 0;
  padding: 14px 0;
  border-top: 1px solid rgba(239, 189, 98, 0.12);
  border-bottom: 1px solid rgba(239, 189, 98, 0.12);
  list-style: none;
}

.cleanup-advice li {
  padding: 5px 0;
  color: #8d887e;
  font-size: 0.62rem;
}

.cleanup-advice li span {
  color: var(--text-soft);
  font-weight: 750;
}

.table-surface {
  overflow: hidden;
}

.table-surface > .surface-header {
  min-height: 82px;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 9px;
}

.search-field {
  display: flex;
  width: min(280px, 31vw);
  min-height: 39px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0e11;
  color: var(--muted);
}

.search-field input {
  min-height: 35px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.7rem;
}

.table-tools select {
  width: auto;
  min-height: 39px;
  padding: 0 30px 0 11px;
  font-size: 0.68rem;
}

.responsive-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.013);
  color: #61656b;
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #a4a7ab;
  font-size: 0.67rem;
  white-space: nowrap;
}

tbody tr {
  transition: 130ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}

.share-identity {
  display: flex;
  min-width: 250px;
  align-items: center;
  gap: 11px;
}

.share-identity small,
.share-identity strong {
  display: block;
}

.share-identity small {
  margin-bottom: 4px;
  color: #62666c;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.share-identity strong {
  overflow: hidden;
  max-width: 260px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 680;
  text-overflow: ellipsis;
}

.type-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0c0e11;
  font-size: 0.9rem;
}

.type-icon--download {
  color: var(--green);
}

.type-icon--upload {
  color: var(--blue);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 750;
  white-space: nowrap;
}

.status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status--success {
  border-color: rgba(105, 212, 155, 0.16);
  background: var(--green-soft);
  color: var(--green);
}

.status--warning {
  border-color: rgba(239, 189, 98, 0.17);
  background: var(--amber-soft);
  color: var(--amber);
}

.status--neutral {
  color: #81858a;
}

.status--danger {
  border-color: rgba(255, 107, 107, 0.18);
  background: var(--red-soft);
  color: var(--red);
}

.form-error {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 9px;
  background: var(--red-soft);
  color: #ffaaaa;
  font-size: 0.72rem;
  line-height: 1.5;
}

.filter-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 20px;
  border-bottom: 1px solid rgba(239, 189, 98, 0.15);
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 0.65rem;
}

.filter-notice a {
  color: var(--text-soft);
}

.table-action {
  width: 45px;
  text-align: right;
}

.table-action a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
}

.table-action a:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.empty-state {
  padding: 65px 20px;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 7px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

/* Share form */

.share-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 22px;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-section {
  position: relative;
  padding: 28px 28px 30px 86px;
}

.section-number {
  position: absolute;
  top: 30px;
  left: 28px;
  color: #555960;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-heading {
  margin-bottom: 25px;
}

.section-heading h2 {
  margin-bottom: 6px;
  font-size: 1.02rem;
  letter-spacing: -0.025em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.type-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.type-choice {
  position: relative;
  display: grid;
  min-height: 104px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d0f12;
  cursor: pointer;
  transition: 150ms ease;
}

.type-choice:hover {
  border-color: var(--line-strong);
  background: #101216;
}

.type-choice:has(input:checked) {
  border-color: rgba(255, 91, 61, 0.42);
  background: var(--accent-soft);
}

.type-choice input {
  position: absolute;
  opacity: 0;
}

.type-choice__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1.15rem;
}

.type-choice strong,
.type-choice small {
  display: block;
}

.type-choice strong {
  margin-bottom: 5px;
  font-size: 0.76rem;
}

.type-choice small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 450;
  line-height: 1.4;
}

.radio-mark {
  width: 15px;
  height: 15px;
  border: 1px solid #52565c;
  border-radius: 50%;
}

.type-choice:has(input:checked) .radio-mark {
  border: 4px solid var(--accent);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 14px;
}

.field--wide {
  grid-column: 1 / -1;
}

.switch-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #080a0c;
  transition: 150ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #777b80;
  content: "";
  transition: 150ms ease;
}

.switch-row input:checked + .switch {
  border-color: var(--accent);
  background: var(--accent);
}

.switch-row input:checked + .switch::after {
  left: 19px;
  background: #fff;
}

.switch-row strong,
.switch-row small {
  display: block;
}

.switch-row strong {
  font-size: 0.72rem;
}

.switch-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 450;
  line-height: 1.45;
}

.conditional-field {
  margin-top: 16px;
}

.switch-row--standalone {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.retention-fields {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.45fr);
  align-items: end;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.retention-preview,
.retention-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid rgba(105, 212, 155, 0.14);
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
}

.retention-preview p,
.retention-notice p {
  margin: 0;
}

.retention-preview strong,
.retention-preview small,
.retention-notice strong,
.retention-notice small {
  display: block;
}

.retention-preview strong,
.retention-notice strong {
  color: #b8d7c6;
  font-size: 0.64rem;
}

.retention-preview small,
.retention-notice small {
  margin-top: 4px;
  color: #718f7d;
  font-size: 0.58rem;
  line-height: 1.4;
}

.builder-summary {
  position: sticky;
  top: 26px;
}

.summary-card {
  padding: 25px;
}

.summary-direction {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.summary-direction strong,
.summary-direction small {
  display: block;
}

.summary-direction strong {
  font-size: 0.76rem;
}

.summary-direction small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.45;
}

.summary-card dl {
  margin: 0 0 25px;
}

.summary-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 0.65rem;
}

.summary-card dt {
  color: var(--muted);
}

.summary-card dd {
  margin: 0;
  color: var(--text-soft);
  text-align: right;
}

.summary-footnote {
  margin: 13px 0 0;
  color: #666a70;
  font-size: 0.6rem;
  line-height: 1.5;
  text-align: center;
}

/* Share detail */

.share-titlebar {
  align-items: flex-end;
}

.title-with-status {
  display: flex;
  align-items: center;
  gap: 14px;
}

.title-with-status h1 {
  margin: 0;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  align-items: start;
  gap: 17px;
}

.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-main > .surface {
  padding: 23px;
}

.access-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 91, 61, 0.07), transparent 34%),
    var(--panel);
}

.security-chip {
  padding: 5px 8px;
  border: 1px solid rgba(105, 212, 155, 0.18);
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
}

.secure-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 19px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0e11;
}

.secure-link__lock {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
}

.secure-link strong,
.secure-link small {
  display: block;
}

.secure-link strong {
  font-size: 0.72rem;
}

.secure-link small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.4;
}

.admin-file-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-upload-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-upload-queue {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.file-origin {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.inline-empty {
  padding: 35px 10px;
  color: var(--muted);
  text-align: center;
}

.inline-empty strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 0.74rem;
}

.inline-empty p {
  margin: 0;
  font-size: 0.64rem;
}

.compact-form {
  gap: 10px;
  margin-top: 15px;
}

.admin-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.admin-file:last-child {
  border-bottom: 0;
}

.file-glyph,
.client-file__type {
  display: grid;
  width: 38px;
  height: 43px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b0d10;
  color: #8d9196;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.file-copy strong,
.file-copy small {
  display: block;
}

.file-copy strong {
  overflow: hidden;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.6rem;
}

.more-button,
.upload-cancel {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.activity-list {
  margin-top: 17px;
}

.activity-row {
  display: grid;
  grid-template-columns: auto 92px minmax(0, 1fr) 65px 88px;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 0.62rem;
}

.activity-row time,
.activity-size,
.activity-row code {
  color: var(--muted);
}

.activity-row strong,
.activity-row small {
  display: block;
}

.activity-row strong {
  color: var(--text-soft);
  font-size: 0.65rem;
}

.activity-row small {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-row code {
  font-size: 0.58rem;
}

.event-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.event-dot--download {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.event-dot--danger {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.event-dot--view {
  background: var(--blue);
}

.event-dot--admin {
  background: var(--accent);
}

.side-card {
  padding: 23px;
}

.usage-ring {
  display: grid;
  width: 134px;
  height: 134px;
  margin: 24px auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 40%, #24272d 40% 100%);
}

.usage-ring::before {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--panel);
  content: "";
}

.usage-ring span {
  position: relative;
  z-index: 1;
  text-align: center;
}

.usage-ring strong,
.usage-ring small {
  display: block;
}

.usage-ring strong {
  font-size: 1.45rem;
  letter-spacing: -0.05em;
}

.usage-ring small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.58rem;
}

.side-stats,
.settings-list {
  margin: 0;
}

.side-stats div,
.settings-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.65rem;
}

.side-stats dt,
.settings-list dt {
  color: var(--muted);
}

.side-stats dd,
.settings-list dd {
  margin: 0;
  color: var(--text-soft);
  font-weight: 650;
  text-align: right;
}

.settings-list dd small {
  color: var(--muted);
  font-weight: 450;
}

.danger-zone {
  padding: 19px;
  border: 1px solid rgba(255, 107, 107, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 107, 107, 0.025);
}

.retention-notice {
  background: rgba(105, 212, 155, 0.045);
}

.danger-zone strong {
  font-size: 0.68rem;
}

.danger-zone p {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.45;
}

.published-shell {
  width: min(100%, 760px);
  margin: 8vh auto 0;
  text-align: center;
}

.published-mark {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.2rem;
}

.published-shell h1 {
  margin-bottom: 13px;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.055em;
}

.published-shell .page-lead {
  max-width: 590px;
  margin-inline: auto;
}

.one-time-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin: 35px 0 16px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  text-align: left;
}

.one-time-link code {
  overflow: hidden;
  padding: 13px 10px;
  color: var(--text-soft);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.published-shell > .security-note {
  justify-content: center;
  text-align: left;
}

.published-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 32px;
}

/* Client-facing pages */

.client-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 65%, rgba(255, 91, 61, 0.055), transparent 27%),
    radial-gradient(circle at 90% 5%, rgba(255, 255, 255, 0.035), transparent 22%),
    #08090b;
}

.client-watermark {
  position: fixed;
  z-index: 0;
  right: -15vw;
  bottom: -25vw;
  width: min(70vw, 900px);
  height: min(70vw, 900px);
  background: url("/brand/logo_powiadomienia.png") center / contain no-repeat;
  opacity: 0.025;
  pointer-events: none;
  transform: rotate(-12deg);
}

.client-header,
.client-main,
.client-footer {
  position: relative;
  z-index: 1;
}

.client-header {
  display: flex;
  width: min(100% - 64px, 1120px);
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.client-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.client-brand img {
  width: 184px;
}

.client-brand span {
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  color: #a5a8ac;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.secure-connection {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #676b70;
  font-size: 0.63rem;
  font-weight: 600;
}

.secure-connection i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.client-main {
  width: min(100% - 40px, 980px);
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: clamp(66px, 9vw, 110px) 0 90px;
}

.client-hero {
  max-width: 730px;
  margin-bottom: 42px;
}

.client-hero h1,
.client-gate h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 570;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.client-lead {
  max-width: 680px;
  margin-bottom: 0;
  color: #969a9f;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  line-height: 1.7;
}

.client-lead strong {
  color: var(--text-soft);
  font-weight: 650;
}

.client-transfer-card,
.upload-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(17, 19, 24, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.transfer-card__header {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}

.transfer-card__header > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transfer-count {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.transfer-card__header strong {
  font-size: 0.83rem;
}

.button--client-primary {
  min-height: 48px;
  padding: 0 22px;
  border-color: var(--text);
  background: var(--text);
  color: #0a0b0d;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.08);
}

.button--client-primary:hover {
  background: #fff;
}

.button--client-primary:disabled {
  border-color: #33363b;
  background: #33363b;
  color: #75797e;
  cursor: not-allowed;
  transform: none;
}

.client-file-list {
  padding: 0 25px;
}

.client-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.client-file:last-child {
  border-bottom: 0;
}

.client-file__copy strong,
.client-file__copy small {
  display: block;
}

.client-file__copy strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-file__copy small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.65rem;
}

.download-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: 150ms ease;
}

.download-button:hover {
  border-color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
}

.client-info-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
}

.info-strip__icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-soft);
  font-family: Georgia, serif;
  font-size: 0.75rem;
}

.client-info-strip p {
  margin: 0;
  font-size: 0.67rem;
  line-height: 1.5;
}

.client-info-strip strong {
  color: var(--text-soft);
}

.client-gate {
  width: min(100%, 530px);
  margin: clamp(12px, 5vh, 60px) auto 0;
  text-align: center;
}

.gate-icon {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 35px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(145deg, #171a1f, #101216);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.gate-icon::before {
  width: 20px;
  height: 17px;
  margin-top: 8px;
  border: 2px solid var(--text-soft);
  border-radius: 4px;
  content: "";
}

.gate-icon::after {
  position: absolute;
  top: 17px;
  width: 15px;
  height: 17px;
  border: 2px solid var(--text-soft);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  content: "";
}

.client-gate h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
}

.client-gate .client-lead {
  margin-inline: auto;
}

.gate-form {
  width: min(100%, 430px);
  margin: 34px auto 0;
  text-align: left;
}

.client-error {
  width: min(100%, 430px);
  margin: 26px auto -12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 107, 0.18);
  border-radius: 9px;
  background: var(--red-soft);
  color: #ffaaaa;
  font-size: 0.68rem;
  line-height: 1.5;
}

.client-empty {
  padding: 40px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.field--client {
  color: var(--text-soft);
}

.password-control {
  position: relative;
}

.password-control input {
  padding-right: 72px;
}

.password-control button {
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
  transform: translateY(-50%);
}

.gate-form .button {
  margin-top: 13px;
}

.privacy-note {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  color: #62666c;
  font-size: 0.62rem;
  line-height: 1.5;
}

.privacy-note span {
  color: var(--green);
}

.upload-card.is-dragging {
  border-color: rgba(255, 91, 61, 0.65);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow);
}

.drop-zone {
  display: flex;
  min-height: 275px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 45px 25px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
    radial-gradient(circle at center, rgba(255, 91, 61, 0.04), transparent 42%);
  cursor: pointer;
  text-align: center;
}

.upload-glyph {
  display: grid;
  width: 55px;
  height: 55px;
  margin-bottom: 21px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #0d0f12;
  color: var(--text-soft);
  font-size: 1.4rem;
}

.drop-zone strong {
  margin-bottom: 7px;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.drop-zone > span:not(.upload-glyph) {
  color: var(--muted);
  font-size: 0.76rem;
}

.drop-zone small {
  margin-top: 22px;
  color: #5f6369;
  font-size: 0.63rem;
}

.upload-queue {
  padding: 0 24px;
}

.upload-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
}

.upload-item__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 11px;
}

.upload-item__meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.upload-item__meta strong {
  overflow: hidden;
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-item__meta small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.61rem;
}

progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #26292e;
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #26292e;
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--accent);
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--accent);
}

.upload-item--complete progress::-webkit-progress-value {
  background: var(--green);
}

.upload-item--complete progress::-moz-progress-bar {
  background: var(--green);
}

.upload-item--error progress::-webkit-progress-value {
  background: var(--red);
}

.upload-item--error progress::-moz-progress-bar {
  background: var(--red);
}

.upload-item--error .upload-item__meta small {
  color: var(--red);
}

.upload-state {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.7rem;
}

.upload-cancel {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.upload-cancel:hover {
  background: var(--red-soft);
  color: var(--red);
}

.upload-footer {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: rgba(0, 0, 0, 0.16);
}

.upload-footer p {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 0;
}

.upload-footer strong,
.upload-footer small {
  display: block;
  grid-column: 2;
}

.upload-footer strong {
  font-size: 0.7rem;
}

.upload-footer small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.6rem;
}

.pulse-dot {
  grid-row: 1 / 3;
  width: 7px;
  height: 7px;
  margin: 4px 10px 0 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.upload-success {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(105, 212, 155, 0.18);
  border-radius: 12px;
  background: var(--green-soft);
}

.upload-success > span {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #07120c;
  font-weight: 800;
}

.upload-success strong {
  font-size: 0.75rem;
}

.upload-success p {
  margin: 5px 0 0;
  color: #9bbcab;
  font-size: 0.65rem;
}

.unavailable-state {
  max-width: 600px;
}

.unavailable-mark {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 35px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.5rem;
}

.neutral-code {
  display: inline-flex;
  margin-top: 32px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #676b70;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
}

.client-footer {
  display: flex;
  width: min(100% - 64px, 1120px);
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: #55595f;
  font-size: 0.6rem;
}

.client-footer strong {
  color: #72767b;
  font-weight: 650;
}

/* Responsive */

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .builder-summary {
    position: static;
  }

  .summary-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
  }

  .summary-card > .eyebrow,
  .summary-card > .summary-direction {
    grid-column: 1;
  }

  .summary-card > dl {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .summary-card > .button,
  .summary-card > .summary-footnote {
    grid-column: 1 / -1;
  }

  .detail-side {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .storage-overview {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}

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

  .login-brand {
    min-height: 430px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .login-brand__copy h1 {
    font-size: clamp(4rem, 15vw, 7rem);
  }

  .login-watermark {
    right: -25vw;
    bottom: -48vw;
    width: 95vw;
  }

  .login-panel {
    min-height: 650px;
  }

  .admin-sidebar {
    transform: translateX(-102%);
    transition: transform 190ms ease;
  }

  .admin-layout[data-nav-open] .admin-sidebar {
    transform: translateX(0);
  }

  .admin-stage {
    margin-left: 0;
  }

  .mobile-admin-header {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
    background: #0b0c0f;
  }

  .brand--compact {
    gap: 10px;
  }

  .brand--compact img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .brand--compact span {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .icon-button {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #0d0f12;
  }

  .icon-button > span:not(.sr-only) {
    width: 16px;
    height: 1px;
    background: var(--text-soft);
  }

  .nav-backdrop {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, 0.66);
    opacity: 0;
    pointer-events: none;
    transition: opacity 190ms ease;
  }

  .admin-layout[data-nav-open] .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .preview-banner {
    min-height: 30px;
  }

  .admin-main {
    padding-top: 38px;
  }

  .table-surface > .surface-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-tools,
  .search-field {
    width: 100%;
  }

  .detail-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storage-overview {
    grid-template-columns: 1fr;
  }

  .cleanup-advice {
    border-top: 1px solid rgba(239, 189, 98, 0.15);
    border-left: 0;
  }

  .danger-zone {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .button {
    min-height: 46px;
  }

  .login-brand {
    min-height: 360px;
    padding: 34px 26px;
  }

  .login-wordmark {
    width: 230px;
  }

  .login-brand__copy p {
    max-width: 430px;
    font-size: 0.9rem;
  }

  .login-panel {
    min-height: 620px;
    padding: 50px 24px 30px;
  }

  .admin-main {
    padding: 34px 17px 60px;
  }

  .preview-banner {
    padding: 7px 15px;
    text-align: center;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 28px;
  }

  .page-header > .button {
    width: 100%;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .metric-card {
    min-height: 135px;
    padding: 18px;
  }

  .metric-card > strong {
    font-size: 1.35rem;
  }

  .storage-main,
  .cleanup-advice {
    padding: 20px 18px;
  }

  .storage-numbers {
    grid-template-columns: 1fr;
  }

  .storage-numbers > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .storage-numbers > div:last-child {
    border-bottom: 0;
  }

  .storage-numbers strong {
    margin-bottom: 0;
    font-size: 1.05rem;
  }

  .storage-numbers span {
    max-width: 145px;
    text-align: right;
  }

  .table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .table-tools select {
    width: 100%;
  }

  .responsive-table {
    overflow: visible;
    padding: 0 13px 13px;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tbody tr {
    margin-top: 12px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #0d0f12;
  }

  td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 0;
    border: 0;
    white-space: normal;
  }

  td:not(:first-child)::before {
    color: #5f6369;
    content: attr(data-label);
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .share-identity {
    min-width: 0;
  }

  .share-identity strong {
    max-width: 240px;
    white-space: normal;
  }

  .table-action {
    display: none;
  }

  .form-section {
    padding: 26px 18px;
  }

  .section-number {
    position: static;
    margin-bottom: 15px;
  }

  .type-selector,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: auto;
  }

  .password-generator-control {
    grid-template-columns: 1fr 1fr;
  }

  .password-generator-control input {
    grid-column: 1 / -1;
  }

  .password-reveal,
  .password-generate {
    width: 100%;
  }

  .password-generator-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .retention-fields {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .summary-card {
    display: block;
  }

  .page-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .page-actions .button:first-child {
    grid-column: 1 / -1;
  }

  .page-actions form,
  .page-actions form .button {
    width: 100%;
  }

  .admin-upload-form {
    align-items: stretch;
    flex-direction: column;
  }

  .one-time-link {
    grid-template-columns: 1fr;
  }

  .one-time-link .button,
  .published-actions .button {
    width: 100%;
  }

  .published-actions {
    flex-direction: column;
  }

  .title-with-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .secure-link {
    grid-template-columns: auto 1fr;
  }

  .secure-link .button {
    grid-column: 1 / -1;
  }

  .activity-row {
    grid-template-columns: auto 72px minmax(0, 1fr);
  }

  .activity-size,
  .activity-row code {
    display: none;
  }

  .detail-side {
    grid-template-columns: 1fr;
  }

  .danger-zone {
    grid-column: auto;
  }

  .client-header {
    width: calc(100% - 34px);
    min-height: 86px;
  }

  .client-brand {
    gap: 11px;
  }

  .client-brand img {
    width: 128px;
  }

  .client-brand span {
    padding-left: 11px;
    font-size: 0.56rem;
    letter-spacing: 0.16em;
  }

  .secure-connection {
    font-size: 0;
  }

  .client-main {
    width: calc(100% - 28px);
    padding: 58px 0 65px;
  }

  .client-hero {
    margin-bottom: 30px;
  }

  .client-hero h1,
  .client-gate h1 {
    font-size: clamp(2.45rem, 12vw, 3.8rem);
  }

  .transfer-card__header {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .client-file-list {
    padding: 0 18px;
  }

  .client-file {
    gap: 11px;
  }

  .client-file__copy strong {
    max-width: 52vw;
  }

  .drop-zone {
    min-height: 235px;
  }

  .upload-queue {
    padding: 0 16px;
  }

  .upload-item {
    gap: 10px;
  }

  .upload-item__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .upload-item__meta strong {
    max-width: 57vw;
  }

  .upload-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .client-footer {
    width: calc(100% - 34px);
    min-height: 105px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
  }

  .client-footer strong {
    order: -1;
  }

  .client-footer span:last-child {
    display: none;
  }

  .client-watermark {
    right: -45vw;
    bottom: -15vw;
    width: 110vw;
    height: 110vw;
  }
}

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