:root {
  --bg: #f5f3ee;
  --surface: #fffdfa;
  --surface-2: #efede6;
  --ink: #17191d;
  --muted: #777a80;
  --muted-2: #a1a29f;
  --line: #e5e1d8;
  --accent: #c86443;
  --accent-dark: #a94f35;
  --teal: #5a807b;
  --violet: #7b718f;
  --shadow: 0 10px 28px rgba(34, 30, 22, .055);
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.5; }
body.dark { --bg: #141518; --surface: #1e2024; --surface-2: #292b30; --ink: #f5f1e8; --muted: #a6a8ad; --muted-2: #777a80; --line: #34363b; --shadow: 0 12px 32px rgba(0,0,0,.20); color-scheme: dark; }
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-shell { min-height: 100vh; overflow-x: clip; }

/* Header */
.topbar { height: 72px; position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 34px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 228px; }
.brand-symbol { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px 10px 10px 4px; color: #fff; font-weight: 850; letter-spacing: -.08em; background: var(--accent); }
.brand-copy { display: grid; gap: 0; }
.brand-copy strong { font-size: 14px; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav-item { padding: 9px 12px; border-radius: 10px; color: var(--muted); background: transparent; font-size: 13px; transition: .18s ease; }
.top-nav-item:hover, .top-nav-item.is-active { color: var(--ink); background: var(--surface-2); }
.top-nav-item span { display: inline-grid; place-items: center; min-width: 20px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; color: var(--muted); background: color-mix(in srgb, var(--surface) 65%, var(--surface-2)); font-size: 10px; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.connection-state { display: inline-flex; align-items: center; gap: 7px; margin-right: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.connection-state i, #syncDot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #c99338; }
.connection-state i.is-ready { background: #4f877b; }
.connection-state i.is-error { background: var(--accent); }
.quiet-button, .mobile-menu { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); background: transparent; font-size: 16px; }
.quiet-button:hover, .mobile-menu:hover { color: var(--ink); background: var(--surface-2); }
.quiet-button.is-loading { animation: spin-refresh .8s linear infinite; }
@keyframes spin-refresh { to { transform: rotate(360deg); } }
.mobile-menu { display: none; }

.primary-button, .secondary-button, .outline-button, .ghost-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 9px; font-size: 13px; font-weight: 700; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.primary-button { color: #fff; background: var(--accent); }
.primary-button:hover { background: var(--accent-dark); }
.primary-button.light { color: #1b1c20; background: #fff; }
.primary-button.light:hover { color: #fff; background: var(--accent); }
.primary-button.compact, .secondary-button.compact { min-height: 34px; padding-inline: 12px; font-size: 12px; }
.secondary-button { color: var(--ink); background: var(--surface-2); }
.secondary-button:hover { background: color-mix(in srgb, var(--surface-2) 72%, var(--line)); }
.outline-button { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.outline-button:hover { border-color: var(--accent); color: var(--accent); }
.ghost-button { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); }
.ghost-button:hover { background: rgba(255,255,255,.22); }

/* Hero */
.hero { min-height: 380px; position: relative; margin-top: 28px; overflow: hidden; border-radius: 18px; isolation: isolate; background: #183744; box-shadow: var(--shadow); }
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 19, 28, .86) 0%, rgba(12, 19, 28, .70) 52%, rgba(12, 19, 28, .32) 100%); }
.hero-copy { width: min(570px, 62%); padding: 55px 0 56px 58px; color: #fff; }
.eyebrow, .section-kicker { margin: 0 0 14px; color: rgba(255,255,255,.7); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #ffc466; box-shadow: 0 0 0 4px rgba(255,196,102,.17); }
.hero h1 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -.065em; }
.hero h1 em { color: #f0c58d; font-style: normal; }
.hero-description { margin: 19px 0 25px; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-progress { position: absolute; right: 35px; bottom: 30px; width: 176px; padding: 15px 16px; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; background: rgba(12, 18, 25, .62); }
.hero-progress-label, .hero-progress > span:last-child { display: block; color: rgba(255,255,255,.72); font-size: 10px; }
.hero-progress strong { display: block; margin: 4px 0 8px; font-size: 26px; letter-spacing: -.05em; }
.hero-progress .progress-track { height: 5px; margin-bottom: 8px; background: rgba(255,255,255,.22); }
.hero-progress .progress-track i { background: #e1ba84; }
.progress-track { height: 6px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.2); }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .35s ease; }

/* Category cards */
.category-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 15px; }
.category-card { height: 118px; position: relative; overflow: hidden; padding: 0; border: 1px solid transparent; border-radius: 12px; text-align: left; isolation: isolate; background: var(--surface-2); transition: border-color .16s ease; }
.category-card:hover, .category-card.is-active { border-color: rgba(255,255,255,.42); }
.category-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.category-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,17,23,.82), rgba(14,17,23,.28)); }
.category-copy { position: absolute; inset: 17px 16px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.category-copy small { font-size: 9px; letter-spacing: .14em; opacity: .72; }
.category-copy strong { font-size: 19px; letter-spacing: -.04em; }
.category-copy b { position: absolute; right: 0; bottom: -1px; color: rgba(255,255,255,.75); font-size: 12px; font-weight: 500; }

/* Board */
.board { margin-top: 74px; }
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-kicker { color: var(--muted); }
.section-kicker span { color: var(--muted-2); font-weight: 600; letter-spacing: 0; }
.board h2 { margin: 0; font-size: clamp(29px, 4vw, 42px); letter-spacing: -.06em; line-height: 1.05; }
.board-subtitle { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.board-summary { display: flex; align-items: flex-end; gap: 27px; padding-bottom: 3px; }
.board-summary div { display: grid; gap: 1px; }
.board-summary div:last-child { cursor: pointer; }
.board-summary strong { font-size: 25px; line-height: 1; letter-spacing: -.05em; }
.board-summary span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.toolbar { position: sticky; top: 72px; z-index: 15; display: flex; align-items: center; gap: 8px; min-height: 59px; margin-top: 27px; padding: 9px 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-field { flex: 1 1 290px; display: flex; align-items: center; gap: 8px; min-width: 160px; height: 38px; padding: 0 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.search-field > span { font-size: 19px; line-height: 1; }
.search-field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-field kbd, kbd { padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--surface-2); font-family: inherit; font-size: 10px; }
.toolbar-divider { width: 1px; height: 22px; margin: 0 3px; background: var(--line); }
.filter-chip { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px; color: var(--muted); border: 1px solid transparent; border-radius: 9px; background: transparent; font-size: 11px; white-space: nowrap; }
.filter-chip:hover, .filter-chip.is-open { color: var(--ink); border-color: var(--line); background: var(--surface); }
.filter-chip b { color: var(--ink); font-weight: 600; }
.filter-chip span { color: var(--muted-2); font-size: 12px; }
.clear-button, .back-top { color: var(--accent); background: transparent; font-size: 11px; }
.clear-button:hover, .back-top:hover { text-decoration: underline; }
.filter-menu { position: fixed; z-index: 30; min-width: 150px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.filter-menu button { display: block; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--muted); background: transparent; text-align: left; font-size: 12px; }
.filter-menu button:hover, .filter-menu button.is-selected { color: var(--ink); background: var(--surface-2); }
.list-tools { display: flex; align-items: center; gap: 8px; min-height: 43px; color: var(--ink); font-size: 12px; }
.list-note { color: var(--muted); }
.list-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.export-button { gap: 6px; border: 1px solid var(--line); }
.export-button:hover { color: var(--accent-dark); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.list-tools .back-top { margin-left: 0; }
.task-sections { padding-bottom: 18px; }
.task-section + .task-section { margin-top: 28px; }
.section-heading { display: flex; align-items: center; gap: 10px; margin: 12px 0 9px; }
.done-section > summary { list-style: none; cursor: pointer; }
.done-section > summary::-webkit-details-marker { display: none; }
.done-section > summary::marker { content: ''; }
.done-section > summary b { margin-left: 3px; color: var(--muted-2); font-size: 13px; font-weight: 500; transition: transform .18s ease; }
.done-section[open] > summary b { transform: rotate(180deg); }
.section-heading h3 { margin: 0; font-size: 12px; letter-spacing: .03em; }
.section-heading > span { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; color: var(--muted); background: var(--surface-2); font-size: 10px; }
.section-line { flex: 1; height: 1px; background: var(--line); }
.task-list { display: grid; gap: 7px; }
.task-card { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 88px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color .16s ease; }
.task-card:hover, .task-card.is-highlight { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); }
.task-card.is-done { background: color-mix(in srgb, var(--surface) 75%, var(--surface-2)); }
.task-card.is-done .task-title, .task-card.is-done .task-detail { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 35%, transparent); }
.task-check { width: 23px; height: 23px; display: grid; place-items: center; padding: 0; border: 1.5px solid #c4c1b9; border-radius: 7px; color: #fff; background: transparent; font-size: 13px; font-weight: 800; }
.task-check:hover { border-color: var(--accent); }
.task-check.is-checked { border-color: var(--teal); background: var(--teal); }
.task-main { min-width: 0; }
.task-title-row { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.task-id { flex: 0 0 auto; color: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.task-title { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.task-detail { display: -webkit-box; overflow: hidden; margin: 5px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted-2); font-size: 10px; }
.task-tag, .priority-tag, .source-tag, .owner-pill { display: inline-flex; align-items: center; gap: 4px; }
.task-tag { color: var(--muted); }
.dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--violet); }
.dot-pink { background: #a8748d; }.dot-blue { background: #6e8ea1; }.dot-amber { background: #b08e5d; }.dot-green { background: #6e907c; }
.priority-tag { padding: 2px 6px; border-radius: 5px; color: var(--muted); background: var(--surface-2); }
.priority-tag.high { color: #a85b43; background: #f2e5df; }
body.dark .priority-tag.high { color: #ffb096; background: #4a2924; }
.source-tag.feedback { color: var(--teal); }
.task-updated { color: var(--muted-2); }
.task-side { display: flex; align-items: center; gap: 13px; }
.owner-pill { color: var(--muted); font-size: 11px; white-space: nowrap; }
.owner-avatar { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #52607c; font-size: 9px; font-style: normal; font-weight: 800; }
.owner-avatar.empty { color: var(--muted); background: var(--surface-2); }
.task-arrow { color: var(--muted-2); font-size: 20px; line-height: 1; }
.done-section .section-heading { cursor: pointer; }
.done-section .task-list { margin-top: 7px; }
.empty-state { padding: 72px 20px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.empty-mark { color: var(--accent); font-size: 36px; }.empty-state h3 { margin: 7px 0 4px; font-size: 17px; }.empty-state p { margin: 0 0 17px; color: var(--muted); font-size: 12px; }

/* Closing section */
.closing-callout { position: relative; display: flex; align-items: center; gap: 24px; min-height: 151px; margin-top: 45px; overflow: hidden; padding: 25px 29px; border-radius: 14px; background: var(--surface-2); }
.closing-callout img { width: 180px; height: 101px; flex: 0 0 auto; object-fit: cover; border-radius: 12px; filter: saturate(.85); }
.closing-callout > div { flex: 1; }.closing-callout .section-kicker { margin-bottom: 6px; }.closing-callout h2 { margin: 0; font-size: 21px; letter-spacing: -.045em; }.closing-callout p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.footer { display: flex; justify-content: space-between; gap: 18px; padding: 25px 0 35px; color: var(--muted-2); font-size: 10px; }

/* Drawer */
.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(12,14,18,.52); }
.detail-drawer { position: fixed; z-index: 90; top: 0; right: 0; width: min(510px, 100vw); height: 100dvh; overflow: auto; padding: 22px 27px 40px; color: var(--ink); background: var(--surface); box-shadow: -12px 0 32px rgba(14,16,20,.14); transform: translateX(102%); transition: transform .25s ease; }
.detail-drawer.is-open { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.close-button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); background: var(--surface-2); font-size: 22px; line-height: 1; }
.close-button:hover { color: var(--ink); }
.drawer-body { padding-top: 27px; }.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }.detail-id { color: var(--muted-2); font-family: ui-monospace, monospace; font-size: 10px; }.detail-head h2 { margin: 7px 0 0; font-size: 27px; line-height: 1.16; letter-spacing: -.05em; }.detail-status { flex: 0 0 auto; padding: 5px 8px; border-radius: 7px; color: var(--teal); background: #e3f1eb; font-size: 10px; font-weight: 700; }.detail-status.open { color: var(--accent-dark); background: #f8e7df; } body.dark .detail-status { background: #263b34; } body.dark .detail-status.open { background: #4a2924; color: #ffb096; }
.detail-copy { margin: 19px 0 25px; color: var(--muted); font-size: 14px; line-height: 1.8; white-space: pre-line; }.detail-section { padding: 19px 0; border-top: 1px solid var(--line); }.detail-section h4 { margin: 0 0 13px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }.detail-meta-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; }.detail-meta-item { display: grid; gap: 3px; }.detail-meta-item span { color: var(--muted-2); font-size: 10px; }.detail-meta-item strong { font-size: 12px; }.fix-list { display: grid; gap: 8px; }.fix-item { display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 8px; background: var(--surface-2); }.fix-item code { color: var(--accent); font-size: 10px; }.fix-item span { color: var(--muted); font-size: 11px; }.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }.form-message { color: var(--muted); font-size: 11px; }.form-message.error { color: var(--accent-dark); }.form-message.success { color: var(--teal); }

/* Modals and forms */
.modal { position: fixed; z-index: 100; top: 50%; left: 50%; width: min(650px, calc(100% - 30px)); max-height: calc(100dvh - 30px); overflow: auto; padding: 27px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); transform: translate(-50%, -47%); opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.modal.is-open { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }.small-modal { width: min(440px, calc(100% - 30px)); }.inbox-modal { width: min(760px, calc(100% - 30px)); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.modal-heading .section-kicker { margin-bottom: 8px; }.modal-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.05em; }.modal-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
form { padding-top: 20px; }.field { position: relative; display: grid; gap: 6px; }.field > span { color: var(--muted); font-size: 11px; font-weight: 700; }.field > span i { color: var(--accent); font-style: normal; font-weight: 500; }.field input, .field textarea, .field select { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: var(--surface); font-size: 12px; }.field textarea { min-height: 112px; resize: vertical; line-height: 1.6; }.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(200,100,67,.12); }/* 场景 / 分类 / 影响级别三列。分类是提交人自己选的——提交不再经评审，没人替他定。 */
.form-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 11px; margin-top: 13px; }.field.full { margin-top: 13px; }.field small { color: var(--muted-2); font-size: 10px; }.counter { position: absolute; right: 11px; bottom: 8px; color: var(--muted-2); font-size: 10px; }.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; }.form-footer > div { display: flex; gap: 8px; }.admin-message { min-height: 18px; margin: 12px 0 0; color: var(--accent-dark); font-size: 11px; }
.inbox-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 10px; color: var(--muted); font-size: 12px; }.inbox-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 13px; padding: 9px 11px; border-radius: 9px; color: var(--muted); background: var(--surface-2); font-size: 10px; }.inbox-flow b { color: var(--ink); font-size: 10px; }.inbox-flow i { color: var(--muted-2); font-style: normal; }.inbox-list { display: grid; gap: 10px; }.inbox-item { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }.inbox-item-head { display: flex; justify-content: space-between; gap: 12px; }.inbox-item h3 { margin: 0; font-size: 13px; }.inbox-item p { margin: 9px 0; color: var(--muted); font-size: 12px; line-height: 1.6; white-space: pre-line; }.inbox-meta { display: flex; gap: 7px; color: var(--muted-2); font-size: 10px; }.inbox-actions { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr auto auto; gap: 6px; margin-top: 12px; }.inbox-actions select, .inbox-actions input { min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); font-size: 10px; }.inbox-actions button { padding: 7px 9px; border-radius: 7px; font-size: 10px; }.inbox-actions .accept { color: #fff; background: var(--teal); }.inbox-actions .reject { color: var(--accent-dark); background: #f8e7df; }.inbox-empty { padding: 35px 14px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.8; }
.toast { position: fixed; z-index: 130; right: 22px; bottom: 22px; max-width: min(360px, calc(100% - 44px)); padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .22s ease; }.toast.is-visible { opacity: 1; transform: translateY(0); }.toast[data-type="error"] { border-color: #e7a08a; color: var(--accent-dark); }
.form-footer.admin-footer { justify-content: flex-end; }

.feedback-status-copy { flex: 1; min-width: 0; display: grid; gap: 7px; }
.feedback-receipt { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--teal); font-size: 11px; }
.feedback-receipt a { overflow: hidden; max-width: 100%; color: var(--teal); text-decoration: underline; text-underline-offset: 2px; text-overflow: ellipsis; white-space: nowrap; }
.receipt-copy { padding: 4px 7px; border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line)); border-radius: 6px; color: var(--teal); background: transparent; font-size: 10px; }
.receipt-copy:hover { background: color-mix(in srgb, var(--teal) 9%, var(--surface)); }
.inbox-actions { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 12px; }
.inbox-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.inbox-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 2fr); gap: 6px; }
.inbox-buttons { display: flex; justify-content: flex-end; gap: 6px; }

