﻿:root { font-family: Inter, system-ui, Arial, sans-serif; color: #172033; background: #f4f7fb; }
body { margin: 0; }
header { display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding: 2rem; background: linear-gradient(135deg, #172033, #3157d5); color: white; }
h1 { margin: .2rem 0; font-size: 2rem; }
button { border: 0; border-radius: 8px; background: #3157d5; color: white; padding: .55rem .8rem; cursor: pointer; font-weight: 700; }
button:hover { filter: brightness(1.08); }
main { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; padding: 1rem; }
.panel { background: white; border-radius: 14px; padding: 1rem; box-shadow: 0 6px 18px rgba(23,32,51,.08); }
.wide { grid-column: 1 / -1; }
.panel-title { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
form { display: flex; gap: .5rem; flex-wrap: wrap; }
input, textarea { border: 1px solid #d9e0ef; border-radius: 8px; padding: .55rem; }
textarea { width: 100%; min-height: 70px; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid #eef2f7; padding: .7rem; text-align: left; vertical-align: top; }
th { color: #5c6680; font-size: .85rem; }
tr.row-auto_resolved { background: #ecf9f0; }
tr.row-escalated { background: #fff3e4; }
tr.row-resolved { background: #eef1fb; }
.badge { display: inline-block; border-radius: 999px; padding: .32rem .65rem; font-size: .78rem; font-weight: 800; color: #172033; background: #e8edf7; white-space: nowrap; }
.auto-resolved { background: #d8f5e3; color: #126335; border: 1px solid #9de2b7; }
.escalated { background: #ffe6c7; color: #915500; border: 1px solid #ffc46b; }
.resolved { background: #e3e8ff; color: #253b91; border: 1px solid #b8c5ff; }
.pending { background: #eef2f7; border: 1px solid #d9e0ef; }
.policy { border: 1px solid #eef2f7; border-radius: 10px; padding: .8rem; margin-bottom: .8rem; }
.policy-improved { border-color: #9de2b7; box-shadow: inset 4px 0 0 #24a148; }
.policy-head { display: flex; justify-content: space-between; gap: 1rem; color: #3157d5; }
.diff-box { margin: .6rem 0; padding: .65rem; border-radius: 8px; background: #ecfdf3; border: 1px solid #b7ebc6; color: #164b2d; }
.rules-summary { color: #33415f; }
pre { background: #f6f8fb; padding: .8rem; overflow: auto; border-radius: 8px; max-height: 190px; }
.reasoning-box { margin-top: .8rem; }
blockquote { margin: .5rem 0; padding: .9rem; border-left: 4px solid #3157d5; background: #f6f8fb; white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.resolution-log { padding-left: 1.2rem; }
.resolution-log li { margin-bottom: .45rem; line-height: 1.35; overflow-wrap: anywhere; }
.muted, .eyebrow { color: #6d7690; }
header .muted, header .eyebrow { color: #cbd7ff; }
.error { background: #b42318; color: white; padding: .8rem 1rem; }
.actions-form { margin-top: 1rem; display: block; }
.actions-row { display: flex; gap: .5rem; margin-top: .5rem; }
@media (max-width: 900px) { main { grid-template-columns: 1fr; } .panel-title { display: block; } }
