@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --paper-strong: #ebe8df;
  --surface: #fffefa;
  --surface-alt: #faf9f4;
  --ink: #202b29;
  --ink-soft: #4b5955;
  --muted: #78817b;
  --faint: #a9afa7;
  --line: #e4e3db;
  --line-strong: #d2d6cc;
  --teal: #226b61;
  --teal-dark: #184b45;
  --teal-pale: #e7f0ea;
  --rust: #a7513e;
  --rust-pale: #f7eae5;
  --gold: #96743b;
  --gold-pale: #f5f0df;
  --blue: #587490;
  --blue-pale: #eaf0f4;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Noto Serif SC", "Songti SC", serif;
  --sans: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 14px 44px rgb(39 48 42 / 4%), 0 2px 8px rgb(39 48 42 / 3%);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgb(73 88 75 / 3%) 0.65px, transparent 0.65px);
  background-size: 7px 7px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, textarea, select { font: inherit; }
button, select { color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #4b8e7d;
  outline-offset: 3px;
}

.site-frame { min-height: 100vh; }
.skip-link, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  z-index: 20;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  color: var(--surface);
  background: var(--teal-dark);
  border-radius: 3px;
}

.topbar {
  height: 66px;
  padding: 0 5.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(74 83 71 / 10%);
  background: rgb(244 242 236 / 82%);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 20px; height: 22px; display: flex; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--teal); border-radius: 2px; }
