.precision-editor {
  margin-bottom: 18px;
  padding: 19px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #17130f;
  color: #fff;
}
.precision-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.precision-heading span,.precision-heading strong { display: block; }
.precision-heading > div:first-child span { color: #cabda9; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.precision-heading strong { margin-top: 3px; font-size: clamp(1.55rem,4vw,2.2rem); font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: .04em; }
.marker-key { display: flex; gap: 14px; color: #d9cdbb; font-size: .78rem; }
.marker-key span:before { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; content: ""; }
.key-start:before { background: #58b889; }.key-end:before { background: #e46a61; }
.timeline-shell { position: relative; height: 42px; margin-top: 12px; }
.timeline-markers { position: absolute; z-index: 1; inset: 10px 10px 9px; border-radius: 10px; overflow: hidden; pointer-events: none; }
.saved-range { position: absolute; top: 7px; height: 9px; border-radius: 99px; background: rgba(181,138,59,.75); }
.boundary-marker { position: absolute; z-index: 2; top: 0; width: 3px; height: 24px; border-radius: 4px; transform: translateX(-1px); }
.boundary-marker:after { position: absolute; top: -2px; left: -4px; width: 11px; height: 11px; border-radius: 50%; content: ""; background: inherit; }
.saved-boundary { top: 3px; height: 18px; opacity: .72; }
.saved-boundary:after { width: 7px; height: 7px; left: -2px; }
.start-marker { background: #58b889; }.end-marker { background: #e46a61; }
.precision-timeline { position: absolute; z-index: 3; inset: 0; width: 100%; height: 42px; margin: 0; appearance: none; background: transparent; cursor: ew-resize; }
.precision-timeline::-webkit-slider-runnable-track { height: 10px; border: 1px solid #5d5348; border-radius: 99px; background: #332c25; }
.precision-timeline::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -9px; appearance: none; border: 3px solid #fff; border-radius: 50%; background: var(--gold); box-shadow: 0 3px 14px rgba(0,0,0,.42); }
.precision-timeline::-moz-range-track { height: 10px; border: 1px solid #5d5348; border-radius: 99px; background: #332c25; }
.precision-timeline::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50%; background: var(--gold); box-shadow: 0 3px 14px rgba(0,0,0,.42); }
.timeline-ends { display: flex; justify-content: space-between; margin-top: -4px; color: #a99d8d; font-size: .75rem; font-variant-numeric: tabular-nums; }
.nudge-controls { display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; margin-top: 15px; }
.nudge-controls button { border-color: #5d5348; color: #fff; background: #2b2520; }
.nudge-controls button:hover { border-color: var(--gold); }
.precision-note { margin: 12px 0 0; color: #bcb09f; font-size: .83rem; }
.draft-portion {
  margin: 16px 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #fbf6ed, #fff);
}
.draft-portion h3 { margin: 7px 0 3px; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.start-button { border-left: 5px solid #58b889; }.end-button { border-left: 5px solid #e46a61; }
.selection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 6px;
}
.selection-heading h2 { margin: 5px 0 0; font-size: 1.35rem; }
.portions { margin: 15px 0 24px; }
.portion {
  display: grid;
  grid-template-columns: 110px minmax(210px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}
.portion > b { color: var(--wine); }
.portion > span { font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.portion-actions { display: flex; align-items: center; gap: 7px; }
.compact { min-height: 36px; padding: 7px 11px; }
.remove { color: var(--red); }
.selection-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}
.selection-details { margin-top: 26px; padding-top: 8px; border-top: 1px solid var(--line); }
.speaker-section { margin-top: 20px; }
.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.field-heading b,.field-heading small { display: block; }
.field-heading small { margin-top: 3px; color: var(--muted); }
.speaker-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
}
.speaker-row label { margin-top: 10px; }
.speaker-row button { margin-bottom: 11px; }
.submission-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 19px 20px;
  border: 1px solid rgba(111, 38, 61, .2);
  border-radius: 14px;
  background: #f8edef;
}
.submission-lock p { margin: 4px 0 0; color: var(--muted); }
.submission-lock .primary { flex: 0 0 auto; }
@media (max-width: 760px) {
  .portion { grid-template-columns: 1fr; gap: 8px; }
  .portion-actions { flex-wrap: wrap; }
  .selection-heading,.submission-lock { align-items: stretch; flex-direction: column; }
  .selection-heading button,.submission-lock button { width: 100%; }
  .nudge-controls { grid-template-columns: repeat(3,1fr); }
  .precision-heading { align-items: flex-start; flex-direction: column; }
}


