/* GrapeSEED Unit Check Review — lyric marking */

.guc-marking-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guc-songs-container {
  width: 100%;
}

/* Fixed dock at bottom (Review page) — deep green tool tray (matches header) */
.guc-marking-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--guc-safe-bottom) + 8px);
  width: calc(100% - 16px);
  max-width: calc(var(--guc-app-max) - 16px);
  z-index: 150;
  padding: 8px 10px 10px;
  background: var(--guc-clover-green-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--guc-clover-green-mid);
  border-radius: 14px;
  box-shadow:
    0 10px 36px rgba(27, 94, 32, 0.32),
    0 2px 8px rgba(13, 61, 20, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.guc-marking-dock[hidden] {
  display: none !important;
}

.guc-marking-dock-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.guc-marking-dock-kicker {
  display: inline-block;
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--guc-clover-green-dark);
  background: var(--guc-clover-green-pale);
  border-radius: 4px;
  line-height: 1.2;
}

.guc-marking-dock-label {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guc-marking-toolbar {
  display: flex;
  flex-direction: row;
  gap: 4px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.guc-marking-dock .guc-tool-btn {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 34px;
  padding: 2px;
  text-align: center;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.guc-marking-dock .guc-tool-btn:active {
  transform: scale(0.94);
}

.guc-marking-dock .guc-tool-btn.guc-tool-active {
  border-color: rgba(232, 245, 236, 0.75);
  background: rgba(232, 245, 236, 0.28);
  box-shadow:
    0 0 0 1px rgba(165, 214, 167, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.guc-marking-dock .guc-tool-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.guc-marking-dock .guc-tool-icon-box,
.guc-marking-dock .guc-tool-icon-circle {
  font-size: 0;
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  box-sizing: border-box;
  flex-shrink: 0;
}

.guc-marking-dock .guc-tool-icon-box {
  border-radius: 3px;
}

.guc-marking-dock .guc-tool-icon-circle {
  border-radius: 50%;
}

.guc-marking-dock .guc-tool-icon-check {
  font-size: 17px;
}

.guc-marking-dock .guc-tool-icon-slash {
  font-size: 0;
  width: 14px;
  height: 18px;
  position: relative;
}

.guc-marking-dock .guc-tool-icon-slash::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.5px;
  height: 17px;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(34deg);
  pointer-events: none;
}

.guc-marking-dock .guc-tool-icon-memo {
  font-size: 0;
  width: 14px;
  height: 18px;
  position: relative;
}

/* Pencil silhouette — same 34deg as slash, wider eraser + tapered tip */
.guc-marking-dock .guc-tool-icon-memo::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 18px;
  transform: translate(-50%, -50%);
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cg transform='rotate(34 8 9)'%3E%3Crect x='5.4' y='0.6' width='5.2' height='3.4' rx='0.9'/%3E%3Crect x='6.2' y='3.6' width='3.6' height='1.3' rx='0.25' opacity='0.55'/%3E%3Crect x='6.5' y='4.7' width='3' height='8.8' rx='0.35'/%3E%3Cpolygon points='6.5,13.5 9.5,13.5 8,16.2'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cg transform='rotate(34 8 9)'%3E%3Crect x='5.4' y='0.6' width='5.2' height='3.4' rx='0.9'/%3E%3Crect x='6.2' y='3.6' width='3.6' height='1.3' rx='0.25' opacity='0.55'/%3E%3Crect x='6.5' y='4.7' width='3' height='8.8' rx='0.35'/%3E%3Cpolygon points='6.5,13.5 9.5,13.5 8,16.2'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
}

.guc-marking-dock .guc-tool-icon-cross {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.guc-marking-dock .guc-tool-icon-underline {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.guc-marking-dock .guc-tool-btn.guc-tool-active .guc-tool-icon {
  color: var(--guc-clover-green-pale);
  text-shadow: none;
}

.guc-marking-dock .guc-tool-btn.guc-tool-active .guc-tool-icon-box,
.guc-marking-dock .guc-tool-btn.guc-tool-active .guc-tool-icon-circle {
  border-color: var(--guc-clover-green-pale);
  box-shadow: none;
}

.guc-marking-dock .guc-tool-btn.guc-tool-active .guc-tool-icon-check,
.guc-marking-dock .guc-tool-btn.guc-tool-active .guc-tool-icon-wave,
.guc-marking-dock .guc-tool-btn.guc-tool-active .guc-tool-icon-slash,
.guc-marking-dock .guc-tool-btn.guc-tool-active .guc-tool-icon-memo,
.guc-marking-dock .guc-tool-btn.guc-tool-active .guc-tool-icon-cross {
  color: var(--guc-clover-green-pale);
}

.guc-marking-dock .guc-tool-btn.guc-tool-active .guc-tool-icon-underline {
  text-decoration: underline;
  text-decoration-color: var(--guc-clover-green-pale);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.guc-tool-text {
  display: none;
}

.guc-word {
  display: inline;
  padding: 1px 2px;
  margin: 0;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: background 0.12s;
}

.guc-word-unit {
  display: inline;
  vertical-align: baseline;
}

.guc-word-unit.guc-word-unit-has-note {
  display: inline-block;
  vertical-align: top;
  margin: 0 1px 4px;
  max-width: calc(100% - 8px);
}

.guc-word-note-row {
  display: block;
  margin: 3px 0 0;
  padding: 0 1px;
}

.guc-word-note-row[hidden] {
  display: none !important;
}

.guc-word-note-measure {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  white-space: pre;
  font-size: 10px;
  font-style: italic;
  line-height: 1.4;
  padding: 0 1px;
}

.guc-word-note-input {
  display: inline-block;
  width: auto;
  min-width: 2ch;
  max-width: 280px;
  box-sizing: content-box;
  font-size: 10px;
  line-height: 1.4;
  padding: 0 1px 2px;
  border: 0;
  border-bottom: 1.5px solid rgba(var(--guc-note-accent-rgb), 0.45);
  border-radius: 0;
  background: transparent;
  color: var(--guc-note-accent);
  font-style: italic;
}

.guc-word-note-input:focus {
  outline: none;
  border-bottom-color: var(--guc-note-accent);
  border-bottom-width: 2px;
  padding-bottom: 1px;
}

.guc-word:hover {
  background: rgba(0, 0, 0, 0.05);
}

.guc-word.guc-mark-underline {
  display: inline-block;
  vertical-align: baseline;
  text-decoration: none;
  padding-bottom: 3px;
}

.guc-word.guc-mark-underline::after {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 0;
  border-bottom: 2px solid var(--guc-note-accent);
  pointer-events: none;
}

.guc-word.guc-word-has-x {
  padding-bottom: 0.65em;
}

.guc-word.guc-word-has-x.guc-mark-underline {
  padding-bottom: calc(0.65em + 3px);
}

.guc-letter {
  position: relative;
  display: inline-block;
}

.guc-marking-layout[data-active-tool="cross"] .guc-letter {
  cursor: pointer;
}

.guc-letter.guc-letter-x::after {
  content: '×';
  position: absolute;
  left: 50%;
  bottom: -0.78em;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: var(--guc-select-accent);
  pointer-events: none;
}

.guc-word.guc-mark-wave {
  display: inline-block;
  vertical-align: baseline;
  text-decoration: none;
  padding-bottom: 8px;
  overflow: visible;
}

.guc-word.guc-mark-wave::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 6px;
  overflow: visible;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 4 Q2.5 2 5 4 T10 4' fill='none' stroke='%23a93226' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: left center;
  background-size: 10px 6px;
  pointer-events: none;
}

.guc-word.guc-word-has-x.guc-mark-wave {
  padding-bottom: calc(0.65em + 8px);
}

.guc-word.guc-mark-slash::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 1.15em;
  background: var(--guc-select-accent);
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(34deg);
  pointer-events: none;
}

.guc-word.guc-mark-box {
  border: 2px solid var(--guc-select-accent);
  border-radius: 4px;
  padding: 0 3px;
}

.guc-word.guc-mark-check::before {
  content: '✓';
  position: absolute;
  left: -4px;
  top: -10px;
  color: var(--guc-select-accent);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

.guc-word.guc-mark-circle {
  border: 2px solid var(--guc-select-accent);
  border-radius: 50%;
  padding: 0 4px;
}

.guc-word.guc-mark-memo {
  background: var(--guc-note-accent-pale);
  border-bottom: 2px dotted var(--guc-note-accent);
}

.guc-lyric-line {
  position: relative;
  overflow: visible;
}

.guc-lyrics-block {
  position: relative;
  color: var(--guc-muted);
}

.guc-lyrics-block.guc-lyrics-slash-mode {
  cursor: crosshair;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.guc-lyrics-slash-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

.guc-lyrics-slash-layer .guc-lyrics-slash-stroke,
.guc-lyrics-slash-layer .guc-lyrics-slash-preview {
  stroke: #222222;
  stroke-width: 1.25px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.guc-lyrics-slash-layer .guc-lyrics-slash-preview {
  stroke-opacity: 0.55;
}

.guc-lo-action-heading {
  list-style: none;
  font-weight: 600;
  color: var(--guc-text);
  margin-bottom: 4px;
}

.guc-lo-nested-wrap {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.guc-action-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guc-action-item {
  margin-bottom: 4px;
}

.guc-lo-sample {
  list-style: none;
}

.guc-lo-sample-prompt {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--guc-text);
  line-height: 1.4;
}

.guc-lo-sample-input {
  width: 100%;
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid var(--guc-border);
  border-radius: 6px;
  background: #fff;
}

.guc-lo-sample-input:focus {
  outline: 2px solid var(--guc-clover-green);
  outline-offset: 1px;
}

.guc-lo-item-body {
  flex: 1;
  min-width: 0;
}

.guc-lo-item-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.guc-component-lo-list .guc-lo-item-head input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--guc-form-accent);
}

.guc-component-lo-list .guc-lo-item-head .guc-lo-text {
  flex: 1;
  min-width: 0;
}

.guc-component-lo-list .guc-lo-item-body .guc-lo-reference-notes,
.guc-component-lo-list .guc-lo-item-body .guc-pronunciation-notes {
  padding-left: 22px;
}

.guc-lo-reference-notes {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 3px;
}

.guc-lo-reference-line {
  line-height: 1.35;
}

.guc-lo-reference-em {
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  color: var(--guc-text);
}

.guc-lo-reference-em-bold {
  font-style: normal;
}

.guc-pronunciation-notes {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 4px;
  padding-left: 0;
}

.guc-pronunciation-display {
  font-size: 11px;
  line-height: 1.35;
  color: var(--guc-muted);
  font-family: monospace;
  white-space: nowrap;
}

.guc-component-header {
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

.guc-component-content-bar {
  padding: 10px 14px 12px;
  border-bottom: 1px solid var(--guc-border);
  background: #f6f8fa;
}

.guc-song-instr-panel {
  padding: 10px 14px 12px;
  background: #f6f8fa;
  border-bottom: 1px solid var(--guc-border);
}

.guc-song-instr-panel .guc-song-instr-heading {
  margin-bottom: 6px;
}

.guc-song-instr-panel .guc-component-instructions {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.guc-component-assessment {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--guc-border);
  background: #f6f8fa;
}

.guc-component-assessment .guc-component-review {
  padding: 0;
  border-top: 0;
  margin-top: 0;
  background: transparent;
}

.guc-lyrics-block {
  padding: 8px 0 2px;
  border-top: 1px solid var(--guc-border);
}

.guc-lyrics-block .guc-lyric-line:first-of-type {
  padding-top: 2px;
}

.guc-component-instructions {
  margin: 0 0 10px;
  padding-left: 0;
  list-style: none;
  font-size: 11px;
  line-height: 1.35;
  color: var(--guc-text);
}

.guc-component-instructions li {
  margin-bottom: 4px;
}

.guc-component-instructions li:last-child {
  margin-bottom: 0;
}

.guc-component-heading {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--guc-clover-green-dark);
  line-height: 1.3;
}

.guc-content-mode {
  margin-top: 2px;
}

.guc-content-mode-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.guc-content-mode-legend {
  margin: 0 0 6px;
  padding: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--guc-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guc-content-mode-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--guc-text);
  cursor: pointer;
}

.guc-content-mode-item:last-child {
  margin-bottom: 0;
}

.guc-content-mode-item input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--guc-form-accent);
}

.guc-content-mode-item:has(input:checked) {
  font-weight: 600;
}

.guc-content-mode-item:has(input:checked) span {
  color: var(--guc-form-accent-text);
}

.guc-comment-prompt {
  margin: 8px 0 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--guc-text);
  line-height: 1.25;
}

.guc-component-review .guc-comment-prompt:first-of-type {
  margin-top: 4px;
}

.guc-component-review {
  margin-top: 4px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--guc-border);
  background: #fff;
}

