:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #66717c;
  --paper: #fffdf5;
  --line: #d9dde2;
  --yellow: #ffc800;
  --orange: #ff6b00;
  --navy: #17263c;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.10);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #e9edf1; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 38, 60, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(23, 38, 60, 0.035) 1px, transparent 1px),
    #eef1f4;
  background-size: 24px 24px;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

a { color: inherit; }
button, input { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: white;
  background: var(--navy);
  border-bottom: 5px solid var(--yellow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 8px 2px 8px 2px;
  font: 900 25px/1 Georgia, serif;
  transform: rotate(-3deg);
}

.brand strong { display: block; font-size: 22px; letter-spacing: 0.12em; }
.brand small { display: block; margin-top: 2px; color: #b9c3ce; font-size: 11px; letter-spacing: 0.08em; }

.search { display: flex; width: min(440px, 48vw); }
.search input {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  color: var(--ink);
  background: white;
  border: 0;
  border-radius: 6px 0 0 6px;
  outline-offset: 3px;
}
.search button {
  padding: 0 18px;
  color: #111;
  font-weight: 800;
  background: var(--yellow);
  border: 0;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

.shell {
  width: min(1480px, 100%);
  min-height: calc(100vh - 126px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 81px;
  align-self: start;
  min-height: calc(100vh - 81px);
  padding: 30px 22px;
  color: white;
  background: #202b37;
}

.side-label {
  padding: 0 8px 18px;
  color: #98a5b2;
  font: 700 10px/1.4 ui-monospace, Consolas, monospace;
  letter-spacing: 0.22em;
}

#category-nav { display: grid; gap: 5px; }
.nav-link, .original-link, .legacy-link, .report-link, .blog-link, .private-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 7px;
  transition: background 160ms ease, transform 160ms ease;
}
.nav-link:hover, .nav-link.active, .original-link:hover, .legacy-link:hover, .report-link:hover, .blog-link:hover, .private-link:hover { background: #344252; transform: translateX(3px); }
.nav-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 72%); }
.nav-count { margin-left: auto; color: #9ba8b4; font-size: 12px; }
.original-link { margin-top: 18px; padding-top: 18px; color: #8bd8f0; border-top: 1px solid #3a4652; border-radius: 0; }
.report-link { margin-top: 5px; color: #dce7f0; }
.legacy-link { margin-top: 5px; color: #83e1bc; }
.blog-link { margin-top: 5px; color: var(--yellow); }
.private-link { margin-top: 5px; color: #dbe4ec; }
.archive-note { margin: 28px 8px 0; color: #8e9aa6; font-size: 12px; line-height: 1.7; }

#app { min-width: 0; padding: clamp(24px, 5vw, 64px); }
.loading, .empty, .error { padding: 80px 20px; color: var(--muted); text-align: center; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 70px);
  color: #161616;
  background: var(--yellow);
  border: 1px solid #e8b700;
  border-radius: 18px 4px 18px 4px;
  box-shadow: var(--shadow);
}

.welcome {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 210px);
  padding: clamp(34px, 7vw, 86px);
  color: white;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,200,0,.28), transparent 24%),
    linear-gradient(145deg, #172331 0%, #1f2b37 56%, #111a24 100%);
  border-top: 7px solid var(--yellow);
  border-radius: 4px 4px 20px 4px;
  box-shadow: var(--shadow);
}
.welcome::after { content: "2004"; position: absolute; right: -22px; bottom: -48px; color: rgba(255,255,255,.035); font: 900 clamp(130px, 28vw, 330px)/.8 Impact, sans-serif; pointer-events: none; }
.welcome-main { position: relative; z-index: 1; max-width: 800px; }
.welcome-main .eyebrow { color: #f6cf3b; }
.welcome h1 { max-width: 760px; margin: 0; font: 900 clamp(48px, 8vw, 94px)/1.02 Georgia, "STSong", serif; letter-spacing: -.045em; }
.welcome-main > p:not(.eyebrow) { max-width: 690px; margin: 22px 0 0; color: #c4ced7; font-size: 16px; line-height: 1.95; }
.welcome-main .welcome-lead { color: white !important; font-size: clamp(18px, 2.4vw, 23px) !important; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.welcome-actions a { padding: 13px 18px; font-weight: 800; text-decoration: none; border-radius: 6px; }
.welcome-primary { color: #151a20; background: var(--yellow); }
.welcome-secondary { color: #eef3f6; border: 1px solid #62707d; }
.welcome-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 1px; max-width: 820px; margin-top: 58px; background: #43505c; border: 1px solid #43505c; }
.welcome-facts div { padding: 18px; background: #202d3a; }
.welcome-facts strong, .welcome-facts span { display: block; }
.welcome-facts strong { color: var(--yellow); font: 800 25px/1.2 Georgia, serif; }
.welcome-facts span { margin-top: 6px; color: #9eabb6; font-size: 12px; }
.welcome-timeline { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; max-width: 820px; margin-top: 24px; color: #95a2ad; font-size: 12px; }
.welcome-timeline span { white-space: nowrap; }
.welcome-timeline b { color: white; }
.welcome-timeline i { width: 100%; height: 1px; background: #485560; }
.hero::after {
  content: "ANIME";
  position: absolute;
  right: -20px;
  bottom: -30px;
  color: rgba(255,255,255,.38);
  font: 900 clamp(70px, 15vw, 180px)/.8 Impact, sans-serif;
  letter-spacing: -.03em;
  pointer-events: none;
}
.eyebrow { margin: 0 0 12px; font: 800 12px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 680px; margin: 0; font: 900 clamp(38px, 6vw, 76px)/1.02 Georgia, "STSong", serif; letter-spacing: -.04em; }
.hero p { position: relative; z-index: 1; max-width: 620px; margin: 24px 0 0; font-size: clamp(15px, 2vw, 19px); line-height: 1.8; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.stat { padding: 9px 13px; background: rgba(255,255,255,.62); border: 1px solid rgba(23,32,42,.15); border-radius: 999px; font-weight: 700; font-size: 13px; }

.section { margin-top: 48px; }
.section-heading, .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section h2, .page-heading h1 { margin: 0; font: 800 clamp(26px, 4vw, 42px)/1.15 Georgia, "STSong", serif; }
.section-heading a { color: #315f9d; font-weight: 700; }
.page-heading { align-items: start; padding-bottom: 18px; border-bottom: 3px solid var(--accent, var(--yellow)); }
.page-heading p { margin: 7px 0 0; color: var(--muted); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 13px; }
.category-tile {
  min-height: 116px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 4px 4px 12px 4px;
  box-shadow: 0 8px 24px rgba(23,32,42,.055);
}
.category-tile strong { font-size: 17px; }
.category-tile span { color: var(--muted); font-size: 13px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px 5px 14px 5px;
  box-shadow: 0 10px 30px rgba(23,32,42,.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(23,32,42,.12); }
.card-image { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; color: #7b8792; background: linear-gradient(135deg, #eef1f4, #dfe5ea); font: 800 13px/1 ui-monospace, monospace; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px; display: flex; flex: 1; flex-direction: column; }
.card-kicker { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.card h3 { margin: 7px 0 8px; font-size: 17px; line-height: 1.45; }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.card-meta { margin-top: auto; padding-top: 14px; color: #89939d; font-size: 11px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; }
.pager a, .page-picker-button { padding: 9px 14px; color: #26323d; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: 5px; }
.page-picker-button { font-weight: 800; cursor: pointer; }
.page-picker-button span { margin-left: 4px; color: #76828c; }
.page-picker-dialog { width: min(480px, calc(100% - 32px)); padding: 0; color: #26313b; background: #f8f9fa; border: 0; border-top: 7px solid var(--yellow); border-radius: 8px 8px 14px 8px; box-shadow: 0 24px 80px rgba(0,0,0,.36); }
.page-picker-dialog::backdrop { background: rgba(12,20,28,.68); backdrop-filter: blur(3px); }
.page-picker-dialog > p { margin: 0; padding: 0 24px; color: var(--muted); }
.page-picker-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 24px 24px 12px; }
.page-picker-head h2 { margin: 0; font: 800 28px/1.2 Georgia, "STSong", serif; }
.page-picker-close { width: 36px; height: 36px; color: #596570; background: transparent; border: 1px solid #cbd2d8; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.page-options { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 22px 24px 26px; }
.page-options .page-option { display: grid; place-items: center; min-height: 44px; padding: 8px; font-weight: 800; }
.page-options .page-option.current { color: #111; background: var(--yellow); border-color: #d8aa00; }

.detail { max-width: 950px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 22px; color: #3a6593; font-weight: 700; text-decoration: none; }
.detail-header { padding: clamp(24px, 4vw, 44px); background: white; border-top: 7px solid var(--accent, var(--yellow)); box-shadow: var(--shadow); }
.detail-header h1 { margin: 0; font: 800 clamp(30px, 5vw, 56px)/1.15 Georgia, "STSong", serif; }
.detail-subtitle { margin: 10px 0 0; color: var(--muted); font-size: 17px; }
.detail-cover { max-width: 360px; max-height: 420px; margin-top: 24px; object-fit: contain; border: 1px solid var(--line); }
.metadata { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.metadata span { padding: 6px 9px; color: #44515e; background: #f1f3f5; border-radius: 4px; font-size: 12px; }
.article-content { margin-top: 24px; padding: clamp(24px, 5vw, 52px); background: var(--paper); border: 1px solid #e7e0ca; font-size: 16px; line-height: 1.95; box-shadow: 0 12px 36px rgba(23,32,42,.07); overflow-wrap: anywhere; }
.article-content img { display: block; max-width: 100%; height: auto; margin: 24px auto; border-radius: 4px; }
.article-content a { color: #315f9d; }
.comments { margin-top: 34px; }
.comment { padding: 18px; margin-top: 12px; background: white; border-left: 4px solid var(--yellow); }
.comment h3 { margin: 0 0 8px; font-size: 15px; }
.comment p { margin: 0; color: #4d5965; line-height: 1.75; white-space: pre-wrap; }

.search-summary { margin: 0 0 24px; color: var(--muted); }

.private-panel {
  width: min(680px, 100%);
  margin: clamp(20px, 8vh, 80px) auto;
  padding: clamp(28px, 6vw, 58px);
  background: white;
  border-top: 7px solid var(--yellow);
  border-radius: 5px 5px 16px 5px;
  box-shadow: var(--shadow);
}
.private-panel.unlocked { border-top-color: #36a66c; }
.private-panel h1 { margin: 0; font: 800 clamp(32px, 5vw, 52px)/1.15 Georgia, "STSong", serif; }
.private-panel > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; }
.login-form { display: grid; gap: 10px; margin: 28px 0 22px; }
.login-form label { font-weight: 800; }
.login-form input { width: 100%; padding: 13px 14px; border: 1px solid #bcc5cd; border-radius: 6px; outline-offset: 3px; }
.login-form button, .secondary-button {
  padding: 12px 18px;
  font-weight: 800;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.login-form button { color: #111; background: var(--yellow); }
.secondary-button { margin-top: 26px; color: white; background: var(--navy); }
.login-error { min-height: 1.5em; margin: 0; color: #b72d2d !important; font-size: 13px; }
.private-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.private-card { min-height: 120px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; color: inherit; text-decoration: none; background: #f3f6f8; border: 1px solid var(--line); border-radius: 8px; }
.private-card strong { font-size: 19px; }
.private-card span { color: var(--muted); font-size: 13px; }
.primary-link { display: inline-block; margin-top: 18px; color: #315f9d; font-weight: 700; }
.password-change { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.password-change summary { color: #315f9d; font-weight: 800; cursor: pointer; }
.password-change .login-form { margin-bottom: 0; }
.success-message { color: #258452 !important; }

.legacy-hub { max-width: 1080px; margin: 0 auto; }
.legacy-hub-header { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 64px); color: white; background: #10334a; border-top: 7px solid #11a6d9; border-radius: 4px 4px 18px 4px; box-shadow: var(--shadow); }
.legacy-hub-header::after { content: "PRIVATE"; position: absolute; right: -14px; bottom: -20px; color: rgba(255,255,255,.05); font: 900 clamp(70px, 14vw, 160px)/.8 Impact, sans-serif; }
.legacy-hub-header h1 { position: relative; z-index: 1; max-width: 780px; margin: 0; font: 900 clamp(38px, 6vw, 70px)/1.04 Georgia, "STSong", serif; letter-spacing: -.035em; }
.legacy-hub-header p:last-child { position: relative; z-index: 1; max-width: 700px; margin: 20px 0 0; color: #c4d6df; line-height: 1.85; }
.legacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.legacy-card { position: relative; overflow: hidden; min-height: 240px; padding: 28px; display: flex; flex-direction: column; color: inherit; text-decoration: none; border: 1px solid rgba(23,32,42,.13); box-shadow: 0 10px 30px rgba(23,32,42,.08); transition: transform 180ms ease, box-shadow 180ms ease; }
.legacy-card:hover { transform: translateY(-4px) rotate(-.2deg); box-shadow: 0 18px 42px rgba(23,32,42,.15); }
.legacy-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -36px; bottom: -42px; border: 20px solid rgba(255,255,255,.15); border-radius: 50%; }
.legacy-card-original { color: white; background: repeating-linear-gradient(#119bd0 0 2px, #0789bc 2px 4px); }
.legacy-card-updates { background: #ffcd09; }
.legacy-card-guestbook { background: #f7f4ea; }
.legacy-card-order { background: #f2a900; }
.legacy-year { align-self: start; padding: 5px 8px; color: white; background: #17263c; font: 800 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.legacy-card strong { margin-top: 36px; font: 850 clamp(26px, 4vw, 38px)/1.1 Georgia, "STSong", serif; }
.legacy-card small { max-width: 320px; margin-top: 10px; color: color-mix(in srgb, currentColor, transparent 30%); font-size: 14px; line-height: 1.7; }
.legacy-card b { margin-top: auto; padding-top: 24px; font-size: 13px; }
.legacy-privacy-note { padding: 15px 18px; color: #66717c; background: rgba(255,255,255,.68); border-left: 4px solid #10334a; font-size: 12px; line-height: 1.7; }

.legacy-page { max-width: 1060px; margin: 0 auto; }
.legacy-page-heading { margin-bottom: 22px; padding: clamp(26px, 5vw, 48px); color: white; background: #17263c; border-top: 6px solid #16a7d5; box-shadow: var(--shadow); }
.legacy-page-heading h1 { margin: 0; font: 850 clamp(34px, 6vw, 62px)/1.1 Georgia, "STSong", serif; }
.legacy-page-heading p:last-child { max-width: 720px; margin: 18px 0 0; color: #c5d0d9; line-height: 1.8; }
.original-home-frame { margin: 0; overflow: hidden; color: #dceaf0; background: #053b5a; border: 12px solid #10334a; box-shadow: var(--shadow); }
.original-home-frame img { display: block; width: 100%; height: auto; }
.original-home-frame figcaption { padding: 11px 14px; color: #a9c2ce; background: #10334a; font-size: 11px; letter-spacing: .05em; }
.original-home-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.original-home-links a { padding: 14px 16px; color: #eaff00; text-decoration: none; background: #089bd4; border: 2px solid white; box-shadow: inset 0 0 0 1px #089bd4; font: 700 16px/1.2 ui-monospace, Consolas, monospace; text-align: center; }
.original-home-links span { display: block; margin-top: 5px; color: white; font: 12px/1.2 "Microsoft YaHei", sans-serif; }

.whats-new, .order-archive { overflow: hidden; color: #171717; background: #ffcc00; box-shadow: var(--shadow); }
.retro-banner { position: relative; height: 88px; overflow: hidden; background: #ffcc00; }
.retro-banner img { width: 100%; min-width: 777px; height: 75px; object-fit: cover; object-position: center top; }
.retro-banner span { position: absolute; right: 9%; bottom: 14px; padding: 6px 24px; color: #ff4242; background: #050505; font: 800 18px/1 serif; letter-spacing: .35em; text-shadow: 0 0 5px #ff2222; }
.whats-new { padding-bottom: 36px; }
.whats-new > h1 { margin: 34px 20px 58px; color: #102cff; font: 800 clamp(28px, 4vw, 38px)/1 sans-serif; text-align: center; }
.update-list { width: min(720px, calc(100% - 36px)); margin: 0 auto; }
.update-entry { display: grid; grid-template-columns: 30px 1fr; gap: 6px; margin-top: 24px; font-size: 15px; line-height: 1.7; }
.update-number { padding-top: 2px; font-weight: 800; text-align: right; }
.update-entry h2 { margin: 0; font: 700 17px/1.5 inherit; }
.update-entry h2 em { color: red; font-style: normal; }
.update-entry ol { margin: 3px 0 0; padding-left: 1.5em; }
.update-entry p { margin: 2px 0 0; }
.former-names { width: min(720px, calc(100% - 36px)); margin: 28px auto 0; color: white; }
.retro-footer { margin-top: 58px; font-size: 16px; text-align: center; }

.guestbook-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 24px 26px 18px; background: #f7f7f7; border-top: 6px solid #8295a8; border-bottom: 1px solid #c7cdd2; }
.guestbook-heading h1 { margin: 0; color: #43556a; font: 850 clamp(34px, 5vw, 54px)/1.1 Georgia, "STSong", serif; }
.guestbook-heading > span { color: #8c5362; font-size: 13px; }
.archive-warning { display: grid; gap: 5px; padding: 15px 20px; color: #54491f; background: #fff3bd; border-left: 5px solid #e5b600; line-height: 1.6; }
.archive-warning strong { font-size: 14px; }
.archive-warning span { font-size: 12px; }
.guestbook-list { padding: 18px; background: #f2f1eb; border: 1px solid #cfd2d2; }
.guestbook-message { display: grid; grid-template-columns: 118px minmax(0, 1fr); margin-top: 8px; background: white; border: 1px solid #e5e5e5; }
.guestbook-message:first-child { margin-top: 0; }
.guestbook-message.was-private { border-left: 5px solid #ff5b58; }
.guestbook-person { padding: 9px; display: flex; align-items: center; flex-direction: column; color: #214bea; background: #f7f7f7; }
.guestbook-person strong { max-width: 100%; overflow-wrap: anywhere; font-family: "Times New Roman", serif; font-size: 15px; font-weight: 400; }
.guestbook-person img { max-width: 92px; max-height: 140px; margin-top: 5px; object-fit: contain; image-rendering: auto; }
.guestbook-body { min-width: 0; }
.guestbook-body > header { min-height: 36px; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #343434; background: #f7f7f7; }
.guestbook-body time { font-family: "Courier New", monospace; font-size: 13px; }
.private-message-badge { padding: 4px 7px; color: white; background: #e94e4b; font-size: 10px; font-weight: 800; }
.guestbook-contact { padding: 7px 14px; display: flex; flex-wrap: wrap; gap: 5px 12px; color: #51677b; background: #eaf2f6; border-bottom: 1px dotted #b8c8d2; font-size: 11px; overflow-wrap: anywhere; }
.guestbook-copy { min-height: 72px; padding: 18px 14px; color: #3d3d3d; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.guestbook-copy img, .guestbook-reply img { display: inline-block; max-width: 50px; max-height: 38px; margin: 0 3px; vertical-align: middle; }
.guestbook-kind { margin-right: 4px; color: #1555ff; }
.guestbook-reply { padding: 12px 14px 16px; color: #ef2828; border-top: 1px dotted #cfcfcf; font-size: 13px; line-height: 1.7; }
.guestbook-reply b { margin-right: 6px; color: #1673d2; }

.order-archive { padding-bottom: 40px; }
.order-stopped { width: min(720px, calc(100% - 36px)); margin: 20px auto 34px; padding: 15px 18px; display: grid; gap: 6px; color: #6f1515; background: #fff1bd; border: 3px double #c83a2c; }
.order-stopped b { font-size: 17px; }
.order-stopped span { font-size: 12px; line-height: 1.7; }
.order-archive > section { width: min(680px, calc(100% - 36px)); margin: 34px auto 0; font-size: 15px; line-height: 1.85; }
.order-archive h2 { margin: 0 0 14px; font-size: 17px; }
.order-archive ol { margin: 0; padding-left: 1.5em; }
.order-archive li { margin: 6px 0; }

.report-detail { max-width: 980px; margin: 0 auto; }
.report-header { padding: clamp(28px, 5vw, 56px); color: #17202a; background: var(--yellow); border-radius: 16px 4px 16px 4px; box-shadow: var(--shadow); }
.report-header h1 { margin: 0; font: 850 clamp(36px, 6vw, 68px)/1.08 Georgia, "STSong", serif; }
.report-header > p:last-child { max-width: 660px; margin: 20px 0 0; line-height: 1.8; }
.report-content { margin-top: 24px; padding: clamp(24px, 5vw, 58px); color: #27313b; background: var(--paper); border: 1px solid #e7e0ca; box-shadow: 0 12px 36px rgba(23,32,42,.07); line-height: 1.9; overflow-wrap: anywhere; }
.report-content h2, .report-content h3, .report-content h4, .report-content h5, .report-content h6 { color: #17202a; font-family: Georgia, "STSong", serif; line-height: 1.35; }
.report-content h2 { margin: 2.2em 0 .7em; padding-bottom: .35em; font-size: clamp(28px, 4vw, 42px); border-bottom: 2px solid #e2c758; }
.report-content h3 { margin: 1.8em 0 .6em; font-size: 25px; }
.report-content h4 { margin: 1.5em 0 .5em; font-size: 20px; }
.report-content p { margin: 1em 0; }
.report-content blockquote { margin: 1.4em 0; padding: 14px 20px; color: #4f5660; background: #fff7cf; border-left: 5px solid var(--yellow); }
.report-content ul, .report-content ol { padding-left: 1.5em; }
.report-content li { margin: .45em 0; }
.report-content code { padding: .12em .35em; color: #833c18; background: #eee8d5; border-radius: 4px; font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
.report-content pre { overflow-x: auto; padding: 20px; color: #e9eef2; background: #202b37; border-radius: 7px; line-height: 1.65; }
.report-content pre code { padding: 0; color: inherit; background: transparent; }
.report-content a { color: #315f9d; }
.report-content hr { margin: 38px 0; border: 0; border-top: 1px solid #d8cfb2; }
.report-table-wrap { overflow-x: auto; margin: 22px 0; }
.report-content table { width: 100%; min-width: 560px; border-collapse: collapse; background: white; font-size: 14px; line-height: 1.55; }
.report-content th, .report-content td { padding: 10px 12px; text-align: left; vertical-align: top; border: 1px solid #d8d3c3; }
.report-content th { background: #f0e7bd; }

footer {
  min-height: 50px;
  padding: 15px clamp(18px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #7d8893;
  background: #dfe4e8;
  font-size: 12px;
}
footer a { color: inherit; }

@media (max-width: 820px) {
  .topbar { position: static; align-items: stretch; flex-direction: column; gap: 12px; }
  .search { width: 100%; }
  .shell { display: block; }
  .sidebar { position: static; min-height: 0; padding: 14px 16px; }
  .side-label, .archive-note { display: none; }
  #category-nav { display: flex; overflow-x: auto; padding-bottom: 6px; }
  .nav-link { flex: 0 0 auto; white-space: nowrap; background: #2b3743; }
  .nav-count { display: none; }
  .original-link, .legacy-link, .report-link, .blog-link, .private-link { display: inline-flex; margin: 5px 0 0; padding-top: 10px; border: 0; }
  #app { padding: 24px 16px 44px; }
  .hero { padding: 34px 24px 46px; }
  .hero::after { font-size: 90px; }
  .welcome { min-height: 0; padding: 42px 24px 56px; }
  .welcome-facts { grid-template-columns: 1fr 1fr; }
  .welcome-timeline { align-items: start; flex-direction: column; gap: 6px; }
  .welcome-timeline i { width: 1px; height: 16px; margin-left: 16px; }
  .legacy-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
  .card h3 { font-size: 14px; }
  .card p { display: none; }
  .card-body { padding: 12px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .private-actions { grid-template-columns: 1fr; }
  .pager { flex-wrap: wrap; }
  .page-options { grid-template-columns: repeat(4, 1fr); }
  .original-home-links { grid-template-columns: 1fr 1fr; }
  .original-home-frame { border-width: 6px; }
  .guestbook-list { padding: 8px; }
  .guestbook-message { grid-template-columns: 82px minmax(0, 1fr); }
  .guestbook-person { padding: 7px 4px; }
  .guestbook-person img { max-width: 72px; max-height: 105px; }
  .guestbook-body > header { align-items: start; flex-direction: column; }
  .guestbook-copy { padding: 14px 10px; font-size: 13px; }
  .retro-banner span { right: 12px; }
}
