:root { color-scheme: light; font-family: "Segoe UI", Arial, sans-serif; color: #233249; background: #f5f7fb; font-size: 14px; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #4262b7; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 228px; padding: 28px 20px; background: #17263d; color: #d7dfed; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; color: white; letter-spacing: -.6px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 34px; background: #748cf0; color: white; border-radius: 9px; font-size: 22px; }
.brand.dark { color: #233249; }
.sidebar-caption { margin: 35px 9px 13px; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: #8e9db5; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { display: flex; justify-content: space-between; padding: 10px 12px; color: #d7dfed; border-radius: 7px; }
.sidebar nav a:hover { background: #243650; text-decoration: none; }
.project-menu { border-top: 1px solid #33425a; margin-top: 22px; }
.project-menu strong { display: block; padding: 0 9px 14px; font-size: 13px; }
.project-menu .sidebar-caption { margin-top: 23px; }
.count { background: #344969; padding: 0 7px; border-radius: 10px; font-size: 11px; }
.sidebar-footer { margin-top: auto; padding: 45px 10px 0; font-size: 11px; color: #899bb6; line-height: 1.7; }
.shell { margin-left: 228px; }
.topbar { height: 80px; padding: 20px 34px; display: flex; align-items: center; justify-content: space-between; gap: 25px; background: white; border-bottom: 1px solid #e3e8f1; }
.search-bar { display: flex; align-items: center; gap: 12px; flex: 1; max-width: 430px; }
.search-bar input { border: 0; background: #f5f7fb; margin: 0; padding: 10px 14px; font-size: 12px; }
.account { display: flex; align-items: center; gap: 12px; font-size: 12px; white-space: nowrap; }
.account form { margin: 0; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; background: #e7ecfc; color: #506abd; border-radius: 50%; font-weight: 650; }
main { max-width: 1320px; margin: auto; padding: 35px 34px 65px; min-height: calc(100vh - 135px); }
footer { color: #8490a2; font-size: 11px; padding: 20px 30px; text-align: center; border-top: 1px solid #e3e8f1; }
h1 { margin: 9px 0 13px; font-size: clamp(26px, 3vw, 37px); font-weight: 650; letter-spacing: -1.1px; line-height: 1.2; overflow-wrap: anywhere; }
h2 { font-size: 17px; margin: 0 0 12px; letter-spacing: -.3px; }
p { line-height: 1.65; overflow-wrap: anywhere; }
time, .small { font-size: 11px; }
time, .muted { color: #7a8799; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: #6f82a5; }
.page-heading { margin-bottom: 30px; }
.page-heading p { max-width: 780px; }
.panel { background: white; border: 1px solid #e1e7f0; border-radius: 12px; padding: 25px; min-width: 0; margin-bottom: 22px; box-shadow: 0 3px 14px #253c6503; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr); gap: 25px; align-items: start; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.project-card { color: #233249; display: block; min-height: 230px; }
.project-card:hover { text-decoration: none; border-color: #9bacdb; }
.project-card .badge { float: right; }
.project-icon { width: 43px; height: 45px; display: grid; place-items: center; background: #edf0fc; border-radius: 10px; font-size: 23px; color: #667ac5; margin-bottom: 23px; }
.project-card p { color: #7a8799; min-height: 42px; }
.card-link { display: block; margin-top: 20px; color: #657fc7; font-size: 12px; font-weight: 600; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.section-heading p { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stats .panel { display: grid; gap: 10px; color: #7a8799; }
.stats a:hover { text-decoration: none; border-color: #9bacdb; }
.stat-number { font-size: 32px; color: #344b7d; font-weight: 600; }
.badge { display: inline-block; font-size: 10px; border-radius: 5px; background: #edf0f7; color: #65758d; padding: 5px 9px; font-weight: 600; white-space: nowrap; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge-open, .badge-enabled, .badge-approved { background: #e8f4ed; color: #438269; }
.badge-owner, .badge-merged { background: #eee9fb; color: #8269af; }
.badge-bug, .badge-closed { background: #faecec; color: #b27579; }
.badge-developer, .badge-enhancement { background: #e9f0fd; color: #6484b7; }
.badge-docs, .badge-draft { background: #fbf3e3; color: #af9157; }
label { display: block; margin: 18px 0 7px; font-size: 12px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 10px 12px; color: #233249; border: 1px solid #dce3ee; border-radius: 6px; background: white; min-width: 0; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #a9b8ee; outline-offset: 1px; }
.button { display: inline-block; padding: 10px 15px; border: 1px solid #657cd0; border-radius: 6px; background: #657cd0; color: white; font-weight: 600; font-size: 12px; text-align: center; margin-top: 18px; }
.button:hover { background: #536bc0; text-decoration: none; }
.button.secondary { color: #64799e; background: white; border-color: #dce3ee; }
.button.danger { background: #fff5f4; color: #ac6868; border-color: #f0d7d4; }
.button:disabled, button:disabled { opacity: .6; cursor: wait; }
.full-width { width: 100%; }
.text-button { color: #7585a1; padding: 0; border: 0; background: transparent; font-size: 11px; }
.two-column-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.two-column-form > button { justify-self: start; }
.inline-form, .filter-form { display: flex; align-items: center; gap: 10px; }
.inline-form .button, .filter-form .button, .actions .button, .list-row .button { margin: 0; white-space: nowrap; }
.inline-form select { min-width: 110px; }
.filter-form { margin-bottom: 24px; }
.filter-form select { max-width: 120px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid #edf0f5; }
.list-row:last-child { border-bottom: 0; }
.list-row > div { min-width: 0; }
.list-row p { margin: 6px 0 0; font-size: 12px; }
.row-title { font-weight: 600; color: #40567c; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.comment { border-bottom: 1px solid #edf0f5; padding: 20px 0; }
.comment-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comment p { font-size: 13px; }
.rule-card { border: 1px solid #e5eaf2; border-radius: 8px; padding: 18px; margin-top: 15px; overflow-wrap: anywhere; }
.rule-name { overflow-wrap: anywhere; }
details summary { color: #7185b3; font-size: 12px; cursor: pointer; }
.checkbox { display: flex; gap: 9px; align-items: center; }
.checkbox input { width: auto; }
.reviewer-trigger { width: 100%; text-align: left; padding: 12px; background: white; border: 1px solid #dce3ee; color: #657897; border-radius: 6px; }
.reviewer-options { margin-top: 6px; border: 1px solid #dce3ee; border-radius: 7px; overflow: hidden; box-shadow: 0 8px 20px #2b3f5b0d; }
.reviewer-option { display: grid; gap: 6px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #edf0f5; background: white; padding: 13px; color: #354c71; }
.reviewer-option:hover { background: #f4f6fd; }
.reviewer-rule-label { color: #8793a7; font-size: 11px; overflow-wrap: anywhere; }
.timeline article { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid #edf0f5; }
.timeline article:last-child { border: 0; }
.timeline p { margin: 0 0 5px; font-size: 12px; }
.timeline-dot { width: 9px; height: 9px; flex-shrink: 0; background: #cad4ed; border-radius: 50%; margin-top: 6px; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.guide-grid .panel { margin: 0; }
.guide-list { padding-left: 18px; color: #7a8799; line-height: 1.8; }
.guide-list li { margin-bottom: 14px; }
.notice { padding: 13px 17px; margin-bottom: 24px; border: 1px solid #d4dfef; background: #edf4ff; color: #597cac; border-radius: 7px; }
.notice.error { background: #fff0ee; color: #a45b59; border-color: #f0d1cb; }
.empty-state { color: #8793a7; padding: 20px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.error-panel { max-width: 650px; margin: 30px auto; }
hr { border: 0; border-top: 1px solid #e7ecf4; margin: 24px 0; }
.public-shell main { max-width: 1170px; }
.login-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 90px; align-items: center; padding: 70px 20px; }
.login-intro h1 { font-size: clamp(34px, 4vw, 49px); }
.login-intro > p:not(.eyebrow) { font-size: 17px; color: #7b8a9e; max-width: 450px; }
.login-panel { padding: 35px; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 35px; }
.feature-pills span { padding: 8px 11px; border: 1px solid #dbe3f2; border-radius: 20px; color: #8494b3; font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 1050px) {
  .sidebar { width: 190px; padding: 25px 14px; }
  .brand { font-size: 18px; }
  .shell { margin-left: 190px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-grid > aside { max-width: none; }
  .topbar { padding: 18px 24px; }
  main { padding: 30px 24px 50px; }
}
@media (max-width: 650px) {
  .sidebar { position: static; width: auto; display: block; padding: 18px; }
  .sidebar > nav { display: flex; flex-wrap: wrap; margin-top: 15px; }
  .sidebar-caption, .sidebar-footer { display: none; }
  .project-menu { padding-top: 15px; margin-top: 15px; }
  .project-menu nav { display: flex; flex-wrap: wrap; }
  .project-menu strong { padding: 0 10px 8px; }
  .sidebar nav a { font-size: 11px; padding: 7px 10px; }
  .shell { margin-left: 0; }
  .topbar { height: auto; flex-wrap: wrap; padding: 18px; gap: 15px; }
  .search-bar { order: 2; min-width: 100%; }
  .account { margin-left: auto; }
  main { padding: 26px 18px 40px; }
  .panel { padding: 19px; }
  .stats { gap: 9px; }
  .stats .panel { padding: 15px; font-size: 10px; }
  .stat-number { font-size: 26px; }
  .two-column-form, .guide-grid, .login-layout { grid-template-columns: 1fr; }
  .login-layout { padding: 20px 0; gap: 25px; }
  .filter-form, .list-row, .section-heading { flex-wrap: wrap; }
  .filter-form input { flex-basis: 100%; }
  .filter-form select { flex: 1; max-width: none; }
  .public-shell .topbar > .muted { display: none; }
}