.guc-component-subtitle {
  margin: 12px 0 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--guc-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guc-component-review .guc-component-subtitle:first-child {
  margin-top: 0;
}

.guc-component-lo-list.guc-lo-list {
  gap: 5px;
  margin-bottom: 4px;
}

.guc-component-lo-list .guc-lo-item:has(input[type="checkbox"]:checked) .guc-lo-text {
  color: var(--guc-form-accent-text);
  font-weight: 600;
}

.guc-component-lo-list .guc-action-item:has(input:checked) .guc-lo-text {
  color: var(--guc-form-accent-text);
  font-weight: 600;
}

.guc-component-lo-list .guc-lo-text,
.guc-component-lo-list .guc-lo-action-heading,
.guc-component-lo-list .guc-lo-sample-prompt {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 400;
}

.guc-component-lo-list .guc-lo-action-heading {
  font-weight: 600;
  padding-left: 22px;
}

.guc-component-lo-list .guc-lo-item:not(.guc-lo-action-heading):not(.guc-lo-nested-wrap):not(.guc-lo-sample) {
  display: block;
  cursor: default;
}

.guc-component-lo-list .guc-lo-item-head {
  cursor: pointer;
}

.guc-component-lo-list .guc-action-item {
  margin-bottom: 2px;
}

.guc-component-comments.guc-comments-fieldset {
  gap: 3px;
}

.guc-component-comments .guc-comment-item {
  padding: 3px 6px;
  gap: 8px;
}

.guc-component-comments .guc-comment-item input {
  accent-color: var(--guc-form-accent);
}

.guc-component-comments .guc-comment-item:has(input:checked) {
  background: transparent;
  border-color: transparent;
}

.guc-component-comments .guc-comment-item:has(input:checked) span {
  color: var(--guc-form-accent-text);
  font-weight: 600;
}

.guc-component-comments .guc-comment-item span {
  font-size: 11px;
  line-height: 1.25;
}

.guc-component-review .guc-component-subtitle + .guc-comments-fieldset,
.guc-component-review .guc-comment-prompt + .guc-comments-fieldset {
  margin-top: 2px;
}

.guc-component-lo-empty {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--guc-muted);
  font-style: italic;
}
