/* Theming: Standard Dark, optional Hell */
html[data-theme="dark"] {
  --page-bg: #0f1114;
  --panel: #1a1d23;
  --panel-border: #2d3544;
  --text: #e8eaed;
  --text-dim: #b4bac4;
  --text-mute: #8b919d;
  --header-bg: #0a0b0d;
  --header-border: #000000;
  --orange: #ff7a1a;
  --orange-hover: #ff9338;
  --orange-dim: #cc5a00;
  --link: #6ec5ff;
  --dashed: #4a5568;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Nimbus Sans L", sans-serif;
  --upload-zone-bg: #12161c;
  --upload-zone-hover: #1a222d;
  --form-block-bg: #13161d;
  --form-block-top: #2a3140;
  --form-label: #c8cdd6;
  --input-bg: #0d1016;
  --input-border: #3d4658;
  --icon-stroke: #9aa3b2;
  --msg-ok-bg: #0f2318;
  --msg-ok-border: #1f6b3a;
  --msg-ok-text: #8bd9a8;
  --msg-err-bg: #2a1518;
  --msg-err-border: #8b3a45;
  --msg-err-text: #f5b8c0;
  --footer-border: #2a3140;
  --footer-link: #9aa3b2;
  --nav-sep: #444950;
  --site-logo-accent: #9bdcff;
}

html[data-theme="light"] {
  --page-bg: #d9d9d9;
  --panel: #ffffff;
  --panel-border: #b8b8b8;
  --text: #333333;
  --text-dim: #666666;
  --text-mute: #888888;
  --header-bg: #2a2a2a;
  --header-border: #1a1a1a;
  --orange: #ff6a00;
  --orange-hover: #e55f00;
  --orange-dim: #cc5500;
  --link: #0a5f9a;
  --dashed: #a8a8a8;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Nimbus Sans L", sans-serif;
  --upload-zone-bg: #fafafa;
  --upload-zone-hover: #fff8f2;
  --form-block-bg: #fbfbfb;
  --form-block-top: #e5e5e5;
  --form-label: #444444;
  --input-bg: #ffffff;
  --input-border: #adadad;
  --icon-stroke: #777777;
  --msg-ok-bg: #eefaf1;
  --msg-ok-border: #b8dcc4;
  --msg-ok-text: #1d5c36;
  --msg-err-bg: #fff5f5;
  --msg-err-border: #e0a8a8;
  --msg-err-text: #8b1a1a;
  --footer-border: #c4c4c4;
  --footer-link: #555555;
  --nav-sep: #555555;
  --site-logo-accent: #ffb566;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--page-bg);
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.site-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-logo {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: -0.5px;
  text-decoration: none !important;
  white-space: nowrap;
}

.site-logo:hover {
  text-decoration: none !important;
}

.site-logo-w {
  color: #ffffff;
}

.site-logo-u {
  color: var(--site-logo-accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  font-size: 13px;
}

.site-nav a {
  color: #cccccc;
}

.site-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-nav span.sep {
  color: var(--nav-sep);
  user-select: none;
}

.btn-theme {
  padding: 5px 10px;
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  border-radius: 2px;
  border: 1px solid #555;
  background: #333;
  color: #eee;
}

.btn-theme:hover {
  background: #444;
}

html[data-theme="light"] .btn-theme {
  border-color: #888;
  background: #e8e8e8;
  color: #222;
}

.layout-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
  gap: 20px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.layout-home-main {
  min-width: 0;
}

.mascot-column {
  position: relative;
}

.mascot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

html[data-theme="dark"] .mascot-img {
  filter: drop-shadow(0 6px 16px rgba(110, 197, 255, 0.15));
}

html[data-theme="light"] .mascot-img {
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.12));
}

@media (max-width: 820px) {
  .layout-home {
    grid-template-columns: 1fr;
  }
  .mascot-column {
    max-width: 200px;
    margin: 0 auto;
    order: -1;
  }
}

.mascot-float {
  position: fixed;
  bottom: 12px;
  right: 12px;
  max-height: min(42vh, 220px);
  width: auto;
  z-index: 20;
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

@media (max-width: 560px) {
  .mascot-float {
    max-height: 140px;
    opacity: 0.85;
  }
}

.site-main-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 12px;
}

.page-headline {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: normal;
  color: var(--text);
  text-align: center;
  letter-spacing: 0;
}

.page-lead {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
}

