:root {
  --teal:  #49BEB6;
  --navy:  #1F4286;
  --slate: #475569;
  --bg:    #F1F5F9;
  --white: #FFFFFF;
  --black: #000000;
}
* { box-sizing: border-box; }
body { font-family: 'Segoe UI', Calibri, Inter, system-ui, sans-serif; font-size: 14px; line-height: 1.55; color: var(--black); background: var(--white); margin: 0; padding: 0; }
.header { background: var(--navy); color: var(--white); padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.brand-medullus { font-weight: 700; color: var(--teal); }
.brand-divider { color: var(--slate); margin: 0 10px; }
.confidential { font-size: 11px; color: var(--bg); font-style: italic; }
.reviewer-bar { background: var(--bg); padding: 8px 28px; font-size: 12px; color: var(--slate); border-bottom: 1px solid #d8dee5; }
.reviewer-bar a { color: var(--navy); margin-left: 8px; }
.admin-badge { background: var(--navy); color: var(--white); padding: 1px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; margin-left: 8px; }
.container { max-width: 1100px; margin: 0 auto; padding: 28px; }
.lede { color: var(--slate); font-size: 15px; margin-bottom: 22px; }
h1 { color: var(--teal); border-bottom: 3px solid var(--teal); padding-bottom: 8px; margin-top: 0; }
h2 { color: var(--teal); margin-top: 32px; border-bottom: 1px solid var(--bg); padding-bottom: 4px; }
h3 { color: var(--navy); margin-top: 24px; }
h4 { color: var(--navy); }
a { color: var(--navy); }
code { font-family: Consolas, 'JetBrains Mono', monospace; font-size: 12.5px; background: var(--bg); color: var(--slate); padding: 1px 5px; border-radius: 3px; }
pre { background: var(--bg); padding: 14px; border-left: 3px solid var(--teal); overflow-x: auto; border-radius: 4px; font-size: 12.5px; }
table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 13px; }
th, td { border: 1px solid var(--slate); padding: 7px 10px; text-align: left; vertical-align: top; }
th { background: var(--teal); color: var(--white); font-weight: 600; }
tbody tr:nth-child(odd) { background: var(--white); }
tbody tr:nth-child(even) { background: var(--bg); }
.review-banner { background: var(--bg); border-left: 4px solid var(--teal); padding: 14px 18px; margin: 0 0 22px 0; border-radius: 4px; }
.review-banner.stale { border-left-color: #d97706; background: #fef3c7; }
.review-banner.confirmed { border-left-color: #059669; background: #d1fae5; }
.review-banner h3 { margin-top: 0; }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.status-Confirmed { background: #059669; color: var(--white); }
.status-Drafted { background: var(--teal); color: var(--white); }
.status-Under-Review, .status-Under-Review-Needs-Change { background: #d97706; color: var(--white); }
.status-Proposed { background: var(--slate); color: var(--white); }
.status-Approve, .status-Approve-with-Comments { background: #059669; color: var(--white); }
.status-Needs-Change { background: #d97706; color: var(--white); }
.status-Reject { background: #dc2626; color: var(--white); }
.status-Defer { background: #6b7280; color: var(--white); }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 20px 0; }
.feature-card { display: grid; grid-template-columns: 110px 1fr 130px 110px; gap: 14px; padding: 12px 16px; border: 1px solid var(--bg); border-left: 4px solid var(--teal); background: var(--white); align-items: center; text-decoration: none; color: var(--black); border-radius: 4px; transition: background 0.15s; }
.feature-card:hover { background: var(--bg); }
.feature-card.needs-rereview { border-left-color: #d97706; }
.feature-card.confirmed { border-left-color: #059669; }
.feature-id { font-family: Consolas, monospace; font-weight: 700; color: var(--navy); font-size: 13px; }
.feature-name { font-weight: 600; font-size: 14px; }
.feature-meta { color: var(--slate); font-size: 11.5px; margin-top: 2px; }
.footer { margin-top: 50px; padding: 20px 28px; background: var(--bg); color: var(--slate); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Login */
.login-container { max-width: 480px; padding: 50px 28px; }
.login-form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.login-form label { display: flex; flex-direction: column; font-size: 13px; color: var(--slate); font-weight: 600; gap: 6px; }
.login-form input, .review-form-section input, .review-form-section select, .review-form-section textarea { padding: 10px 12px; font-size: 14px; border: 1px solid var(--slate); border-radius: 4px; font-family: inherit; }
.login-form input:focus, .review-form-section input:focus, .review-form-section select:focus, .review-form-section textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.btn-primary { background: var(--teal); color: var(--white); border: none; padding: 11px 24px; font-size: 14px; font-weight: 600; border-radius: 4px; cursor: pointer; align-self: flex-start; transition: background 0.15s; }
.btn-primary:hover { background: var(--navy); }
.error-msg { color: #dc2626; font-size: 13px; padding: 10px; background: #fee2e2; border-radius: 4px; }
.login-help { margin-top: 30px; padding: 16px; background: var(--bg); border-radius: 4px; font-size: 13px; color: var(--slate); }
.login-help p { margin: 4px 0; }

/* Review form */
.review-form-section { background: var(--bg); padding: 22px 28px; margin: 30px 0; border-radius: 6px; border-left: 4px solid var(--navy); }
.review-form-section form { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.review-form-section label { display: flex; flex-direction: column; font-size: 13px; color: var(--slate); font-weight: 600; gap: 6px; }
.review-form-section textarea { font-family: inherit; resize: vertical; min-height: 100px; }
#submit-status { margin-left: 12px; color: var(--slate); font-size: 13px; }

/* History */
.review-history { margin: 30px 0; }
.history-item { background: var(--white); padding: 12px 16px; border: 1px solid var(--bg); border-left: 3px solid var(--slate); margin-bottom: 8px; border-radius: 4px; }
.history-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.history-meta { color: var(--slate); font-size: 12px; }
.history-comments { color: var(--black); font-size: 13px; padding-left: 4px; white-space: pre-wrap; }
