/* ClockIn: assets/text-review/text-review.css (2.11.0). Text review mode, see text-review.js.
   One fixed look on purpose (a tool, not part of the app): readable on every
   theme. Nothing here applies unless the tool is on (html.tr-on) or to its
   own elements (#tr-layer, #tr-dev). */

html.tr-on [data-tr-id] { outline: 2px dotted #e8890c; outline-offset: 2px; }
html.tr-on [data-tr-id][data-tr-status="change"] { outline-color: #d6336c; }
html.tr-on [data-tr-id][data-tr-status="good"] { outline-color: #2f9e5b; }

#tr-layer { position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
#tr-layer[hidden] { display: none; }
#tr-layer button { font: inherit; }

.tr-dot {
  position: fixed; pointer-events: auto; cursor: pointer;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; border: 2px solid #fff;
  background: #e8890c; color: #fff; font-size: 10px !important; font-weight: 700 !important; line-height: 14px;
  box-shadow: 0 1px 4px rgb(0 0 0 / .35);
}
.tr-dot.tr-change { background: #d6336c; }
.tr-dot.tr-good { background: #2f9e5b; }
.tr-dot:focus-visible { outline: 2px solid #4dabf7; outline-offset: 1px; }

.tr-card {
  position: fixed; pointer-events: auto; display: grid; gap: 6px;
  background: #1c2128; color: #e9edf2; border: 1px solid #3a434f; border-radius: 8px;
  padding: 12px 14px; box-shadow: 0 10px 30px rgb(0 0 0 / .35); max-height: calc(100vh - 24px); overflow: auto;
}
.tr-card[hidden] { display: none; }
.tr-card-head { display: flex; align-items: center; gap: 8px; }
.tr-num { background: #e8890c; color: #fff; border-radius: 9px; padding: 0 6px; font-weight: 700; font-size: 11px; }
.tr-where { flex: 1; min-width: 0; font-weight: 600; }
.tr-x { background: none; border: 0; color: #9aa5b1; cursor: pointer; padding: 2px 4px; }
.tr-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #9aa5b1; margin-top: 4px; }
.tr-old { color: #9aa5b1; text-decoration: line-through; }
.tr-new { font-size: 14px; }
.tr-note { width: 100%; box-sizing: border-box; background: #12161b; color: #e9edf2; border: 1px solid #3a434f; border-radius: 6px; padding: 6px 8px; font: inherit; resize: vertical; }
.tr-note.tr-need { border-color: #d6336c; }
.tr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.tr-actions button { background: #2b323c; color: #e9edf2; border: 1px solid #3a434f; border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.tr-actions button.tr-ok { background: #2f9e5b; border-color: #2f9e5b; color: #fff; }
.tr-id { margin-left: auto; font: 11px ui-monospace, Menlo, monospace; color: #7d8894; }

.tr-pill {
  position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: auto; cursor: pointer;
  background: #1c2128; color: #e9edf2; border: 1px solid #e8890c; border-radius: 999px; padding: 6px 12px;
  box-shadow: 0 4px 14px rgb(0 0 0 / .3);
}
.tr-pill[hidden] { display: none; }

/* The Dev page section: uses the app's own section, switch and button styles. */
.tr-dev { margin-bottom: 8px; }
.tr-summary { margin: 4px 0 8px; }
.tr-group { border-top: 1px solid rgb(127 127 127 / .25); padding: 6px 0; }
.tr-group summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 600; padding: 4px 0; }
.tr-left { font-weight: 400; opacity: .7; }
.tr-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px dashed rgb(127 127 127 / .2); }
.tr-row-text { display: grid; gap: 2px; min-width: 0; }
.tr-row-text span { opacity: .85; }
.tr-row-text em { color: #d6336c; font-style: normal; }
.tr-chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; background: #e8890c; white-space: nowrap; }
.tr-chip.tr-change { background: #d6336c; }
.tr-chip.tr-good { background: #2f9e5b; }
.tr-copy-box { width: 100%; min-height: 120px; margin-top: 8px; font: 12px ui-monospace, Menlo, monospace; }
@media (max-width: 600px) { .tr-row { grid-template-columns: minmax(0, 1fr); } .tr-chip { justify-self: start; } }
