:root {
  --bg: #07090d;
  --bg-2: #0b0f15;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #e9eef4;
  --text-dim: #9aa7b4;
  --muted: #5d6b79;
  --accent: #34d3a6;
  --accent-strong: #3ee7b4;
  --accent-soft: rgba(52, 211, 166, 0.12);
  --accent-glow: rgba(52, 211, 166, 0.4);
  --violet: #8b7cf6;
  --amber: #f5b75e;
  --blue: #6aa9ff;
  --green: #5ad48a;
  --cyan: #57c7e0;
  --orange: #f09a4a;
  --red: #ff5c6c;
  --radius: 16px;
  --radius-sm: 11px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.65);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(52, 211, 166, 0.28);
}

a {
  color: var(--accent);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

.accent {
  color: var(--accent-strong);
}

/* ------------------------------ background ------------------------------ */

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% -10%, #0e1720 0%, var(--bg) 55%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.bg-glow--a {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(52, 211, 166, 0.16), transparent 65%);
}

.bg-glow--b {
  width: 620px;
  height: 620px;
  bottom: -260px;
  right: -160px;
  background: radial-gradient(circle, rgba(139, 124, 246, 0.14), transparent 65%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(75% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ------------------------------ glass ------------------------------ */

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

/* ------------------------------ topbar ------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0;
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(62, 231, 180, 0.16), rgba(35, 168, 136, 0.08)),
    var(--surface-2);
  border: 1px solid rgba(52, 211, 166, 0.35);
  position: relative;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 5px;
  border: 1.5px solid rgba(52, 211, 166, 0.75);
  border-top-color: transparent;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 8px var(--accent-glow);
}

.brand-name {
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(52, 211, 166, 0.25);
  padding: 3px 7px;
  border-radius: 6px;
}

.storage-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 999px;
}

.storage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(90, 212, 138, 0.7);
}

.storage-pill--warn .storage-dot {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(245, 183, 94, 0.7);
}

.storage-pill--full .storage-dot {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 92, 108, 0.7);
}

.storage-pill--off .storage-dot {
  background: var(--muted);
  box-shadow: none;
}

/* ------------------------------ layout ------------------------------ */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 56px) clamp(16px, 4vw, 40px) 64px;
}

.view {
  animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------ hero ------------------------------ */

.hero {
  text-align: center;
  margin: clamp(12px, 3vh, 34px) 0 clamp(28px, 4vh, 44px);
}

.hero-title {
  font-size: clamp(30px, 5.4vw, 46px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-sub {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--text-dim);
  font-size: 15.5px;
}

/* ------------------------------ dropzone ------------------------------ */

.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(28px, 6vh, 52px) 20px;
  text-align: center;
  outline: none;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.dropzone:hover {
  border-color: rgba(52, 211, 166, 0.45);
}

.dropzone:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.dropzone--over {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.01);
  box-shadow: 0 0 0 5px var(--accent-soft), 0 0 60px -10px var(--accent-glow);
}

.dropzone-icon {
  display: inline-block;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(52, 211, 166, 0.3);
  position: relative;
  margin-bottom: 18px;
}

.dropzone-icon::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 6px;
  border: 2px solid var(--accent);
}

.dropzone-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 2px;
  height: 16px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 -5px 0 var(--accent);
}

.dropzone--over .dropzone-icon {
  animation: bounce 0.7s ease infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.dropzone-title {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.dropzone-sub {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 14px;
}

.dropzone .link {
  color: var(--accent);
  font-weight: 600;
}

/* ------------------------------ expiry bar ------------------------------ */

.expiry-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 clamp(30px, 4vh, 46px);
  padding: 13px 18px;
  border-radius: var(--radius-sm);
}

.expiry-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.chip--on {
  color: var(--accent-strong);
  border-color: rgba(52, 211, 166, 0.4);
  background: var(--accent-soft);
}

.expiry-note {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}

/* ------------------------------ queue ------------------------------ */

.queue-wrap {
  margin-top: 8px;
}

.queue-empty {
  animation: fadeUp 0.5s ease both;
}

.empty-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.empty-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  transition: transform 0.25s, border-color 0.25s;
}

