:root { color: #202124; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
button, input { font: inherit; }
button { cursor: pointer; }
.app { min-height: 100vh; }
.header { align-items: center; border-bottom: 1px solid #d9dce1; display: flex; height: 56px; justify-content: space-between; padding: 0 16px; }
.brand { align-items: center; display: flex; font-size: 17px; font-weight: 600; gap: 9px; }
.brand-mark { color: #107c41; font-size: 24px; line-height: 1; }
.icon-button { background: transparent; border: 0; color: #60646c; font-size: 18px; height: 32px; width: 32px; }
.tabs { border-bottom: 1px solid #d9dce1; display: flex; }
.tab { background: #fff; border: 0; border-bottom: 3px solid transparent; color: #525760; flex: 1; min-height: 48px; padding: 0 4px; }
.tab.active { border-color: #107c41; color: #107c41; font-weight: 600; }
.panel { display: none; padding: 20px 16px 28px; }
.panel.active { display: block; }
h1 { font-size: 20px; font-weight: 600; margin: 0 0 16px; }
h2 { font-size: 16px; font-weight: 600; margin: 24px 0 10px; }
.context { border: 1px solid #d9dce1; border-radius: 6px; overflow: hidden; }
.context div { align-items: baseline; display: flex; gap: 12px; justify-content: space-between; min-height: 45px; padding: 11px 12px; }
.context div + div { border-top: 1px solid #d9dce1; }
.context span { color: #60646c; }
.context strong { font-weight: 600; max-width: 66%; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.hint, .summary { color: #60646c; line-height: 1.45; }
.prompt-label { display: block; font-weight: 600; margin-top: 18px; }
textarea { border: 1px solid #9da3ad; border-radius: 5px; line-height: 1.4; margin-top: 7px; padding: 9px; resize: vertical; width: 100%; }
textarea:focus, input:focus { border-color: #107c41; outline: 2px solid rgba(16, 124, 65, .18); }
.primary { background: #107c41; border: 1px solid #107c41; border-radius: 5px; color: #fff; font-weight: 600; margin-top: 12px; min-height: 42px; padding: 0 16px; width: 100%; }
.primary:hover { background: #0b6534; }
.status { color: #60646c; min-height: 18px; margin: 12px 0 0; }
.status.error { color: #b42318; }
.findings ul, .history-list { list-style: none; margin: 0; padding: 0; }
.finding { align-items: flex-start; border-top: 1px solid #eceef1; display: grid; gap: 8px; grid-template-columns: 18px 1fr auto; padding: 12px 0; }
.finding-icon { font-weight: 700; text-align: center; }
.finding.error .finding-icon { color: #c83532; }
.finding.warning .finding-icon { color: #bd7000; }
.finding.ok .finding-icon { color: #107c41; }
.finding-title { font-weight: 600; }
.finding-details { color: #60646c; font-size: 12px; grid-column: 2 / 4; line-height: 1.4; }
.empty { border: 1px dashed #bfc4cb; border-radius: 6px; color: #60646c; line-height: 1.45; padding: 16px; }
.proposal { border: 1px solid #d9dce1; border-radius: 6px; margin-top: 10px; padding: 12px; }
.proposal label { align-items: flex-start; display: grid; gap: 9px; grid-template-columns: 16px 1fr; }
.proposal strong { display: block; }
.proposal-values { color: #60646c; font-size: 12px; margin-top: 6px; }
.proposal-values del { color: #b42318; }
.proposal-values ins { color: #107c41; text-decoration: none; }
.proposal-reason { color: #60646c; font-size: 12px; line-height: 1.4; margin: 8px 0 0 25px; }
dialog { border: 1px solid #c8ccd2; border-radius: 6px; box-shadow: 0 14px 36px rgba(0, 0, 0, .2); max-width: 330px; padding: 20px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0, 0, 0, .28); }
dialog h2 { margin: 0 0 16px; }
dialog label { display: grid; gap: 7px; font-weight: 600; }
dialog input { border: 1px solid #9da3ad; border-radius: 4px; padding: 9px; width: 100%; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }
.dialog-actions button { margin-top: 8px; width: auto; }
.dialog-actions button:not(.primary) { background: #fff; border: 1px solid #9da3ad; border-radius: 5px; min-height: 42px; padding: 0 16px; }
