
    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: #f6f7f8;
      color: #222;
    }






.sidebar {
  background: #fff;
  border-right: 1px solid #ddd;
  padding: 16px;
  overflow-y: auto;
  min-height: 0;
  box-sizing: border-box;
}




.app-header h2 {
  margin: 0;
}


#comment-container {
  flex: 1 1 auto;
  min-height: 0;
    margin-bottom: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  padding: 15px;
  box-sizing: border-box;
  
}
  


.composer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  background: transparent;
  border-top: none;
  position: static;
  box-sizing: border-box;
  margin-top: auto;
}

.composer .footer {
  margin-left: auto;
}


#chat-status {
  text-align: right;
  white-space: nowrap;
}

    .panel {
      margin-bottom: 16px;
    }

    #docResolveStatus {
      min-height: 1.2em;
      margin-top: -2px;
      color: #617084;
      font-size: 0.76rem;
      line-height: 1.35;
    }

    label {
      display: block;
      margin-bottom: 6px;
      font-size: 0.85rem;
    }

    input[type="text"],
    textarea,
    select {
      width: 100%;
      box-sizing: border-box;
      padding: 6px;
      margin-bottom: 8px;
    }

    button {
      padding: 6px 12px;
    }

    #progressLog div {
      font-size: 0.85rem;
      color: #555;
      margin-bottom: 4px;
    }
    
#resultsArea {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 14px;
  align-items: start;
}

.comment-tile {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-left: 4px solid rgba(0, 0, 0, 0.34);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.comment-tile.has-refined-comment {
  border-left-color: #2f7d55;
}

.comment-tile.status-failed,
.comment-tile.status-write-failed {
  border-left-color: #a33;
}

.comment-tile.status-transforming,
.comment-tile.status-writing,
.comment-tile.status-transcribing {
  border-left-color: #806000;
}

.comment-tile.is-excluded {
  opacity: 0.56;
}

.comment-tile.is-editing {
  grid-column: 1 / -1;
  border-left-color: #315e9a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.comment-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.025);
}

.comment-tile-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-author {
  font-size: 13px;
  line-height: 1.25;
}

.comment-created {
  font-size: 11px;
  color: #666;
}

.comment-status {
  flex: 0 0 auto;
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
}

.status-failed .comment-status,
.status-write-failed .comment-status {
  font-weight: 600;
}

.comment-tile-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 13px;
  padding: 13px 14px;
}

.comment-content-block,
.comment-transcript-block {
  min-width: 0;
}

.comment-section-label {
  display: block;
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #666;
}

.comment-text {
  line-height: 1.5;
}

.comment-text p {
  margin: 6px 0;
}

.comment-text p:first-child {
  margin-top: 0;
}

.comment-text p:last-child {
  margin-bottom: 0;
}

.comment-text ul {
  margin: 6px 0 6px 18px;
}

.comment-text li {
  margin: 2px 0;
}

.comment-text strong {
  font-weight: 600;
}

.comment-text em {
  font-style: italic;
}

.comment-transcript-block {
  padding-top: 11px;
  border-top: 1px solid rgba(0, 0, 0, 0.09);
}

.comment-transcript {
  font-size: 12px;
  line-height: 1.5;
  color: #555;
  white-space: pre-wrap;
}

.comment-error {
  padding: 8px 9px;
  border-left: 3px solid #a33;
  background: rgba(163, 51, 51, 0.06);
  font-size: 12px;
  line-height: 1.4;
}

.comment-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding: 10px 13px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.018);
}

.comment-action {
  padding: 5px 9px;
  font-size: 11px;
  cursor: pointer;
}

.comment-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.comment-editor {
  min-width: 0;
}

.comment-edit-textarea {
  width: 100%;
  min-height: 170px;
  box-sizing: border-box;
  margin: 0;
  padding: 10px;
  resize: vertical;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.comment-editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}


.results-message {
  grid-column: 1 / -1;
  margin: 20px auto;
  padding: 12px 16px;
  max-width: 480px;
  text-align: center;
  font-size: 13px;
  color: #555;
  border-radius: 8px;
  background: #f4f5f7;
}