.empty-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.empty-card h3 {
  font-size: 15px;
  font-weight: 650;
  margin: 12px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.empty-card p {
  font-size: 13.5px;
  color: var(--text-dim);
}

.empty-icon {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
}

.empty-icon--lock::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  width: 12px;
  height: 9px;
  margin-left: -6px;
  border: 2px solid var(--accent);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
}

.empty-icon--lock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  width: 16px;
  height: 11px;
  margin-left: -8px;
  border-radius: 3px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}

.empty-icon--drop::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: var(--violet);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.empty-icon--link::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  width: 12px;
  height: 8px;
  border: 2px solid var(--cyan);
  border-radius: 4px;
  transform: rotate(20deg);
}

.queue-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.queue-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  animation: fadeUp 0.35s ease both;
  transition: border-color 0.25s, opacity 0.25s, transform 0.25s;
}

.queue-item[data-status="done"] {
  border-color: rgba(90, 212, 138, 0.3);
}

.queue-item[data-status="error"] {
  border-color: rgba(255, 92, 108, 0.35);
}

.queue-item[data-status="cancelled"] {
  opacity: 0.55;
}

.q-ext {
  grid-row: 1 / 3;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.q-name {
  font-weight: 620;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(52vw, 460px);
}

.q-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.q-side {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.q-status {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
}

.queue-item[data-status="done"] .q-status {
  color: var(--green);
}

.queue-item[data-status="error"] .q-status {
  color: var(--red);
}

.queue-item[data-status="waiting"] .q-status {
  color: var(--amber);
}

.q-track {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.q-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.q-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1ea07f, var(--accent-strong));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.3s ease;
  position: relative;
}

.q-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.6s ease infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.q-detail {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

/* ------------------------------ icon buttons ------------------------------ */

.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.icon-btn:active {
  transform: scale(0.94);
}

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

/* ------------------------------ buttons ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(135deg, #2bc799, #20a887);
  color: #05231b;
  box-shadow: 0 8px 24px -10px rgba(52, 211, 166, 0.55);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #35d6a6, #24b592);
  box-shadow: 0 10px 30px -10px rgba(52, 211, 166, 0.7);
}

.btn--primary:disabled {
  opacity: 0.55;
  cursor: wait;
  box-shadow: none;
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-dim);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

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

.btn-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
}

/* ------------------------------ share view ------------------------------ */

.share-card {
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  animation: fadeUp 0.45s ease both;
}

.share-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--text-dim);
}

.share-error {
  text-align: center;
  padding: 50px 20px;
}

