/* SIHAN / NIGHT ARCHIVE */

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

:root {
  --bg: #080b10;
  --surface: #0e141c;
  --surface-2: #151d27;
  --ink: #f1efe9;
  --ink-2: #dad8d2;
  --muted: #a7a9ae;
  --line: rgba(241, 239, 233, 0.14);
  --line-strong: rgba(241, 239, 233, 0.28);
  --lime: #9fd3e3;
  --pink: #f2ccd8;
  --stone: #9aa9a4;
  --cream: #e9e6de;
  --black: #080b10;
  --display: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", "Liberation Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(22px, 5vw, 76px);
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  background:
    radial-gradient(70vw 52vw at 92% -12%, rgba(159, 211, 227, 0.11), transparent 62%),
    radial-gradient(55vw 45vw at 8% 42%, rgba(242, 204, 216, 0.05), transparent 72%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(243, 240, 231, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 231, 0.06) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.5px, transparent 0.6px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--lime); color: var(--black); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 13, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
}

.brand-mark {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--lime);
  box-shadow: 0 0 22px rgba(159, 211, 227, 0.42);
}

.brand-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.brand-slash { color: var(--muted); }
.brand-sub { color: var(--ink-2); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
  font-size: 13px;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.24s var(--ease);
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a.nav-agent { color: var(--lime); }

.admin-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(159, 211, 227, 0.05);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-strip::-webkit-scrollbar { display: none; }
.admin-strip a { color: var(--ink-2); white-space: nowrap; }
.admin-strip a:hover { color: var(--lime); }
.admin-strip-label { color: var(--lime); }

.header-clock {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-left: 10px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

.header-clock b {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(290px, 0.84fr);
  gap: clamp(36px, 7vw, 108px);
  align-items: end;
  min-height: calc(100svh - 72px);
  padding: clamp(64px, 9vw, 126px) 0 clamp(62px, 7vw, 92px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
}

.signal-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(159, 211, 227, 0.55);
}

.hero h1 {
  margin: 25px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(5.2rem, 13vw, 10.5rem);
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.075em;
  word-break: break-word;
}

.title-dot { color: var(--lime); }

.hero-tagline {
  max-width: 32em;
  margin: 34px 0 0;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.hero-intro {
  max-width: 35em;
  margin: 15px 0 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.button:hover { transform: translateY(-2px); }
.button--lime { border-color: var(--lime); background: var(--lime); color: var(--black); }
.button--lime:hover { background: #c3e6f0; border-color: #c3e6f0; }
.button--dark { border-color: var(--black); background: var(--black); color: var(--ink); }
.button--dark:hover { background: #101822; border-color: #101822; }

.text-link {
  color: var(--ink-2);
  font-size: 13px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

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

.index-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 354px;
  padding: clamp(24px, 3vw, 32px);
  overflow: hidden;
  background: var(--lime);
  color: var(--black);
  transform: rotate(1.2deg);
  box-shadow: 14px 14px 0 rgba(159, 211, 227, 0.08);
}

.index-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(11, 15, 13, 0.24);
  border-radius: 50%;
}

.index-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(11, 15, 13, 0.25);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
}

.index-open {
  padding: 4px 7px;
  background: var(--black);
  color: var(--lime);
  font-size: 10px;
  font-weight: 600;
}

.index-count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 25px 0 0;
}

.index-count strong {
  font-family: var(--display);
  font-size: clamp(4.2rem, 8vw, 6.8rem);
  font-weight: 600;
  line-height: 0.75;
  letter-spacing: -0.08em;
}

.index-count span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.index-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
  padding-top: 15px;
  border-top: 1px solid rgba(11, 15, 13, 0.25);
}

.index-meta div { display: flex; flex-direction: column; gap: 4px; }
.index-meta span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; opacity: 0.7; }
.index-meta b { font-family: var(--mono); font-size: 13px; font-weight: 600; }

.index-note {
  max-width: 230px;
  margin: auto 0 0;
  padding-top: 24px;
  font-size: 13px;
  line-height: 1.8;
}

.index-stamp {
  position: absolute;
  right: 22px;
  bottom: 24px;
  transform: rotate(-8deg);
  color: rgba(11, 15, 13, 0.55);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.13em;
  text-align: right;
}

.ticker {
  position: relative;
  overflow: hidden;
  height: 48px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-2);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  gap: 26px;
  padding-left: 4px;
  animation: marquee 34s linear infinite;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.ticker i {
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.section {
  padding: clamp(76px, 9vw, 126px) 0;
  scroll-margin-top: 88px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-label {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.section-no {
  padding-top: 9px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
}

.section-label h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.section-note,
.live-meta {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.live-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 15px rgba(159, 211, 227, 0.5);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.filelist { border-top: 1px solid var(--line-strong); }

.dirbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.dir-up {
  color: var(--lime);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.dir-up:hover { border-color: var(--lime); }
.dir-root { color: var(--muted); }
.dir-current { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.folder-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.folder-card:hover {
  border-color: var(--lime);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.folder-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--lime);
}

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

.folder-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.folder-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-copy small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.folder-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s, transform 0.2s var(--ease);
}

.folder-card:hover .folder-arrow { color: var(--lime); transform: translate(2px, -2px); }

.filehead,
.filerow {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 92px 92px 108px 84px;
  gap: 18px;
  align-items: center;
}

.filehead {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.filerow {
  position: relative;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s, padding-left 0.22s var(--ease), padding-right 0.22s var(--ease);
}

.filerow::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.22s var(--ease);
}

.filerow:hover {
  padding-right: 12px;
  padding-left: 12px;
  background: var(--surface);
}

.filerow:hover::before { transform: scaleY(1); transform-origin: top; }

.file-no {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-type,
.file-size,
.file-date {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.file-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 78px;
  height: 32px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.download-icon { width: 14px; height: 14px; flex: none; }
.filerow:hover .file-action { border-color: var(--lime); background: var(--lime); color: var(--black); transform: translateY(-1px); }

.empty {
  border: 1px dashed var(--line-strong);
  padding: clamp(48px, 8vw, 80px) 24px;
  text-align: center;
}

.empty-code {
  margin: 0 0 17px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.empty h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.empty p:last-child { margin: 0; color: var(--ink-2); font-size: 14px; }

.server-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 16px;
}

.server-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: clamp(24px, 3.4vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.server-summary::before {
  content: "";
  position: absolute;
  top: 0;
  right: 18%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--lime), transparent);
  opacity: 0.48;
}

.summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.status-pill {
  padding: 5px 9px;
  background: var(--lime);
  color: var(--black);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.status-pill.is-offline {
  background: var(--cream);
  color: var(--black);
}

.summary-label {
  margin: 42px 0 0;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.server-summary h3 {
  max-width: 100%;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.summary-bottom div { display: flex; flex-direction: column; gap: 7px; }
.summary-bottom span,
.summary-kernel {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.summary-bottom b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.summary-kernel { margin: 22px 0 0; }
.summary-kernel b { color: var(--ink-2); font-weight: 500; letter-spacing: 0.03em; }

.summary-number {
  position: absolute;
  right: 28px;
  bottom: 34px;
  color: rgba(243, 240, 231, 0.035);
  font-family: var(--display);
  font-size: clamp(7rem, 12vw, 12rem);
  font-weight: 600;
  line-height: 0.7;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.server-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  min-height: 166px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.metric-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
}

.metric-top b {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
}

.meter {
  height: 4px;
  margin: 22px 0 16px;
  overflow: hidden;
  background: rgba(243, 240, 231, 0.12);
}

.meter i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  transition: width 0.5s var(--ease);
}

.metric-card p {
  margin: auto 0 0;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.metric-card--power {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--black);
}

.metric-card--power .metric-top { color: rgba(11, 15, 13, 0.65); }
.metric-card--power .metric-top b { color: var(--black); }

.battery-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.battery-dial {
  --value: 0%;
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: conic-gradient(var(--black) var(--value), rgba(11, 15, 13, 0.18) 0);
}

.battery-dial::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--cream);
}

.battery-dial b {
  position: relative;
  color: var(--black);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.battery-dial span {
  position: relative;
  margin-top: 3px;
  color: rgba(11, 15, 13, 0.65);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.metric-card--power .power-state {
  margin: 0;
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
}

.metric-card--power .power-detail {
  margin: 6px 0 0;
  color: var(--black);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.server-facts {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-strong);
}

.server-facts div { min-width: 0; }
.server-facts span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
}

.server-facts b {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sleep-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.sleep-note b { color: var(--ink); font-weight: 500; }
.sleep-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

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

.studio-card {
  display: flex;
  flex-direction: column;
  min-height: 265px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s, transform 0.24s var(--ease);
}

a.studio-card:hover {
  border-color: var(--lime);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.studio-card--lime {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--black);
}

a.studio-card--lime:hover { border-color: var(--lime); background: #c3e6f0; }

.studio-card--dark {
  border-color: var(--line-strong);
  background: #070a08;
  color: var(--ink);
}

.studio-card--agent {
  grid-column: span 2;
  min-height: 225px;
  border-color: var(--lime);
  background:
    radial-gradient(500px 180px at 90% -20%, rgba(159, 211, 227, 0.16), transparent 70%),
    var(--surface);
}

.studio-card--agent h3 { margin-top: 27px; font-size: clamp(2.8rem, 5vw, 4.5rem); }

.studio-index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.studio-card--lime .studio-index { color: rgba(11, 15, 13, 0.58); }

.studio-card h3 {
  margin: 36px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.studio-card--lime h3 { color: var(--black); }
.studio-card--dark h3 { color: var(--ink); }
.studio-card--agent .studio-index { color: var(--lime); }

.studio-card p {
  max-width: 32em;
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.75;
}

.studio-card--lime p { color: rgba(11, 15, 13, 0.7); }

.studio-open {
  margin-top: auto;
  padding-top: 22px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.studio-card--lime .studio-open { color: var(--black); }
.studio-card--agent .studio-open { color: var(--lime); }

.studio-card code {
  display: block;
  margin-top: auto;
  padding-top: 22px;
  overflow: hidden;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prank {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(64px, 8vw, 110px);
  padding: clamp(28px, 5vw, 58px);
  background: var(--cream);
  color: var(--black);
}

.prank-no {
  margin: 0;
  color: rgba(11, 15, 13, 0.58);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.prank h2 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.prank p:last-child {
  margin: 22px 0 0;
  color: rgba(11, 15, 13, 0.7);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px var(--pad);
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.site-footer span:nth-child(2) { text-align: center; }
.site-footer span:last-child { text-align: right; }
.footer-status { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 2.4s ease-in-out infinite; }

/* private upload */
.upload-main {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 126px) var(--pad) clamp(80px, 10vw, 140px);
}

.upload-back { margin-left: auto; }

.upload-main h1 {
  margin: 25px 0 0;
  font-family: var(--display);
  font-size: clamp(4.2rem, 10vw, 8rem);
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.075em;
}

.upload-lede {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.9;
}

.upload-alert,
.upload-success {
  max-width: 620px;
  margin-top: 28px;
  padding: 14px 17px;
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
}

.upload-alert { background: var(--cream); }
.upload-success { background: var(--lime); }

.upload-form { max-width: 720px; margin-top: 42px; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 278px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.dropzone:hover,
.dropzone:focus-within {
  border-color: var(--lime);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.dropzone input[type="file"] { display: none; }

.drop-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 25px;
  line-height: 1;
}

.dropzone strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
}

.dropzone span:last-of-type {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 13px;
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.upload-password {
  display: block;
  margin-top: 16px;
}

.upload-password > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.upload-password input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.upload-password input::placeholder { color: var(--muted); }
.upload-password input:focus { border-color: var(--lime); background: var(--surface-2); }

.upload-select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  cursor: pointer;
}

.upload-select:focus { border-color: var(--lime); background: var(--surface-2); }

.upload-note {
  max-width: 620px;
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
}

/* private file manager */
.manage-main {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 94px) var(--pad) clamp(80px, 9vw, 126px);
}

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

.manage-topline .text-link,
.manage-topline .eyebrow { margin-top: 0; }

.manage-main h1 {
  margin: 25px 0 0;
  font-family: var(--display);
  font-size: clamp(3.8rem, 8vw, 6.8rem);
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.075em;
}

.manage-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.manage-count {
  padding-bottom: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.manage-main .upload-lede { margin-top: 24px; }

.manage-login {
  max-width: 520px;
  margin-top: 40px;
}

.manage-login .upload-actions { margin-top: 20px; }

.manage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 32px;
  padding-top: 17px;
  border-top: 1px solid var(--line-strong);
}

.manage-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.manage-breadcrumb .text-link { font-size: 11px; }
.manage-breadcrumb span:not(.text-link) { color: var(--ink-2); }

.manage-create {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.manage-create input[type="text"] {
  width: 190px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  outline: none;
}

.manage-create input[type="text"]:focus { border-color: var(--lime); }
.manage-create .button { min-height: 38px; padding: 0 14px; font-size: 11px; }

.manage-list {
  margin-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.manage-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-height: 66px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.manage-item-name {
  display: flex;
  flex: 1 1 250px;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.manage-kind {
  padding: 3px 5px;
  color: var(--black);
  background: var(--lime);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.manage-item--folder .manage-kind { background: var(--cream); }

.manage-item-name a {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-item-name a:hover { color: var(--lime); }
.manage-item-name small { color: var(--muted); font-family: var(--mono); font-size: 10px; }

.manage-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.manage-name-input {
  width: 140px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 11px;
  outline: none;
}

.manage-name-input:focus { border-color: var(--lime); color: var(--ink); }

.manage-select {
  max-width: 120px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 10px;
}

.manage-btn {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.manage-btn:hover { border-color: var(--lime); background: var(--lime); color: var(--black); }

.manage-btn--danger { border-color: rgba(255, 129, 84, 0.5); color: #ffad91; }
.manage-btn--danger:hover { border-color: var(--cream); background: var(--cream); color: var(--black); }

.manage-confirm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.manage-confirm input { accent-color: var(--lime); }
.manage-delete { flex: 0 0 auto; }
.manage-empty { margin-top: 24px; }

.tasks-main h1 { margin-bottom: 0; }

.task-list {
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
}

.task-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.task-index {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.task-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.task-copy p {
  margin: 5px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.task-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.task-status {
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.task-status.is-on {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--black);
}

.task-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.prank-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 10, 8, 0.97);
}

.prank-overlay[hidden] { display: none; }
.prank-card { width: min(580px, 100%); }

.prank-step {
  margin: 0 0 20px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.prank-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.prank-line {
  height: 3px;
  margin: 32px 0 20px;
  background: var(--line-strong);
}

.prank-line i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  transition: width 0.5s var(--ease);
}

.prank-text {
  margin: 0 0 28px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}

.prank-card .button { min-height: 44px; }

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 44px;
    padding-top: 70px;
  }

  .index-card {
    width: min(520px, 100%);
    min-height: 330px;
    transform: none;
  }

  .server-layout { grid-template-columns: 1fr; }
  .server-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric-card { min-height: 170px; }
  .server-facts { grid-template-columns: 2fr 1.2fr 1fr 1fr; }
  .server-facts div:last-child { grid-column: span 1; }
}

@media (max-width: 800px) {
  .server-metrics { grid-template-columns: 1fr 1fr; }
  .server-facts { grid-template-columns: 1.5fr 1fr 1fr; }
  .server-facts div:nth-child(4) { grid-column: span 1; }
  .server-facts div:last-child { grid-column: span 1; }
  .prank { grid-template-columns: 1fr; align-items: start; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-card--agent { grid-column: auto; }
}

@media (max-width: 680px) {
  :root { --pad: 18px; }
  .site-header { height: 60px; gap: 16px; }
  .brand-sub, .brand-slash, .header-clock { display: none; }
  .brand-name { font-size: 14px; }
  .nav { gap: 20px; }
  .nav a { font-size: 12px; }
  .hero { padding: 52px 0 56px; gap: 38px; }
  .hero h1 { margin-top: 20px; font-size: clamp(4.5rem, 22vw, 7rem); }
  .hero-tagline { margin-top: 26px; font-size: 1.02rem; }
  .hero-intro { font-size: 14px; line-height: 1.85; }
  .hero-actions { gap: 18px; margin-top: 28px; }
  .button { min-height: 44px; padding: 0 17px; font-size: 12px; }
  .index-card { min-height: 300px; padding: 22px; }
  .index-count { margin-top: 22px; }
  .index-count strong { font-size: 4.6rem; }
  .index-note { padding-top: 18px; font-size: 12px; }
  .index-stamp { display: none; }
  .ticker { height: 42px; }
  .section { padding: 64px 0; scroll-margin-top: 70px; }
  .section-head { display: block; margin-bottom: 26px; }
  .section-label { gap: 13px; }
  .section-label h2 { font-size: 3.1rem; }
  .section-note, .live-meta { margin-top: 15px; font-size: 11.5px; }
  .filehead { display: none; }
  .filerow { grid-template-columns: 34px minmax(0, 1fr) 36px; gap: 12px; padding: 18px 0; }
  .file-type, .file-size, .file-date { display: none; }
  .file-name { font-size: 14px; }
  .file-action { width: 32px; height: 32px; gap: 0; padding: 0; }
  .file-action-text { display: none; }
  .filerow:hover { padding-left: 9px; padding-right: 9px; }
  .server-summary { min-height: 300px; padding: 22px; }
  .server-summary h3 { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .summary-label { margin-top: 32px; }
  .summary-bottom { gap: 14px; padding-top: 22px; }
  .summary-number { right: 18px; bottom: 20px; font-size: 7rem; }
  .metric-card { min-height: 146px; padding: 18px; }
  .server-facts { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .server-facts div:first-child { grid-column: span 2; }
  .server-facts b { font-size: 12px; }
  .sleep-note { align-items: flex-start; font-size: 11.5px; line-height: 1.7; }
  .prank { margin-bottom: 64px; padding: 26px 22px; }
  .prank h2 { font-size: 4.6rem; }
  .prank p:last-child { font-size: 14px; }
  .studio-card { min-height: 235px; padding: 21px; }
  .studio-card h3 { margin-top: 28px; font-size: 2.7rem; }
  .studio-card--agent { min-height: 230px; }
  .site-footer { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-top: 18px; padding-bottom: 18px; font-size: 10.5px; }
  .site-footer span:nth-child(2), .site-footer span:last-child { text-align: left; }
  .upload-main { padding-top: 62px; }
  .upload-main h1 { font-size: clamp(3.9rem, 20vw, 6.3rem); }
  .upload-lede { margin-top: 24px; font-size: 14px; }
  .upload-form { margin-top: 32px; }
  .dropzone { min-height: 230px; padding: 22px; }
  .dropzone strong { font-size: 18px; }
  .upload-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .manage-main { padding-top: 44px; }
  .manage-main h1 { font-size: clamp(3.6rem, 18vw, 5.8rem); }
  .manage-title-row { display: block; }
  .manage-count { display: block; margin-top: 14px; }
  .manage-toolbar { align-items: flex-start; }
  .manage-create { width: 100%; margin-left: 0; }
  .manage-create input[type="text"] { flex: 1; width: auto; min-width: 0; }
  .manage-item { display: block; padding: 17px 0; }
  .manage-item-name { width: 100%; }
  .manage-item-actions { margin-top: 9px; }
  .manage-name-input { flex: 1 1 100px; min-width: 0; }
  .manage-select { flex: 1; max-width: none; }
  .manage-delete { margin-top: 5px; }
  .task-item { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  .task-meta { grid-column: 2; flex-direction: row; align-items: center; gap: 10px; }
  .task-copy p { font-size: 12px; }
}

/* ---------- share / guestbook / photos / reader / fun ---------- */

.nav { overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; }

.manage-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.share-main, .upload-main { max-width: 1080px; }

.share-meta {
  margin: 18px 0 30px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.share-list { margin-top: 22px; }

.share-file {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.share-file-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  color: var(--lime);
  font-size: 22px;
}
.share-file strong { display: block; font-size: 18px; word-break: break-all; }
.share-file p { margin: 6px 0 0; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.share-file .button { margin-left: auto; }

.share-empty {
  padding: 26px 0;
  color: var(--muted);
  font-size: 14px;
}

.share-created {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid rgba(159, 211, 227, 0.4);
  background: rgba(159, 211, 227, 0.06);
}
.share-created span { color: var(--lime); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
.share-link-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

.share-form { margin-top: 26px; display: grid; gap: 18px; }
.share-form-row { display: grid; grid-template-columns: 180px 1fr; gap: 18px; }
.share-section-label { margin-top: 54px; }

.share-admin-item { align-items: center; }
.share-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.share-lock { color: var(--lime); }

.guest-form { margin: 26px 0 40px; display: grid; gap: 16px; }
.guest-form textarea, .reader-add input, .share-form input, .share-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.guest-form textarea { resize: vertical; min-height: 110px; }
.guest-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.guest-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.guest-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.guest-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.guest-head strong { font-size: 15px; }
.guest-head span { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.guest-delete { margin-left: auto; }
.guest-item p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stat-card { padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.stat-card span { display: block; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }
.stat-card strong { display: block; margin: 12px 0 4px; font-family: var(--display); font-size: 40px; font-weight: 500; line-height: 1; }
.stat-card small { color: var(--muted); font-size: 12px; }

.visit-paths { display: grid; gap: 0; border-top: 1px solid var(--line); }
.visit-path { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.visit-path b { color: var(--lime); font-weight: 500; }

.visit-log { display: grid; gap: 0; border-top: 1px solid var(--line); }
.visit-row {
  display: grid;
  grid-template-columns: 96px 1fr 70px;
  gap: 4px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.visit-path-name { color: var(--ink-2); }
.visit-ip { color: var(--lime); }
.visit-ua, .visit-ref { grid-column: 1 / -1; opacity: 0.62; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.photo-grid { columns: 3; column-gap: 14px; margin-top: 30px; }
.photo-card {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: var(--surface);
  cursor: zoom-in;
  break-inside: avoid;
  position: relative;
}
.photo-card img { display: block; width: 100%; height: auto; }
.photo-meta {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-align: left;
  opacity: 0;
  transition: opacity 0.2s;
}
.photo-card:hover .photo-meta { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(4, 7, 11, 0.94);
}
.lightbox[hidden] { display: none; }

.server-intro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin: 26px 0 34px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.server-intro-copy h3 {
  margin: 14px 0 14px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.server-intro-copy p:last-child {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.9;
}
.server-specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; align-content: start; }
.server-specs div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.server-specs dt { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; }
.server-specs dd { margin: 5px 0 0; color: var(--ink); font-size: 13px; line-height: 1.45; }

@media (max-width: 800px) {
  .server-intro { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 480px) {
  .server-specs { grid-template-columns: 1fr; }
}
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.lightbox p { margin: 14px 0 0; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 32px;
  cursor: pointer;
}
body.lightbox-open { overflow: hidden; }

.fun-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.fun-tile {
  position: relative;
  padding: 24px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.fun-tile:hover { border-color: var(--lime); transform: translateY(-2px); }
.fun-no { font-family: var(--mono); font-size: 11px; color: var(--lime); }
.fun-tile h3 { margin: 18px 0 8px; font-family: var(--display); font-size: 26px; font-weight: 500; }
.fun-tile p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.fun-open { display: inline-block; margin-top: 18px; color: var(--lime); font-family: var(--mono); font-size: 12px; }

.prank-more {
  display: inline-block;
  margin-top: 20px;
  color: rgba(11, 15, 13, 0.62);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.prank-more:hover { color: var(--black); }

.fun-stage { position: fixed; inset: 0; z-index: 90; background: var(--bg); overflow: auto; }
.fun-exit {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 95;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 11, 16, 0.8);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}
.fun-body { min-height: 100%; display: grid; place-items: center; padding: 40px 20px; }

.win-update {
  width: min(560px, 100%);
  padding: 46px 38px;
  background: #0a3d84;
  color: #f4f8ff;
  text-align: center;
  font-family: var(--sans);
}
.win-logo { width: 44px; height: 44px; margin: 0 auto 26px; border: 3px solid #fff; border-radius: 50%; }
.win-update h2 { margin: 0 0 12px; font-size: 24px; font-weight: 500; }
.win-update p { margin: 0; opacity: 0.8; font-size: 14px; }
.win-bar { height: 8px; margin: 30px 0 14px; background: rgba(255, 255, 255, 0.2); }
.win-bar i { display: block; width: 0; height: 100%; background: #fff; transition: width 0.2s linear; }
.win-pct { font-family: var(--mono); font-size: 13px; }
.win-hint { margin-top: 26px !important; font-size: 12px !important; opacity: 0.6 !important; }

.fun-terminal { background: #020604; place-items: start stretch; }
.term {
  margin: 0;
  padding: 30px;
  color: #6bff9e;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 2;
  white-space: pre-wrap;
}

.runaway-wrap { text-align: center; }
.runaway-title { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.runaway-btn {
  margin: 26px;
  padding: 16px 34px;
  border: 1px solid var(--lime);
  background: var(--lime);
  color: var(--black);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: left 0.14s ease, top 0.14s ease;
}
.runaway-count { color: var(--muted); font-family: var(--mono); font-size: 12px; }

.virus-box { width: min(620px, 100%); border: 1px solid #b23b3b; background: #170b0b; color: #ffd9d9; font-family: var(--mono); font-size: 13px; }
.virus-head { padding: 14px 18px; background: #b23b3b; color: #fff; font-family: var(--sans); font-size: 14px; }
.virus-scan { padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.virus-list { padding: 8px 18px 18px; max-height: 52vh; overflow: auto; }
.virus-row { padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.1); }
.virus-done { margin: 16px 0 0; color: var(--lime); }

.reader-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.feed-list { border-top: 1px solid var(--line); }
.feed-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feed-row a { color: var(--ink-2); font-size: 14px; word-break: break-all; }
.reader-add { display: flex; gap: 10px; margin: 16px 0 0; flex-wrap: wrap; }
.reader-add input { flex: 1; min-width: 220px; }
.feed-items { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feed-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.feed-item-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.feed-source { color: var(--lime); }
.feed-item h3 { margin: 8px 0 6px; font-family: var(--display); font-size: 21px; font-weight: 500; line-height: 1.35; }
.feed-item h3 a { color: var(--ink); }
.feed-item p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.later-list { border-top: 1px solid var(--line); }
.later-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.later-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.later-main a { color: var(--ink-2); font-size: 14px; word-break: break-all; }
.later-main span { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.later-actions { display: flex; gap: 6px; flex-shrink: 0; }
.later-done .later-main a { color: var(--muted); text-decoration: line-through; }

@media (max-width: 800px) {
  .photo-grid { columns: 2; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .share-form-row { grid-template-columns: 1fr; }
  .fun-grid { grid-template-columns: 1fr; }
  .share-file { flex-wrap: wrap; }
  .share-file .button { margin-left: 0; }
}

@media (max-width: 560px) {
  .photo-grid { columns: 1; }
  .visit-row { grid-template-columns: 84px 1fr; }
  .visit-ip { grid-column: 2; }
}

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

/* ---------- site chrome 2026 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 16, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.2s, border-color 0.2s;
}
.site-header.is-scrolled { background: rgba(8, 11, 16, 0.95); border-bottom-color: var(--line-strong); }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 10px; height: 10px; background: var(--lime); border-radius: 0; }
.brand-name { font-family: var(--display); font-size: 19px; letter-spacing: 0.02em; color: var(--ink); }
.brand-sub { margin-left: 2px; color: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; overflow: visible; }
.nav a {
  padding: 7px 11px;
  border-radius: 3px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}
.nav a::after { display: none; }
.nav a:hover { color: var(--ink); background: rgba(243, 240, 231, 0.06); }
.nav a.is-active { color: var(--ink); background: rgba(243, 240, 231, 0.08); }
.nav-agent { color: var(--lime) !important; }
.nav-agent::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  background: var(--lime);
  vertical-align: 2px;
}
.nav-agent:hover { background: rgba(159, 211, 227, 0.1) !important; }

.header-clock {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-left: 6px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.header-clock b { color: var(--ink); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 980px) {
  .header-clock { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px 22px 18px;
    border-bottom: 1px solid var(--line-strong);
    background: rgba(8, 11, 16, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }
  .site-header.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 15px 2px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover, .nav a.is-active { background: none; }
  .brand-sub { display: none; }
}

/* ---------- redesign 2026 / editorial archive ---------- */

body { font-size: 15.5px; }

.eyebrow {
  gap: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.signal-dot { width: 6px; height: 6px; box-shadow: none; }

.page { width: min(1240px, 100%); }

.hero {
  min-height: 0;
  padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 7vw, 88px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-top: 20px; font-size: clamp(4.4rem, 11vw, 8.6rem); letter-spacing: -0.065em; }
.hero-tagline { margin-top: 28px; font-size: clamp(1.02rem, 1.5vw, 1.18rem); }
.hero-intro { max-width: 44ch; margin-top: 16px; font-size: 14.5px; line-height: 1.9; }
.hero-actions { margin-top: 26px; gap: 16px; }

.index-card {
  min-height: 300px;
  padding: 26px;
  transform: none;
  border: 1px solid rgba(11, 15, 13, 0.18);
  box-shadow: none;
}
.index-card::after { display: none; }
.index-top { font-family: var(--sans); font-size: 11px; letter-spacing: 0.02em; }
.index-count strong { font-size: clamp(3.4rem, 5vw, 4.6rem); }
.index-count span { font-size: 11px; }
.index-meta span { font-size: 10px; }
.index-meta b { font-size: 14px; }
.index-note { font-size: 13px; line-height: 1.9; }

.section { padding: clamp(64px, 8vw, 104px) 0; scroll-margin-top: 76px; }
.section-head { align-items: flex-end; margin-bottom: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.section-label h2 { margin: 0; font-size: clamp(1.9rem, 3.2vw, 2.8rem); letter-spacing: -0.03em; }
.section-note, .live-meta { font-size: 12px; color: var(--muted); }
.section-no { display: none; }

.folder-card { padding: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.folder-card:hover { border-color: var(--lime); background: var(--surface-2); transform: translateY(-2px); }
.folder-copy strong { font-size: 15px; }
.folder-copy small { font-size: 10px; color: var(--muted); }

.filehead { padding: 0 10px 10px; font-size: 10.5px; color: var(--muted); }
.filerow { padding: 15px 10px; border-bottom: 1px solid var(--line); transition: background 0.15s; }
.filerow:hover { background: rgba(243, 240, 231, 0.045); }
.file-name { font-size: 14.5px; }
.file-type { justify-self: start; padding: 2px 6px; border: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.file-action { color: var(--lime); }
.file-size, .file-date { font-size: 11px; color: var(--muted); }

.server-intro { margin-top: 0; }
.metric-card { background: var(--surface); }
.server-facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }

.studio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.studio-card { min-height: 230px; padding: 24px; }
.studio-card--agent { grid-column: span 2; }
.studio-card--agent h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.studio-index { font-family: var(--sans); font-size: 11px; letter-spacing: 0.02em; color: var(--muted); }
.studio-card h3 { margin-top: 22px; font-size: clamp(1.5rem, 2.3vw, 2rem); }
.studio-open { margin-top: auto; padding-top: 18px; font-size: 12px; }

.prank h2 { font-size: clamp(3.4rem, 7vw, 6rem); }
.prank-no { font-family: var(--sans); font-size: 11px; letter-spacing: 0.02em; color: rgba(11, 15, 13, 0.55); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px var(--pad);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.01em;
}
.footer-nav { display: flex; align-items: center; gap: 16px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--lime); }
.site-footer span:nth-child(2) { text-align: left; }
.site-footer span:last-child { text-align: right; }

.button { min-height: 44px; padding: 0 19px; font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.upload-main, .manage-main { padding-top: clamp(44px, 6vw, 76px); }
.upload-main h1, .manage-main h1 { font-size: clamp(3.2rem, 7vw, 5.4rem); line-height: 0.9; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .index-card { width: min(520px, 100%); min-height: 0; }
  .studio-grid { grid-template-columns: 1fr 1fr; }
  .studio-card--agent { grid-column: span 2; }
}

@media (max-width: 680px) {
  .hero { padding: 40px 0 48px; gap: 32px; }
  .hero h1 { font-size: clamp(3.8rem, 17vw, 5.6rem); }
  .section { padding: 56px 0; }
  .section-head { display: block; }
  .section-note, .live-meta { margin-top: 10px; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-card--agent { grid-column: auto; }
  .studio-card { min-height: 200px; }
  .site-footer { gap: 8px 16px; }
  .footer-nav { width: 100%; order: 3; margin-top: 2px; }
}

/* ---------- form + detail polish ---------- */

.upload-password input,
.upload-password select,
.manage-create input[type="text"],
.manage-name-input,
.manage-select,
.reader-add input,
.guest-form input,
.guest-form textarea,
.share-form input,
.share-form select {
  min-height: 42px;
}
.upload-password span { font-size: 12px; }
.dropzone { border-color: var(--line-strong); }
.dropzone:hover { border-color: var(--line-strong); background: var(--surface-2); }
.empty-code { font-family: var(--sans); font-size: 11px; letter-spacing: 0.02em; }
.manage-btn, .text-link { border-radius: 2px; }

@media (max-width: 680px) {
  .photo-meta { opacity: 1; }
  .photo-card { margin-bottom: 10px; }
}

.upload-main--wide { width: min(1120px, 100%); }

/* ---------- miku accents + smiley sans ---------- */

@font-face {
  font-family: "Smiley Sans";
  src: url("/static/fonts/SmileySans-Oblique.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --miku: #86d3df;
  --miku-soft: rgba(159, 211, 227, 0.14);
}

::selection { background: var(--miku); color: #04100f; }

.brand-01 { margin-left: 2px; color: var(--miku); font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; }
.brand:hover .brand-01 { text-shadow: 0 0 12px rgba(159, 211, 227, 0.75); }

.hero h1,
.section-label h2,
.index-count strong,
.studio-card h3,
.studio-card--agent h3,
.prank h2,
.upload-main h1,
.manage-main h1,
.brand-name,
.mtb-copy strong {
  font-family: "Smiley Sans", var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
}



.footer-miku { color: var(--miku); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; }



@media (max-width: 680px) {
}
/* ---------- wallpaper atmosphere ---------- */

.hero { position: relative; z-index: 0; }
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  background:
    linear-gradient(90deg, rgba(8, 11, 16, 0.97) 0%, rgba(8, 11, 16, 0.88) 42%, rgba(8, 11, 16, 0.36) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(8, 11, 16, 0) 38%),
    url("/static/scenes/scene-03.jpg") 65% center / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}
.hero-copy, .index-card { position: relative; z-index: 1; }

.index-card {
  background: rgba(10, 15, 22, 0.52);
  border: 1px solid rgba(241, 239, 233, 0.22);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.index-top { border-bottom-color: rgba(241, 239, 233, 0.16); color: var(--muted); }
.index-open { background: var(--lime); color: var(--black); }
.index-count strong { color: var(--ink); }
.index-count span { color: var(--muted); }
.index-meta { border-top-color: rgba(241, 239, 233, 0.16); }
.index-meta span { color: var(--muted); opacity: 1; }
.index-meta b { color: var(--ink); }
.index-note { color: var(--ink-2); }

.server { position: relative; z-index: 0; }
.server::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  background:
    linear-gradient(180deg, rgba(8, 11, 16, 0.8), rgba(8, 11, 16, 0.93)),
    url("/static/scenes/scene-01.jpg") center 55% / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

.footer-miku { color: var(--pink); }

@media (max-width: 680px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 11, 16, 0.9), rgba(8, 11, 16, 0.97)),
      url("/static/scenes/scene-03.jpg") 65% center / cover no-repeat;
  }
}

/* ---------- bilingual + japanese accents ---------- */

.hero-jp {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.section-label { align-items: baseline; }
.section-kicker {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
}

.footer-sign {
  color: rgba(241, 239, 233, 0.34);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

/* ---------- battery card redesign ---------- */

.battery-info { flex: 1; min-width: 0; }
.metric-card--power .power-state { font-size: 15px; }
.metric-card--power .power-detail { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.health-meter { height: 5px; margin-top: 10px; background: rgba(11, 15, 13, 0.16); overflow: hidden; }
.health-meter i { display: block; width: 0; height: 100%; background: var(--black); transition: width 0.4s var(--ease); }
.battery-dial span { font-size: 10px; color: rgba(11, 15, 13, 0.75); }

@media (max-width: 800px) {
  .metric-card--power { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .metric-card--power .power-state { font-size: 17px; }
  .metric-card--power .power-detail { font-size: 15px; }
  .battery-dial b { font-size: 20px; }
}

/* ---------- mobile pass ---------- */

@media (max-width: 680px) {
  .site-header { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
  .site-footer { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }

  .hero { padding: 34px 0 44px; gap: 26px; }
  .hero h1 { margin-top: 12px; font-size: clamp(3.6rem, 17vw, 5.4rem); }
  .hero-tagline { margin-top: 20px; font-size: 1rem; }
  .hero-intro { margin-top: 12px; font-size: 14px; line-height: 1.85; }
  .hero-jp { margin-top: 10px; font-size: 12px; }
  .hero-actions { flex-wrap: wrap; gap: 12px; margin-top: 22px; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-actions .text-link { font-size: 12.5px; }

  .index-card { width: 100%; min-height: 0; padding: 18px; }
  .index-top { padding-bottom: 12px; }
  .index-count { margin-top: 16px; }
  .index-count strong { font-size: 3.2rem; }
  .index-meta { margin-top: 16px; padding-top: 12px; }
  .index-note { padding-top: 14px; font-size: 12.5px; line-height: 1.75; }

  .section { padding: 48px 0; }
  .section-label h2 { font-size: 2.5rem; }
  .section-kicker { font-size: 9px; }
  .section-note, .live-meta { margin-top: 10px; font-size: 11.5px; }

  .filerow { grid-template-columns: minmax(0, 1fr) 42px; gap: 12px; padding: 16px 0; }
  .file-no { display: none; }
  .file-name { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
  .file-action { width: 42px; height: 42px; }
  .filerow:hover { padding-left: 0; padding-right: 0; }
  .filerow:hover::before { transform: scaleY(0); }

  .server-summary { min-height: 240px; padding: 20px; }
  .metric-card { min-height: 128px; padding: 16px; }
  .metric-top span { font-size: 9.5px; letter-spacing: 0.06em; }
  .metric-card p { font-size: 11px; }
  .server-metrics { gap: 10px; }
  .server-facts { grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 16px 0; }
  .server-facts div:first-child { grid-column: span 2; }

  .studio-card { min-height: 0; padding: 20px; }
  .studio-card--agent { min-height: 0; }
  .studio-card h3, .studio-card--agent h3 { margin-top: 12px; font-size: 1.9rem; }
  .studio-card p { font-size: 13px; line-height: 1.75; }
  .studio-open { padding-top: 14px; }

  .prank { margin-bottom: 52px; padding: 24px 20px; }
  .prank h2 { font-size: 3.6rem; }
  .prank-more { margin-top: 14px; }

  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 18px; padding-bottom: 24px; }
  .site-footer > span:nth-child(3) { display: none; }
  .footer-nav { flex-wrap: wrap; gap: 10px 16px; }
  .footer-nav a { padding: 2px 0; }
  .footer-sign { font-size: 9px; }

  input, select, textarea { font-size: 16px !important; }
  .manage-btn { min-height: 40px; padding: 0 12px; }
  .upload-actions { align-items: stretch; }
  .upload-actions .button { width: 100%; }
  .reader-add { flex-direction: column; }
  .reader-add input, .reader-add .button { width: 100%; }
  .feed-item h3 { font-size: 19px; }
  .feed-item p { font-size: 13.5px; }

  .photo-grid { columns: 2; column-gap: 10px; }
  .photo-card { margin-bottom: 10px; }

  .manage-links { gap: 12px; }
  .manage-item-actions { flex-wrap: wrap; gap: 8px; }
  .share-form .button { width: 100%; }
}

@media (max-width: 380px) {
  .photo-grid { columns: 1; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 4.4rem); }
}

@media (max-width: 680px) {
  .site-header { height: 64px; }
  .brand-name { font-size: 17px; }
  .nav-toggle { width: 44px; height: 44px; }
}

@media (max-width: 680px) {
  .hero { padding: 28px 0 38px; gap: 20px; }
  .index-card { padding: 16px; }
  .index-top { padding-bottom: 10px; font-size: 9.5px; }
  .index-count { margin-top: 12px; }
  .index-count strong { font-size: 2.8rem; }
  .index-meta { margin-top: 12px; padding-top: 10px; gap: 12px; }
  .index-note { display: none; }
  .site-footer { gap: 8px; padding-top: 14px; padding-bottom: 20px; }
  .footer-nav { gap: 8px 14px; }
}

/* power card must stay cream: later .metric-card rules were overriding it */
.metric-card.metric-card--power {
  background: var(--cream);
  color: var(--black);
}
.metric-card.metric-card--power .metric-top { color: rgba(11, 15, 13, 0.72); }
.metric-card.metric-card--power .metric-top b { color: var(--black); }
.metric-card.metric-card--power .battery-dial b { color: var(--black); }
.metric-card.metric-card--power .battery-dial span { color: rgba(11, 15, 13, 0.78); }

/* ---------- interlude ---------- */

.interlude {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(220px, 30vw, 420px);
  display: flex;
  align-items: flex-end;
  padding: 0 max(var(--pad), calc(50vw - 620px)) clamp(24px, 4vw, 40px);
  background:
    linear-gradient(180deg, rgba(8, 11, 16, 0.1), rgba(8, 11, 16, 0.86)),
    url("/static/scenes/scene-02.jpg") center 40% / cover no-repeat;
}
.interlude-copy p { margin: 0; }
.interlude-jp { color: var(--ink-2); font-size: 13px; letter-spacing: 0.12em; }
.interlude-en { margin-top: 6px; color: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; }

@media (max-width: 680px) {
  .interlude { height: 210px; padding-bottom: 20px; }
}

/* ---------- menu label + vector arrows ---------- */

.nav-toggle {
  flex-direction: row;
  width: auto;
  height: 40px;
  padding: 0 12px;
  gap: 8px;
}
.nav-toggle .nav-toggle-label {
  display: inline;
  width: auto;
  height: auto;
  background: none;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.nav-toggle-icon { display: flex; flex-direction: column; gap: 5px; width: 16px; }
.nav-toggle-icon span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.site-header.nav-open .nav-toggle .nav-toggle-label { transform: none; color: var(--lime); }

.arrow {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  background: currentColor;
  vertical-align: -0.08em;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
}
.arrow--right { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M9 5l3 3-3 3' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E"); }
.arrow--up { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M6 4h6v6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E"); }
.arrow--down { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v9M5 9l3 3 3-3' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E"); }
.arrow--left { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 8H4M7 5 4 8l3 3' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E"); }

@media (max-width: 680px) {
  .nav-toggle { width: auto; height: 44px; }
}

/* ---------- mobile tab bar ---------- */

:root { --good: #9fe3b8; }

.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(8, 11, 16, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.tabbar a, .tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  text-decoration: none;
  cursor: pointer;
}
.tabbar svg { width: 20px; height: 20px; }
.tabbar a.is-active, .tabbar button.is-active { color: var(--lime); }
.tabbar-upload { position: relative; color: var(--ink) !important; }
.tabbar-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -20px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--black);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.tabbar-plus svg { width: 22px; height: 22px; }
.tabbar-upload span:last-child { margin-top: 2px; }

@media (max-width: 980px) {
  .tabbar { display: flex; }
  body { padding-bottom: 80px; }
}

/* ---------- flow workspace ---------- */

.flow-main {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 34px var(--pad) 120px;
}
.flow-gate { max-width: 520px; margin: 4vh auto 0; }
.flow-gate h1 { margin: 20px 0 0; font-family: "Smiley Sans", var(--display); font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 400; line-height: 0.95; }
.flow-gate-form { display: grid; gap: 16px; margin-top: 28px; }
.flow-gate-form .button { width: 100%; }
.flow-head h1 { margin: 16px 0 0; font-family: "Smiley Sans", var(--display); font-size: clamp(2.8rem, 6vw, 4.4rem); font-weight: 400; line-height: 0.95; letter-spacing: -0.01em; }
.flow-head .upload-lede { margin-top: 18px; max-width: 60ch; }
.flow-hello { margin: 14px 0 0; color: var(--muted); font-size: 12px; }

.flow-composer {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.flow-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 170px;
  padding: 26px 18px;
  border: 1px dashed var(--line-strong);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.flow-drop:hover { border-color: var(--lime); background: rgba(159, 211, 227, 0.05); }
.flow-drop-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); color: var(--lime); }
.flow-drop-icon svg { width: 24px; height: 24px; }
.flow-drop strong { font-size: 15px; }
.flow-drop span:last-of-type { color: var(--muted); font-size: 12px; line-height: 1.6; }
.flow-drop input { display: none; }

.flow-progress { height: 4px; margin-top: 12px; background: var(--line); overflow: hidden; }
.flow-progress i { display: block; width: 0; height: 100%; background: var(--lime); transition: width 0.2s; }

.flow-selected { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.flow-selected:empty { margin-top: 0; }
.flow-selected .flow-file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; }
.flow-selected button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }

.flow-presets { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.flow-presets::-webkit-scrollbar { display: none; }
.flow-chip { flex: none; padding: 9px 14px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.flow-chip.is-on { border-color: var(--lime); background: var(--lime); color: var(--black); font-weight: 600; }

.flow-prompt { width: 100%; min-height: 92px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.7; resize: vertical; }
.flow-prompt:focus { border-color: var(--lime); outline: none; }
.flow-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.flow-hint { margin: 0; color: var(--muted); font-size: 11.5px; }

.flow-recent, .flow-jobs { margin-top: 40px; }
.flow-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.flow-section-head h2 { margin: 0; font-family: "Smiley Sans", var(--display); font-size: 24px; font-weight: 400; }
.flow-section-head span { color: var(--muted); font-size: 11px; }
.flow-file-list { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.flow-file-list::-webkit-scrollbar { display: none; }
.flow-file { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 220px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.flow-file span { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.flow-file small { color: var(--muted); font-size: 10px; }
.flow-file.is-on { border-color: var(--lime); background: rgba(159, 211, 227, 0.12); }

.flow-job-list { display: grid; gap: 10px; margin-top: 16px; }
.flow-job { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.flow-job:hover { border-color: var(--lime); background: var(--surface-2); }
.flow-job-title { font-size: 15px; font-weight: 600; }
.flow-job-meta { color: var(--muted); font-size: 11px; }
.flow-status { align-self: flex-start; padding: 3px 7px; border: 1px solid var(--line); font-size: 10px; letter-spacing: 0.04em; }
.flow-status--queued { color: var(--muted); }
.flow-status--running { border-color: var(--lime); color: var(--lime); }
.flow-status--done { border-color: var(--good); color: var(--good); }
.flow-status--error { border-color: var(--pink); color: var(--pink); }

.flow-empty { margin: 16px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.flow-empty p { margin: 0; }

.flow-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; text-decoration: none; }
.flow-back:hover { color: var(--lime); }
.flow-job-head { margin-top: 20px; }
.flow-job-head h1 { margin: 14px 0 8px; font-family: "Smiley Sans", var(--display); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 400; line-height: 1.05; }
.flow-block { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.flow-block h2 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; }
.flow-prompt-text { margin: 0; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.flow-history { margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--line); }
.flow-history p { margin: 6px 0; color: var(--ink-2); font-size: 13px; }
.flow-history b { color: var(--lime); font-weight: 600; }
.flow-file-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.flow-file-chip { padding: 6px 9px; border: 1px solid var(--line); color: var(--ink-2); font-size: 11px; text-decoration: none; }
.flow-file-chip:hover { border-color: var(--lime); color: var(--ink); }

.flow-log { max-height: 300px; overflow: auto; margin: 0; padding: 14px; background: #05080c; border: 1px solid var(--line); color: #b8c6c0; font-family: var(--mono); font-size: 11.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.flow-job-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.flow-results { display: grid; gap: 8px; }
.flow-result { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.flow-result:hover { border-color: var(--lime); }
.flow-result span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.flow-result small { color: var(--muted); font-size: 10px; }

.flow-comments { display: grid; gap: 0; }
.flow-comment { padding: 12px 0; border-bottom: 1px solid var(--line); }
.flow-comment b { font-size: 12px; }
.flow-comment span { margin-left: 8px; color: var(--muted); font-size: 10px; }
.flow-comment p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.flow-comment-form, .flow-follow-form { display: grid; gap: 10px; margin-top: 16px; }
.flow-comment-form textarea, .flow-follow-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }
.flow-comment-form button, .flow-follow-form button { justify-self: start; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  z-index: 120;
  transform: translateX(-50%) translateY(10px);
  padding: 10px 16px;
  background: var(--ink);
  color: var(--black);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 680px) {
  .flow-main { padding: 22px 16px 110px; }
  .flow-head h1 { font-size: 2.7rem; }
  .flow-composer { padding: 14px; }
  .flow-drop { min-height: 140px; }
  .flow-submit-row { flex-direction: column; align-items: stretch; }
  .flow-submit-row .button { width: 100%; }
  .flow-job-head h1 { font-size: 2rem; }
  .flow-comment-form button, .flow-follow-form button { justify-self: stretch; width: 100%; }
}

/* ---------- mobile scene crops ---------- */

@media (max-width: 680px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 11, 16, 0.72) 0%, rgba(8, 11, 16, 0.9) 58%, var(--bg) 100%),
      url("/static/scenes/scene-03-mobile.jpg") 50% 22% / cover no-repeat;
  }
  .hero-copy { text-shadow: 0 1px 20px rgba(8, 11, 16, 0.5); }
  .interlude {
    height: 200px;
    background:
      linear-gradient(180deg, rgba(8, 11, 16, 0.08), rgba(8, 11, 16, 0.88)),
      url("/static/scenes/scene-02-mobile.jpg") center / cover no-repeat;
  }
  .server::before { background-position: 58% 42%; }
}

.flow-dsh { margin-left: 10px; color: var(--lime); text-decoration: none; }
.flow-dsh:hover { text-decoration: underline; }

.flow-dsh { margin-left: 10px; color: var(--lime); text-decoration: none; }
.flow-dsh:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .server::before {
    background: linear-gradient(180deg, rgba(159, 211, 227, 0.08), rgba(8, 11, 16, 0) 42%);
  }
}