/* 未登录时替代提交表单的引导块。 */
.feedback-gate { padding: 26px 4px 6px; }
.feedback-gate .gate-lead { margin: 0 0 9px; color: var(--ink); font-size: 15px; font-weight: 500; }
.feedback-gate .gate-copy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.feedback-gate .gate-actions { margin-top: 18px; }

.users-modal { width: min(760px, calc(100% - 30px)); }
.user-create { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr) auto; align-items: end; gap: 8px; margin: 16px 0 0; }
.user-create .field span { font-size: 10px; }
.user-create input, .user-create select { padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font-size: 12px; }
.user-create button { padding: 9px 14px; white-space: nowrap; }
/* 初始密码只显示一次，样式上要显眼到不会被当成普通提示划过去。 */
.user-secret { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 11px 13px; border: 1px solid var(--accent-dark); border-radius: 10px; background: #f8e7df; }
.user-secret > div { display: flex; align-items: center; gap: 9px; }
.user-secret b { color: var(--accent-dark); font-size: 11px; }
.user-secret code { padding: 3px 7px; border-radius: 6px; background: var(--surface); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: .04em; }
.user-secret p { flex: 1; margin: 0; color: var(--accent-dark); font-size: 10px; line-height: 1.6; }
.user-message:empty { display: none; }
.users-list { display: grid; gap: 8px; }
.user-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; }
.user-item.is-disabled { opacity: .55; }
.user-item h3 { margin: 0; font-size: 13px; }
.user-item h3 small { margin-left: 6px; color: var(--muted-2); font-weight: 400; font-size: 11px; }
.user-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; color: var(--muted-2); font-size: 10px; }
.user-controls { display: flex; align-items: center; gap: 6px; }
.user-controls select { padding: 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); font-size: 10px; }
.user-controls button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 10px; }
.user-controls button:hover { color: var(--ink); background: var(--surface-2); }
.user-controls button[data-user-action="toggle"].is-off { color: var(--accent-dark); border-color: var(--accent-dark); background: #f8e7df; }

@media (max-width: 640px) {
  .feedback-status-copy { width: 100%; }
  .inbox-controls { grid-template-columns: 1fr 1fr; }
  .user-create { grid-template-columns: 1fr 1fr; }
  .user-secret { flex-wrap: wrap; }
  .user-item { flex-direction: column; align-items: stretch; }
  .user-controls { flex-wrap: wrap; }
  .inbox-notes { grid-template-columns: 1fr 1fr; }
  .inbox-notes [data-field="publicNote"], .inbox-notes [data-field="adminNote"] { grid-column: span 2; }
  .inbox-buttons { justify-content: stretch; }
  .inbox-buttons button { flex: 1; }
}

/* Feedback receipt and review controls must remain stacked on narrow screens. */
@media (max-width: 640px) {
  .inbox-actions { grid-template-columns: 1fr !important; }
  .inbox-controls { grid-template-columns: 1fr 1fr; }
  .inbox-notes { grid-template-columns: 1fr 1fr; }
  .inbox-notes [data-field="publicNote"], .inbox-notes [data-field="adminNote"] { grid-column: span 2; }
}

@media (max-width: 900px) {
  .topbar { gap: 18px; padding-inline: 18px; }.brand { min-width: auto; }.brand-copy small { display: none; }.top-nav { margin-left: 0; }.top-actions .connection-state { display: none; }.hero-copy { width: 72%; padding-left: 37px; }.hero-progress { right: 22px; bottom: 22px; }.category-strip { grid-template-columns: repeat(2,1fr); }.toolbar { flex-wrap: wrap; padding-block: 11px; }.search-field { flex-basis: 100%; }.toolbar-divider { display: none; }.filter-chip { flex: 1; justify-content: center; }.task-side { gap: 6px; }.owner-pill span { display: none; }.closing-callout { margin-top: 35px; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 520px); }.topbar { height: 62px; padding-inline: 14px; }.brand-symbol { width: 33px; height: 33px; border-radius: 10px 10px 10px 3px; }.brand-copy strong { font-size: 12px; }.top-nav { display: none; }.top-nav.is-mobile-open { position: absolute; top: 57px; left: 14px; right: 14px; display: grid; gap: 3px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }.top-nav.is-mobile-open .top-nav-item { width: 100%; text-align: left; }.top-actions { gap: 3px; }.top-actions .quiet-button { display: none; }.top-actions .primary-button { min-height: 34px; padding-inline: 10px; font-size: 11px; }.mobile-menu { display: grid; }
  .hero { min-height: 510px; margin-top: 14px; border-radius: 19px; }.hero-image { object-position: 58% center; }.hero-shade { background: linear-gradient(180deg, rgba(12,19,28,.2), rgba(12,19,28,.78) 57%, rgba(12,19,28,.94)); }.hero-copy { width: 100%; padding: 235px 22px 0; }.hero h1 { font-size: 35px; }.hero-description { margin: 14px 0 18px; font-size: 12px; }.hero-description br { display: none; }.hero-progress { right: 18px; bottom: 18px; left: 18px; width: auto; padding: 11px 13px; }.hero-progress strong { position: absolute; right: 13px; top: 8px; font-size: 21px; }.hero-progress .progress-track { margin-top: 9px; }.category-strip { grid-template-columns: repeat(2,1fr); gap: 8px; }.category-card { height: 97px; border-radius: 12px; }.category-copy { inset: 12px; }.category-copy strong { font-size: 16px; }.board { margin-top: 51px; }.board-head { display: block; }.board h2 { font-size: 34px; }.board-summary { justify-content: space-between; margin-top: 22px; padding-bottom: 0; }.board-summary strong { font-size: 21px; }.toolbar { top: 62px; margin-top: 21px; gap: 5px; }.filter-chip { padding-inline: 6px; font-size: 10px; }.filter-chip b { max-width: 42px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.list-tools { min-height: 39px; }.list-note { display: none; }.task-card { grid-template-columns: 25px minmax(0,1fr); gap: 10px; min-height: 79px; padding: 12px; }.task-side { grid-column: 2; justify-content: space-between; margin-top: -5px; }.task-title { font-size: 13px; }.task-detail { margin: 4px 0 6px; font-size: 11px; }.task-meta { gap: 5px; }.task-updated { display: none; }.closing-callout { display: block; padding: 17px; }.closing-callout img { width: 100%; height: 110px; margin-bottom: 15px; }.closing-callout h2 { font-size: 19px; }.closing-callout .outline-button { width: 100%; margin-top: 15px; }.footer { flex-wrap: wrap; padding-bottom: 24px; }.footer span:nth-child(2) { display: none; }.detail-drawer { padding: 17px 18px 30px; }.detail-head h2 { font-size: 23px; }.modal { padding: 20px 17px; border-radius: 16px; }.modal-heading h2 { font-size: 21px; }.form-row { grid-template-columns: 1fr; }.inbox-actions { grid-template-columns: 1fr 1fr; }.inbox-actions input { grid-column: span 2; }.inbox-actions select { min-height: 32px; }.form-footer { align-items: flex-start; flex-direction: column; }.form-footer > div { width: 100%; }.form-footer > div button { flex: 1; }.hero-actions .primary-button, .hero-actions .ghost-button { min-height: 36px; font-size: 11px; }
}
