:root {
  color-scheme: light;
  --ink: #182d50;
  --muted: #546783;
  --line: #dee7f3;
  --canvas: #f1f5fb;
  --white: #fff;
  --accent: #1769e8;
  --link: #155bd0;
  --mono: "Cascadia Mono", "Consolas", monospace;
  --font: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font: 15px/1.5 var(--font);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 8px 12px; background: var(--white); color: var(--ink); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 218px; background: #ffffff; color: var(--ink); z-index: 2; }
.brand { display: flex; align-items: center; gap: 12px; margin: 25px 20px 33px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.08rem; letter-spacing: .045em; }
.brand small { color: var(--muted); font: 11px/1.7 var(--mono); letter-spacing: .13em; }
.brand-icon { position: relative; width: 39px; height: 39px; background: #e7f0ff; border-radius: 11px; color: var(--link); }
.brand-icon span { position: absolute; inset: 9px; border: 2px solid; border-radius: 4px; }
.brand-icon span::after { content: ""; position: absolute; width: 8px; height: 4px; border: solid; border-width: 0 0 2px 2px; transform: rotate(-45deg); left: 4px; top: 4px; }
.side-content { padding: 0 11px; }
.nav-label { color: var(--muted); font-size: .83rem; letter-spacing: .08em; margin: 0 11px 10px; }
nav { display: grid; gap: 3px; }
.nav-button { width: 100%; display: grid; grid-template-columns: 17px 1fr auto; gap: 9px; align-items: center; text-align: left; font-size: .92rem; color: var(--ink); background: transparent; border: 1px solid transparent; padding: 10px 9px; border-radius: 8px; }
.nav-button:hover, .nav-button.current { background: #ebf3ff; }
.nav-button.current { border-color: #d7e6fb; color: var(--link); font-weight: 700; }
.nav-icon { width: 13px; height: 13px; border: 1.5px solid currentColor; justify-self: center; border-radius: 50%; opacity: .94; }
.grid-icon { border-radius: 2px; box-shadow: inset 0 -4px transparent; background: linear-gradient(90deg, transparent 44%, currentColor 45% 56%, transparent 57%), linear-gradient(0deg, transparent 44%, currentColor 45% 56%, transparent 57%); }
.doing-icon { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.verify-icon { border-radius: 2px; transform: rotate(45deg) scale(.85); }
.review-icon { border-style: dashed; }
.closed-icon { background: currentColor; }
.nav-count { font: .79rem/1.15 var(--mono); background: #e7f0ff; color: var(--ink); padding: 4px 6px; border-radius: 99px; min-width: 26px; text-align: center; }
.main { margin-left: 218px; }
.topbar { padding: 13px clamp(18px, 4vw, 55px); background: var(--white); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.breadcrumb { font-size: .875rem; color: var(--muted); }
.breadcrumb strong { color: var(--ink); }
.breadcrumb span { margin: 0 5px; color: #728899; }
.top-actions, .empty-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.top-link { display: inline-flex; align-items: center; text-decoration: none; }
.button { border: 1px solid transparent; border-radius: 8px; padding: 8px 13px; min-height: 40px; line-height: 1.35; white-space: nowrap; font-size: .9rem; font-weight: 660; }
.button span { font-size: 1.1em; }
.button.primary { color: var(--white); background: var(--accent); border-color: var(--accent); }
.button.primary:hover:not(:disabled) { background: #1055c3; }
.button.outline { background: var(--white); color: var(--ink); border-color: #cbdaf0; }
.button.outline:hover:not(:disabled) { background: #edf4ff; border-color: #91b4ea; }
.button.compact { min-height: 36px; padding-block: 6px; }
.content { max-width: 1500px; margin: 0 auto; padding: 26px clamp(18px, 4vw, 55px) 40px; }
.overview { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between; gap: 22px; align-items: center; min-height: 177px; padding: 22px clamp(20px, 3.2vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: #ffffff; color: var(--ink); box-shadow: 0 7px 18px #223b4614; }
.overview-copy { position: relative; }
.eyebrow { margin: 0; color: var(--link); font-size: .83rem; letter-spacing: .1em; font-weight: 700; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { margin: 5px 0; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.2; font-weight: 790; letter-spacing: .035em; }
.overview-copy > p { margin-top: 5px; color: var(--muted); }
.overview-total { min-width: 118px; padding: 10px 16px; border: 1px solid #d7e6fb; border-radius: 10px; background: #edf4ff; }
.overview-total dt { color: var(--muted); font-size: .88rem; }
.overview-total dd { font: 700 2.55rem/1.18 var(--mono); margin-top: 3px; }
.overview-art { position: absolute; z-index: -1; inset: 0 0 0 42%; display: grid; grid-template-columns: repeat(3, minmax(28px, 75px)); gap: 9px; place-content: center; transform: translate(6%, 0) rotate(-18deg) scale(1.18); opacity: .62; background-image: radial-gradient(#a4c8fa55 1px, transparent 1px); background-size: 16px 16px; mask-image: linear-gradient(90deg, transparent, black 38%); }
.overview-art i { min-height: 47px; border-radius: 6px; border: 1px solid #bfd8ff74; background: #8ebcf727; }
.overview-art i:nth-child(2), .overview-art i:nth-child(6), .overview-art i:nth-child(7) { opacity: .22; }
.overview-art i:nth-child(5) { background: #9bc9fd6e; }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 16px 0 22px; }
.metric { padding: 12px 15px; min-height: 84px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }
.metric:hover, .metric.active { border-color: #85afe9; background: #edf4ff; }
.metric-caption { font-size: .89rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.metric strong { display: block; font: 700 1.58rem/1.3 var(--mono); margin-top: 3px; }
.indicator { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #967321; }
.indicator.doing { background: #2762ab; }
.indicator.verify { background: #854ca5; }
.indicator.review { background: #566a78; }
.indicator.closed { background: #12956e; }
.queue { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: clip; box-shadow: 0 3px 12px #213f4a0a; }
.queue-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px 0; }
.queue-heading { display: flex; gap: 9px; align-items: center; }
.queue-heading h2 { font-size: 1.18rem; }
.result-count { border-radius: 5px; font-size: .82rem; padding: 3px 7px; white-space: nowrap; background: #eaf2ff; color: var(--link); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 13px 18px; }
input, select, textarea { width: 100%; background-color: #fff; color: var(--ink); border: 1px solid #cdd9eb; border-radius: 7px; min-height: 39px; padding: 7px 9px; }
input::placeholder, textarea::placeholder { color: #5d6d7a; }
select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, #556b78 50%), linear-gradient(135deg, #556b78 50%, transparent 50%); background-position: right 14px center, right 9px center; background-size: 5px 5px; background-repeat: no-repeat; }
.filters select, .filters input { font-size: .89rem; }
.filters select { min-width: 116px; max-width: 230px; }
.search { position: relative; flex: 1 1 215px; max-width: 380px; }
.search input { padding-left: 31px; }
.search-icon { position: absolute; height: 11px; width: 11px; border: 1.6px solid #566a78; border-radius: 50%; top: 13px; left: 12px; pointer-events: none; }
.search-icon::after { content: ""; background: #566a78; position: absolute; width: 5px; height: 1.6px; transform: rotate(45deg); left: 7px; top: 8px; }
.link-button { color: var(--link); background: transparent; border: 0; border-radius: 5px; padding: 5px 3px; font-size: .89rem; font-weight: 660; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--ink); }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; min-width: 750px; table-layout: fixed; }
thead { background: #f1f5fb; color: #334c72; border-block: 1px solid var(--line); }
th, td { padding: 10px 9px; text-align: left; overflow-wrap: anywhere; }
th { font-weight: 690; font-size: .87rem; }
th:first-child, td:first-child { padding-left: 18px; width: 116px; }
th:nth-child(2) { width: 28%; }
th:nth-child(4) { width: 68px; }
th:nth-child(5) { width: 102px; }
th:last-child { width: 117px; }
td { font-size: .89rem; border-bottom: 1px solid #e5edf7; min-height: 51px; }
tr:last-child td { border-bottom: 0; }
td:first-child, td:last-child { font-family: var(--mono); color: var(--muted); }
.source-number { display: block; font: .8rem/1.3 var(--font); margin-top: 3px; }
tbody tr:hover { background: #f4f8ff; }
.sort-button, .issue-link { padding: 0; border: 0; background: none; color: inherit; text-align: left; font-weight: inherit; }
.issue-link { color: var(--link); font-weight: 700; }
.issue-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.chip { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; border-radius: 5px; padding: 2px 6px; font-size: .84rem; font-weight: 650; }
.status-open { color: #705116; background: #f8edcf; }
.status-doing { color: #225085; background: #e6efff; }
.status-verify { color: #643780; background: #f2eafa; }
.status-review { color: #465b6b; background: #eaf0f4; }
.status-closed { color: #176747; background: #e5f6ee; }
.priority-P0, .priority-P1 { color: #a12837; background: #fce8e9; font-family: var(--mono); }
.priority-P2, .priority-P3 { color: #3b5063; background: #eaf0f4; font-family: var(--mono); }
.empty { text-align: center; padding: 27px 20px 33px; }
.empty-icon { position: relative; display: grid; align-content: center; justify-items: center; gap: 4px; margin: 0 auto 12px; width: 49px; height: 49px; border-radius: 13px; border: 1px solid #cee1fb; background: #eef5ff; }
.empty-icon i { width: 21px; height: 4px; border: 1px solid var(--accent); border-radius: 2px; }
.empty h3 { font-size: 1.03rem; }
.empty p { color: var(--muted); font-size: .9rem; margin-top: 5px; }
.empty p:empty { display: none; }
.empty button, .empty-actions { margin-top: 12px; }
.empty-actions { justify-content: center; }
.empty-actions button { margin: 0; }
.demo-banner, .pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 18px; font-size: .89rem; }
.demo-banner { margin-top: 10px; background: #fff6da; color: #654c17; }
.pagination { border-top: 1px solid var(--line); color: var(--muted); }
.pagination div { display: flex; gap: 7px; }
.dialog { padding: 0; width: min(700px, calc(100% - 24px)); max-height: min(92dvh, 920px); border: 1px solid #c6d8f2; border-radius: 14px; color: var(--ink); box-shadow: 0 16px 55px #182e5238; }
.dialog::backdrop { background: #213a6255; }
.dialog form { min-height: 0; max-height: inherit; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.dialog-header, .dialog-footer { display: flex; align-items: center; gap: 9px; padding: 14px 20px; }
.dialog-header { justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin-top: 3px; font-size: 1.32rem; overflow-wrap: anywhere; }
.dialog-header > div { min-width: 0; }
.dialog-footer { justify-content: flex-end; border-top: 1px solid var(--line); }
.dialog-body { padding: 16px 20px; overflow-y: auto; }
.close-button { border: 1px solid var(--line); background: #f7fafb; color: var(--ink); border-radius: 7px; min-width: 36px; min-height: 36px; font-size: 21px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 13px; }
.form-grid label, .file-field { display: block; font-size: .9rem; font-weight: 660; }
.form-grid :is(input, select, textarea), .file-field input { display: block; margin-top: 4px; font-weight: 400; }
.form-grid .full { grid-column: 1 / -1; }
.duplicate-hints { padding: 12px 13px; border: 1px solid #bad1f5; border-radius: 8px; background: #f1f6ff; }
.duplicate-heading { display: flex; align-items: center; gap: 8px; }
.duplicate-heading h3 { font-size: .98rem; }
.duplicate-hints p { margin-top: 3px; color: var(--muted); font-size: .88rem; }
.duplicate-hints ul { list-style: none; margin: 8px 0 0; padding: 0; }
.duplicate-hints li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: start; padding: 7px 0; border-top: 1px solid #d8e5f9; }
.duplicate-hints li .issue-link { overflow-wrap: anywhere; font-size: .9rem; }
.duplicate-meta { grid-column: 1 / -1; font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.duplicate-jump { margin-right: auto; text-align: left; }
.duplicate-dialog { width: min(580px, calc(100% - 24px)); }
.duplicate-details { display: grid; grid-template-columns: minmax(65px, max-content) 1fr; gap: 10px 14px; align-content: start; }
.duplicate-details dt { color: var(--muted); font-size: .9rem; }
.duplicate-details dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.attachments { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.attachments a { display: block; padding: 3px; border: 1px solid var(--line); border-radius: 6px; }
.attachments img { display: block; width: 118px; height: 74px; object-fit: contain; }
.required, .form-error { color: #a62535; }
.form-error { margin-right: auto; font-size: .88rem; }
.form-error:not([hidden]) + .duplicate-jump { display: none; }
textarea { resize: vertical; }
.history { margin-top: 19px; padding-top: 13px; border-top: 1px solid var(--line); }
.history h3, .import-preview h3 { font-size: 1rem; }
.history ol { list-style: none; border-left: 2px solid #cedff8; padding-left: 13px; margin: 8px 0 0 3px; display: grid; gap: 10px; color: var(--muted); font-size: .88rem; }
.history time { display: block; font: .77rem/1.5 var(--mono); }
.import-dialog .help { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.file-field { margin-bottom: 6px; }
.import-ack { display: flex; align-items: flex-start; gap: 7px; padding: 8px 9px; margin-top: 10px; border-radius: 7px; background: #fff6da; color: #654c17; font-size: .88rem; }
.import-ack input { width: 1rem; min-height: 1rem; margin: 3px 0 0; flex: 0 0 auto; }
.import-progress { margin-right: auto; font-size: .88rem; color: var(--muted); }
#legacy-details { padding-top: 9px; }
.import-preview { margin-top: 15px; }
.import-preview h3 { margin: 9px 0; }
#import-summary { overflow-wrap: anywhere; }
.preview-table { border: 1px solid var(--line); border-radius: 7px; }
.preview-table table { min-width: 570px; }
.preview-table th:first-child { width: 31%; }
.preview-table th:nth-child(2) { width: 15%; }
.preview-table th:nth-child(3), .preview-table th:nth-child(4), .preview-table th:nth-child(6) { width: auto; }
.preview-table th:nth-child(5) { width: 102px; }
.toast { position: fixed; right: 22px; bottom: 20px; z-index: 3; max-width: calc(100% - 44px); color: var(--ink); background: #e8f5fe; border: 1px solid #bdd9f6; border-radius: 9px; padding: 10px 15px; box-shadow: 0 4px 14px #0002; }
@media (max-width: 960px) {
  .sidebar { width: 175px; }
  .main { margin-left: 175px; }
  .content, .topbar { padding-inline: 17px; }
}
@media (max-width: 700px) {
  .sidebar { position: static; width: auto; padding: 11px 13px 8px; }
  .main { margin: 0; }
  .brand { margin: 0 0 8px; }
  .side-content { padding: 0; }
  .nav-label, .nav-icon { display: none; }
  nav { display: flex; overflow: auto; }
  .nav-button { display: flex; gap: 5px; width: auto; padding: 6px 8px; font-size: .88rem; white-space: nowrap; }
  .content { padding: 15px 11px 25px; }
  .topbar { padding-inline: 11px; }
  .overview { padding: 17px; gap: 10px; min-height: 140px; }
  .overview-total { min-width: 86px; padding: 8px 10px; }
  .overview-total dd { font-size: 1.75rem; }
  .metrics { grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 0 13px; }
  .metric { padding: 7px 8px; min-height: 69px; }
  .metric-caption { gap: 4px; }
  .queue-top, .filters { padding-inline: 11px; }
  .filters { gap: 6px; }
  .filters select { min-width: 96px; max-width: 165px; }
  .search { max-width: none; flex-basis: 100%; }
}
@media (max-width: 390px) {
  .breadcrumb { display: none; }
  .topbar { justify-content: flex-end; }
  .queue-top .button { padding-inline: 8px; }
  .dialog-header, .dialog-footer, .dialog-body { padding-inline: 11px; }
}
