:root {
    --blue: #075dc1;
    --heading: #24304a;
    --muted: #687188;
    --line: #d8dce5;
    --surface: #f7f8fb;
    --green: #159447;
    --yellow: #f2c300;
    --red: #e7190a;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin: 0;
    min-width: 1360px;
    background: #f5f5f5;
    color: #253047;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

button,
a {
    font: inherit;
}

a {
    color: #155b94;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page-shell {
    position: relative;
    width: 1150px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    padding: 8px 20px 42px;
}

.sidebar {
    display: flex;
    flex: 0 0 190px;
    width: 190px;
    flex-direction: column;
    gap: 2px;
    padding-top: 42px;
}

.menu-item {
    padding: 10px 12px;
    border-left: 3px solid transparent;
    color: #596275;
    font-size: 13px;
    font-weight: 700;
}

.menu-item:hover {
    background: #f3f6fa;
    text-decoration: none;
}

.menu-item--active {
    border-left-color: var(--blue);
    background: #eef4fb;
    color: var(--blue);
}

.content-area {
    flex: 1;
    min-width: 0;
}

.report-page {
    width: 100%;
}

.round-report-section {
    display: none;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 35px;
    padding: 0 14px 0 0;
    border-bottom: 1px solid #d5d5d5;
}

.page-heading h1 {
    margin: 0;
    color: #253047;
    font-size: 14px;
    font-weight: 700;
}

.issue-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e94d46;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

details > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

.section-title {
    position: relative;
    margin: 0;
    padding: 10px 14px 9px;
    color: #596275;
    font-size: 13px;
    font-weight: 700;
}

.section-content {
    margin: 0 0 8px;
}

.manuscript-content {
    padding-bottom: 9px;
}

.manuscript-version {
    margin-bottom: 1px;
}

.manuscript-version > summary {
    list-style: none;
}

.manuscript-version > summary::-webkit-details-marker {
    display: none;
}

.file-row {
    display: flex;
    align-items: center;
    height: 31px;
    padding: 0 8px;
    background: #fff;
}

.file-disclosure {
    width: 18px;
    color: #5a6878;
    font-size: 17px;
}

.manuscript-version:not([open]) .file-disclosure {
    font-size: 17px;
}

.file-icon {
    margin: 0 8px 0 3px;
    color: #0c6095;
    font-size: 16px;
}

.file-link {
    font-size: 13px;
}

.notice-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 37px;
    margin: 0 0 1px;
    padding: 7px 10px;
    border-left: 3px solid #e7190a;
    background: #fff4f4;
    color: #26344e;
}

.notice-status {
    color: #52928f;
    font-size: 16px;
}

.notice-bar--clear {
    border-left-color: #159447;
    background: #f2fbf5;
}

.summary-row {
    display: flex;
    align-items: center;
    min-height: 33px;
    padding: 0 14px;
    background: var(--surface);
}

.summary-row + .summary-row {
    border-top: 2px solid #fff;
}

.summary-label {
    width: 116px;
    color: #647086;
    font-weight: 700;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 19px;
    margin-right: 6px;
    border-radius: 4px;
    font-size: 12px;
}

.count-badge--red {
    background: #ffd9d7;
    color: #e8554c;
}

.count-badge--yellow {
    background: #fff1bd;
    color: #c8a700;
}

.count-badge--green {
    background: #d9f2df;
    color: #16853e;
}

.writing-row {
    display: flex;
    min-height: 126px;
    padding: 10px 14px;
    border-top: 2px solid #fff;
    background: var(--surface);
}

.writing-row > .summary-label {
    padding-top: 4px;
}

.chart-panel {
    display: flex;
    align-items: center;
    min-height: 116px;
}

.chart-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 78px;
    flex: 0 0 78px;
}

.pie-chart {
    width: 78px;
    height: 78px;
    border-radius: 50%;
}

.pie-chart--manuscript {
    background: conic-gradient(
        var(--yellow) 0 25.91%,
        var(--red) 25.91% 78.04%,
        var(--green) 78.04% 100%
    );
}

.pie-chart--high {
    background: conic-gradient(var(--red) 0 100%);
}

.pie-chart--v1 {
    background: conic-gradient(
        var(--yellow) 0 28.44%,
        var(--red) 28.44% 69.88%,
        var(--green) 69.88% 100%
    );
}

.pie-chart--round1 {
    background: conic-gradient(
        var(--yellow) 0 34.10%,
        var(--red) 34.10% 81.75%,
        var(--green) 81.75% 100%
    );
}

.pie-chart--round1-kobe {
    background: conic-gradient(
        var(--yellow) 0 31.20%,
        var(--red) 31.20% 75.20%,
        var(--green) 75.20% 100%
    );
}

.pie-chart--round1-lebron {
    background: conic-gradient(
        var(--yellow) 0 22.30%,
        var(--red) 22.30% 91.50%,
        var(--green) 91.50% 100%
    );
}

