/* RESPOND Admin Panel - colours and layout from sample-screen-3-admin-panel (DRG-6749). No inline styles (CSP style-src 'self'). */
body { margin: 0; font-family: Inter, "Segoe UI", system-ui, sans-serif; color: #152238; background: #EEF2F6; }
a { color: #2C5F8A; } a:hover { color: #1E3A5F; }
button, textarea, select, input { font-family: inherit; }
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side { flex: 1 1 200px; max-width: 220px; background: #152238; color: #DCE7F4; padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; }
.brand { font-weight: 700; font-size: 16px; color: #fff; padding: 0 8px 4px; }
.brand-sub { font-size: 12px; color: #9FB3C8; padding: 0 8px 16px; }
.nav-item { padding: 10px 8px; font-size: 14px; color: #DCE7F4; text-decoration: none; border-radius: 6px; }
.nav-item:hover { background: #1E3A5F; color: #fff; }
.nav-item.active { background: #2C5F8A; color: #fff; font-weight: 600; }
.side-user { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid #2C3E57; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.muted-light { color: #9FB3C8; font-size: 12px; }
.side-link { color: #DCE7F4; font-size: 12px; }
.side-button { background: transparent; color: #DCE7F4; border: 1px solid #3D5068; border-radius: 6px; padding: 6px 10px; cursor: pointer; margin-top: 6px; }
.inline { display: inline; }
.main { flex: 999 1 640px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
h1 { margin: 0; font-size: 24px; }
h2 { margin: 0; font-size: 17px; font-weight: 600; }
h3 { margin: 0; font-size: 13px; font-weight: 600; }
.footer { margin-top: auto; font-size: 12px; color: #536479; padding-top: 16px; border-top: 1px solid #DCE3EA; }
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.count { background: #fff; border-radius: 8px; padding: 14px; text-decoration: none; color: #152238; display: block; }
.count .label { font-size: 13px; color: #536479; }
.count .num { font-size: 26px; font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #536479; }
.field-strong { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #152238; }
select, input[type=text], input[type=password], input[type=email], input[type=number], input[type=datetime-local], textarea { min-height: 40px; border: 1px solid #C4D0DC; border-radius: 6px; padding: 0 8px; font-size: 14px; font-weight: 400; color: #152238; background: #fff; box-sizing: border-box; }
textarea { padding: 8px; min-height: 64px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid #C4D0DC; text-decoration: none; color: #152238; font-size: 13px; }
.tab.active { background: #2C5F8A; color: #fff; border-color: #2C5F8A; font-weight: 600; }
.card { background: #fff; border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.card-tight { background: #fff; border-radius: 8px; overflow: hidden; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th { text-align: left; color: #536479; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid #DCE3EA; background: #F4F7FA; }
table.list td { padding: 10px 12px; border-bottom: 1px solid #DCE3EA; vertical-align: top; }
table.list tr:hover td { background: #F4F7FA; }
.title-cell a { font-weight: 600; color: #152238; text-decoration: none; }
.title-cell .sub { font-size: 12px; color: #536479; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 12px; background: #E6F0F7; color: #1E3A5F; }
.pill-urgent { background: #FBE3E3; color: #8A1F1F; }
.pill-high { background: #FFF1D6; color: #7A4B00; }
.pill-muted { background: #EEF2F6; color: #3D5068; }
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.split .wide { flex: 999 1 420px; min-width: 0; }
.split .narrow { flex: 1 1 320px; min-width: 0; }
.text-block { font-size: 14px; line-height: 1.5; background: #F4F7FA; border-radius: 6px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; font-size: 12px; }
.facts .k { color: #536479; }
.ref-box { width: 180px; min-height: 96px; border-radius: 6px; background: #DCE3EA; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #3D5068; text-align: center; padding: 8px; box-sizing: border-box; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; border-radius: 999px; padding: 8px 14px; font-size: 14px; min-height: 26px; line-height: 26px; cursor: pointer; background: #fff; color: #152238; border: 1px solid #C4D0DC; }
.chip input:checked + span { background: #2C5F8A; color: #fff; border-color: #2C5F8A; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid #1E3A5F; outline-offset: 2px; }
.btn { background: #2C5F8A; color: #fff; border: 0; border-radius: 6px; padding: 10px 14px; font-weight: 600; min-height: 44px; cursor: pointer; font-size: 14px; }
.btn:hover { background: #1E3A5F; }
.btn-outline { background: #fff; border: 1px solid #2C5F8A; color: #2C5F8A; border-radius: 6px; padding: 10px 14px; font-weight: 600; min-height: 44px; cursor: pointer; font-size: 14px; }
.btn-small { background: #fff; border: 1px solid #C4D0DC; color: #152238; border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 13px; }
.btn-danger { background: #fff; border: 1px solid #A33; color: #A33; border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 13px; }
.btn[disabled], .btn-disabled { background: #F4F7FA; border: 1px solid #C4D0DC; color: #536479; border-radius: 6px; padding: 10px 14px; min-height: 44px; cursor: not-allowed; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msg { border-left: 4px solid #2C5F8A; padding: 8px 12px; background: #F4F7FA; border-radius: 0 6px 6px 0; font-size: 13px; }
.msg.in { border-left-color: #536479; }
.msg .meta { color: #536479; font-size: 12px; margin-bottom: 4px; }
.msg .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.note { border-left: 4px solid #C98A00; padding: 8px 12px; background: #FFF8E6; border-radius: 0 6px 6px 0; font-size: 13px; }
.note .meta { color: #7A4B00; font-size: 12px; margin-bottom: 4px; }
.alert { padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.alert-error { background: #FBE3E3; color: #8A1F1F; }
.alert-ok { background: #E3F4E8; color: #1F5A2E; }
.hint { font-size: 12px; color: #536479; }
.internal-tag { font-size: 11px; color: #7A4B00; background: #FFF1D6; border-radius: 4px; padding: 1px 6px; margin-left: 6px; font-weight: 600; }
.auth-card { max-width: 420px; background: #fff; border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12px; overflow-wrap: anywhere; }
pre.context { background: #F4F7FA; border-radius: 6px; padding: 10px 12px; font-size: 12px; max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
details summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.history { font-size: 12px; color: #3D5068; display: flex; flex-direction: column; gap: 3px; }
.proposal-img { max-width: 240px; max-height: 160px; border: 1px solid #DCE3EA; border-radius: 4px; }
@media (max-width: 900px) { .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card form:not(.actions):not(.inline):not(.filters) { display: flex; flex-direction: column; gap: 8px; }
.card form textarea { width: 100%; box-sizing: border-box; }
.split .wide, .split .narrow { display: flex; flex-direction: column; gap: 16px; }
.retire-hint { font-size: 11px; color: #536479; }
/* Split view (sample screen 3): list on the left, detail on the right */
#split-view { align-items: flex-start; }
.list-col { flex: 1 1 300px; max-width: 380px; min-width: 0; display: flex; flex-direction: column; }
.detail-col { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.list-row { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-bottom: 1px solid #DCE3EA; text-decoration: none; color: #152238; background: #fff; }
.list-row:hover { background: #F4F7FA; }
.list-row.selected { background: #E6F0F7; box-shadow: inset 4px 0 0 #2C5F8A; }
.list-meta { font-size: 12px; color: #536479; }
.list-title { font-size: 14px; font-weight: 600; }
.list-sub { font-size: 12px; color: #3D5068; }
.split.compact { flex-direction: column; }
.split.compact .wide, .split.compact .narrow { flex: 1 1 auto; width: 100%; }
.detail-heading { font-size: 17px; }

/* Phase 6: Jira */
.jira-link { border-top: 1px solid #DDE3EA; padding: 8px 0; }
.jira-link:first-of-type { border-top: none; }
.jira-key { font-weight: 600; font-size: 15px; }
.jira-pill { margin-left: 6px; }
