:root { --fg: #1d1d1f; --muted: #6b6b70; --line: #e3e3e8; --accent: #3a5bd9; --bg: #fafafa; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--fg); background: var(--bg); }
header { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: #fff; }
nav a { margin-left: .8rem; color: var(--accent); text-decoration: none; }
main { max-width: 760px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.muted { color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; margin: 0 0 1rem; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
h2 { margin: .2rem 0 1rem; font-size: 1.25rem; }
.opts { display: grid; gap: .5rem; }
.opt { text-align: left; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: #eef1fd; }
.scale { display: flex; gap: .3rem; flex-wrap: wrap; }
.scale .opt { min-width: 2.6rem; text-align: center; }
textarea, input[type=text] { width: 100%; font: inherit; padding: .6rem; border: 1px solid var(--line); border-radius: 10px; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
button.primary { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: .6rem 1.1rem; font: inherit; cursor: pointer; }
button.ghost { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; }
button:disabled { opacity: .5; cursor: default; }
.rate button { font-size: 1.2rem; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .2rem .5rem; cursor: pointer; }
.rate button[aria-pressed="true"] { border-color: var(--accent); background: #eef1fd; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: .3rem 0 1rem; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.grid .card { margin: 0; font-size: .9rem; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; background: #fff; }
th, td { padding: .35rem .4rem; border-bottom: 1px solid var(--line); text-align: right; }
th:first-child, td:first-child { text-align: left; }
.chat p { margin: .4rem 0; }
.chat .me { text-align: right; }
.chat .lio { color: var(--fg); }
.err { color: #b42318; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.tip { background: #eef1fd; border-radius: 8px; padding: .5rem .7rem; margin: 0 0 .6rem; }
.stmt { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .6rem; }
.lio-link { font-size: .9rem; color: var(--accent); }
.pts { margin-top: 0; }
.pts strong { min-width: 1.5rem; text-align: center; }
.pts .opt { min-width: 2.4rem; text-align: center; padding: .4rem; }
.rate button { font-size: .95rem; }
input[type=number] { width: 6rem; font: inherit; padding: .6rem; border: 1px solid var(--line); border-radius: 10px; }
.row input[type=text] { flex: 1; }
