.staff-heading { align-items: flex-start; }
.staff-heading h1 { font-size: clamp(29px, 3vw, 39px); }
.staff-heading .lede { max-width: 620px; }
.staff-heading-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.staff-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.staff-summary button { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 17px; border: 1px solid #3d4965; border-radius: 12px; color: #b4c2da; background: #172135ed; text-align: left; transition: border-color .15s, background .15s; }
.staff-summary button:hover { border-color: #ab92dd; background: #232c44; }
.staff-summary button[aria-pressed=true] { border-color: #ad93f7; background: #342d4d; }
.staff-summary small { font-size: 10px; }
.staff-summary strong { font-size: 25px; color: #f0ecff; font-weight: 650; line-height: 1.1; }
.staff-summary button:last-child strong { color: #ffb3c4; }
.staff-filters { display: flex; gap: 12px; margin-bottom: 19px; align-items: center; flex-wrap: wrap; }
.staff-filters > input { flex: 1; min-width: 220px; }
.staff-filters > .select-control { width: 170px; }
.staff-filters .check { white-space: nowrap; font-size: 11px; }
.staff-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.staff-lane { min-width: 0; border: 1px solid #36435f; border-radius: 14px; background: #111b2bcc; padding: 12px; }
.staff-lane > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 13px; }
.staff-lane > header h2 { font-size: 12px; margin: 0; display: flex; align-items: center; gap: 8px; }
.staff-lane > header h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9ba7c0; }
.staff-lane[data-status=in_progress] > header h2::before { background: #ba9dfb; }
.staff-lane[data-status=blocked] > header h2::before { background: #f2bb80; }
.staff-lane[data-status=done] > header h2::before { background: #84d9bd; }
.staff-lane > header > span { color: #bdc8df; background: #29334b; border-radius: 5px; min-width: 22px; padding: 1px 5px; text-align: center; font-size: 10px; }
.staff-task-card { border: 1px solid #46516c; border-radius: 10px; background: #1b263b; margin-bottom: 10px; transition: border-color .15s, background .15s, transform .15s; overflow: hidden; }
.staff-task-card:last-child { margin-bottom: 0; }
.staff-task-card:hover { border-color: #a18bd0; background: #232c43; transform: translateY(-1px); }
.staff-task-open { display: block; width: 100%; padding: 15px 14px; background: none; border: none; text-align: left; }
.staff-task-open h3 { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; margin: 11px 0; color: #eef0ff; }
.staff-task-open p { font-size: 10px; line-height: 1.7; color: #b0bfd7; margin: 0 0 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.staff-task-top, .staff-task-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.staff-task-top > small { font: 9px ui-monospace, monospace; color: #b8b0d3; }
.staff-task-owner { color: #c0cbe0; font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-task-due { font-size: 9px; color: #b4c1d8; }
.staff-task-due.overdue { color: #ffafc3; }
.staff-lane-empty { color: #a4b3ca; font-size: 11px; text-align: center; padding: 30px 5px; margin: 0; }
.staff-board-note { color: #b1bfd8; font-size: 11px; margin-top: 18px; }
.staff-list-status { min-height: 20px; font-size: 11px; color: #b5c4dd; margin: 0 0 10px; }
#staff-task-dialog { width: 1050px; }
.staff-task-dialog-body { padding: 25px; }
.staff-task-dialog-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 23px; align-items: start; }
.staff-task-dialog-body label { margin-bottom: 19px; }
.staff-task-dialog-body label > small { display: block; margin-top: 6px; color: #a5b4ce; font-size: 10px; font-weight: 400; }
.staff-task-dialog-body textarea { min-height: 135px; }
.staff-task-dialog-body .two-col { gap: 16px; }
.staff-task-dialog-body .two-col > label { margin-bottom: 14px; }
.staff-task-dialog-body aside .panel { padding: 19px; margin-bottom: 16px; }
.staff-task-dialog-body aside h3 { color: #d2c4ef; font-size: 12px; margin-bottom: 17px; }
.staff-task-dialog-body aside .button { width: 100%; }
.staff-task-dialog-body aside .button + .button { margin-top: 9px; }
.staff-task-dialog-body aside .text-button { font-size: 11px; }
.staff-task-dialog-body .staff-assignment-label { margin-top: 18px; }
.staff-task-readonly { color: #c2cde1; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: 13px; padding: 18px; border: 1px solid #3e4d69; background: #151f32; border-radius: 10px; min-height: 100px; }
.staff-task-metadata { color: #a4b4d0; font-size: 10px; line-height: 1.9; margin-top: 17px; }
.staff-task-notice { padding: 13px 15px; border: 1px solid #ad815452; border-radius: 9px; background: #b5873911; color: #edc996; font-size: 12px; margin-bottom: 18px; }
.staff-task-notice:empty { display: none; }
.staff-comment-section { border-top: 1px solid #3c4861; padding-top: 22px; margin-top: 25px; }
.staff-comment-section h3 { margin-bottom: 18px; }
.staff-comment { padding: 14px 16px; border: 1px solid #3f4c65; background: #182438; border-radius: 10px; margin-bottom: 12px; }
.staff-comment header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.staff-comment strong { font-size: 11px; }
.staff-comment small { font-size: 10px; color: #a6b5ce; }
.staff-comment p { margin: 10px 0 0; color: #c0cde2; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.staff-comment-section label { margin: 18px 0 11px; }
.staff-comment-section textarea { min-height: 105px; }
.staff-task-history { padding: 0; margin: 0; list-style: none; }
.staff-task-history li { color: #c0cbe1; font-size: 10px; padding: 9px 0; border-bottom: 1px solid #36435c; overflow-wrap: anywhere; }
.staff-task-history li:last-child { border: none; }
.staff-task-history small { display: block; color: #9cacc6; font-size: 9px; margin-top: 3px; }
.staff-detail-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.moderation-summary { display: flex; gap: 12px; margin: 0 0 23px; flex-wrap: wrap; }
.moderation-summary > div { flex: 1; min-width: 120px; background: #172337ed; border: 1px solid #41506d; padding: 18px; border-radius: 12px; }
.moderation-summary strong { display: block; font-size: 27px; color: #d8c7ff; }
.moderation-summary small { color: #b3c2dc; font-size: 11px; }
.moderation-coverage { padding: 18px 20px; border: 1px solid #786392; border-radius: 13px; background: #272237ed; margin-bottom: 22px; }
.moderation-coverage h2 { font-size: 13px; margin-bottom: 9px; }
.moderation-coverage p, .moderation-coverage li { color: #c1b8d5; font-size: 11px; line-height: 1.8; }
.moderation-coverage p { margin: 0; }
.moderation-coverage .moderation-stale { color: #f0c68e; margin-top: 8px; }
.moderation-coverage ul { margin: 9px 0 0; padding-left: 18px; }
.moderation-record { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 1.7fr) minmax(140px, 1fr); gap: 20px; padding: 20px; border-bottom: 1px solid #3b4863; align-items: start; }
.moderation-record:last-child { border: 0; }
.moderation-record h3 { margin: 0 0 6px; font-size: 13px; color: #ede9ff; overflow-wrap: anywhere; }
.moderation-record p { color: #c1cee3; font-size: 12px; margin: 0 0 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.moderation-record small { font-size: 10px; color: #a4b6d2; display: block; overflow-wrap: anywhere; margin: 5px 0; }
.moderation-record code { font-size: 9px; }
.moderation-event { color: #d9c2ff; font-size: 10px; display: inline-flex; border: 1px solid #785e9e; border-radius: 5px; padding: 3px 7px; background: #af87e313; }
.moderation-event.unbanned, .moderation-event.expired { border-color: #426960; color: #9ce2cb; background: #54bc9b0d; }
.moderation-table { padding: 0; overflow: hidden; }
@media(max-width:1350px) { .staff-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:1000px) { .staff-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } .staff-task-dialog-layout { grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr); gap: 16px; } }
@media(max-width:760px) {
  .staff-heading-actions { margin-top: 20px; }
  .staff-summary { gap: 8px; }
  .staff-summary button { padding: 12px; }
  .staff-summary small { font-size: 9px; }
  .staff-summary strong { font-size: 22px; }
  .staff-filters { gap: 10px; }
  .staff-filters > input { flex-basis: 100%; min-width: 0; }
  .staff-filters > .select-control { flex: 1; width: auto; }
  .staff-filters .check { width: 100%; }
  .staff-board { grid-template-columns: 1fr; gap: 14px; }
  .staff-lane { padding: 11px; }
  .staff-task-dialog-body { padding: 18px; }
  .staff-task-dialog-layout { grid-template-columns: 1fr; }
  .staff-task-dialog-body aside { display: grid; grid-template-columns: 1fr; }
  .staff-task-dialog-body .two-col { grid-template-columns: 1fr; gap: 0; }
  .staff-task-dialog-body .two-col > label { margin-bottom: 19px; }
  .moderation-record { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .moderation-summary { gap: 8px; }
  .moderation-summary > div { min-width: 100px; padding: 13px; }
  .moderation-summary strong { font-size: 23px; }
  .moderation-coverage { padding: 16px; }
}
