:root {
  color-scheme: light;
  font-family: system-ui, "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: #192737;
  background: #eef3f7;
  --muted: #536274;
  --rule: #d8e2eb;
  --ember: #a73911;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p { margin: 0; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .58; cursor: default; }
a { color: #9c3511; text-underline-offset: .16em; }
:focus-visible { outline: 2px solid #bc532b; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(1150px, calc(100% - 40px)); margin: 0 auto; }
.topbar { background: #152638; color: white; }
.top-inner, .brand, .intro, .list-title, .dialog-header { display: flex; align-items: center; }
.top-inner { min-height: 66px; justify-content: space-between; }
.brand { gap: 11px; font-weight: 720; font-size: 1.06rem; }
.quiet { border: 1px solid #547083; background: transparent; color: white; border-radius: 7px; padding: 7px 12px; font-size: .88rem; }
.quiet:hover { background: #223c52; }
.intro { padding: 35px 0 24px; gap: 16px; justify-content: space-between; }
h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.2; letter-spacing: -.045em; }
h2 { font-size: 1.1rem; }
.intro p, .add-card p { margin-top: 7px; color: var(--muted); line-height: 1.55; }
.primary, .secondary { min-height: 40px; white-space: nowrap; padding: 8px 15px; border-radius: 8px; font-size: .91rem; font-weight: 680; }
.primary { background: var(--ember); border: 1px solid var(--ember); color: white; }
.primary:hover:not(:disabled) { background: #8c2c0b; }
.secondary { border: 1px solid #c6d3df; background: white; color: #24384a; }
.secondary:hover { background: #f4f8fb; }
.add-card, .list-card { background: #fff; border: 1px solid var(--rule); border-radius: 12px; }
.add-card { padding: 20px; display: grid; grid-template-columns: minmax(224px, .85fr) 1.5fr; align-items: start; gap: 24px; }
.add-card form { display: flex; gap: 9px; align-items: start; }
.add-card p { font-size: .89rem; }
textarea, input { min-width: 0; width: 100%; padding: 9px 11px; border-radius: 7px; border: 1px solid #c6d3df; background: #fbfdff; color: #192737; }
textarea { min-height: 67px; resize: vertical; }
.list-card { margin: 22px 0 40px; }
.list-title { padding: 20px; justify-content: space-between; gap: 12px; }
.list-title input { max-width: 270px; }
.filters { display: flex; padding: 0 20px 13px; gap: 8px; }
.filters button { border: 1px solid transparent; background: transparent; color: var(--muted); padding: 7px 11px; border-radius: 7px; font-size: .88rem; font-weight: 650; white-space: nowrap; }
.filters button[aria-pressed="true"] { color: #8d2d0a; background: #fff1e8; border-color: #f1d6c6; }
.filters button span { margin-left: 3px; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { border-top: 1px solid #e5ecf2; padding: 13px 12px; vertical-align: top; }
th { font-size: .85rem; color: #42556a; background: #f6f9fb; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
td small { display: block; margin-top: 4px; color: var(--muted); font-size: .83rem; }
.product-name { width: 35%; min-width: 165px; overflow-wrap: anywhere; }
.badge { padding: 4px 8px; border-radius: 6px; font-size: .81rem; font-weight: 700; white-space: nowrap; display: inline-block; }
.pending { background: #fff1df; color: #7c440d; }
.captured { background: #e3f3ed; color: #175749; }
.review { background: #eaf0f7; color: #37516b; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; min-width: 100px; }
.text-button { font-size: inherit; padding: 0; border: 0; background: transparent; color: #9c3511; text-decoration: underline; text-underline-offset: .16em; }
.time { white-space: nowrap; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); border-top: 1px solid #e5ecf2; }
.feedback { margin: 12px 0; color: #145949; }
.error { color: #922911; }
dialog { width: min(720px, calc(100% - 30px)); max-height: 88vh; border: 1px solid var(--rule); border-radius: 12px; color: #192737; }
dialog::backdrop { background: #1123378f; }
.dialog-header { align-items: flex-start; justify-content: space-between; gap: 20px; padding: 4px 0 16px; }
.dialog-content { display: grid; gap: 15px; }
.dialog-content p { line-height: 1.55; overflow-wrap: anywhere; }
.dialog-content table { font-size: .86rem; }
.image-links div { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.image-links a { padding: 4px 9px; background: #fff3ec; border-radius: 5px; }
.login-page { display: grid; place-items: center; min-height: 100dvh; padding: 20px; }
.login-card { padding: 28px; border: 1px solid var(--rule); border-radius: 14px; background: white; width: min(420px, 100%); }
.login-card h1 { font-size: 1.55rem; margin: 13px 0 22px; }
.login-card form { display: grid; gap: 10px; }
.login-card label { font-weight: 650; }
@media (max-width: 650px) {
  .shell { width: calc(100% - 24px); }
  .intro { padding: 25px 0 17px; align-items: flex-start; }
  .intro p { font-size: .88rem; }
  .add-card { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .list-title { padding: 15px; }
  .list-title input { max-width: 165px; }
  .filters { padding-left: 15px; padding-right: 15px; gap: 3px; }
  th, td { padding: 11px 9px; }
  th:first-child, td:first-child { padding-left: 15px; }
}
