/* Dark theme, responsive workbook. Mobile uses cards (no horizontal scroll). */
.rrw-workbook{
  background:#0e0e0e;
  color:#ffffff;
  padding:24px;
  border:1px solid #222;
  border-radius:12px;
}
.rrw-title{ margin:0 0 6px 0; font-size:28px; line-height:1.2; }
.rrw-subtitle{ margin:0; color:#bdbdbd; font-size:13px; max-width:1100px; }
.rrw-section-title{
  margin:34px 0 10px 0;
  font-size:20px;
  border-bottom:2px solid #333;
  padding-bottom:6px;
}

/* Desktop table */
.rrw-table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.rrw-table{
  width:100%;
  min-width: 980px;
  border-collapse: collapse;
  background:#151515;
  border-radius:12px;
  overflow:hidden;
}
.rrw-table th, .rrw-table td{
  text-align:left;
  vertical-align:top;
  padding:12px;
  border-bottom:1px solid #2a2a2a;
}
.rrw-table th{ background:#1e1e1e; font-weight:700; color:#ffffff; }
.rrw-table td{ color:#e6e6e6; }
.rrw-manufacturer{ color:#9a9a9a; font-style: italic; }
.rrw-status{ font-weight:700; white-space:nowrap; }

/* Comments */
.rrw-existing{ margin-bottom: 10px; }
.rrw-empty{ color:#8f8f8f; font-size:12px; }
.rrw-comment-list{
  list-style:none; margin:0; padding:0;
  max-height: 260px; overflow:auto;
  border:1px solid #2a2a2a; border-radius:10px;
}
.rrw-comment{ padding:10px; border-bottom:1px solid #2a2a2a; }
.rrw-comment:last-child{ border-bottom:none; }
.rrw-comment-meta{
  display:flex; gap:10px; flex-wrap:wrap;
  justify-content:flex-start;
  font-size:12px; color:#bdbdbd; margin-bottom:6px;
}
.rrw-comment-author{ font-weight:700; color:#ffffff; }
.rrw-comment-date{ color:#9a9a9a; white-space:nowrap; }
.rrw-comment-updated{ color:#7f7f7f; white-space:nowrap; }
.rrw-comment-text{ font-size:13px; color:#e6e6e6; margin-bottom:8px; }

.rrw-attachments{
  list-style:none;
  margin:0 0 10px 0;
  padding:0;
  border-left:2px solid #2a2a2a;
}
.rrw-attachments li{ padding:2px 0 2px 10px; }
.rrw-attachments a{ color:#ffffff; text-decoration:underline; }

.rrw-comment-actions[aria-hidden="true"]{ display:none; }
.rrw-comment-actions{
  display:flex; gap:8px;
}
.rrw-comment-actions button,
.rrw-edit-actions button{
  background:#1e1e1e;
  color:#ffffff;
  border:1px solid #333;
  border-radius:10px;
  padding:6px 10px;
  font-size:12px;
  cursor:pointer;
}
.rrw-comment-actions button:hover,
.rrw-edit-actions button:hover{ border-color:#666; }

.rrw-edit-text{
  width:100%;
  box-sizing:border-box;
  background:#0e0e0e;
  color:#ffffff;
  border:1px solid #333;
  border-radius:10px;
  padding:8px;
  font-size:13px;
  font-family: Arial, Helvetica, sans-serif;
  min-height:84px;
  resize:vertical;
}
.rrw-edit-actions{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:8px;
}
.rrw-inline-msg{ font-size:12px; color:#bdbdbd; }

.rrw-add input.rrw-author,
.rrw-add textarea.rrw-text{
  width:100%; box-sizing:border-box;
  background:#0e0e0e; color:#ffffff;
  border:1px solid #333; border-radius:10px;
  padding:8px; font-size:13px;
  font-family: Arial, Helvetica, sans-serif;
}
.rrw-add input.rrw-author{ margin-bottom:8px; }
.rrw-add textarea.rrw-text{ min-height:84px; resize:vertical; }

.rrw-upload{ margin-top:10px; margin-bottom:10px; }
.rrw-upload-label{ display:block; font-size:12px; color:#bdbdbd; margin-bottom:6px; }
.rrw-upload-hint{ font-size:12px; color:#7f7f7f; margin-top:6px; }
.rrw-files{ width:100%; color:#bdbdbd; }

.rrw-actions{ display:flex; gap:10px; align-items:center; margin-top:8px; }
.rrw-submit{
  background:#ffffff; color:#000000;
  border:none; border-radius:10px;
  padding:8px 12px; font-size:13px;
  cursor:pointer;
}
.rrw-submit:disabled{ opacity:0.6; cursor:not-allowed; }
.rrw-msg{ font-size:12px; color:#bdbdbd; }
.rrw-hp{ position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; overflow:hidden !important; }

/* Mobile stacked cards */
.rrw-desktop{ display:block; }
.rrw-mobile{ display:none; }

.rrw-card{
  background:#151515;
  border:1px solid #2a2a2a;
  border-radius:12px;
  padding:12px;
  margin:12px 0;
}
.rrw-card-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:6px 0;
  border-bottom:1px solid #2a2a2a;
}
.rrw-card-row:last-child{ border-bottom:none; }
.rrw-label{ color:#9a9a9a; font-size:12px; min-width:110px; }
.rrw-value{ color:#e6e6e6; font-size:13px; text-align:right; word-break:break-word; }
.rrw-card-comments{ margin-top:12px; }

@media (max-width: 900px){
  .rrw-workbook{ padding:16px; }
  .rrw-title{ font-size:22px; }
  .rrw-section-title{ font-size:18px; }

  .rrw-desktop{ display:none; }
  .rrw-mobile{ display:block; }

  .rrw-value{ text-align:left; }
  .rrw-card-row{ flex-direction:column; }
  .rrw-label{ min-width:auto; }
}
