:root { color-scheme: light; font-family: "Segoe UI", sans-serif; color: #1c1917; background: #f5f5f4; }
body { margin: 0; }
button, select, textarea, input { font: inherit; }
button { border: 1px solid #44403c; background: #fff; border-radius: 6px; padding: 8px 12px; cursor: pointer; }
button.primary { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
button.link { border: 0; background: none; color: #1d4ed8; padding: 0; text-align: left; }
button:disabled { opacity: .45; cursor: default; }
#app { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
header.top { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 20px; }
.eyebrow { margin: 0 0 4px; color: #57534e; font-size: 13px; }
h1, h2 { margin: 0; font-weight: 500; }
h2 { font-size: 18px; }
.roles { display: flex; gap: 8px; }
.roles button[aria-pressed="true"] { background: #1c1917; color: #fff; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e7e5e4; vertical-align: top; }
tr.clickable { cursor: pointer; }
.section { background: #fff; border: 1px solid #e7e5e4; border-radius: 8px; padding: 16px; margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; margin: 12px 0 0; }
.facts div { min-width: 0; }
.facts dt { color: #57534e; font-size: 13px; }
.facts dd { margin: 2px 0 0; }
.candidates { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.candidates button[aria-pressed="true"] { background: #e0e7ff; border-color: #1d4ed8; }
.level { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #e7e5e4; }
.level.strong { background: #ffedd5; }
.level.possible { background: #fef3c7; }
.thread { display: grid; gap: 12px; margin-top: 12px; }
.thread article { border-top: 1px solid #e7e5e4; padding-top: 12px; }
.composer { display: grid; gap: 10px; }
.composer textarea { min-height: 88px; padding: 8px; }
.row-actions, .voice { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
audio { display: block; margin-top: 8px; }
.back { margin-bottom: 12px; }
.decision-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.override-record { border-color: #c2410c; }
.visitor-choice { margin: 12px 0; padding: 12px; border: 2px solid #1d4ed8; border-radius: 8px; }
.candidates button.visitor { border-width: 2px; border-color: #1d4ed8; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr 1fr; } header.top { display: grid; } }
.desk { max-width: 1100px; }
.desk .facts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#app.visitor { max-width: 440px; }
#app.visitor .roles { flex-wrap: wrap; }
#app.visitor .shop-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; margin-top: 10px; text-align: left; }
#app.visitor .candidates { display: grid; }
#app.visitor .candidates button { width: 100%; text-align: left; }
#app.visitor button.choice { display: block; width: 100%; margin-top: 8px; }
#app.visitor .facts { grid-template-columns: 1fr 1fr; }
#app.visitor thead { display: none; }
#app.visitor table, #app.visitor tbody, #app.visitor tr { display: block; }
#app.visitor tr { padding: 8px 0; border-top: 1px solid #e7e5e4; }
#app.visitor td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; }
#app.visitor td:before { content: attr(data-label); color: #57534e; }