.brand-mark span { width: 2px; display: block; background: var(--teal); }
.brand-mark span:nth-child(1) { height: 7px; }
.brand-mark span:nth-child(2) { height: 12px; }
.brand-mark span:nth-child(3) { height: 9px; }
.brand-name { font-family: var(--mono); font-size: 14px; letter-spacing: -.065em; font-weight: 600; }
.brand-name span { color: var(--teal); font-weight: 400; }
.topbar-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.privacy-mark, .archive-status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .04em; }
.privacy-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #60967b; box-shadow: 0 0 0 3px rgb(96 150 123 / 13%); }
.topbar-divider { width: 1px; height: 15px; background: var(--line-strong); }
.topbar-caption, .heading-aside-label { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.topbar-user { display: flex; align-items: center; gap: 9px; }
.user-avatar { width: 25px; height: 25px; display: grid; place-items: center; color: var(--teal-dark); background: var(--teal-pale); border: 1px solid #cbdcd0; border-radius: 50%; font-family: var(--mono); font-size: 11px; }
.user-login { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }

.button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.button:disabled { opacity: .48; cursor: not-allowed; }
.button-primary { color: #fbfcf7; background: var(--teal-dark); border-color: var(--teal-dark); }
.button-primary:hover:not(:disabled) { background: #23635a; border-color: #23635a; transform: translateY(-1px); }
.button-quiet { color: var(--ink-soft); background: transparent; border-color: var(--line); }
.button-quiet:hover:not(:disabled) { color: var(--teal-dark); background: var(--surface-alt); border-color: var(--line-strong); }
.button-small { min-height: 32px; padding: 0 10px; gap: 6px; font-size: 11px; }
.button-arrow { margin-left: auto; font-family: var(--mono); font-size: 16px; }

.auth-view {
  width: min(1110px, calc(100% - 64px));
  min-height: calc(100vh - 66px);
  margin: 0 auto;
  padding: 78px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
  align-items: center;
  gap: clamp(48px, 8vw, 116px);
}
.eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 10px; color: var(--teal); font-size: 11px; letter-spacing: .12em; }
.eyebrow-rule { width: 22px; height: 1px; background: var(--teal); }
.auth-copy h1, .workspace-heading h1 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.055em; }
.auth-copy h1 { font-size: clamp(43px, 5.6vw, 69px); line-height: 1.23; }
.auth-copy h1 em { color: var(--teal); font-weight: 400; }
.auth-intro { max-width: 470px; margin: 24px 0 36px; color: var(--ink-soft); font-size: 14px; line-height: 1.95; }
.auth-features { max-width: 490px; border-top: 1px solid var(--line-strong); }
.feature-row { min-height: 47px; display: grid; grid-template-columns: 37px 1fr 32px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); color: #59635d; font-size: 12px; }
.feature-index { color: var(--teal); font-family: var(--mono); font-size: 10px; }
.feature-row code, .auth-restriction code, .workspace-footer code { color: var(--teal-dark); font-family: var(--mono); font-size: .95em; }
.feature-line { width: 24px; height: 1px; background: var(--line-strong); }
.auth-footnote { margin: 29px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .03em; }
.lock-glyph { color: var(--teal); font-family: var(--mono); font-size: 11px; }
.auth-side { width: 100%; max-width: 405px; justify-self: end; }
.auth-card { padding: 23px 27px 24px; background: var(--surface); border: 1px solid #e8e6dd; box-shadow: var(--shadow); }
.card-index { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .11em; }
.archive-illustration { position: relative; height: 243px; margin: 6px 0 3px; display: grid; place-items: center; overflow: hidden; }
.archive-illustration::before, .archive-illustration::after { position: absolute; content: ""; width: 82%; height: 1px; left: 9%; background: linear-gradient(90deg, transparent, #e3e5dc 15%, #e3e5dc 85%, transparent); }
.archive-illustration::before { top: 51px; }
.archive-illustration::after { bottom: 50px; }
.archive-orbit { position: absolute; border: 1px solid #d6dfd7; border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: 204px; height: 116px; }
.orbit-two { width: 158px; height: 190px; transform: rotate(43deg); border-style: dashed; border-color: #e0e3d9; }
.archive-core { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; gap: 3px; color: var(--teal-dark); background: #edf3ec; border: 1px solid #cfddd0; border-radius: 50%; font-family: var(--mono); font-size: 23px; box-shadow: 0 0 0 9px rgb(237 243 236 / 52%), 0 0 0 10px #e3e9df; }
.archive-core i { color: #82978a; font-size: 13px; font-style: normal; letter-spacing: 1px; }
.archive-node { position: absolute; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; color: var(--teal-dark); background: var(--surface); border: 1px solid #d7e1d7; border-radius: 50%; font-family: var(--mono); font-size: 8px; box-shadow: 0 2px 6px rgb(39 48 42 / 5%); }
.node-one { top: 43px; left: calc(50% - 13px); }
.node-two { right: calc(50% - 111px); bottom: 63px; }
.node-three { left: calc(50% - 119px); bottom: 78px; }
.orbit-label { position: absolute; color: #89958a; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.label-one { left: 5px; top: 95px; }
.label-two { right: 4px; bottom: 94px; }
.auth-card-copy { padding: 20px 0 17px; border-top: 1px solid var(--line); }
.micro-label { margin: 0 0 8px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .11em; }
.auth-card-copy p:last-child { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.6; }
.github-button { width: 100%; min-height: 48px; font-size: 13px; }
.github-mark { width: 23px; height: 23px; display: grid; place-items: center; color: var(--teal-dark); background: #e1ece5; border-radius: 50%; font-family: var(--mono); font-size: 8px; font-weight: 700; }
.auth-restriction { margin: 13px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
.auth-session-notice { margin: 0 0 10px; padding: 8px 10px; color: #744537; background: #f8ede7; border: 1px solid #eed7cb; font-size: 10px; }
.auth-coordinate { margin-top: 13px; display: flex; justify-content: space-between; color: #899188; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }

.boot-state { min-height: calc(100vh - 66px); display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 12px; }
.boot-mark { display: inline-flex; align-items: center; gap: 3px; height: 19px; }
.boot-mark span { width: 3px; background: var(--teal); animation: boot-pulse 900ms ease-in-out infinite alternate; }
.boot-mark span:nth-child(1) { height: 8px; animation-delay: 0ms; }
.boot-mark span:nth-child(2) { height: 15px; animation-delay: 170ms; }
.boot-mark span:nth-child(3) { height: 11px; animation-delay: 340ms; }
@keyframes boot-pulse { to { opacity: .38; transform: scaleY(.62); } }

.workspace { width: min(1360px, calc(100% - 80px)); margin: 0 auto; padding: 48px 0 38px; }
.workspace-heading { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; }
.workspace-heading .eyebrow { margin-bottom: 9px; }
.workspace-heading h1 { font-size: clamp(38px, 4.3vw, 53px); line-height: 1.15; }
.heading-period { color: var(--teal); }
.heading-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-bottom: 6px; color: var(--muted); }
.heading-aside-label { color: #969d95; }
.archive-status { color: var(--ink-soft); }
.notice { margin: 0 0 20px; min-height: 45px; padding: 9px 12px; display: flex; align-items: center; gap: 10px; color: #744537; background: #f8ede7; border: 1px solid #eed7cb; font-size: 12px; }
.notice-icon { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #d4aa98; border-radius: 50%; font-family: var(--mono); font-size: 11px; }
.notice-message { flex: 1; }
.notice-dismiss { padding: 0 4px; border: 0; color: inherit; background: none; cursor: pointer; font-size: 20px; line-height: 1; }
.workspace-grid { display: grid; grid-template-columns: minmax(258px, 310px) minmax(0, 1fr); align-items: start; gap: 20px; }
.panel { min-width: 0; background: var(--surface); border: 1px solid #e6e5dc; box-shadow: 0 4px 20px rgb(39 48 42 / 2.5%); }
.archive-panel { min-height: 456px; padding: 20px 18px 13px; position: sticky; top: 18px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.history-heading h2 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 20px; line-height: 1; transition: transform 180ms ease, color 160ms ease; }
.icon-button:hover:not(:disabled) { color: var(--teal); transform: rotate(-35deg); }
.icon-button:disabled { opacity: .45; cursor: not-allowed; }
.history-summary { margin-top: 19px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.history-summary-rule { height: 1px; flex: 1; background: var(--line); }
.history-summary #history-total { color: var(--teal-dark); }
.version-list { min-height: 223px; max-height: 60vh; overflow-y: auto; margin-top: 12px; }
.version-card { position: relative; padding: 13px 10px 12px 12px; border-top: 1px solid var(--line); cursor: pointer; transition: background-color 150ms ease; }
.version-card:hover { background: #f8f8f2; }
.version-card.is-active { background: #f2f6f0; }
.version-card.is-active::before { position: absolute; inset: 0 auto 0 0; width: 2px; content: ""; background: var(--teal); }
.version-top { display: flex; align-items: start; gap: 8px; }
.version-id { margin-top: 2px; color: #849188; font-family: var(--mono); font-size: 9px; flex: 0 0 auto; }
.version-title { min-width: 0; flex: 1; color: var(--ink); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.version-card.is-active .version-title { color: var(--teal-dark); }
.version-card.is-active .version-indicators:empty { display: none; }
.version-indicators { display: flex; gap: 4px; flex: 0 0 auto; }
.version-indicator { width: 16px; height: 16px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--mono); font-size: 8px; line-height: 1; }
.version-indicator.is-before { color: var(--blue); border-color: #b7c9d7; background: var(--blue-pale); }
.version-indicator.is-after { color: var(--teal); border-color: #b6d2c5; background: var(--teal-pale); }
.version-meta { margin: 6px 0 0 27px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; color: var(--muted); font-size: 9px; }
.version-meta .version-date { font-family: var(--mono); font-size: 8px; }
.version-meta .snapshot-undated { color: #8a7d5f; font-family: var(--sans); font-size: 8px; }
.version-meta .version-source { color: #7d8a7d; font-family: var(--mono); font-size: 8px; }
.version-hash { max-width: 108px; overflow: hidden; color: #72817a; font-family: var(--mono); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.version-note-text { margin: 7px 0 0 27px; max-height: 2.8em; overflow: hidden; color: #7c857d; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.version-actions { margin: 7px 0 0 27px; display: flex; align-items: center; gap: 10px; }
.text-action { padding: 0; border: 0; color: var(--teal); background: transparent; cursor: pointer; text-decoration: none; font-size: 9px; }
.text-action:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; }
.history-skeleton { display: grid; gap: 0; }
.history-skeleton span { height: 70px; border-top: 1px solid var(--line); background: linear-gradient(90deg, transparent 0%, #f6f6f0 45%, transparent 90%); background-size: 220% 100%; animation: skeleton 1.35s ease-in-out infinite; }
@keyframes skeleton { to { background-position: -220% 0; } }
.history-empty { min-height: 244px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.empty-mark { color: #b2c3b4; font-family: var(--mono); font-size: 25px; letter-spacing: .08em; }
.history-empty p { margin: 12px 0 3px; color: var(--ink); font-family: var(--serif); font-size: 17px; }
.history-empty > span:last-child { font-size: 10px; }
.history-pagination { min-height: 46px; margin-top: 6px; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.page-indicator { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.history-footnote { margin: 8px 0 0; color: #989f97; font-size: 9px; text-align: center; }
.main-column { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.upload-panel, .compare-panel { padding: 19px 24px 20px; }
.section-topline { display: flex; align-items: center; gap: 11px; }
.section-number { color: var(--teal); font-family: var(--mono); font-size: 9px; }
.section-track { width: 34px; height: 1px; background: #bdcfc2; }
.section-tag { color: #989f97; font-family: var(--mono); font-size: 8px; letter-spacing: .13em; }
.upload-header, .compare-header { margin: 14px 0 17px; display: flex; align-items: end; justify-content: space-between; }
.upload-header h2, .compare-header h2 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: -.035em; line-height: 1.25; }
.upload-caption { margin: 0 2px 1px 18px; color: var(--muted); font-size: 10px; line-height: 1.8; text-align: right; }
.source-tabs { display: flex; border-bottom: 1px solid var(--line); }
.source-tab { min-height: 37px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; }
.source-tab:hover { color: var(--teal); }
.source-tab.is-active { color: var(--teal-dark); border-bottom-color: var(--teal); }
.tab-icon { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--mono); font-size: 12px; line-height: 1; }
.tab-code { width: auto; border: 0; font-size: 9px; }
.source-panel { padding-top: 12px; }
.drop-zone { position: relative; min-height: 103px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #bfcabf; background: var(--surface-alt); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--teal); background: #f0f5ef; }
.drop-zone:focus-within { outline: 3px solid #4b8e7d; outline-offset: 3px; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-symbol { width: 23px; height: 23px; margin-bottom: 5px; display: grid; place-items: center; color: var(--teal); border: 1px solid #c4d7c7; border-radius: 50%; font-family: var(--mono); font-size: 14px; }
.drop-title { color: var(--ink); font-size: 11px; font-weight: 600; }
.drop-hint { color: var(--muted); font-size: 9px; }
.drop-limit { position: absolute; right: 9px; bottom: 7px; color: #969e96; font-family: var(--mono); font-size: 8px; }
.json-input { width: 100%; min-height: 126px; padding: 11px 12px; display: block; resize: vertical; color: var(--ink-soft); background: var(--surface-alt); border: 1px solid var(--line); border-radius: 0; font-family: var(--mono); font-size: 10px; line-height: 1.65; tab-size: 2; }
.json-input::placeholder { color: #a4aaa2; }
.json-input:focus { border-color: #86aa9b; outline: 2px solid rgb(75 142 125 / 18%); outline-offset: 0; }
.editor-footer { margin-top: 5px; display: flex; justify-content: space-between; color: #929c93; font-family: var(--mono); font-size: 8px; }
.editor-footer > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.editor-dot { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: #81a48c; }
.form-fields { margin-top: 12px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; }
.field-label { display: block; color: var(--ink-soft); font-size: 10px; }
.field-label > span { margin-left: 5px; color: #9aa198; font-size: 9px; }
.text-input { width: 100%; min-height: 34px; margin-top: 5px; padding: 6px 9px; color: var(--ink); background: #fffefa; border: 1px solid var(--line); border-radius: 0; font-size: 10px; }
.text-input::placeholder { color: #a6aca3; }
.text-input:focus { border-color: #86aa9b; outline: 2px solid rgb(75 142 125 / 15%); outline-offset: 0; }
.form-footer { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.form-security { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.form-security .privacy-dot { width: 6px; height: 6px; }
.save-button { min-height: 36px; padding: 0 12px; gap: 20px; font-size: 10px; }
.save-button[aria-busy="true"] { cursor: wait; }
.form-message { margin: 10px 0 0; padding: 8px 10px; color: #744537; background: #f8ede7; border: 1px solid #eed7cb; font-size: 10px; }
.form-message.is-success { color: #325d47; background: #edf4ec; border-color: #d1e2d0; }

.compare-header { align-items: center; margin-bottom: 16px; }
.compare-stamp { width: 45px; height: 45px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #d8e1d7; border-radius: 50%; color: #788c7b; font-family: var(--mono); font-size: 6px; letter-spacing: .08em; line-height: 1.55; transform: rotate(9deg); }
.compare-stamp b { color: var(--teal); font-size: 8px; font-weight: 500; }
.compare-controls { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.select-field { min-width: 0; display: block; }
.select-label { margin-bottom: 6px; display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 10px; }
.version-marker { width: 7px; height: 7px; border: 1px solid var(--blue); border-radius: 50%; }
.marker-after { border-color: var(--teal); background: var(--teal); }
.select-field select { width: 100%; min-height: 37px; padding: 0 30px 0 10px; color: var(--ink); background-color: #fffefa; border: 1px solid var(--line-strong); border-radius: 0; cursor: pointer; font-size: 10px; text-overflow: ellipsis; }
.select-field select:disabled { color: #a4aaa3; cursor: not-allowed; background-color: #f8f7f2; }
.swap-button { width: 30px; height: 30px; margin-bottom: 3px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 17px; transition: color 150ms ease, transform 180ms ease; }
.swap-button:hover:not(:disabled) { color: var(--teal); transform: rotate(180deg); }
.swap-button:disabled { opacity: .42; cursor: not-allowed; }
.compare-button { min-height: 37px; padding: 0 13px; gap: 18px; white-space: nowrap; font-size: 10px; }
.compare-options { margin-top: 15px; padding-top: 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.mode-fieldset { min-width: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 13px; border: 0; }
.mode-fieldset legend { float: left; padding: 0; margin: 0 5px 0 0; color: var(--muted); font-size: 9px; }
.mode-option { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); cursor: pointer; font-size: 9px; white-space: nowrap; }
.mode-option input { width: 12px; height: 12px; margin: 0; accent-color: var(--teal); }
.mode-detail { color: #939b92; }
.compare-explainer { margin: 0; color: #919a91; font-size: 9px; text-align: right; }
.compare-placeholder { min-height: 84px; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #959e95; background: #faf9f4; border: 1px dashed #e3e4dc; font-size: 10px; }
.placeholder-glyph { color: #93ac9a; font-family: var(--mono); font-size: 19px; }
.compare-result { margin-top: 18px; border-top: 1px solid var(--line); }
.keyed-array-note { margin: 0; padding: 7px 9px; color: #617565; background: #f3f6f0; border-bottom: 1px solid var(--line); font-size: 9px; overflow-wrap: anywhere; }
.result-overview { min-height: 74px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.result-title { min-width: 0; }
.result-title strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.result-title span { display: block; margin-top: 3px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.result-summary { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.summary-chip { min-width: 46px; padding: 4px 6px; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--ink-soft); background: var(--surface-alt); border: 1px solid var(--line); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.summary-chip b { font-weight: 600; }
.summary-chip.kind-added { color: #3d7653; background: #eff5ed; border-color: #d9e7d7; }
.summary-chip.kind-removed { color: #9b5443; background: #f8eee8; border-color: #efdcd3; }
.summary-chip.kind-changed { color: #8c703d; background: #f7f2e6; border-color: #ece2c5; }
.summary-chip.kind-reordered { color: #5b748c; background: #eef2f5; border-color: #dce4e8; }
.identical-note { padding: 7px 9px; color: #456b53; background: #eff5ed; border: 1px solid #dce8d9; font-size: 9px; }
.result-toolbar { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kind-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.filter-chip { min-height: 26px; padding: 0 7px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; border-radius: 2px; color: var(--muted); background: transparent; cursor: pointer; font-size: 9px; white-space: nowrap; }
.filter-chip span { color: #969e95; font-family: var(--mono); font-size: 8px; }
.filter-chip:hover { color: var(--ink); background: #f6f5ef; }
.filter-chip.is-selected { color: var(--teal-dark); background: #eef3ed; border-color: #d8e5d7; }
.filter-chip.is-selected span { color: var(--teal); }
.kind-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; }
.kind-added { background: #6eaa76; }
.kind-removed { background: #c67860; }
.kind-changed { background: #c2a253; }
.kind-reordered { background: #7997b2; }
.search-field { width: min(190px, 29%); min-height: 29px; padding: 0 6px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fffefa; }
.search-icon { color: #87938a; font-family: var(--serif); font-size: 19px; line-height: 1; transform: rotate(-15deg); }
.search-field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 9px; }
.search-field input::placeholder { color: #a1a9a0; }
.search-field:focus-within { border-color: #86aa9b; outline: 2px solid rgb(75 142 125 / 15%); }
.search-field kbd { padding: 0 4px; color: #9ba29a; background: #f5f4ee; border: 1px solid var(--line); font-family: var(--mono); font-size: 8px; }
.diff-columns { min-height: 27px; padding: 0 9px; display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px; color: #98a098; background: #f8f7f2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 8px; letter-spacing: .06em; }
.diff-columns span:not(:first-child) { padding-left: 7px; border-left: 1px solid var(--line); }
.diff-row { padding: 8px 9px; display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; border-bottom: 1px solid #eeede6; align-items: start; }
.diff-row:last-child { border-bottom: 0; }
.diff-row:hover { background: #fcfbf7; }
.diff-path-wrap { min-width: 0; display: flex; align-items: flex-start; gap: 6px; }
.change-badge { min-width: 19px; height: 16px; margin-top: 1px; padding: 0 4px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 1px; font-family: var(--mono); font-size: 8px; line-height: 1; }
.change-badge.kind-added { color: #3d7653; background: #e7f1e5; }
.change-badge.kind-removed { color: #a45340; background: #f7e8e1; }
.change-badge.kind-changed { color: #8a6d35; background: #f4eedb; }
.change-badge.kind-reordered { color: #57748f; background: #e9eff3; }
.diff-path { min-width: 0; color: #475750; font-family: var(--mono); font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.diff-path-title { color: #75857a; font-family: var(--sans); font-size: 8px; }
.diff-value { min-width: 0; min-height: 25px; max-height: 150px; padding: 4px 7px; overflow: auto; color: #705048; background: #fbf3ef; border-left: 2px solid #e5c5b8; font-family: var(--mono); font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.diff-value.is-after { color: #355d4e; background: #f0f6ee; border-left-color: #bfd5be; }
.diff-value.is-missing { color: #989f96; background: #f5f4ef; border-left-color: #deded5; font-style: italic; }
.result-empty { padding: 27px 12px; color: var(--muted); background: #faf9f4; font-size: 10px; text-align: center; }
.result-truncated { margin-top: 10px; padding: 8px 10px; display: flex; gap: 8px; color: #7d683a; background: #f8f4e7; border: 1px solid #ebe2c5; font-size: 9px; }
.result-truncated > span:first-child { width: 15px; height: 15px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #c9b77e; border-radius: 50%; font-family: var(--mono); font-size: 9px; }
.result-footer { min-height: 38px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.result-footer .button { min-height: 28px; }
.person-report { margin-top: 4px; }
.report-heading { padding: 12px 0 9px; border-bottom: 1px solid var(--line); }
.report-version-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink); font-family: var(--serif); font-size: 16px; overflow-wrap: anywhere; }
.snapshot-date { padding: 3px 7px; color: var(--teal-dark); background: var(--teal-pale); border: 1px solid #ccddd0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.snapshot-date.is-unknown { color: #786b4d; background: #f6f1e4; border-color: #e8dfc5; font-family: var(--sans); font-size: 10px; letter-spacing: 0; }
.report-time-line { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.report-metrics { padding: 13px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; border-bottom: 1px solid var(--line); }
.report-metric { min-height: 57px; padding: 8px 9px; display: flex; flex-direction: column; justify-content: center; background: var(--surface-alt); border: 1px solid var(--line); }
.report-metric strong { color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.1; }
.report-metric span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.report-metric.is-added strong { color: #3d7653; }
.report-metric.is-removed strong { color: #a45340; }
.report-metric.is-changed strong { color: #8a6d35; }
.report-metric:nth-child(9) strong,
.report-metric:nth-child(10) strong { color: #5b748c; }
.report-metric:nth-child(11) strong,
.report-metric:nth-child(12) strong { color: #6a7855; }
.report-section-heading, .report-details-heading { min-height: 62px; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.report-section-heading .micro-label, .report-details-heading .micro-label { margin-bottom: 3px; }
.report-section-heading h3, .report-details-heading h3 { margin: 0; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.report-table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.report-table { width: 100%; border-collapse: collapse; font-size: 10px; text-align: left; }
.report-table th { padding: 8px 9px; color: #88938a; background: #f8f7f2; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 500; white-space: nowrap; }
.report-table td { padding: 8px 9px; color: var(--ink-soft); border-bottom: 1px solid #eeede6; vertical-align: top; }
.report-table tbody tr:last-child td { border-bottom: 0; }
.field-table th:nth-child(3), .field-table th:nth-child(4), .field-table td:nth-child(3), .field-table td:nth-child(4) { text-align: right; }
.field-table td:nth-child(3), .field-table td:nth-child(4) { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.field-filter-button { padding: 1px 0; border: 0; color: var(--teal-dark); background: transparent; cursor: pointer; font-size: 10px; font-weight: 600; text-align: left; text-decoration: underline; text-decoration-color: #c4d7c7; text-underline-offset: 3px; }
.field-filter-button:hover { color: var(--teal); text-decoration-color: currentColor; }
.field-filter-button[aria-pressed="true"] { color: var(--teal); text-decoration-color: currentColor; }
.field-technical { margin-left: 5px; padding: 1px 4px; color: #687d8a; background: #edf2f4; font-size: 8px; white-space: nowrap; }
.raw-field-name { color: #7b8980; font-family: var(--mono); font-size: 9px; overflow-wrap: anywhere; }
.report-details-heading { padding-top: 17px; }
.report-export { flex: 0 0 auto; }
.report-toolbar { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.report-search { width: min(390px, 64%); min-height: 34px; }
.meta-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); cursor: pointer; font-size: 10px; white-space: nowrap; }
.meta-toggle input { width: 14px; height: 14px; margin: 0; accent-color: var(--teal); }
.meta-toggle small { margin-left: 2px; color: #929c93; font-size: 8px; }
.report-filter-note { min-height: 18px; margin: 0; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.detail-table { min-width: 640px; table-layout: fixed; }
.detail-table th:nth-child(1) { width: 21%; }
.detail-table th:nth-child(2) { width: 23%; }
.detail-table th:nth-child(3), .detail-table th:nth-child(4) { width: 28%; }
.detail-table td { font-size: 10px; overflow-wrap: anywhere; white-space: pre-wrap; }
.person-identity { display: grid; gap: 3px; }
.person-name { color: var(--ink); font-weight: 600; }
.person-meta { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.report-change-kind { display: inline-block; margin-right: 5px; padding: 1px 4px; color: #8a6d35; background: #f4eedb; font-size: 8px; white-space: nowrap; }
.report-change-kind.kind-added { color: #3d7653; background: #e7f1e5; }
.report-change-kind.kind-removed { color: #a45340; background: #f7e8e1; }
.report-field-label { color: var(--ink-soft); font-weight: 600; }
.report-field-name { display: block; margin-top: 3px; color: #8b968d; font-family: var(--mono); font-size: 8px; }
.report-value-before { color: #705048 !important; background: #fbf3ef; }
.report-value-after { color: #355d4e !important; background: #f0f6ee; }
.report-person-event { color: #8b6a38 !important; font-style: italic; }
.report-empty { padding: 24px 12px; color: var(--muted); background: #faf9f4; font-size: 10px; text-align: center; }
.report-error { margin: 9px 0; padding: 8px 10px; color: #744537; background: #f8ede7; border: 1px solid #eed7cb; font-size: 10px; }
.report-pagination { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.report-pagination > div { display: flex; align-items: center; gap: 9px; }
.report-page-number { white-space: nowrap; }
.technical-details { margin-top: 15px; border-top: 1px solid var(--line); }
.technical-details summary { padding: 12px 2px; color: var(--teal-dark); cursor: pointer; font-size: 10px; font-weight: 600; }
.technical-details summary:hover { color: var(--teal); }
.technical-intro { margin: 0 0 8px; color: var(--muted); font-size: 9px; }
.technical-diff-mount .compare-options { margin-top: 0; }
.technical-diff-mount .result-overview { border-top: 1px solid var(--line); }
.generic-diff-view { margin-top: 18px; }
.compare-result[aria-busy="true"] .report-table-wrap { opacity: .58; }
.compare-result[aria-busy="true"] .report-pagination { cursor: wait; }
.workspace-footer { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8b948b; font-family: var(--mono); font-size: 8px; letter-spacing: .04em; }
.footer-separator { padding: 0 5px; color: #b6bcb3; }

.noscript-message { position: fixed; inset: auto 16px 16px; padding: 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); text-align: center; }

.version-title, .select-field select, .text-input, .source-tab,
.save-button, .compare-button, .json-input { font-size: 13px; }
.version-meta, .version-meta .version-date, .version-hash, .version-note-text,
.text-action, .field-label, .select-label, .mode-option, .mode-fieldset legend,
.compare-explainer, .filter-chip, .filter-chip span, .search-field input,
.diff-path, .diff-value, .history-summary, .form-message, .drop-title,
.drop-hint, .result-title span, .version-meta .snapshot-undated, .version-meta .version-source { font-size: 11px; }
.version-actions { flex-wrap: wrap; }
.text-action { min-height: 28px; display: inline-flex; align-items: center; }

@media (min-width: 1500px) {
  .workspace { padding-top: 58px; }
  .upload-panel, .compare-panel { padding-right: 28px; padding-left: 28px; }
}

@media (max-width: 980px) {
  .auth-view { gap: 44px; }
  .auth-copy h1 { font-size: clamp(43px, 6vw, 59px); }
  .workspace { width: min(100% - 42px, 800px); }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .archive-panel { min-height: 0; position: static; }
  .version-list { min-height: 0; max-height: 280px; }
  .version-card { padding-top: 10px; padding-bottom: 10px; }
  .history-empty { min-height: 130px; }
  .history-pagination { margin-top: 3px; }
}

@media (max-width: 640px) {
  .topbar { height: 57px; padding: 0 19px; }
  .topbar-meta { gap: 9px; }
  .topbar-caption, .topbar-divider { display: none; }
  .privacy-mark { font-size: 10px; }
  .topbar-user { gap: 6px; }
  .user-login { display: none; }
  .auth-view { width: min(100% - 40px, 440px); min-height: 0; padding: 55px 0 36px; grid-template-columns: 1fr; gap: 34px; }
  .auth-copy h1 { font-size: clamp(44px, 12vw, 60px); }
  .auth-intro { margin: 17px 0 25px; font-size: 13px; }
  .feature-row { min-height: 43px; grid-template-columns: 30px 1fr 18px; gap: 8px; font-size: 10px; }
  .feature-line { width: 15px; }
  .auth-footnote { margin-top: 20px; font-size: 9px; }
  .auth-side { max-width: 440px; justify-self: stretch; }
  .auth-card { padding: 18px 19px 20px; }
  .archive-illustration { height: 190px; }
  .orbit-one { width: 174px; height: 100px; }
  .orbit-two { width: 135px; height: 158px; }
  .archive-core { width: 69px; height: 69px; font-size: 20px; }
  .node-one { top: 28px; }
  .node-two { right: calc(50% - 98px); bottom: 48px; }
  .node-three { left: calc(50% - 103px); bottom: 64px; }
  .workspace { width: calc(100% - 30px); padding: 30px 0 25px; }
  .workspace-heading { margin-bottom: 20px; }
  .workspace-heading h1 { font-size: 39px; }
  .workspace-heading .eyebrow { font-size: 10px; }
  .heading-aside-label { font-size: 7px; }
  .archive-status { gap: 6px; font-size: 9px; }
  .heading-aside { padding-bottom: 3px; }
  .workspace-grid { gap: 13px; }
  .main-column { gap: 13px; }
  .archive-panel { padding: 16px 14px 11px; }
  .upload-panel, .compare-panel { padding: 16px 14px; }
  .upload-header, .compare-header { margin-top: 11px; }
  .upload-header h2, .compare-header h2 { font-size: 23px; }
  .upload-caption { font-size: 9px; }
  .form-fields { grid-template-columns: 1fr; gap: 9px; }
  .text-input { min-height: 36px; }
  .compare-controls { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); gap: 7px; }
  .compare-button { grid-column: 1 / -1; width: 100%; margin-top: 3px; }
  .compare-options { align-items: flex-start; flex-direction: column; gap: 7px; }
  .mode-fieldset { flex-wrap: wrap; gap: 9px; }
  .compare-explainer { text-align: left; }
  .result-overview { align-items: flex-start; flex-direction: column; gap: 9px; }
  .result-summary { justify-content: flex-start; }
  .result-toolbar { padding: 7px 0; align-items: flex-start; flex-direction: column-reverse; gap: 5px; }
  .kind-filters { gap: 2px; }
  .filter-chip { padding: 0 6px; }
  .search-field { width: 100%; }
  .diff-columns { display: none; }
  .diff-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; padding: 12px 0; }
  .diff-path-wrap { grid-column: 1 / -1; }
  .diff-path-wrap { gap: 4px; }
  .change-badge { min-width: 16px; height: 15px; padding: 0 3px; font-size: 7px; }
  .diff-path { font-size: 11px; }
  .diff-value { padding: 6px; font-size: 11px; }
  .diff-value::before { content: "之前"; display: block; margin-bottom: 5px; font-family: var(--sans); color: var(--muted); }
  .diff-value.is-after::before { content: "之后"; }
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-metrics .report-metric:nth-child(odd):last-child { grid-column: 1 / -1; }
  .report-toolbar { align-items: stretch; flex-direction: column; gap: 9px; padding: 9px 0; }
  .report-search { width: 100%; }
  .meta-toggle { flex-wrap: wrap; white-space: normal; }
  .report-section-heading, .report-details-heading { min-height: 58px; }
  .report-table { min-width: 510px; }
  .field-table { min-width: 480px; }
  .report-table td, .report-table th { padding-right: 7px; padding-left: 7px; }
  .report-pagination { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; padding: 7px 0; }
  .report-pagination > div { width: 100%; justify-content: space-between; }
  .report-version-line { font-size: 14px; }
  .text-input, .json-input, .select-field select { font-size: 16px; }
  .workspace-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding-top: 5px; font-size: 7px; }
}

@media (max-width: 370px) {
  .topbar { padding: 0 13px; }
  .auth-view { width: calc(100% - 28px); }
  .workspace { width: calc(100% - 22px); }
  .workspace-heading h1 { font-size: 35px; }
  .heading-aside-label { letter-spacing: .03em; }
  .archive-status { font-size: 8px; }
  .upload-panel, .compare-panel { padding-right: 11px; padding-left: 11px; }
  .mode-detail { display: none; }
  .diff-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