.results-message.working::after {
  content: " …";
  animation: dots 1.2s infinite;
}

@keyframes dots {
  0% { content: " ."; }
  33% { content: " .."; }
  66% { content: " ..."; }
  100% { content: " ."; }
}


@media (max-width: 760px) {
  #resultsArea {
    grid-template-columns: 1fr;
  }

  .comment-tile-header {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-status {
    align-self: flex-start;
  }
}







.app {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 64px);
  min-height: 0;
  overflow: hidden;
}


  
  
  .workspace {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  gap: 12px;
  box-sizing: border-box;
}

  
  


.app-header {
  flex: 0 0 auto;
  margin: 0;
}

.app-header h2 {
  margin: 0;
}




#workspaceIntro {
  margin: 0;
}

#workspaceIntro p {
  margin-top: 0;
}



/* ==========================================================
   Workspace tabs and Meta-comment report
   ========================================================== */

.app-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.workspace-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.035);
}

.workspace-tab {
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 7px 12px;
  cursor: pointer;
}

.workspace-tab.is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  font-weight: 600;
}

.workspace-tab-panel {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
}

.workspace-tab-panel[hidden] {
  display: none !important;
}

.meta-tab-panel {
  overflow-y: auto;
  padding-right: 4px;
}

.meta-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: #fff;
}

.meta-intro h3,
.meta-intro p {
  margin-top: 0;
}

.meta-intro p {
  margin-bottom: 0;
  max-width: 760px;
  color: #555;
  line-height: 1.45;
}

.meta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 290px;
}


.meta-rubric-status {
  padding: 8px 11px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.meta-rubric-status.is-working {
  border-left: 4px solid #6b7280;
}

.meta-rubric-status.is-success {
  border-left: 4px solid #2f7d4a;
}

.meta-rubric-status.is-error {
  border-left: 4px solid #a33a3a;
  background: #fff4f4;
}

#metaProgress .results-message {
  margin: 0 auto;
}

.meta-empty-state {
  margin: auto;
  max-width: 560px;
  padding: 28px;
  text-align: center;
  border: 1px dashed rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.meta-empty-state h3 {
  margin-top: 0;
}

.meta-empty-state p {
  margin-bottom: 0;
  color: #555;
  line-height: 1.5;
}

.meta-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meta-report-freshness {
  padding: 9px 12px;
  border-left: 4px solid #9b6b00;
  background: #fff8df;
  font-size: 13px;
}

.meta-report-section,
.meta-details {
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: #fff;
}

.meta-report-section > h3,
.meta-section-heading h3 {
  margin-top: 0;
}

.meta-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.meta-overall-score {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

.meta-prose {
  line-height: 1.58;
}

.meta-prose p:first-child {
  margin-top: 0;
}

.meta-prose p:last-child {
  margin-bottom: 0;
}

.meta-rubric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.meta-rubric-card {
  padding: 13px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.018);
}

.meta-rubric-card h4 {
  margin: 0;
  font-size: 14px;
}

.meta-rubric-card p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.meta-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.meta-rubric-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.meta-scope-badge {
  padding: 2px 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.meta-score-value {
  font-weight: 700;
  white-space: nowrap;
}

.meta-score-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.11);
}

.meta-score-fill {
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

.meta-score-label {
  margin-top: 5px;
  font-size: 11px;
  color: #666;
}

.meta-score-distribution {
  margin-top: 4px;
  font-size: 11px;
  color: #777;
}

.meta-feedback-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.meta-feedback-column {
  padding: 12px 13px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.025);
}

.meta-feedback-column h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.meta-feedback-column ul {
  margin: 0;
  padding-left: 19px;
}

.meta-feedback-column li {
  margin-bottom: 7px;
  line-height: 1.42;
}

.meta-details summary {
  cursor: pointer;
  font-weight: 600;
}

.meta-details[open] summary {
  margin-bottom: 14px;
}

