.tr-page {
  color: var(--ink, #171c18);
}
.tr-grades {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-left: 1px solid #b9c2b2;
  border-right: 1px solid #b9c2b2;
  background: #f5f5f0;
}
.tr-grades button {
  padding: 9px 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #53644f;
  font-size: 13px;
  cursor: pointer;
}
.tr-grades button[aria-pressed='true'] {
  border-color: #b4c5aa;
  background: #e1e9da;
  color: #214532;
  font-weight: 600;
}
.tr-grades small {
  margin-left: auto;
  padding-right: 18px;
  color: #75806f;
  font-size: 11px;
}
@media (max-width: 600px) {
  .tr-grades {
    padding: 10px;
    gap: 3px;
  }
  .tr-grades button {
    flex: 1;
    padding: 9px 4px;
    font-size: 12px;
  }
  .tr-grades small {
    width: 100%;
    margin: 6px 0 0;
    padding: 0 3px;
  }
}
.tr-heading,
.tr-content-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.tr-heading {
  margin-bottom: 28px;
}
.tr-heading h2 {
  font-size: 38px;
  margin: 10px 0;
}
.tr-heading p,
.tr-content-heading p {
  color: #697168;
  font-size: 13px;
  margin: 8px 0 0;
}
.tr-tabs {
  display: flex;
  border: 1px solid #b9c2b2;
  background: #e0e5d9;
}
.tr-tabs button {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 200px;
  min-height: 60px;
  padding: 16px 24px;
  border: 0;
  border-right: 1px solid #b9c2b2;
  background: transparent;
  font:
    600 16px 'Microsoft YaHei',
    sans-serif;
  color: #53644f;
  cursor: pointer;
}
.tr-tabs button span {
  font:
    12px Consolas,
    monospace;
}
.tr-tabs button[aria-pressed='true'] {
  background: #1b332a;
  color: #f0f3e7;
  box-shadow: inset 0 3px #e5f348;
}
.tr-tabs button[aria-pressed='true'] span {
  color: #e5f348;
}
.tr-tabs button:hover:not([aria-pressed='true']) {
  background: #d4dece;
}
.tr-workspace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 740px;
  border: 1px solid #b9c2b2;
  border-top: 0;
  background: #f5f5f0;
}
.tr-classes {
  border-right: 1px solid #b9c2b2;
  background: #e8ece2;
  padding: 18px 12px;
}
.tr-classes header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px 18px;
  color: #245444;
  font-size: 13px;
}
.tr-classes header small {
  color: #697168;
}
.tr-classes button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 10px;
  border: 0;
  margin: 2px 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: #344432;
}
.tr-classes button strong {
  font-size: 14px;
}
.tr-classes button span {
  color: #75806f;
  font-size: 11px;
  white-space: nowrap;
}
.tr-classes button:hover {
  background: #dbe4d4;
}
.tr-classes button[aria-pressed='true'] {
  background: #1b332a;
  box-shadow: inset 3px 0 #e5f348;
  color: #f4f5e9;
}
.tr-classes button[aria-pressed='true'] span {
  color: #c0cfb2;
}
.tr-content {
  padding: 28px;
  min-width: 0;
}
.tr-content-heading {
  margin-bottom: 26px;
}
.tr-content-heading h3 {
  font-size: 28px;
  margin: 10px 0 0;
}
.tr-upload-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid #c8ccc1;
  border-bottom: 1px solid #c8ccc1;
  margin-bottom: 24px;
}
.tr-upload-bar label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #245444;
}
.tr-upload-bar input {
  padding: 9px 10px;
  min-height: 39px;
  background: #fffef8;
  border: 1px solid #aeb9a6;
  color: #171c18;
  font:
    14px 'Microsoft YaHei',
    sans-serif;
}
.tr-upload-bar > span {
  display: flex;
  gap: 8px;
}
.tr-upload-bar > span button:first-child,
.tr-content-heading > button {
  background: #171c18;
  color: #e5f348;
  border-color: #171c18;
}
.tr-upload-bar > span button:nth-child(2) {
  background: #e5f348;
  color: #171c18;
  border-color: #e5f348;
}
.tr-upload-bar small {
  flex-basis: 100%;
  color: #697168;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.6;
}
.tr-record {
  border: 1px solid #c8ccc1;
  margin: 0 0 14px;
  background: #f5f5f0;
}
.tr-record > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 65px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}
.tr-record > summary::before {
  content: '+';
  font:
    20px Consolas,
    monospace;
  color: #245444;
}
.tr-record[open] > summary {
  background: #e0e9df;
  border-bottom: 1px solid #bacbb4;
}
.tr-record[open] > summary::before {
  content: '−';
}
.tr-record-main {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  flex-wrap: wrap;
}
.tr-date {
  font-size: 16px;
  font-weight: 600;
  color: #203d2c;
}
.tr-record-main strong {
  padding: 4px 10px;
  background: #d8e1cf;
  font-size: 13px;
  color: #245444;
}
.tr-record-count {
  color: #697168;
  font-size: 12px;
  white-space: nowrap;
}
.tr-record-body {
  padding: 0 16px 12px;
}
.tr-record-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  color: #697168;
  font-size: 12px;
  border-bottom: 1px solid #dde1d6;
}
.tr-record-tools > span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tr-record-tools .t-button {
  font-size: 12px;
  padding: 6px 9px;
  min-height: 32px;
}
.tr-attachments {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tr-attachments > li {
  border-bottom: 1px solid #e0e4d8;
  min-width: 0;
}
.tr-attachments > li:last-child {
  border-bottom: 0;
}
.tr-file,
.tr-folder > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 61px;
  padding: 12px 0;
  list-style: none;
}
.tr-file-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.tr-file-name > span {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.6;
}
.tr-page svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: #3e6551;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.tr-file-meta {
  font-size: 11px;
  color: #75806f;
}
.tr-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tr-file-actions .t-button {
  padding: 4px 0;
  min-height: 30px;
  font-size: 12px;
  border: 0;
  color: #245444;
  background: transparent;
}
.tr-file-actions .t-button:hover {
  color: #171c18;
  text-decoration: underline;
}
.tr-file-actions [data-tr-action='remove'] {
  color: #a04a37;
}
.tr-folder > summary {
  cursor: pointer;
}
.tr-folder > summary .tr-file-name::before {
  content: '›';
  color: #245444;
  font:
    18px Consolas,
    monospace;
}
.tr-folder[open] > summary .tr-file-name::before {
  transform: rotate(90deg);
}
.tr-folder > .tr-attachments {
  margin-left: 18px;
  padding-left: 14px;
  border-left: 1px solid #c4cebc;
}
.tr-empty {
  color: #75806f;
  font-size: 13px;
  padding: 22px 8px;
  line-height: 1.7;
}
.tr-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 65px 10px;
}
.tr-empty-state svg {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  opacity: 0.6;
}
.tr-empty-state strong {
  font-size: 17px;
  color: #4a5d45;
}
.tr-excellent {
  grid-template-columns: minmax(0, 1fr);
  min-height: 550px;
}
.tr-excellent .tr-content {
  padding: 30px;
}
.tr-jobs {
  padding: 20px;
  background: #e5eadd;
  border: 1px solid #b9c2b2;
  margin-top: 22px;
}
.tr-jobs > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: #245444;
}
.tr-jobs > header > span {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tr-jobs .t-button {
  min-height: 32px;
  font-size: 12px;
  padding: 6px 9px;
}
.tr-job-list {
  max-height: 350px;
  overflow: auto;
}
.tr-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(80px, 180px);
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #c8d1be;
  font-size: 12px;
}
.tr-job strong,
.tr-job small {
  display: block;
  overflow-wrap: anywhere;
}
.tr-job small {
  margin-top: 7px;
  color: #697168;
}
.tr-job progress {
  width: 100%;
  height: 6px;
  accent-color: #245444;
}
.tr-job [data-tr-status] {
  overflow-wrap: anywhere;
  line-height: 1.6;
  color: #43543b;
}
.tr-retry-name {
  display: flex;
  gap: 8px;
  align-items: center;
  grid-column: 1 / 3;
}
.tr-retry-name input {
  flex: 1;
  min-width: 0;
  border: 1px solid #aeb9a6;
  padding: 8px;
  background: #f5f5f0;
}
.tr-error {
  padding: 10px 0;
  color: #9d3a28;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.tr-error .t-button {
  margin-left: 12px;
}
.tr-dialog {
  width: min(470px, calc(100vw - 32px));
  max-height: 85vh;
  overflow: auto;
  padding: 28px;
  border: 1px solid #171c18;
  background: #f5f5f0;
  color: #171c18;
  box-shadow: 0 20px 70px #17261933;
}
.tr-dialog::backdrop {
  background: #17261966;
}
.tr-dialog h2 {
  font-size: 24px;
  margin: 12px 0 25px;
}
.tr-dialog label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 18px 0;
  font-size: 13px;
}
.tr-dialog input,
.tr-dialog select {
  padding: 11px;
  border: 1px solid #aeb9a6;
  min-width: 0;
  width: 100%;
  background: #fffef8;
  font:
    14px 'Microsoft YaHei',
    sans-serif;
  border-radius: 0;
}
.tr-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.tr-dialog-name {
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.tr-primary {
  background: #171c18 !important;
  color: #e5f348 !important;
  border-color: #171c18 !important;
}
.tr-danger {
  background: #933d2b !important;
  color: #fff !important;
  border-color: #933d2b !important;
}
.tr-muted {
  color: #697168;
  font-size: 12px;
  line-height: 1.7;
}
.tr-preview {
  width: 94vw;
  max-width: 94vw;
  height: 88vh;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.tr-preview:not([open]) {
  display: none;
}
.tr-preview > button {
  align-self: flex-end;
  flex-shrink: 0;
}
.tr-preview > img,
.tr-preview > iframe {
  width: 100%;
  min-height: 0;
  flex: 1;
  object-fit: contain;
  border: 0;
}
.tr-page button:focus-visible,
.tr-page summary:focus-visible,
.tr-dialog :focus-visible {
  outline: 2px solid #245444;
  outline-offset: 3px;
}
.tr-page button:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (max-width: 800px) {
  .tr-workspace {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .tr-content {
    padding: 22px 16px;
  }
  .tr-file {
    flex-wrap: wrap;
  }
  .tr-file-meta {
    display: none;
  }
  .tr-file-actions {
    gap: 10px;
  }
  .tr-file-name {
    flex-basis: 100%;
  }
  .tr-folder > summary {
    flex-wrap: wrap;
  }
  .tr-excellent {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .tr-heading {
    margin-bottom: 20px;
  }
  .tr-heading h2 {
    font-size: 30px;
  }
  .tr-tabs button {
    flex: 1;
    min-width: 0;
    min-height: 54px;
    padding: 14px 16px;
    font-size: 15px;
    gap: 12px;
  }
  .tr-workspace {
    display: block;
    min-height: 0;
  }
  .tr-classes {
    border-right: 0;
    border-bottom: 1px solid #b9c2b2;
    padding: 14px 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .tr-classes header {
    grid-column: 1 / -1;
    padding: 2px 2px 10px;
  }
  .tr-classes button {
    display: block;
    padding: 9px 7px;
    margin: 0;
  }
  .tr-classes button strong {
    font-size: 12px;
    white-space: nowrap;
  }
  .tr-classes button span {
    display: block;
    font-size: 10px;
    margin-top: 5px;
  }
  .tr-content,
  .tr-excellent .tr-content {
    padding: 22px 14px;
  }
  .tr-content-heading {
    gap: 12px;
    margin-bottom: 20px;
  }
  .tr-content-heading h3 {
    font-size: 24px;
  }
  .tr-content-heading p {
    font-size: 12px;
    line-height: 1.7;
  }
  .tr-content-heading > button {
    font-size: 12px;
    padding: 10px;
    flex-shrink: 0;
  }
  .tr-upload-bar {
    gap: 14px;
  }
  .tr-upload-bar label {
    width: 100%;
  }
  .tr-upload-bar input {
    width: 100%;
    box-sizing: border-box;
  }
  .tr-upload-bar > span {
    width: 100%;
  }
  .tr-upload-bar > span button {
    flex: 1;
  }
  .tr-record > summary {
    padding: 14px 10px;
    gap: 9px;
  }
  .tr-date {
    font-size: 14px;
  }
  .tr-record-count {
    font-size: 11px;
  }
  .tr-record-main {
    gap: 8px;
  }
  .tr-record-body {
    padding: 0 10px 10px;
  }
  .tr-record-tools {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .tr-file-name > span {
    font-size: 12px;
  }
  .tr-folder > .tr-attachments {
    margin-left: 6px;
    padding-left: 8px;
  }
  .tr-jobs {
    padding: 16px 12px;
  }
  .tr-jobs > header {
    align-items: flex-start;
    flex-direction: column;
  }
  .tr-job {
    grid-template-columns: minmax(0, 1fr) 75px;
  }
  .tr-job [data-tr-status] {
    grid-column: 1 / -1;
  }
  .tr-retry-name {
    grid-column: 1 / -1;
  }
  .tr-dialog {
    padding: 22px;
  }
}
.tr-share-status {
  font-size: 11px;
  font-weight: normal;
  color: #667763;
  white-space: nowrap;
}
.tr-permission-note {
  max-width: 750px;
  font-size: 12px;
  line-height: 1.7;
}
