* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; color: #222; background: #f4f6f9; }
a { color: #1a6fb5; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: #24364b; color: #fff; }
.topbar a { color: #fff; text-decoration: none; margin-inline-start: 14px; }
.brand { font-weight: 600; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
.card { background: #fff; border: 1px solid #e1e5ea; border-radius: 8px; padding: 14px 18px; margin: 12px 0; }
.btn { display: inline-block; padding: 7px 16px; border: 1px solid #c8cfd8; background: #fff; border-radius: 6px; cursor: pointer; font: inherit; text-decoration: none; color: #222; }
.btn.primary { background: #1a6fb5; border-color: #1a6fb5; color: #fff; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
select, input, textarea { font: inherit; padding: 6px 8px; border: 1px solid #c8cfd8; border-radius: 5px; }
.muted { color: #778; } .small { font-size: 12px; } .err { color: #c0392b; } .red { color: #c0392b; }
.grid { width: 100%; border-collapse: collapse; background: #fff; }
.grid th, .grid td { border-bottom: 1px solid #eee; padding: 6px 8px; text-align: right; }
.banner { padding: 10px 14px; border-radius: 6px; margin: 10px 0; }
.banner.warn { background: #fff4d6; border: 1px solid #f0d27a; }
.banner.ok { background: #e3f6e8; border: 1px solid #9fd8ad; }
.login { max-width: 380px; margin: 12vh auto; background: #fff; padding: 28px; border-radius: 10px; border: 1px solid #e1e5ea; }
.login form { display: flex; flex-direction: column; gap: 12px; }
.login label { display: flex; flex-direction: column; gap: 4px; }
.stats { display: flex; gap: 12px; }
.stat { background: #fff; border: 1px solid #e1e5ea; border-radius: 8px; padding: 12px 20px; text-align: center; }
.stat b { display: block; font-size: 26px; }
.stat span { color: #778; font-size: 12px; }
.conv summary { cursor: pointer; display: flex; gap: 8px; align-items: center; }
.score { margin-inline-start: auto; font-weight: 700; padding: 2px 10px; border-radius: 12px; background: #eef1f5; }
.score.good { background: #dff3e4; color: #1e7b3a; } .score.bad { background: #fde3e0; color: #b23b2c; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.transcript div { padding: 4px 0; border-bottom: 1px dashed #eee; white-space: pre-wrap; }
.transcript .t-system, .transcript .t-coach { color: #889; font-size: 12px; }
.better { background: #f3f8ff; border-inline-start: 3px solid #1a6fb5; padding: 6px 10px; margin: 6px 0; }
.preset fieldset { border: 1px solid #e1e5ea; border-radius: 6px; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.preset label { display: inline-flex; gap: 6px; align-items: center; }
.preset input[type=number] { width: 70px; }
.preset label.cb { width: 48%; }