.upload-panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.upload-zone {
  margin: 18px;
  padding: 48px 16px 44px;
  text-align: center;
  border: 2px dashed var(--dashed);
  border-radius: 2px;
  background: var(--upload-zone-bg);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.upload-zone:hover,
.upload-zone.is-drag {
  border-color: var(--orange);
  background: var(--upload-zone-hover);
}

.upload-zone-icon {
  margin: 0 auto 16px;
  width: 48px;
  height: 48px;
  opacity: 0.75;
}

.upload-zone-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--icon-stroke);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-zone-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: bold;
  color: var(--text);
}

.upload-zone-hint {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-mute);
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 9px 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: bold;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
}

.btn-orange {
  color: #fff !important;
  background: linear-gradient(
    to bottom,
    #ff8c2e 0%,
    var(--orange) 35%,
    var(--orange-dim) 100%
  );
  border-color: #cc5200;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.btn-orange:hover {
  background: linear-gradient(
    to bottom,
    #ffa042 0%,
    var(--orange-hover) 40%,
    #cc5200 100%
  );
}

.btn-orange:active {
  position: relative;
  top: 1px;
}

.btn-theme {
  border-radius: 12px;
}

.file-label {
  font-size: 13px;
  color: var(--text-mute);
}

.form-block {
  padding: 0 18px 18px;
  border-top: 1px solid var(--form-block-top);
  background: var(--form-block-bg);
}

.form-row {
  margin-top: 12px;
}

.form-row label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: var(--form-label);
  margin-bottom: 5px;
}

.form-row input,
.form-row select {
  width: 100%;
  max-width: 420px;
  padding: 8px 10px;
  font-family: var(--font);
  font-size: 13px;
  border: 1px solid var(--input-border);
  border-radius: 2px;
  background: var(--input-bg);
  color: var(--text);
}

.form-row textarea {
  width: 100%;
  max-width: 100%;
  min-height: 180px;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  border: 1px solid var(--input-border);
  border-radius: 2px;
  background: var(--input-bg);
  color: var(--text);
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #6e9ecf;
  box-shadow: 0 0 0 1px rgba(110, 158, 207, 0.35);
}

.field-hint {
  margin: 8px 0 0;
  max-width: 420px;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 420px;
}

.time-grid > div > label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  color: var(--form-label);
  margin-bottom: 4px;
}

.time-grid input {
  width: 100%;
  max-width: none;
}

@media (max-width: 560px) {
  .time-grid {
    grid-template-columns: 1fr;
  }
}

.form-submit {
  padding: 14px 18px 18px;
}

.msg-box {
  margin: 12px 18px 18px;
  padding: 11px 12px;
  font-size: 13px;
  border: 1px solid var(--msg-ok-border);
  background: var(--msg-ok-bg);
  color: var(--msg-ok-text);
  word-break: break-all;
}

.msg-box.err {
  border-color: var(--msg-err-border);
  background: var(--msg-err-bg);
  color: var(--msg-err-text);
}

.msg-box a {
  color: inherit;
  text-decoration: underline;
}

.file-view {
  padding: 28px 22px 32px;
  text-align: center;
}

.file-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: bold;
  word-break: break-word;
  color: var(--text);
}

.file-meta {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--text-dim);
}

.file-burn-hint {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.4;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

.meta-chip-accent {
  border-color: rgba(110, 197, 255, 0.22);
}

.meta-chip-warn {
  border-color: rgba(255, 107, 157, 0.22);
}

.dl-card {
  padding: 22px;
  text-align: left;
  max-width: 720px;
  margin: 26px auto 0;
}

.dl-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.2px;
  word-break: break-word;
}

.dl-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dl-sub {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 13px;
}

.dl-hint {
  margin-top: 10px;
  color: var(--text-mute);
  font-size: 12px;
  line-height: 1.45;
}

.dl-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

.dl-state.center-panel {
  border-radius: 18px;
}

/* Completely different download page layout */
.dl-shell {
  max-width: 920px;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 16px;
}

.dl-pane {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.dl-pane-info {
  padding: 22px;
}

.dl-pane-action {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.dl-fileicon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(110, 197, 255, 0.10);
  border: 1px solid rgba(110, 197, 255, 0.18);
}

.dl-fileicon svg {
  width: 24px;
  height: 24px;
  stroke: rgba(255, 255, 255, 0.85);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dl-name {
  margin: 14px 0 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.2px;
  word-break: break-word;
}

.dl-meta {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dl-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.dl-meta-k {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.dl-meta-v {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 12px;
  text-align: right;
}

.dl-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.5;
}

.dl-action-title {
  font-size: 14px;
  font-weight: 800;
}

.dl-action-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  margin-top: -4px;
}

.dl-bigbtn {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.10),
    rgba(255, 255, 255, 0.04)
  );
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none !important;
  font-weight: 800;
}

