:root {
  color-scheme: light;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --ink: #202438;
  --muted: #626879;
  --line: #e1e3eb;
  --paper: #fff;
  --canvas: #f6f7fb;
  --accent: #344db4;
  --radius: 12px;
  background: var(--canvas);
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button, a, input, select { touch-action: manipulation; }
button { color: inherit; }
button:disabled { cursor: wait; opacity: .64; }
a { color: inherit; text-decoration: none; }
input { min-width: 0; }
button, input, select { border-radius: 7px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #657bff; outline-offset: 3px; }
input:focus-visible { outline-offset: 1px; }
button:active, .action-link:active { opacity: .83; }
button, a { transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
[hidden] { display: none !important; }
.sr-only, .symbol-bank { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip { position: fixed; top: -90px; left: 20px; z-index: 15; border-radius: 5px; padding: 10px 14px; color: white; background: var(--accent); }
.skip:focus { top: 10px; }
.wrap { width: min(1184px, calc(100% - 88px)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand, nav, nav a, .brand-caption, .submit-button, .link-field, .section-heading, .public-label, .controls, .search-field, .status-filter, .list-label, .secondary-button, .primary-button, .danger-button, .action-link, .text-button { display: inline-flex; align-items: center; }
.brand { gap: 10px; white-space: nowrap; }
.brand strong { font-size: 23px; font-weight: 800; letter-spacing: .02em; }
.brand-rule { height: 19px; width: 1px; background: #d8dbe5; margin-inline: 5px; }
.brand-caption { color: var(--muted); font-size: 14px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
nav { justify-content: end; gap: 8px; }
nav a { gap: 7px; min-height: 44px; border-radius: 7px; padding: 0 13px; color: #575e70; font-weight: 550; font-size: 14px; }
nav a:hover { background: #f4f5f9; }
nav a[aria-current="page"] { color: #3447a3; background: #edf0fc; }
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: 36px; min-height: 272px; display: flex; align-items: center; border-radius: 18px; background: radial-gradient(ellipse at 100% 90%,#4d69c1 0%,#344b94 27%,transparent 62%), linear-gradient(105deg,#202d57 0%,#242f5e 48%,#344582 100%); color: white; }
.hero::before { content: ""; pointer-events: none; position: absolute; inset: 0 0 0 40%; z-index: -1; opacity: .38; background-image: radial-gradient(#a9baf5 .8px,transparent .9px); background-size: 14px 14px; mask-image: linear-gradient(to right,transparent,#000 90%); }
.hero::after { content: ""; position: absolute; inset: 1px; border: 1px solid #dbe4ff15; border-radius: 17px; pointer-events: none; }
.hero-art { pointer-events: none; position: absolute; top: 50%; right: 1%; transform: translateY(-50%); height: 119%; width: 36%; display: grid; place-items: center; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; }
.hero-body { position: relative; padding: 42px 0 40px 44px; width: 65.5%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(32px,3.5vw,48px); letter-spacing: .035em; line-height: 1.28; font-weight: 740; }
.hero-body > p { color: #d6def3; font-size: 15px; line-height: 1.65; margin-top: 12px; }
.submit-line { display: flex; gap: 7px; padding: 5px; border-radius: 10px; background: #fff; width: 100%; max-width: 684px; margin-top: 26px; }
.link-field { gap: 11px; padding-left: 13px; color: #697085; flex: 1 1 auto; min-width: 0; }
.link-field input, .search-field input { flex: 1 1 auto; background: transparent; border: 0; color: var(--ink); width: 100%; min-height: 44px; padding: 4px 3px; }
input::placeholder { color: #707587; opacity: 1; }
.link-field input { font-size: 15px; }
.submit-button { border: 0; white-space: nowrap; min-height: 44px; gap: 8px; justify-content: center; border-radius: 6px; padding: 0 20px; font-size: 15px; font-weight: 650; color: #fff; background: #405ac3; }
.submit-button:hover, .primary-button:hover { background: #30449c; }
.hero-feedback { font-size: 13px; line-height: 1.55; color: #fff; margin-top: 9px; overflow-wrap: anywhere; }
.hero-feedback:empty { display: none; }
.hero-feedback.error { color: #ffd6cd; }
.collection { margin: 38px 0 60px; }
.section-bar, .list-bar, .row, .dialog-heading, .file-row, .dialog-actions, .detail-subhead { display: flex; align-items: center; justify-content: space-between; }
.section-bar { gap: 16px; margin-bottom: 18px; }
.section-heading { gap: 15px; }
.section-heading h2 { font-size: 27px; line-height: 1.4; font-weight: 720; letter-spacing: .025em; }
.public-label { gap: 5px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.public-label .icon { width: 15px; height: 15px; }
.controls { gap: 8px; }
.search-field, .status-filter { height: 44px; background: var(--paper); border: 1px solid #d8dce6; border-radius: 8px; color: #646b7f; }
.search-field { width: 228px; gap: 7px; padding-left: 12px; padding-right: 5px; }
.search-field input { min-height: 36px; padding-right: 4px; font-size: 14px; }
.status-filter { position: relative; }
.status-filter .icon { pointer-events: none; position: absolute; left: 10px; width: 17px; height: 17px; }
.status-filter select { appearance: none; width: 100%; min-height: 42px; border: 0; color: #434b5e; background: transparent; padding: 0 12px 0 33px; font-size: 14px; }
.list-shell { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.list-bar { gap: 10px; padding: 0 24px; min-height: 48px; background: #fbfbfd; border-bottom: 1px solid var(--line); color: #5a6173; font-size: 13px; }
.list-label { gap: 9px; font-weight: 600; }
.list-label .icon { width: 16px; height: 16px; }
#item-count { font-family: system-ui,sans-serif; font-variant-numeric: tabular-nums; background: #ebedf4; color: #4b5268; min-width: 23px; padding: 1px 7px; border-radius: 5px; font-size: 12px; text-align: center; }
#item-count:empty { display: none; }
.row { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; padding: 17px 23px 17px 16px; min-height: 104px; gap: 12px; }
.row + .row { border-top: 1px solid #e9ebf1; }
.row.selected-row { background: #f5f7ff; }
.row-pick, .check-all { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; cursor: pointer; }
.check-all { gap: 10px; }
.row-pick input, .check-all input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.archive-id { background: #edf0f6; border-radius: 4px; color: #424d67; font: 600 12px/1.6 system-ui,sans-serif; padding: 0 5px; }
.batch-bar, .batch-actions, .page-switch, .pagination, .page-size, .identity-ids { display: flex; align-items: center; }
.batch-bar { justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; border-bottom: 1px solid #dbe0f1; background: #edf1ff; padding: 9px 20px; }
.selection-info { display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: baseline; }
.selection-info strong { color: #334891; font-size: 14px; }
#selection-note { font-size: 12px; color: #556079; }
.batch-actions { gap: 7px; }
.batch-actions .icon { width: 15px; height: 15px; }
#batch-delete { color: #8a383a; }
.pagination { justify-content: space-between; gap: 8px; min-height: 56px; padding: 5px 18px 5px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.page-size { gap: 5px; }
.page-size select { min-height: 42px; padding: 0 4px; background: transparent; border: 0; color: var(--ink); }
.page-switch { gap: 2px; }
.page-switch .icon-btn { width: 40px; }
.page-switch .icon-btn:disabled { opacity: .34; cursor: default; }
.flip { transform: rotate(180deg); }
.identity-ids { flex-wrap: wrap; gap: 4px 16px; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; margin-top: 6px; }
.comments-count, .scope { font-size: 14px; line-height: 1.6; color: var(--muted); }
.comments-count { color: var(--ink); }
.comment-list { max-height: 26rem; overflow: auto; font-size: 14px; line-height: 1.7; }
.comment { padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.comment p { white-space: pre-wrap; }
.comment .reply { padding-left: 10px; border-left: 2px solid var(--line); margin: 5px 0 0 4px; }
.row-main { display: flex; align-items: center; flex: 1; min-width: 0; gap: 15px; text-align: left; border: 0; padding: 0; background: transparent; }
.row-main:hover .row-title { color: var(--accent); }
.thumb { display: grid; place-items: center; position: relative; flex: none; width: 68px; height: 68px; border-radius: 8px; overflow: hidden; isolation: isolate; color: #52649c; background: linear-gradient(140deg,#e2e9fb,#f1f4fc 60%,#dce2f3); }
.thumb .icon { width: 25px; height: 25px; stroke-width: 1.4; }
.thumb img { position: absolute; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: #edeef4; }
.row-text { display: block; min-width: 0; }
.row-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; line-height: 1.5; font-size: 16px; font-weight: 650; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.row-tail { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-shrink: 0; }
.badge { display: inline-flex; align-items: center; white-space: nowrap; align-self: center; gap: 6px; font-size: 12px; line-height: 1.7; border-radius: 5px; padding: 2px 8px; color: #47588b; background: #ecf0fa; }
.badge::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.badge.ready { color: #166548; background: #e6f4ed; }
.badge.partial { color: #804f12; background: #fff2d8; }
.badge.failed { color: #9c3d37; background: #fbece9; }
.action-link, .secondary-button, .primary-button, .danger-button { gap: 7px; min-height: 44px; justify-content: center; border-radius: 7px; padding: 7px 13px; font-size: 14px; font-weight: 550; line-height: 1.35; }
.action-link, .secondary-button { border: 1px solid #d9dce5; background: #fff; color: #3d4660; }
.action-link:hover, .secondary-button:hover, .icon-btn:hover { background: #f3f5fb; border-color: #c6cce0; }
.action-link .icon { width: 16px; height: 16px; }
.primary-button { background: var(--accent); color: white; border: 1px solid transparent; }
.text-button { gap: 6px; border: 0; background: transparent; min-height: 44px; font-size: 14px; padding: 4px 7px; color: var(--accent); }
.text-button:hover { background: #f0f2fa; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.empty { text-align: center; padding: 42px 18px 44px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.empty h3 { font-size: 17px; color: #394158; margin: 10px 0 3px; }
.empty-art { width: 94px; height: 68px; display: block; margin: 0 auto; }
.empty .text-button { margin-top: 6px; }
.sync-feedback { color: #804f12; font-size: 13px; padding: 8px; }
.sync-feedback:empty { display: none; }
dialog { background: white; color: var(--ink); padding: 0; border: 1px solid #d5d9e5; border-radius: 16px; width: min(580px, calc(100% - 32px)); max-height: min(86dvh,850px); overflow: auto; box-shadow: 0 24px 100px #10183042; }
dialog::backdrop { background: #19213c66; }
.dialog-content { padding: 23px 26px 26px; }
.dialog-heading { gap: 16px; }
.dialog-heading h2 { font-size: 23px; }
.dialog-heading .icon-btn { margin: -5px -7px -5px 0; }
.detail-identity { margin-top: 22px; }
.detail-title { font-size: 19px; line-height: 1.55; overflow-wrap: anywhere; }
.detail-block { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.detail-subhead h3, .detail-block > h3 { font-size: 15px; font-weight: 650; }
.detail-subhead .text-button { margin-right: -7px; }
.detail-caption { font-size: 15px; line-height: 1.7; color: #3f4659; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 250px; overflow: auto; }
.file-row { min-height: 41px; gap: 16px; color: var(--muted); font-size: 14px; }
.file-row .text-button { margin-right: -7px; }
.detail-error { padding: 11px 13px; background: #fff2e4; color: #74411d; border-radius: 6px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; margin: 14px 0; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail-actions .delete-link { margin-left: auto; color: #9b3838; }
.metadata { margin-top: 8px; border: 1px solid var(--line); border-radius: 7px; padding: 0 12px; }
.metadata summary { padding: 12px 0; min-height: 44px; cursor: pointer; font-size: 14px; }
.metadata pre { max-height: 260px; overflow: auto; background: #f5f6fa; border-radius: 5px; padding: 12px; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.metadata-tools { display: flex; gap: 8px; }
.clipboard-field { position: fixed; top: 0; left: -9999px; }
#delete-dialog { width: min(430px,calc(100% - 32px)); }
.delete-info { margin: 18px 0; color: var(--muted); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
#delete-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
#admin-password { border: 1px solid #c8ccda; min-height: 44px; padding: 8px 10px; width: 100%; }
.form-error { color: #aa3534; margin-top: 6px; font-size: 14px; }
.dialog-actions { justify-content: flex-end; gap: 8px; margin-top: 20px; }
.danger-button { color: white; background: #a3383a; border: 1px solid transparent; }
.danger-button:hover { background: #832d2f; }
.toast { display: none; position: fixed; bottom: max(24px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 10; max-width: calc(100% - 32px); color: white; background: #27304a; padding: 11px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 4px 16px #171e3430; }
.toast:not(:empty) { display: block; }
@media (min-width: 1400px) { .hero { min-height: 294px; } }
@media (max-width: 959px) {
  .wrap { width: calc(100% - 48px); }
  .hero { min-height: 245px; }
  .hero-body { width: 70%; padding: 34px 0 34px 30px; }
  .hero-art { width: 31%; right: 0; }
  .row-tail { gap: 8px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { min-height: 64px; gap: 4px; }
  .brand { gap: 7px; }
  .brand img { width: 31px; height: 31px; }
  .brand strong { font-size: 21px; }
  .brand-rule, .brand-caption { display: none; }
  nav { gap: 2px; }
  nav a { gap: 5px; padding: 0 9px; font-size: 13px; }
  nav a .icon { height: 16px; width: 16px; }
  .hero { margin-top: 20px; border-radius: 13px; min-height: 0; }
  .hero::after { border-radius: 12px; }
  .hero-body { width: 100%; padding: 26px 20px 22px; }
  .hero-art { top: -9px; transform: none; right: -9px; height: 140px; width: 147px; opacity: .86; }
  .hero-body h1 { font-size: 30px; }
  .hero-body > p { font-size: 14px; width: calc(100% - 112px); min-width: 152px; margin-top: 8px; }
  .submit-line { margin-top: 22px; gap: 3px; }
  .link-field { padding-left: 5px; gap: 5px; }
  .link-field .icon { width: 16px; }
  .link-field input { font-size: 14px; }
  .submit-button { padding: 0 11px; font-size: 14px; gap: 5px; }
  .submit-button .icon { display: none; }
  .collection { margin-top: 26px; }
  .section-bar { align-items: stretch; flex-direction: column; gap: 13px; margin-bottom: 13px; }
  .section-heading { justify-content: space-between; }
  .section-heading h2 { font-size: 24px; }
  .search-field { flex: 1; width: auto; min-width: 0; }
  .controls { width: 100%; }
  .list-bar { padding: 0 14px; }
  .row { grid-template-columns: 32px minmax(0,1fr); padding: 14px 11px 12px 7px; gap: 6px; }
  .row-pick { align-self: start; }
  .row-main { gap: 11px; }
  .thumb { width: 54px; height: 62px; }
  .row-meta { font-size: 12px; gap: 2px 9px; }
  .row-tail { grid-column: 2; justify-content: flex-start; padding-left: 65px; flex-wrap: wrap; }
  .row-tail .action-link, .row-tail .text-button { font-size: 13px; min-height: 44px; }
  .batch-bar { padding: 10px 12px; }
  .batch-actions { flex-wrap: wrap; gap: 5px; }
  .batch-actions button { padding: 6px 9px; font-size: 13px; }
  .pagination { padding: 5px 9px 5px 14px; }
  .row-title { font-size: 15px; }
  .empty { padding: 33px 12px; }
  .dialog-content { padding: 17px 18px 21px; }
}
@media (max-width: 370px) {
  .hero-art { width: 122px; height: 130px; top: -6px; right: -12px; }
  .hero-body { padding: 20px 14px 17px; }
  .hero-body h1 { font-size: 26px; }
  .hero-body > p { width: calc(100% - 70px); min-width: 0; }
  .link-field .icon { display: none; }
  .row-tail { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; } }
