.my-reports-panel { overflow: hidden; }
.my-reports-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 14px; }
.my-reports-tools p { margin: 0; color: #60766a; font-size: .78rem; }
.my-reports-tools select { max-width: 190px; }
.my-report-list { display: grid; gap: 10px; max-height: 600px; padding: 3px; overflow-y: auto; }
.my-report-row { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 14px; min-height: 82px; padding: 13px 16px; border: 1px solid rgba(36,90,74,.14); border-radius: 15px; background: #fffefa; box-shadow: 0 3px 12px rgba(23,63,53,.035); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.my-report-row:hover, .my-report-row:focus-within { border-color: rgba(36,90,74,.35); background: #f8fbf8; box-shadow: 0 8px 22px rgba(23,63,53,.08); }
.my-report-row.is-complete { background: #fafbf9; }
.my-report-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #935025; background: #f8ebdd; }
.my-report-row[data-type="bug"] .my-report-icon, .my-report-dialog[data-type="bug_report"] .my-report-dialog-icon { color: #a52c41; background: #fbe4e8; }
.my-report-row[data-type="person"] .my-report-icon { color: #8a5b0c; background: #fbeecb; }
.my-report-row[data-type="job"] .my-report-icon { color: #2b5a9c; background: #e2ecf9; }
.my-report-icon svg, .my-report-dialog-icon svg { width: 21px; height: 21px; }
.my-report-open { display: grid; gap: 4px; min-width: 0; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.my-report-open:focus-visible { outline: 2px solid #23805c; outline-offset: 3px; }
.my-report-kind { overflow: hidden; color: #173f35; font-size: .78rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.my-report-summary { display: -webkit-box; overflow: hidden; color: #344e43; font-size: .84rem; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.my-report-new { color: #9a4d20; font-weight: 800; }
.my-report-time { color: #708277; font-size: .68rem; font-weight: 600; }
.my-report-row-side { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.my-report-status { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 6px 10px; border-radius: 999px; color: #8a5b0c; background: #fbeecb; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.my-report-status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.my-report-status.is-complete { color: #255c45; background: #dff3e8; }
.my-report-empty-list { margin: 0; padding: 28px; border: 1px dashed rgba(36,90,74,.22); border-radius: 14px; color: #64776d; text-align: center; font-size: .84rem; }

.my-report-dialog { width: min(760px,calc(100vw - 32px)); }
.my-report-dialog-frame { max-height: calc(100dvh - 48px); }
.my-report-dialog-icon { display: grid; flex: none; place-items: center; width: 43px; height: 43px; border-radius: 12px; color: #8a5b0c; background: #fbeecb; }
.my-report-dialog-scroll { min-height: 0; padding: 24px 28px; overflow-y: auto; }
.my-report-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 23px; color: #60766a; font-size: .76rem; overflow-wrap: anywhere; }
.my-report-detail-section + .my-report-detail-section { margin-top: 27px; }
.my-report-detail-section h3 { margin: 0 0 10px; color: #173f35; font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.my-report-original { margin: 0; padding: 19px 20px; border: 1px solid rgba(36,90,74,.14); border-radius: 13px; background: #f8faf7; color: #254237; font-size: .89rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.my-report-job { margin: 12px 0 0; color: #60766a; font-size: .78rem; }
.my-report-dialog .report-conversation { gap: 12px; margin: 0; }
.my-report-dialog .report-message { max-width: 86%; padding: 12px 15px; border-radius: 14px; }
.my-report-dialog .report-message p { font-size: .84rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.my-report-dialog .report-message small { font-size: .68rem; }
.my-report-empty { margin: 0; padding: 16px 18px; border: 1px dashed rgba(36,90,74,.2); border-radius: 12px; color: #687c70; font-size: .82rem; }
.my-report-detail-reply { display: grid; gap: 10px; margin-top: 26px; padding-top: 21px; border-top: 1px solid rgba(36,90,74,.14); }
.my-report-detail-reply label { color: #173f35; font-size: .79rem; font-weight: 800; }
.my-report-detail-reply textarea { box-sizing: border-box; width: 100%; min-height: 112px; padding: 12px 14px; resize: vertical; border: 1px solid rgba(36,90,74,.24); border-radius: 12px; color: #18352d; background: #fffefa; font: inherit; font-size: .84rem; line-height: 1.55; }
.my-report-detail-reply textarea:focus-visible { outline: 2px solid #23805c; outline-offset: 2px; }
.my-report-reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.my-report-reply-actions .form-status { min-height: 0; margin: 0; }

@media (max-width: 640px) {
  .my-reports-tools { align-items: stretch; flex-direction: column; }
  .my-reports-tools select { max-width: none; }
  .my-report-row { grid-template-columns: 42px minmax(0,1fr); gap: 10px; }
  .my-report-row-side { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
  .my-report-dialog-scroll { padding: 20px 18px; }
  .my-report-dialog .report-message { max-width: 95%; }
  .my-report-reply-actions { align-items: stretch; flex-direction: column; }
  .my-report-reply-actions .nc-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .my-report-row { transition: none; }
}
.my-report-status { max-width: min(100%, 260px); overflow: hidden; text-overflow: ellipsis; }

.my-report-status.is-awaiting { color: #6a5a1c; background: #f6efd5; }
.my-report-status.is-your-turn { color: #fff; background: #245a4a; }

.my-reports-panel .my-reports-tools { padding: 0 28px; }
@media (max-width: 600px) { .my-reports-panel .my-reports-tools { padding: 0 20px; } }

/* No flash of a "Loading..." box on reload: the panel appears once its list has arrived. */
#my-reports-panel:not(.is-loaded){display:none}
.student-dashboard #my-reports-panel.is-empty:not(#teacher-reports-panel *){display:none}
/* Same calm card as the rest of the personal dashboard. */
.student-dashboard .my-reports-panel{border:1px solid var(--dash-line,#d9dfd6);border-radius:var(--dash-radius,20px);background:var(--dash-card,#fffef9);box-shadow:none}
.student-dashboard .my-reports-panel .section-heading{padding:24px 28px 14px}
.student-dashboard .my-reports-panel .section-heading h2{font-size:clamp(1.3rem,2vw,1.6rem);letter-spacing:-.035em;color:var(--dash-ink,#173f35)}