.pie-chart--round1-marie {
    background: conic-gradient(
        var(--yellow) 0 29%,
        var(--red) 29% 74%,
        var(--green) 74% 100%
    );
}

.chart-caption {
    margin-top: 8px;
    color: #7b8495;
    font-size: 11px;
    white-space: nowrap;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: 17px;
    padding-left: 0;
    color: #7b8495;
    font-size: 12px;
}

.legend div {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.legend strong {
    width: 43px;
    color: var(--green);
    font-weight: 700;
}

.legend div:nth-child(2) strong {
    color: var(--yellow);
}

.legend div:nth-child(3) strong {
    color: var(--red);
}

.legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.legend-dot--green {
    background: var(--green);
}

.legend-dot--yellow {
    background: var(--yellow);
}

.legend-dot--red {
    background: var(--red);
}

.review-content {
    padding: 0;
}

.report-round > summary {
    list-style: none;
}

.report-round > summary::-webkit-details-marker {
    display: none;
}

.round-summary {
    margin-bottom: 1px;
}

.round-content {
    padding: 0 0 10px;
}

.round-content .writing-row {
    padding: 10px 14px;
}

.chart-panel--reviewers {
    align-items: stretch;
    flex-wrap: wrap;
}

.reviewer-card {
    display: flex;
    align-items: center;
    width: 255px;
    min-width: 255px;
    padding: 0 20px 0 0;
    border-right: 1px solid #d8dce5;
}

.reviewer-card + .reviewer-card {
    width: 290px;
    min-width: 290px;
    margin-left: 28px;
    padding-left: 28px;
    border-right: 0;
}

.reviewer-card--status {
    align-items: center;
}

.status-pie {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #edf0f4;
    color: #8b95a5;
    font-size: 10px;
    font-weight: 700;
}

.status-pie--pending {
    border: 6px solid #e3e7ed;
    background: #f6f7f9;
}

.status-pie--failed {
    background: #fff0ef;
    color: #d7534b;
}

.retry-link {
    margin-left: 4px;
    color: #c94d48;
    font-size: 10px;
}

.process-copy-panel {
    padding: 18px 14px;
    background: #fff;
}

.process-instruction {
    margin: 0 0 14px;
    color: #596275;
    font-size: 13px;
}

.copy-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border: 1px solid #e1e5eb;
    border-bottom: 0;
    background: #f7f8fb;
    color: #596275;
    font-size: 12px;
    font-weight: 700;
}

.copy-script-button {
    padding: 5px 10px;
    border: 1px solid #9eb2ca;
    border-radius: 3px;
    background: #fff;
    color: #315b88;
    cursor: pointer;
    font-size: 12px;
}

.copy-script-button:hover {
    background: #eef3f9;
}

.script-source {
    display: block;
    width: 100%;
    min-height: 690px;
    padding: 12px;
    border: 1px solid #e1e5eb;
    background: #fbfcfd;
    color: #394456;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.45;
    resize: vertical;
    white-space: pre;
}

.copy-feedback {
    min-height: 18px;
    margin: 8px 0 0;
    color: #16853e;
    font-size: 12px;
}

.reviewer-card .pie-chart {
    width: 78px;
    height: 78px;
}

.reviewer-name {
    margin-top: 8px;
    color: #7b8495;
    font-size: 11px;
}

.reviewer-name + .chart-caption {
    margin-top: 2px;
}

.round-content--empty {
    padding: 9px 14px 17px;
    color: #8a93a3;
    font-size: 12px;
}

.round-content--empty p {
    margin: 0;
}

.reviewer-report-content {
    padding-top: 1px;
}

.reviewer-block {
    margin-bottom: 1px;
}

.reviewer-heading {
    display: flex;
    align-items: center;
    min-height: 31px;
    padding: 0 8px;
    background: #fff;
    color: #155b94;
    font-size: 13px;
    font-weight: 400;
}

.reviewer-heading .material-symbols-outlined {
    margin-right: 8px;
    color: #5a6878;
    font-size: 17px;
}

.reviewer-heading::-webkit-details-marker {
    display: none;
}

.reviewer-round-list {
    display: flex;
    flex-direction: column-reverse;
    padding: 0;
}

.reviewer-ai-writing {
    min-height: 126px;
}

.reviewer-empty-round {
    padding: 9px 14px 12px;
    border-top: 2px solid #fff;
    background: #f7f8fb;
    color: #7b8495;
    font-size: 12px;
}

.reviewer-empty-round span {
    margin-left: 20px;
}

.file-report-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 3px 8px;
    border: 1px solid #b9c6d8;
    border-radius: 3px;
    background: #f7f9fc;
    color: #315b88;
    font-size: 11px;
    font-weight: 400;
}

.file-report-link:hover {
    border-color: #8ca6c5;
    background: #eef3f9;
    text-decoration: none;
}

.file-report-link .material-symbols-outlined {
    font-size: 14px;
}