.dl-bigbtn:hover {
  background: #fff;
  color: #000;
}

.dl-bigbtn-ico svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dl-action-foot {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.dl-rawlink {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}

/* Screenshot-inspired download page style */
.wu-page {
  min-height: 100vh;
  background: #030a14;
}

.wu-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.wu-topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 14px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wu-logo-main {
  color: #1ea3ff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.wu-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wu-nav a {
  color: #cad5e5;
  font-size: 13px;
}

.wu-main {
  max-width: 560px;
  margin: 40px auto 0;
  padding: 0 12px 36px;
  display: grid;
  gap: 10px;
}

.wu-panel {
  border-radius: 3px;
  border: 1px solid #182638;
  background: #0a121d;
  padding: 18px 18px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

.wu-file-head {
  margin: 0;
  color: #49a5ff;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.2px;
  word-break: break-word;
}

.wu-file-size {
  color: #49a5ff;
}

.wu-subline {
  margin: 8px 0 0;
  color: #e2e9f2;
  font-size: 13px;
}

.wu-btn-row {
  margin: 14px 0 0;
}

.wu-download-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 2px;
  border: 1px solid #146fbc;
  background: linear-gradient(to bottom, #2b99f4, #1477c9);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
}

.wu-download-btn:hover {
  filter: brightness(1.08);
}

.wu-details p {
  margin: 8px 0;
  color: #d4deeb;
  font-size: 13px;
  line-height: 1.42;
}

.wu-checksum {
  color: #f0f4fb;
  word-break: break-all;
}

.wu-note {
  color: #ffd8e7 !important;
}

@media (max-width: 820px) {
  .dl-shell {
    grid-template-columns: 1fr;
  }
}

.btn-download svg {
  vertical-align: middle;
  margin-right: 8px;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.center-panel {
  max-width: 560px;
  margin: 32px auto;
  padding: 28px 22px;
}

.simple-msg {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

.site-main-center {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

.hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-mute);
  border-top: 1px solid var(--footer-border);
}

.site-footer-links {
  margin-bottom: 8px;
}

.site-footer-links a {
  color: var(--footer-link);
}

.footer-credit {
  margin-top: 10px;
  font-style: italic;
  color: var(--text-dim);
  font-size: 12px;
}

.footer-credit .heart {
  color: #ff6b9d;
}

/* Landing page (monochrome black/white) */
.landing-page {
  background: radial-gradient(
      circle at 20% 10%,
      rgba(255, 255, 255, 0.08),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(110, 197, 255, 0.08),
      transparent 40%
    ),
    #000 !important;
  color: #fff !important;
}

.status-page {
  background: #000 !important;
  color: #fff !important;
  min-height: 100vh;
}

/* Apple-ish general panels */
.status-page,
.status-main,
.status-hero,
.status-card,
.status-list,
.landing-card {
  font-family: var(--font);
}

.status-main {
  padding: 20px 0 26px;
  max-width: 980px;
  margin: 0 auto;
}

.status-header {
  background: transparent;
  border-bottom: 0;
}

.status-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin: 18px 0 18px;
}

.status-kicker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.status-title,
.landing-title {
  letter-spacing: -0.5px;
}

.status-title {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
}

.status-subtitle {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  max-width: 560px;
}

.status-meta {
  display: grid;
  gap: 10px;
  min-width: 240px;
}

.status-meta-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.status-meta-value {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0 16px;
}

.status-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  padding: 16px;
}

.status-card-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.status-card-value {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 800;
}

.status-card-sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.status-section {
  margin-top: 16px;
}

.status-section-title {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-row {
  display: grid;
  grid-template-columns: 120px 70px 1fr 160px;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none !important;
}

.status-row-kind {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.status-row-title {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-row-ip,
.status-row-when {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.status-footer.status-footer {
  background: transparent;
}

@media (max-width: 740px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
}

.landing-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 16px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 36px;
  align-items: center;
}

.landing-hero-text {
  min-width: 0;
}

.landing-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  padding: 22px;
}

.landing-kicker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.landing-title {
  margin: 0;
  font-size: 54px;
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -1px;
}

.landing-subtitle {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  max-width: 520px;
}

.landing-blurb {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 520px;
}

.landing-cta {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  text-decoration: none !important;
}

.landing-btn:hover {
  background: #fff;
  color: #000;
}

.landing-btn-ghost {
  background: transparent;
}

.landing-benefits {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.landing-benefits li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.landing-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  opacity: 0.75;
}

.landing-hero-art {
  display: flex;
  justify-content: flex-end;
}

.landing-mascot {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 12px;
  filter: none;
  opacity: 1;
}

.landing-footer.site-footer {
  background: #000 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

.landing-footer .site-footer-links a {
  color: rgba(255, 255, 255, 0.7) !important;
}

.landing-footer .footer-credit,
.landing-footer .heart {
  color: rgba(255, 255, 255, 0.85) !important;
}

@media (max-width: 820px) {
  .landing-hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
    gap: 22px;
  }
  .landing-hero-art {
    justify-content: center;
  }
  .landing-mascot {
    max-width: 320px;
  }
  .landing-title {
    font-size: 40px;
  }
}

/* Admin panel */
.admin-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

.admin-top-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-data-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  align-items: start;
}

.admin-history-wrap {
  max-width: 980px;
  margin: 0;
  padding: 0;
}

.admin-history-panel {
  padding: 0;
}

.admin-history-panel .upload-panel {
  box-shadow: none;
}

.admin-history-head {
  padding: 18px 18px 0;
}

.admin-history-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px 10px;
}

.admin-history-page {
  color: var(--text-dim);
  font-size: 12px;
  min-width: 90px;
  text-align: center;
}

.admin-history-list {
  list-style: none;
  margin: 0;
  padding: 0 12px 12px;
  display: grid;
  gap: 10px;
}

.admin-hitem {
  margin: 0;
}

.admin-hitem-empty {
  color: var(--text-dim);
  font-size: 13px;
  padding: 10px 8px;
}

.admin-hlink {
  display: grid;
  grid-template-columns: 68px 1fr 120px 140px;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none !important;
  color: var(--text);
}

.admin-hlink:hover {
  background: rgba(255, 255, 255, 0.05);
}

.admin-htag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.admin-hname {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-hip,
.admin-hwhen {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-align: right;
  white-space: nowrap;
}

.admin-hua {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .admin-hlink {
    grid-template-columns: 72px 1fr;
  }
  .admin-hip,
  .admin-hwhen {
    text-align: left;
  }
  .admin-hua {
    grid-column: 1 / -1;
  }
}

.admin-history-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.admin-history-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.admin-toolbar-panel {
  margin-bottom: 16px;
}

.admin-toolbar {
  padding: 18px;
}

.admin-token-row input {
  width: 100%;
  max-width: none;
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.admin-check {
  font-size: 13px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.admin-check input {
  margin: 0;
}

.admin-msg {
  margin: 0 18px 18px;
  padding: 11px 12px;
  font-size: 13px;
  border: 1px solid var(--msg-ok-border);
  background: var(--msg-ok-bg);
  color: var(--msg-ok-text);
}

.admin-msg.err {
  border-color: var(--msg-err-border);
  background: var(--msg-err-bg);
  color: var(--msg-err-text);
}

.admin-table-panel {
  padding: 0;
  overflow: hidden;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--panel-border);
  vertical-align: top;
}

.admin-history-panel .admin-table {
  font-size: 13px;
}

.admin-history-panel .admin-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.admin-table th {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.admin-table th {
  font-weight: bold;
  color: var(--form-label);
  background: var(--form-block-bg);
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: rgba(110, 197, 255, 0.06);
}

.admin-table .row-muted {
  opacity: 0.55;
}

.admin-table .td-name {
  max-width: 220px;
  word-break: break-word;
}

.admin-table .td-actions {
  white-space: nowrap;
}

.btn-admin-del {
  padding: 6px 10px;
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--msg-err-border);
  background: var(--msg-err-bg);
  color: var(--msg-err-text);
}

.btn-admin-del:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-admin-del:disabled {
  opacity: 0.6;
  cursor: default;
}

.paste-panel {
  margin-top: 16px;
}

.paste-view {
  padding: 22px;
}

.paste-pre {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
  padding: 12px;
  border-radius: 14px;
  overflow: auto;
  max-height: 65vh;
  text-align: left;
}

/* If Prism is used, keep code font/editor feel */
.paste-pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
}