.meta-comment-evidence-card {
  padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.meta-comment-evidence-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.meta-comment-evidence-card h4 {
  margin: 0 0 6px;
}

.meta-comment-evidence-card p {
  margin: 5px 0;
  line-height: 1.42;
}

.meta-inline-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.meta-inline-score {
  padding: 2px 6px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  font-size: 11px;
}

.meta-rubric-definition h4 {
  margin-bottom: 5px;
}

.meta-rubric-definition p {
  margin-top: 0;
  line-height: 1.45;
}

.meta-rubric-definition ul {
  margin-top: 6px;
}

.meta-rubric-definition-row {
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.meta-rubric-definition-row:first-of-type {
  border-top: 0;
}

.meta-rubric-band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.meta-rubric-band {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.018);
  font-size: 12px;
  line-height: 1.38;
}

.meta-rubric-band strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.meta-set-evidence-card {
  margin-top: 8px;
  padding: 13px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.025);
}

@media (max-width: 900px) {
  .app-title-row,
  .meta-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .meta-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .meta-feedback-columns,
  .meta-rubric-band-grid {
    grid-template-columns: 1fr;
  }
}

/* Meta-comment rubric selection and CSV prototyping */
.meta-rubric-picker {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: #fff;
}

.meta-rubric-picker-heading h3,
.meta-rubric-picker-heading p {
  margin-top: 0;
}

.meta-rubric-picker-heading p {
  margin-bottom: 13px;
  color: #555;
  font-size: 13px;
}

.meta-rubric-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta-rubric-source-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.018);
}

.meta-rubric-source-card > p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.42;
}

.meta-evaluation-source-card {
  grid-column: 1 / -1;
  background: rgba(47, 125, 74, 0.045);
}

.meta-rubric-source-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meta-rubric-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
}

.meta-rubric-toggle input {
  width: 17px;
  height: 17px;
  margin: 0;
}

.meta-rubric-level,
.meta-weight-badge {
  padding: 3px 7px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  color: #555;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.meta-rubric-source-status {
  min-height: 34px;
  padding: 7px 9px;
  border-left: 4px solid #6b7280;
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.meta-rubric-source-status.is-success {
  border-left-color: #2f7d4a;
}

.meta-rubric-source-status.is-error {
  border-left-color: #a33a3a;
  background: #fff4f4;
  white-space: pre-line;
}

.meta-rubric-file-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.meta-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.meta-file-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.meta-file-button:hover,
.secondary-button:hover {
  background: rgba(0, 0, 0, 0.045);
}

.meta-file-button:focus-within,
.secondary-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.meta-rubric-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meta-rubric-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  padding-top: 4px;
}

.meta-rubric-group + .meta-rubric-group {
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.meta-rubric-group-heading,
.meta-critical-warning {
  grid-column: 1 / -1;
}

.meta-rubric-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.meta-rubric-group-heading h4 {
  margin: 0;
  font-size: 15px;
}

.meta-rubric-group-heading span {
  color: #555;
  font-size: 12px;
}

.meta-critical-warning,
.meta-critical-inline {
  border-left: 4px solid #a33a3a;
  background: #fff1f1;
  color: #742626;
}

.meta-critical-warning {
  padding: 9px 11px;
  font-size: 12px;
}

.meta-critical-inline {
  margin-top: 7px;
  padding: 6px 8px;
  font-size: 11px;
}

.meta-inline-score.is-critical {
  border-color: #a33a3a;
  background: #fff1f1;
  color: #742626;
}

.meta-scoring-note {
  color: #555;
  font-size: 12px;
}

.meta-rubric-definition + .meta-rubric-definition {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px solid rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
  .meta-rubric-source-grid {
    grid-template-columns: 1fr;
  }

  .meta-rubric-source-title,
  .meta-rubric-group-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------------------------------------------------------
   Comment history
   --------------------------------------------------------- */

.history-tab-panel {
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 24px;
}

.history-intro,
.history-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.history-intro {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  background: #fff;
}

.history-intro h3,
.history-section-heading h3 {
  margin: 0 0 5px;
}

.history-intro p,
.history-section-heading p {
  margin: 0;
  color: #5c6268;
  line-height: 1.45;
}

.history-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-button {
  border-color: #a33a3a;
  color: #842f2f;
  background: #fff8f8;
}

.danger-button:hover:not(:disabled) {
  background: #fff0f0;
}

.history-status,
.history-empty-state {
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.76);
  color: #555;
}

.history-status {
  margin-bottom: 12px;
}

.history-status.is-success {
  border-color: rgba(44, 123, 81, 0.35);
  background: #f3fbf6;
  color: #245c3d;
}

.history-status.is-error {
  border-color: rgba(163, 58, 58, 0.35);
  background: #fff3f3;
  color: #742626;
}

.history-section {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 12px;
  background: #fff;
}

.history-section-heading {
  margin-bottom: 14px;
}

.history-run-list {
  display: grid;
  gap: 10px;
}

.history-run-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 10px;
  background: #fbfcfd;
}

