/* css/advanced.css: Advanced in the editor and Post Office, the confirm dialog, your own transcript, Screen + you.
   Part 8 of 10 of the app's stylesheet (app.css until Phase 3). Every page loads all the parts, in the
   order of CSS in lib/views/parts.js, so a later part still wins a tie, as further down the one file did. */
/* Phase 7a: Advanced in the editor and Post Office */
.versions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.vcard {
  border: 2px solid var(--edge);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.vcard p {
  white-space: pre-wrap;
}
.calwrap {
  overflow-x: auto;
  border: 3px solid var(--edge);
  border-radius: 14px;
  background: #fff;
}
.cal {
  display: grid;
  grid-template-columns: 100px repeat(7, minmax(120px, 1fr));
  min-width: 940px;
}
.cal .ch {
  padding: 8px;
  border-bottom: 2px solid #eee4d4;
  border-right: 1px solid #eee4d4;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.cal .head {
  background: var(--card);
  font: 800 13px var(--body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 0;
  border-bottom: 3px solid var(--edge);
}
.cal .head.today {
  background: var(--mustard);
}
.cal .plat {
  background: var(--card);
  font: 800 14px var(--body);
  border-right: 2px solid var(--edge);
  justify-content: center;
}
.cal .chip {
  font-size: 12px;
  min-height: 28px;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
}
.cal .chip b {
  font-size: 11px;
  margin-right: 4px;
}
.timesform {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px dashed var(--edge);
  border-radius: 12px;
  padding: 12px;
}
.pertimes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
dialog#moveDlg {
  border: 3px solid var(--edge);
  border-radius: 16px;
  padding: 18px;
  background: var(--card);
  box-shadow: 6px 6px 0 var(--edge);
  max-width: 92vw;
}
dialog#moveDlg::backdrop {
  background: rgba(23, 19, 15, 0.5);
}
/* the app's own "Are you sure?" (public/ui.js cpConfirm), in the same look as the other dialogs */
dialog.cpdlg {
  border: 3px solid var(--edge);
  border-radius: 16px;
  padding: 20px 22px;
  background: var(--card);
  color: var(--fg);
  box-shadow: 6px 6px 0 var(--edge);
  width: min(440px, calc(100vw - 32px));
}
dialog.cpdlg::backdrop {
  background: rgba(23, 19, 15, 0.55);
}
dialog.cpdlg .ph {
  margin: 0 0 8px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
dialog.cpdlg p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.cpdlg-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.movef {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}
.cal .chip {
  display: block;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
  padding: 4px 8px;
}

/* the customer's own transcript: on the upload page, and on an episode that failed before picking */
.trfile {
  width: 100%;
  background: #fff;
  border: 3px solid var(--edge);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.trfile[data-need="1"] {
  background: #fff6d6;
}
.trfile strong {
  display: block;
  font: 800 16px var(--body);
}
.trpick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
.trpick[hidden] {
  display: none;
}

/* any colour: the browser's colour picker, drawn as one more swatch (a rainbow ring until a custom colour is chosen) */
.swatch.pick input[type="color"] {
  position: static;
  opacity: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 3px solid var(--edge);
  border-radius: 999px;
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  cursor: pointer;
  overflow: hidden;
}
.swatch.pick input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.swatch.pick input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 999px;
}
.swatch.pick input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 999px;
}
.swatch.pick:not(.on) input[type="color"]::-webkit-color-swatch {
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red) !important;
}
.swatch.pick:not(.on) input[type="color"]::-moz-color-swatch {
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red) !important;
}
.swatch.pick.on input[type="color"] {
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 6px var(--edge);
}
.swatch.pick input[type="color"]:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

/* Screen + you: the full picture with the two boxes drawn on it */
.bxwrap {
  width: 100%;
  background: #000;
  border: 3px solid var(--edge);
  border-radius: 12px;
  overflow: hidden;
}
.bxwrap canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: crosshair;
}
.bxpick,
.bxedit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
}
.bxpick .field {
  flex: 1 1 160px;
}
.bxedit {
  background: #fff6d6;
  border: 2px solid var(--edge);
  border-radius: 12px;
  padding: 10px 12px;
}
.bxedit[hidden] {
  display: none;
}
.bxedit .field {
  flex: 1 1 200px;
}
