:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #182c24; background: #f4f6f4; color-scheme: light; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
main { width: min(100%, 640px); margin: auto; padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); }
header { display: flex; align-items: center; gap: 9px; }
header img { width: 32px; height: 32px; border-radius: 10px; }
header strong { font-size: 18px; letter-spacing: -.04em; }
.badge { margin-left: auto; color: #17664f; background: #e4eee8; border-radius: 20px; padding: 6px 10px; font-size: 11px; }
h1 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
h2 { font-size: 17px; margin: 0 0 14px; }
h3 { font-size: 14px; margin: 24px 0 8px; }
.intro, .muted { color: #64746a; font-size: 13px; line-height: 1.65; }
.connection { color: #17664f; font-size: 12px; margin: 12px 0 18px; }
.panel { background: white; border: 1px solid #dce4dd; border-radius: 16px; padding: 16px; margin-bottom: 16px; }
label { display: block; font-size: 13px; margin: 18px 0 8px; }
input { display: block; width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; border: 1px solid #cdd9d0; border-radius: 12px; margin-bottom: 12px; }
button { min-height: 44px; border-radius: 11px; padding: 10px 16px; border: 1px solid #17664f; color: white; background: #17664f; font: inherit; font-size: 13px; font-weight: 600; touch-action: manipulation; cursor: pointer; }
button.secondary { background: transparent; color: #17664f; border-color: #cdd9d0; }
button:focus-visible, input:focus-visible { outline: 3px solid #83b6a6; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: wait; }
#login { width: 100%; }
.passkey-btn { width: 100%; margin-bottom: 12px; }
.toolbar { display: flex; gap: 8px; align-items: center; }
.toolbar h1, .toolbar h2 { margin: 0 auto 0 0; }
#count { color: #64746a; font-size: 12px; font-weight: 400; }
.topics { display: grid; gap: 10px; margin: 18px 0; }
#topics { gap: 0; border: 1px solid #dce4dd; border-radius: 16px; overflow: hidden; }
#topics:empty { border: 0; }
.topic { width: 100%; min-width: 0; text-align: left; background: white; color: #182c24; border-color: #dce4dd; padding: 14px; }
#topics .topic { border: 0; border-bottom: 1px solid #e8ede9; border-radius: 0; }
#topics .topic:last-child { border-bottom: 0; }
.topic:active { background: #eaf3ee; }
.topic:focus-visible { outline-offset: -3px; }
.topic-heading { display: flex; align-items: center; gap: 10px; }
.topic-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; min-width: 0; font-size: 15px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; text-wrap: pretty; }
.topic-arrow { flex: 0 0 16px; font-size: 26px; line-height: 1; color: #809188; font-weight: 400; text-align: right; }
.topic-meta { display: flex; align-items: center; gap: 9px; margin-top: 8px; font-size: 11px; color: #64746a; font-weight: 400; }
.topic-status { padding: 2px 7px; border-radius: 5px; background: #e8f2ec; color: #17664f; }
.status-blocked { background: #fff0d9; color: #8c5918; }
.status-done, .status-dormant { background: #edf0ee; color: #64746a; }
.content { font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail h2 { margin-top: 18px; font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.detail { scroll-margin-top: 12px; }
.detail-nav { position: sticky; top: 0; display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; background: white; z-index: 1; }
.detail-message { color: #17664f; font-size: 14px; line-height: 1.6; }
.detail-message:empty { display: none; }
#detail-meta:empty { display: none; }
#topic-action-form { scroll-margin-top: 64px; }
.notice { color: #9b432e; font-size: 13px; line-height: 1.65; min-height: 1.5em; }
footer { margin-top: 24px; color: #64746a; font-size: 11px; line-height: 1.8; }
nav, .filters, .feedback-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; background: #e7ede8; border-radius: 13px; }
nav button { border: 0; }
select, textarea { max-width: 100%; width: 100%; border: 1px solid #cdd9d0; border-radius: 10px; padding: 10px; background: white; color: #182c24; font: inherit; font-size: 16px; min-height: 44px; }
.filters select { width: auto; flex: 1; }
textarea { display: block; margin: 8px 0 16px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 8px; line-height: 1.6; min-height: 44px; }
.check input { display: inline-block; flex: 0 0 20px; width: 20px; min-height: 20px; margin: 2px 0; }
.topic-preview { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: normal; margin-top: 8px; font-size: 12px; line-height: 1.6; font-weight: 400; color: #64746a; }
.card h3 { margin-top: 0; }
.receipt { padding: 12px 0; border-bottom: 1px solid #dce4dd; font-size: 13px; overflow-wrap: anywhere; }
details { margin: 16px 0; } summary { cursor: pointer; font-size: 13px; }
pre.content { font-family: inherit; white-space: pre-wrap; }
a { color: #17664f; overflow-wrap: anywhere; }
#report-sources { font-size: 12px; line-height: 1.6; }
.feedback-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.report-heading { position: sticky; top: 0; background: white; padding: 8px 0; z-index: 1; }
.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; }
#read-at { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; margin: 8px 0 12px; }
@media (max-width: 360px) { main { padding-left: 12px; padding-right: 12px; } .topic { padding: 12px; } }