.share-error h2 {
  margin-top: 16px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.share-error p {
  color: var(--text-dim);
  margin: 8px auto 24px;
  max-width: 420px;
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--surface-2);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

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

.share-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ext-badge {
  min-width: 62px;
  height: 62px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.share-filename {
  font-size: clamp(20px, 3.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.share-facts {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.share-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.share-chips .chip {
  padding: 7px 13px;
  color: var(--text-dim);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 8px var(--accent-glow);
}

.share-lock {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  margin-bottom: 20px;
}

.share-lock h3 {
  font-size: 15.5px;
  font-weight: 650;
  margin-bottom: 6px;
}

.share-lock p {
  color: var(--text-dim);
  font-size: 13.5px;
}

.lock-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(52, 211, 166, 0.3);
  position: relative;
}

.lock-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  width: 13px;
  height: 10px;
  margin-left: -6.5px;
  border: 2px solid var(--accent);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

.lock-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 15px;
  width: 19px;
  height: 13px;
  margin-left: -9.5px;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}

.decrypt-label {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.share-progress {
  margin-bottom: 20px;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* ------------------------------ previews ------------------------------ */

.preview {
  margin-top: 6px;
}

.preview-inner {
  background: #05070a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.preview-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.03) 0% 25%, transparent 0% 50%) 50% / 22px 22px;
  padding: 14px;
}

.preview-media img {
  max-width: 100%;
  max-height: 66vh;
  border-radius: 8px;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.8);
}

.preview-video {
  width: 100%;
  max-height: 68vh;
  display: block;
}

.preview-audio {
  width: 100%;
}

.preview-pdf {
  width: 100%;
  height: 72vh;
  border: none;
  background: #20232a;
}

.preview .code {
  padding: 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  max-height: 64vh;
  overflow-y: auto;
  counter-reset: line;
}

.code-line {
  white-space: pre;
  min-height: 1.5em;
}

.tok-key { color: var(--violet); }
.tok-str { color: var(--green); }
.tok-num { color: var(--amber); }
.tok-bool { color: var(--cyan); }
.tok-null { color: var(--muted); font-style: italic; }

.preview-table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--mono);
  font-size: 12px;
  max-height: 64vh;
  overflow: auto;
  display: block;
}

.preview-table th,
.preview-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  text-align: left;
}

.preview-table th {
  position: sticky;
  top: 0;
  background: #10151d;
  font-weight: 650;
  color: var(--text-dim);
  z-index: 1;
}

.preview-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.preview-note {
  padding: 12px 18px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.generic-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  color: var(--text-dim);
  font-size: 13.5px;
  text-align: center;
}

/* ------------------------------ kind colors ------------------------------ */

.kind--teal { color: #4fdcc0; border-color: rgba(79, 220, 192, 0.35); background: rgba(79, 220, 192, 0.08); }
.kind--violet { color: #a99dff; border-color: rgba(169, 157, 255, 0.35); background: rgba(169, 157, 255, 0.08); }
.kind--amber { color: #f5c268; border-color: rgba(245, 194, 104, 0.35); background: rgba(245, 194, 104, 0.08); }
.kind--blue { color: #8ab8ff; border-color: rgba(138, 184, 255, 0.35); background: rgba(138, 184, 255, 0.08); }
.kind--green { color: #6fdc9b; border-color: rgba(111, 220, 155, 0.35); background: rgba(111, 220, 155, 0.08); }
.kind--cyan { color: #6fd0e8; border-color: rgba(111, 208, 232, 0.35); background: rgba(111, 208, 232, 0.08); }
.kind--orange { color: #f5ab61; border-color: rgba(245, 171, 97, 0.35); background: rgba(245, 171, 97, 0.08); }
.kind--gray { color: #a7b0ba; border-color: rgba(167, 176, 186, 0.3); background: rgba(167, 176, 186, 0.07); }

/* ------------------------------ footer ------------------------------ */

.footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 48px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

.link-inline {
  background: none;
  border: none;
  color: var(--accent);
  font-size: inherit;
  padding: 0;
}

.about-note {
  margin: 14px auto 0;
  max-width: 560px;
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 12.5px;
  animation: fadeUp 0.3s ease;
}

/* ------------------------------ toasts ------------------------------ */

.toasts {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
  max-width: min(92vw, 360px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(15, 20, 27, 0.92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.7);
  font-size: 13.5px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast--in {
  opacity: 1;
  transform: none;
}

.toast-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.toast--success .toast-icon { background: var(--green); box-shadow: 0 0 10px rgba(90, 212, 138, 0.8); }
.toast--error .toast-icon { background: var(--red); box-shadow: 0 0 10px rgba(255, 92, 108, 0.8); }
.toast--info .toast-icon { background: var(--blue); box-shadow: 0 0 10px rgba(106, 169, 255, 0.8); }

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 640px) {
  .q-track {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .q-detail {
    text-align: left;
  }
  .q-side {
    gap: 6px;
  }
  .q-name {
    max-width: 46vw;
  }
  .expiry-note {
    display: none;
  }
  .share-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .share-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .toasts {
    left: 16px;
    right: 16px;
  }
}

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