:root {
  --bg: #f5f6f7; --white: #fff; --t1: #1f2329; --t2: #646a73; --t3: #8f959e;
  --line: #dee0e3; --line2: #eff0f1; --blue: #3370ff; --blue-d: #245bdb;
  --blue-l: #e1eaff; --blue-xl: #f0f4ff; --red-l: #fde2e2; --red: #d83931;
  --orange-l: #feead2; --orange: #a95b00; --green-l: #d9f5d6; --green: #167c10;
  --purple-l: #ece2fe; --purple: #6930cc;
  color: var(--t1); background: var(--bg); accent-color: var(--blue);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px; line-height: 1.57;
}
body { min-height: 100dvh; color: var(--t1); }
a { color: var(--blue-d); }
button, input, select, textarea { font: inherit; }
button { min-height: 36px; border-radius: 6px; cursor: pointer; }
button:disabled { cursor: not-allowed; }
form { margin: 0; padding: 0; border-radius: 0; background: transparent; }
form label { margin: 0; font-weight: 400; }
input:not([type="radio"]):not([type="checkbox"]), textarea, select {
  border: 1px solid var(--line); border-radius: 6px; color: var(--t1); background: #fff; padding: 8px 10px;
}
textarea { resize: vertical; }
main { max-width: 1440px; padding: 24px; margin: auto; }
h1, h2, h3 { letter-spacing: 0; }
h1 { font-size: 20px; line-height: 1.35; }
h2 { font-size: 16px; }
.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; }
.primary, .button { color: #fff; background: var(--blue); border: 1px solid var(--blue); font-weight: 500; }
.primary:hover { background: var(--blue-d); }
.secondary { color: var(--t1); background: #fff; border: 1px solid var(--line); font-weight: 400; }
.text-button, .icon-button { border: 0; color: var(--t2); background: transparent; font-weight: 400; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1440px; height: 56px; margin: auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.brand { color: var(--t1); font-weight: 650; font-size: 17px; white-space: nowrap; text-decoration: none; }
.desktop-nav { display: flex; height: 100%; padding: 0; margin: 0; gap: 4px; }
.desktop-nav a { position: relative; display: flex; align-items: center; gap: 5px; color: var(--t2); padding: 0 13px; text-decoration: none; border-bottom: 2px solid transparent; }
.desktop-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #f54a45; color: #fff; font-size: 11px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.nav-badge[hidden] { display: none; }
.top-search { margin-left: auto; width: min(250px, 20vw); }
.top-search input { height: 36px; }
.top-feedback { white-space: nowrap; min-height: 36px; }
.account { position: relative; }
.account summary { position: relative; overflow: hidden; list-style: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--blue); cursor: pointer; }
.account summary img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account summary::-webkit-details-marker { display: none; }
.account > div { position: absolute; right: 0; z-index: 4; min-width: 150px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.account > div button { display: block; color: var(--t1); background: transparent; padding: 6px 0; }
.mobile-nav, .mobile-search, .fab { display: none; }
.pool-page { max-width: 1440px; }
.pool-workspace { display: flex; flex-direction: column; align-items: stretch; }
.pool-panel { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.pool-panel.is-loading .pool-table-wrap { opacity: .6; transition: opacity 120ms ease; }
.detail-skeleton { display: grid; gap: 10px; }
.skeleton-line { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--line2) 25%, #e6e8eb 50%, var(--line2) 75%); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; }
.skeleton-line.short { width: 42%; }
.skeleton-line.mid { width: 74%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pool-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line2); }
.status-tabs { display: flex; gap: 20px; }
.status-tabs button { position: relative; padding: 16px 0; border: 0; border-radius: 0; color: var(--t2); background: transparent; font-weight: 400; white-space: nowrap; }
.status-tabs button.active { color: var(--blue); font-weight: 600; }
.status-tabs button.active::after { content: ""; position: absolute; width: 24px; height: 3px; bottom: 0; left: calc(50% - 12px); border-radius: 2px; background: var(--blue); }
.status-tabs span { font-size: 12px; font-variant-numeric: tabular-nums; }
.sort-label select { width: auto; min-width: 96px; padding: 6px 28px 6px 10px; background: var(--line2); }
.sort-label { display: none; }
.sort-segments { display: flex; gap: 2px; padding: 3px; border-radius: 6px; background: var(--line2); }
.sort-segments button { min-height: 30px; padding: 4px 12px; border: 0; color: var(--t2); background: transparent; }
.sort-segments button[aria-pressed="true"] { color: var(--t1); background: #fff; }
.category-bar { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; border-bottom: 1px solid var(--line2); scrollbar-width: none; }
.category-bar::-webkit-scrollbar { display: none; }
.category-bar button { flex: none; min-height: 32px; padding: 0; border: 0; color: var(--t1); background: transparent; font-weight: 400; white-space: nowrap; }
.category-bar button span { display: block; padding: 4px 12px; border-radius: 6px; background: var(--line2); }
.category-bar button.active { color: var(--blue-d); font-weight: 600; }
.category-bar button.active span { background: var(--blue-l); }
.category-bar .closed-filter { margin-left: auto; }
.category-bar .closed-filter span { border: 1px solid var(--line); background: #fff; }
.pool-table { width: 100%; border-collapse: collapse; table-layout: auto; text-align: left; }
.pool-table-wrap { overflow-x: auto; }
.pool-table thead { color: var(--t2); background: #f8f9fa; font-size: 12px; }
.pool-table th { padding: 9px 12px; font-weight: 400; white-space: nowrap; }
.pool-table th:first-child { padding-left: 16px; }
.pool-table td { padding: 12px; border-top: 1px solid var(--line2); color: var(--t2); }
.pool-table td:first-child { padding-left: 16px; width: 66px; }
.pool-table td:last-child { white-space: nowrap; color: var(--t3); }
.pool-table tr.selected { background: var(--blue-xl); }
.pool-table tr.new-feedback { background: var(--blue-xl); }
.subject-cell { min-width: 180px; width: 45%; }
.row-title { display: block; width: 100%; min-height: 0; padding: 0; border: 0; color: var(--t1); background: transparent; text-align: left; font-size: 15px; font-weight: 550; line-height: 22px; }
.row-title:hover { color: var(--blue-d); }
.row-meta { display: flex; align-items: center; gap: 5px; color: var(--t3); font-size: 12px; line-height: 20px; margin-top: 4px; }
.mobile-priority, .mobile-state { display: none !important; }
.vote { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 48px; padding: 0; border: 1px solid var(--line); color: var(--t2); background: #fff; line-height: 1; font-variant-numeric: tabular-nums; transition: transform 120ms; }
.vote:active { transform: scale(.96); }
.vote span { font-size: 10px; }
.vote strong { margin-top: 4px; color: var(--t1); font-size: 15px; }
.vote.voted { border-color: var(--blue); color: var(--blue); background: var(--blue-xl); }
.vote.voted strong { color: var(--blue); }
.tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 6px; border-radius: 4px; color: var(--t2); background: var(--line2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag:empty { display: none; }
.tag.P0 { color: var(--red); background: var(--red-l); }
.tag.P1, .tag.needs-info { color: var(--orange); background: var(--orange-l); }
.tag.state-in_dev { color: var(--blue-d); background: var(--blue-l); }
.tag.state-to_verify { color: var(--purple); background: var(--purple-l); }
.tag.state-fixed, .tag.state-notified { color: var(--green); background: var(--green-l); }
.pool-empty { padding: 52px 16px; text-align: center; color: var(--t2); }
.pool-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 16px; font-variant-numeric: tabular-nums; }
.pool-pagination button { min-height: 36px; }
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { overflow: hidden; overscroll-behavior: contain; background: rgb(31 35 41 / 45%); }
#submit-dialog { position: fixed; inset: 0 0 0 auto; width: min(500px, 100vw); height: 100dvh; max-width: none; max-height: none; padding: 0; border: 0; border-radius: 0; }
#submit-dialog[open] { display: flex; flex-direction: column; }
.drawer-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line2); }
.drawer-header h1 { margin: 0; font-size: 17px; }
.drawer-header button { justify-self: start; padding: 8px 0; }
#pool-submission { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.drawer-body { flex: 1; overflow: auto; padding: 16px; }
#feedback-description { width: 100%; min-height: 120px; line-height: 1.6; }
.drawer-body label:not(.upload-button):not(.proxy-switch):not(.area-choice label) { display: grid; gap: 5px; margin: 10px 0; }
.proxy-switch { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.proxy-switch input, .official-toggle input { width: 18px; height: 18px; }
.upload-area { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 20px; }
.upload-area small { flex-basis: 100%; color: var(--t3); font-size: 12px; }
.upload-button { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 6px; background: var(--line2); color: var(--t2); cursor: pointer; }
.upload-button input, .comment-upload input { position: absolute; width: 1px; height: 1px; min-width: 0; min-height: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.upload-button:focus-within, .comment-upload:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
#pool-previews, #comment-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.file-preview { position: relative; }
.file-preview img { width: 66px; height: 66px; object-fit: cover; border-radius: 6px; }
.file-preview.file-chip-preview { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 8px 24px 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12px; color: var(--t1); }
.file-chip-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip-preview small { color: var(--t3); white-space: nowrap; }
.file-preview button { position: absolute; right: -5px; top: -5px; width: 23px; height: 23px; min-height: 0; padding: 0; border-radius: 50%; background: #646a73; color: #fff; }
.area-choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.area-choice legend { margin-bottom: 8px; }
.area-choice legend span { color: var(--red); }
.area-choice label { position: relative; }
.area-choice input { position: absolute; opacity: 0; }
.area-choice label span { display: flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 6px; background: var(--line2); }
.area-choice input:checked + span { color: var(--blue-d); background: var(--blue-l); }
.area-choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.more-fields { border-top: 1px solid var(--line2); padding-top: 12px; }
.more-fields summary { display: flex; justify-content: space-between; cursor: pointer; }
#more-summary, .retention { color: var(--t3); font-size: 12px; }
.drawer-footer { display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line2); }
.drawer-footer .primary { flex: 1; min-height: 44px; }
.similar-item { margin: 10px 0; padding: 12px; border: 1px solid #d5e2ff; border-radius: 6px; background: var(--blue-xl); }
.similar-item strong { display: block; margin-bottom: 6px; }
.similar-item button { min-height: 36px; color: var(--blue-d); border: 1px solid var(--blue); background: #fff; }
#detail-dialog { position: fixed; inset: 56px 0 0 auto; width: min(440px, 100vw); height: calc(100dvh - 56px); max-width: none; max-height: none; padding: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: var(--bg); }
#detail-dialog[open] { display: flex; flex-direction: column; }
@media (min-width: 701px) {
  body.detail-open .pool-page { max-width: calc(100% - 440px); margin-right: 440px; }
}
.detail-header { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; color: var(--t3); background: #fff; border-bottom: 1px solid var(--line2); }
.icon-button { min-width: 44px; min-height: 44px; padding: 4px; font-size: 24px; }
.detail-content { flex: 1; min-height: 0; overflow: auto; }
.detail-section { padding: 20px; background: #fff; margin-bottom: 8px; }
.detail-section h1, .detail-section .detail-preview-title { margin: 12px 0; font-size: 19px; font-weight: 700; line-height: 1.4; }
.detail-section h2 { margin: 0 0 12px; }
.detail-meta, .detail-voters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--t3); font-size: 12px; }
.detail-vote { color: var(--blue-d); background: var(--blue-xl); border: 1px solid var(--blue); }
.voter-avatars { display: inline-flex; vertical-align: middle; margin-right: 6px; }
.voter-avatar { position: relative; display: grid; place-items: center; width: 24px; height: 24px; margin-left: -4px; border: 1px solid #fff; border-radius: 50%; background: var(--blue-l); color: var(--blue-d); font-size: 10px; overflow: hidden; }
.voter-avatar img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.official { padding: 12px; border-radius: 6px; background: var(--blue-xl); }
.official strong { color: var(--blue-d); }
.feedback-text, .comment-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-attachments { display: grid; gap: 8px; margin-top: 8px; }
.detail-images { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-images img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.detail-videos { display: grid; gap: 8px; }
.detail-video-item { display: grid; gap: 4px; }
.detail-video-item video { width: 100%; max-height: 240px; border-radius: 6px; background: #000; }
.detail-files { display: flex; flex-wrap: wrap; gap: 6px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--t1); text-decoration: none; font-size: 12px; }
.file-chip:hover { border-color: var(--blue); color: var(--blue-d); background: var(--blue-xl); }
.file-chip small { color: var(--t3); }
.admin-danger { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line2); }
.admin-danger small { flex-basis: 100%; color: var(--red); font-size: 12px; }
.danger { color: var(--red); background: #fff; border: 1px solid #f5b4b0; }
.danger:hover { background: var(--red-l); }
.danger-solid { color: #fff; background: var(--red); border: 1px solid var(--red); }
.comment-entry { padding: 12px 0; border-top: 1px solid var(--line2); }
.comment-entry:first-child { border-top: 0; }
.comment-entry small { display: inline; color: var(--t3); }
.comment-actions { display: flex; gap: 6px; }
.comment-actions button { min-height: 36px; }
.comment-entry textarea { width: 100%; }
.comment-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; background: #fff; border-top: 1px solid var(--line2); }
.comment-form textarea { flex: 1; min-width: 100px; background: var(--line2); }
.comment-upload { cursor: pointer; padding: 8px; color: var(--t2); }
.official-toggle { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
#comment-retention { flex-basis: 100%; color: var(--t3); font-size: 12px; }
.admin-controls { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.admin-controls label { display: grid; gap: 4px; color: var(--t2); font-size: 12px; }
.priority-wrap { display: grid; gap: 4px; color: var(--t2); font-size: 12px; }
.priority-segments { display: flex; gap: 2px; padding: 3px; border-radius: 6px; background: var(--line2); }
.priority-segments button { flex: 1; min-width: 0; min-height: 36px; padding: 4px; border: 0; background: transparent; }
.priority-segments button[aria-pressed="true"] { color: var(--blue-d); background: #fff; }
.admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-fields input, .admin-fields select { min-width: 0; width: 100%; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-actions button { min-height: 36px; }
.me-content { max-width: 850px; margin: auto; }
.me-section { margin-bottom: 8px; padding: 16px; background: #fff; }
.me-section h1, .me-section h2 { margin: 0 0 12px; font-size: 15px; }
.me-item { padding: 14px 0; border-top: 1px solid var(--line2); }
.me-item button { display: block; padding: 0; color: var(--t1); background: transparent; text-align: left; }
.me-item p { margin: 4px 0 0; color: var(--t3); font-size: 12px; }
.pool-colophon { margin: 20px 0 6px; color: var(--t3); opacity: .72; text-align: center; font-size: 12px; font-style: italic; letter-spacing: .025em; }
#notice:not(:empty), .dialog-notice:not(:empty) { position: fixed; z-index: 99; top: 18px; left: 50%; transform: translateX(-50%); max-width: min(90vw, 520px); margin: 0; padding: 10px 16px; border: 0; border-radius: 6px; color: #fff; background: #30343a; text-align: center; }
.dialog-notice:empty { display: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (max-width: 700px) {
  main { padding: 0 0 calc(80px + env(safe-area-inset-bottom)); }
  .topbar { display: none; }
  .desktop-nav, .top-search, .top-feedback { display: none; }
  .mobile-nav { display: flex; position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; justify-content: space-around; padding: 7px 0 calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
  .mobile-nav a { position: relative; display: grid; justify-items: center; gap: 1px; min-width: 100px; min-height: 44px; padding: 2px 8px; color: var(--t3); text-align: center; text-decoration: none; font-size: 12px; }
  .mobile-nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
  .mobile-nav .nav-badge { position: absolute; top: 0; right: 24px; }
  .nav-icon { display: block; width: 20px; height: 20px; background: currentColor; mask-size: contain; mask-repeat: no-repeat; mask-position: center; }
  .nav-pool { mask-image: url('/static/icons/menu.svg'); }
  .nav-me { mask-image: url('/static/icons/circle.svg'); }
  .fab { display: grid; place-items: center; position: fixed; z-index: 5; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 52px; height: 52px; min-height: 52px; padding: 0; border-radius: 50%; color: #fff; background: var(--blue); font-size: 29px; font-weight: 300; box-shadow: 0 6px 16px rgb(51 112 255 / 30%); }
  .pool-panel { border: 0; border-radius: 0; background: var(--bg); overflow: visible; }
  .mobile-search { display: block; padding: 8px 16px; background: #fff; }
  .mobile-search input { border: 0 !important; background: var(--line2) !important; }
  .pool-toolbar { position: sticky; z-index: 3; top: 0; min-height: 48px; padding: 0 16px; background: #fff; }
  .status-tabs { gap: 22px; }
  .status-tabs button { padding: 12px 0; }
  .sort-label select { min-width: 76px; border: 0 !important; background: #fff; padding-right: 16px; }
  .sort-label { display: block; }
  .sort-segments { display: none; }
  .category-bar { position: sticky; top: 48px; z-index: 3; padding: 10px 16px; background: #fff; }
  .category-bar button { min-height: 44px; }
  .pool-table-wrap { margin-top: 8px; background: #fff; }
  .pool-table, .pool-table tbody, .pool-table tr, .pool-table td { display: block; }
  .pool-table thead, .pool-table td.desktop-cell { display: none; }
  .pool-table tr { display: flex; align-items: center; padding: 12px 16px 12px 0; margin-left: 16px; border-top: 1px solid var(--line2); }
  .pool-table tr:first-child { border-top: 0; }
  .pool-table td, .pool-table td:first-child { padding: 0; border: 0; }
  .pool-table .vote-cell { order: 2; flex: none; width: 44px; margin-left: 12px; }
  .pool-table .subject-cell { flex: 1; min-width: 0; width: auto; }
  .mobile-priority:not(:empty), .mobile-state { display: inline-flex !important; }
  .row-meta { flex-wrap: wrap; }
  .pool-empty { background: #fff; margin-top: 8px; }
  #submit-dialog { inset: auto 0 0; width: 100%; height: min(90dvh, 760px); border-radius: 12px 12px 0 0; animation: drawer-in 250ms ease-out; }
  #detail-dialog { inset: 0; width: 100%; height: 100dvh; border: 0; animation: detail-in 200ms ease-out; }
  .detail-header { min-height: 48px; }
  .detail-section { padding: 16px; }
  .me-page { padding-top: 8px; }
}
@keyframes drawer-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes detail-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
