/* Shared workspace history presentation, including dialogs and nested records. */
.wk-history-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  margin: 24px 0;
  background: #111;
  border-radius: 18px;
}
.wk-history-tabs button {
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  padding: 12px 18px;
  background: transparent;
  color: #fff;
  font:
    500 13px/1.5 Satoshi,
    Arial,
    sans-serif;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.wk-history-tabs button[aria-current] {
  background: #f4f4f4;
  color: #111;
}
.wk-history-tabs button[aria-current]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff4d1f;
  vertical-align: middle;
}
.wk-history-panel {
  min-width: 0;
}
.wk-history-panel[hidden] {
  display: none !important;
}
.wk-history-panel > h3:first-child,
.wk-customer-history > h3:first-child {
  margin-top: 0;
}
.wk-history-publication {
  border-radius: 0;
  border: 0;
  border-left: 2px solid #ff4d1f;
  border-bottom: 1px solid #dedede;
  padding: 18px 20px;
  margin: 0;
}
.wk-history-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid #dedede;
  color: #626262;
  font-size: 12px;
}
.wk-history-pagination > div,
.wk-history-replay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wk-history-pagination button,
.wk-history-replay-actions button {
  border: 1px solid #d9d9d6;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 18px;
  background: #fff;
  color: #171717;
  font:
    500 12px/1.5 Satoshi,
    Arial,
    sans-serif;
  cursor: pointer;
}
.wk-history-pagination button:hover:not(:disabled),
.wk-history-replay-actions button:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #171717;
}
.wk-history-pagination button:disabled,
.wk-history-replay-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
:is(
    .wk-history-tabs,
    .wk-history-pagination,
    .wk-history-records,
    .wk-history-replay,
    .wk-history-disclosure
  )
  :is(button, summary, input):focus-visible {
  outline: 2px solid #b8320e;
  outline-offset: 3px;
}
.wk-history-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin: 24px 0;
}
.wk-history-toolbar .em-field {
  margin: 0;
  min-width: 0;
  flex: 1 1 260px;
}
.wk-history-toolbar button {
  min-height: 44px;
}
.wk-history-list {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.wk-history-list > li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 0 6px;
  padding: 16px 0 20px 24px;
  border-left: 1px solid #dedede;
  border-bottom: 1px solid #eeeeec;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.wk-history-list > li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ff4d1f;
  box-shadow: 0 0 0 1px #ff4d1f;
}
.wk-history-list time {
  font-size: 12px;
  color: #626262;
}
.wk-history-list strong {
  font-size: 13px;
  font-weight: 600;
  color: #171717;
}
.wk-history-list p {
  margin: 0;
}
.wk-history-records > details,
.wk-history-disclosure {
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #fff;
  color: #171717;
  min-width: 0;
}
.wk-history-records > details > summary,
.wk-history-disclosure > summary {
  cursor: pointer;
  min-height: 28px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.wk-history-records summary > span,
.wk-history-records summary > time {
  display: block;
  margin-top: 4px;
  color: #626262;
  font-size: 12px;
  font-weight: 400;
}
.wk-history-records details[open] > summary,
.wk-history-disclosure[open] > summary {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e8e8e4;
}
.wk-history-records details > h4 {
  margin: 22px 0 12px;
  font-size: 15px;
}
.wk-history-empty {
  padding: 28px 20px;
  border: 1px dashed #d5d5d2;
  border-radius: 12px;
  color: #626262;
  background: #f6f6f5;
  text-align: center;
  font-size: 13px;
}
.wk-history-replay {
  margin: 20px 0;
  min-width: 0;
}
.wk-history-replay h4 {
  margin: 0;
  font-size: 16px;
}
.wk-history-replay > p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 78ch;
}
.wk-history-replay svg {
  display: block;
  width: 100%;
  max-width: 600px;
  background: #f6f6f5;
  border: 1px solid #dedede;
  border-radius: 12px;
}
.wk-history-replay .wk-history-replay-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #626262;
}
.wk-history-replay-status strong {
  color: #171717;
}
.em-page .wk-history-replay input[type="range"] {
  appearance: auto;
  display: block;
  width: 100%;
  max-width: 600px;
  height: 32px;
  padding: 0;
  margin: 8px 0 14px;
  border: 0;
  background: transparent;
  accent-color: #b8320e;
  cursor: pointer;
}
.wk-history-replay-actions button:first-child {
  color: #fff;
  background: #171717;
  border-color: #171717;
}
.wk-history-replay-actions button:first-child:hover:not(:disabled) {
  background: #333;
}
.wk-replay-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 12px;
}
.wk-replay-toolbar > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.wk-replay-toolbar strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.wk-replay-toolbar span {
  font-size: 11px;
  color: #626262;
}
.wk-replay-toolbar button,
.wk-replay-note button {
  border: 1px solid #d9d9d6;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 16px;
  font:
    500 12px/1.5 Satoshi,
    Arial,
    sans-serif;
  color: #171717;
  background: #fff;
  cursor: pointer;
}
.wk-replay-note {
  padding: 12px 14px;
  background: #faf4ee;
  border-radius: 10px;
}
.wk-replay-window {
  width: 100%;
  max-height: 620px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #e8e8e5;
}
.wk-replay-stage {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  background: #f6f6f5;
}
.wk-replay-frame {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
  opacity: 0;
}
.wk-replay-stage.is-ready .wk-replay-frame {
  opacity: 1;
}
.wk-history-replay .wk-replay-stage > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
}
.em-page .wk-history-replay input[type="range"] {
  max-width: none;
}
.wk-replay-range {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #626262;
}
.em-page .wk-history-replay .wk-replay-range input[type="range"] {
  margin: 2px 0 8px;
}
.wk-history-replay-actions {
  align-items: center;
}
.wk-replay-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 12px;
  color: #171717;
  cursor: pointer;
}
.em-page .wk-replay-option select {
  width: auto;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #d9d9d6;
  border-radius: 8px;
  background: #fff;
  color: #171717;
  font: inherit;
}
.em-page .wk-replay-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #b8320e;
}
.wk-replay-cursor {
  fill: #111;
  stroke: #fff;
  paint-order: stroke;
}
.wk-replay-cursor.is-pressed {
  fill: #b8320e;
}
.wk-replay-rage {
  fill: #7a1fff;
  stroke: #fff;
}
.wk-replay-element {
  fill: rgba(184, 50, 14, 0.08);
  stroke: #b8320e;
  stroke-dasharray: 6 4;
}
.wk-history-replay :is(select, input[type="checkbox"]):focus-visible {
  outline: 2px solid #b8320e;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .wk-history-tabs button {
    flex: 1 1 40%;
    min-width: 0;
    padding: 12px 8px;
  }
  .wk-history-records > details,
  .wk-history-disclosure {
    padding: 14px;
  }
  .wk-history-list > li {
    padding-left: 18px;
  }
  .wk-history-toolbar {
    gap: 12px;
  }
}
