* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: #333; font: 14px/1.45 "Segoe UI", Arial, sans-serif; }
.wrap { padding: 16px 20px 40px; max-width: 1100px; }
h1 { font-size: 20px; margin: 0 0 8px; }
h2 { font-size: 17px; margin: 0 0 8px; }
.muted { color: #828b95; }
.small { font-size: 12px; }
.footer { padding: 0 20px 16px; }
.error { color: #c0392b; margin: 8px 0; }
.req { color: #c0392b; }

table.protocol { width: 100%; border-collapse: collapse; margin: 12px 0; }
table.protocol th, table.protocol td { border-bottom: 1px solid #e5e8eb; padding: 8px 10px; vertical-align: top; text-align: left; }
table.protocol th { background: #f5f7f8; font-weight: 600; color: #525c69; }
td.num { width: 36px; color: #828b95; }
td.act { width: 190px; white-space: nowrap; }
textarea.row-text { width: 100%; min-height: 54px; resize: vertical; font: inherit; padding: 6px 8px; border: 1px solid #c6cdd3; border-radius: 4px; }

.decisions { margin: 8px 0 0; padding: 0; list-style: none; }
.decisions li { background: #f2fbff; border-left: 3px solid #2fc6f6; padding: 6px 10px; margin: 4px 0; border-radius: 3px; }
.decisions .meta { color: #525c69; font-size: 12px; }
.decisions .st-done { color: #2e9c3e; }
.decisions .st-late { color: #c0392b; }
a { color: #2067b0; text-decoration: none; }
a:hover { text-decoration: underline; }

.btn { display: inline-block; padding: 7px 14px; border: 1px solid #c6cdd3; border-radius: 4px; background: #fff; cursor: pointer; font: inherit; }
.btn:hover { background: #f5f7f8; }
.btn.primary { background: #3bc8f5; border-color: #3bc8f5; color: #fff; }
.btn.primary:hover { background: #2fb8e6; }
.btn.small { padding: 3px 9px; font-size: 12px; }
.btn.danger { color: #c0392b; }
.btn[disabled] { opacity: .55; cursor: default; }
.toolbar { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }

.modal { position: fixed; inset: 0; background: rgba(40, 50, 60, .45); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow: auto; z-index: 10; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 6px; padding: 18px 20px; width: 560px; max-width: 100%; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.field { display: block; margin: 12px 0; font-weight: 600; color: #525c69; }
.field input[type=text], .field input[type=datetime-local], .field textarea { display: block; width: 100%; margin-top: 4px; padding: 7px 9px; border: 1px solid #c6cdd3; border-radius: 4px; font: inherit; font-weight: 400; color: #333; }
.tabs { display: flex; gap: 18px; margin: 10px 0; }
.tabs label { cursor: pointer; }
.actions { display: flex; gap: 8px; margin-top: 14px; }
ul.pick { list-style: none; margin: 4px 0; padding: 0; max-height: 170px; overflow: auto; }
ul.pick li { padding: 5px 9px; border: 1px solid #e5e8eb; border-top: none; cursor: pointer; font-weight: 400; }
ul.pick li:first-child { border-top: 1px solid #e5e8eb; }
ul.pick li:hover { background: #eef8fd; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { border: 1px solid #c6cdd3; border-radius: 14px; padding: 2px 10px; cursor: pointer; font-weight: 400; background: #fff; }
.chip:hover { background: #eef8fd; }
.picked { margin: 4px 0 0; font-weight: 600; color: #2e7d32; }