.history-run-card.is-active-run {
  border-color: #4f718f;
  box-shadow: inset 4px 0 0 #4f718f;
  background: #f6f9fc;
}

.history-run-select {
  margin: 0;
}

.history-run-select input {
  width: 17px;
  height: 17px;
}

.history-run-content {
  min-width: 0;
}

.history-run-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.history-run-title-row h4 {
  margin: 0;
  font-size: 15px;
}

.history-run-title-row time {
  flex: 0 0 auto;
  color: #666;
  font-size: 12px;
}

.history-run-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.history-run-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf1f4;
  color: #45515b;
  font-size: 11px;
}

.history-run-meta {
  margin: 8px 0 0;
  color: #5d6267;
  font-size: 12px;
}

.history-run-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-doc-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  background: #fff;
}

.history-doc-link:hover {
  background: #f2f4f5;
}

.history-trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 12px;
}

.history-trend-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fafbfc;
  color: #355d7a;
}

.history-trend-heading,
.history-trend-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.history-trend-heading h4 {
  margin: 0;
  color: #222;
  font-size: 14px;
}

.history-trend-heading span {
  color: #3d5568;
  font-size: 12px;
}

.history-trend-svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
  overflow: visible;
}

.history-grid-line {
  stroke: rgba(0, 0, 0, 0.13);
  stroke-width: 1;
}

.history-axis-label {
  fill: #73777b;
  font-size: 10px;
}

.history-trend-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.history-trend-point {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 2.5;
}

.history-trend-footer {
  color: #666;
  font-size: 10px;
}

@media (max-width: 820px) {
  .history-intro,
  .history-section-heading,
  .history-run-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-run-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .history-run-actions {
    grid-column: 2;
    flex-wrap: wrap;
  }
}

/* Custom prompt starter */
.starter-prompt-button {
  width: 100%;
  margin-top: 2px;
}


/* Explicit Google Drive authorization */
.drive-access-group { margin-top: 2px; }
.drive-access-panel { margin-bottom: 12px; }
.drive-access-status-row { display: flex; align-items: center; min-height: 24px; margin-bottom: 4px; }
.drive-access-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; line-height: 1.3; }
.drive-access-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8a94a3; flex: 0 0 auto; }
.drive-access-status[data-state="connected"]::before { background: #2f7d32; }
.drive-access-status[data-state="not-connected"]::before,
.drive-access-status[data-state="error"]::before { background: #b3261e; }
.drive-access-status[data-state="authorizing"]::before,
.drive-access-status[data-state="checking"]::before { background: #9a6700; }
.drive-access-help { margin: 4px 0 9px; color: #617084; font-size: 0.76rem; line-height: 1.4; }
.drive-access-actions { display: grid; grid-template-columns: 1fr; gap: 6px; }
.drive-access-actions button { width: 100%; }

/* Feedback Refinery legal links */
.feedback-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  font-size: 0.76rem;
  line-height: 1.4;
}

.feedback-legal-links a {
  color: #355d7a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feedback-legal-links a:hover,
.feedback-legal-links a:focus-visible {
  color: #173f5b;
}

.feedback-legal-links span {
  color: #8a94a3;
}

