/* Comms scene (wf-comms.js): the Clips tab, the Quote Sheet editor and the
   exported page. Values follow pro/quote_sheet/static/quote-sheet.css and the
   Branded layout in pro/quote_sheet/exporter.py; shared replica pieces live
   in workflow.css. */
.wf-comms .ov-rec{ left: calc(var(--x) + 2px); max-width: 92%; }
.wf-comms .da-sp .s-mod{ color: var(--da-purple); }
.wf-comms .da-sp .n{ opacity: 0; }
.wf-comms:not([data-step="1"]) .da-sp .n{ opacity: 1; }
.wf-comms:not([data-step="1"]) .da-sp .g{ opacity: 0; }
.wf-comms .da-rows{ height: 150px; }

/* Clips tab (the Clip Library bar itself is in workflow.css) */
.da-cl-r{ display: flex; align-items: center; gap: 5px; }
.qs-trigger{ font-size: 10px; font-weight: 500; color: var(--da-accent); border: 1px solid var(--da-accent); border-radius: 7px; padding: 4px 9px; white-space: nowrap; }
.da-cc-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.da-cc{ position: relative; background: var(--da-card); border: 1px solid var(--da-border); border-radius: 8px; padding: 7px 8px 8px; min-width: 0; }
.da-cc-h{ display: flex; align-items: center; gap: 6px; min-width: 0; }
.da-cc-h .da-play{ width: 18px; height: 18px; }
.da-cc-h .da-play::after{ left: 7px; top: 5px; border-left-width: 6px; border-top-width: 4px; border-bottom-width: 4px; }
.da-cc-h b{ font-size: 9.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.da-cc > .da-tc{ display: block; font-size: 8px; margin: 3px 0 4px 24px; }
.da-cc .wave{ height: 16px; margin: 0 52px 0 0; }
.qs-tag{ position: absolute; right: 7px; bottom: 7px; font-size: 8.5px; font-weight: 500; color: var(--da-text2); border: 1px solid var(--da-border2); border-radius: 999px; padding: 1px 7px; }
.qs-tag.on{ color: #0a0a0c; background: var(--da-accent); border-color: var(--da-accent); }

/* Quote Sheet editor (a modal over the project, as in the app) */
.da-modal{
  position: absolute; left: 0; right: 0; top: 38px; bottom: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.58);
  opacity: 0; transition: opacity .5s ease;
}
.da-modal.is-on{ opacity: 1; }
.qs-card{
  position: relative; width: 90%; max-height: 92%; display: flex; flex-direction: column;
  background: var(--da-card); border: 1px solid var(--da-border); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55); overflow: hidden;
}
.qs-h{ display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 11px 14px 9px; border-bottom: 1px solid var(--da-border); flex: none; }
.qs-title{ font-size: 13px; font-weight: 600; margin-bottom: 2px !important; }
.qs-meta{ font-size: 9px; color: var(--da-text2); }
.qs-editmeta{ margin-left: 4px; font-size: 8px; color: var(--da-text2); border: 1px solid var(--da-border2); border-radius: 5px; padding: 0 5px; white-space: nowrap; }
.qs-body{ flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 4px 14px 8px; align-content: start; }
.qs-sec{ font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--da-muted); margin: 6px 0 2px !important; }
.qs-spk{ margin: 6px 0 9px; padding: 6px 9px 7px; background: rgba(255,255,255,.015); border: 1px solid var(--da-border); border-left: 3px solid var(--da-accent); border-radius: 8px; }
.qs-name{ font-size: 10.5px; font-weight: 700; margin-bottom: 3px !important; }
.qs-q{ display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 3px 7px; align-items: start; padding: 5px 0; border-top: 1px dashed var(--da-border); transition: opacity .4s ease; }
.qs-q:first-of-type{ border-top: 0; padding-top: 1px; }
.qs-drag{ color: var(--da-muted); font-size: 10px; line-height: 1.2; padding-top: 1px; }
.qs-inc{ width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--da-border2); margin-top: 2px; position: relative; transition: background-color .3s ease, border-color .3s ease; }
.qs-inc.on{ background: var(--da-accent); border-color: var(--da-accent); }
.qs-inc.on::after{ content: ""; position: absolute; left: 3px; top: 0.5px; width: 2.5px; height: 5.5px; border: solid #0a0a0c; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.qs-topic{ font-size: 9.5px; font-style: italic; color: var(--da-text); }
.qs-text{ font-size: 9.5px; line-height: 1.5; color: var(--da-text); }
.qs-raw{ display: none; margin-top: 4px !important; padding: 5px 7px; border-radius: 6px; background: var(--da-input); border: 1px solid var(--da-border); font-size: 9px; line-height: 1.5; color: var(--da-text2); }
.qs-tcrow{ display: none; justify-content: space-between; align-items: center; gap: 6px; margin-top: 3px !important; font-size: 8px; color: var(--da-muted); }
.qs-rawbtn{ color: var(--da-text2); border: 1px solid var(--da-border2); border-radius: 5px; padding: 0 5px; }
.qs-i{ display: flex; align-items: baseline; gap: 5px; font-size: 9.5px; font-style: italic; padding: 3px 0; border-top: 1px dashed var(--da-border); }
.qs-i:first-of-type{ border-top: 0; }
.qs-i span{ font-style: normal; font-family: var(--da-mono); font-size: 8.5px; color: var(--da-text2); white-space: nowrap; }
.qs-i em{ margin-left: auto; font-style: normal; font-size: 8px; color: var(--da-text2); border: 1px solid var(--da-border2); border-radius: 5px; padding: 0 5px; }
.qs-foot{ display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--da-border); flex: none; }
.qs-sum{ font-size: 8.5px; color: var(--da-text2); }
.qs-acts{ display: flex; gap: 4px; }
.qs-acts > span{ font-size: 8.5px; padding: 4px 7px; }
.qs-vmenu{
  position: absolute; right: 0; bottom: calc(100% + 6px); padding: 6px 8px; min-width: 150px; font-size: 9px; color: var(--da-text2);
  background: var(--da-bg2); border: 1px solid var(--da-border2); border-radius: 8px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease .2s, transform .45s ease .2s;
}
.qs-vmenu p{ padding: 2px 0; }
.qs-vmenu b{ color: var(--da-text); font-weight: 600; }
.qs-vmenu .h{ color: var(--da-text); font-weight: 600; }
.qs-foot{ flex-wrap: wrap; row-gap: 6px; }
.qs-acts{ margin-left: auto; }
.qs-acts > .qs-verwrap{ position: relative; padding: 0; }
.qs-verwrap .qs-ver{ font-size: 8.5px; padding: 4px 7px; }
.wf-comms:not([data-step="5"]) .qs-verwrap{ display: none; }

/* step 06: review — raw transcript open, a quote left out, versions */
.wf-comms[data-step="5"] .qs-raw{ display: block; }
.wf-comms[data-step="5"] .qs-tcrow{ display: flex; }
.wf-comms[data-step="5"] .qs-x{ opacity: .45; }
.wf-comms[data-step="5"] .qs-x .qs-inc{ background: transparent; border-color: var(--da-border2); }
.wf-comms[data-step="5"] .qs-x .qs-inc::after{ display: none; }
.wf-comms[data-step="5"] .qs-vmenu{ opacity: 1; transform: none; }
.wf-comms[data-step="5"] .qs-ver{ border-color: var(--da-accent); color: var(--da-accent); }

/* step 07: the Branded page */
.da-pagewrap{
  position: absolute; left: 0; right: 0; top: 38px; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  background: rgba(10,10,12,.88); opacity: 0; transition: opacity .5s ease;
}
.da-pagewrap.is-on{ opacity: 1; }
.pg-files{ display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; padding: 0 12px; }
.pg-files .da-chip{ background: var(--da-bg2); }
.pg{
  width: min(66%, 380px); aspect-ratio: 8.5 / 11; max-height: 84%; overflow: hidden;
  background: #fbfaf7; color: #1c1c20; border-radius: 3px; padding: 5.5% 7% 4%;
  font-family: Helvetica, Arial, sans-serif; font-size: 7.5px; line-height: 1.45;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.2);
  transform: rotate(-1.2deg) translateY(10px); transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.da-pagewrap.is-on .pg{ transform: rotate(-1.2deg); }
.pg hr{ border: 0; border-top: 0.75px solid #c9c7c0; margin: 6px 0; }
.pg-title{ font-size: 12px; font-weight: 700; line-height: 1.2; }
.pg-meta{ font-size: 7px; color: #6b6a66; margin-top: 2px !important; }
.pg-sec{ font-size: 7.5px; font-weight: 700; color: #1c1c20; margin-bottom: 3px !important; }
.pg-spk{ font-weight: 700; font-size: 8px; margin-top: 4px !important; }
.pg-on{ font-style: italic; margin-top: 2px !important; }
.pg-q{ margin-bottom: 2px !important; }
.pg-i{ font-style: italic; color: #34343a; }
.pg-i.more{ font-style: normal; color: #8a8984; }
.pg-dist{ font-weight: 700; font-size: 6.5px; letter-spacing: .06em; }
.pg-contact, .pg-foot{ font-size: 6.5px; color: #6b6a66; }

@media (max-width: 880px){
  .wf-comms .ov-rec{ font-size: 8.5px; letter-spacing: .1em; }
  .wf-comms .da-rows{ height: 118px; }
  .wf-comms .da-rows .da-para:nth-child(n+3){ display: none; }
  .wf-comms .da-labels .da-sw:nth-child(n+4), .wf-comms .da-labels .r{ display: none; }
  .da-cl-r .da-chip, .da-cl-r .da-btn2{ display: none; }
  .da-cc-grid{ gap: 5px; }
  .da-cc .wave{ margin-right: 0; }
  .qs-tag{ position: static; display: inline-block; margin-top: 5px; }
  .qs-card{ width: 94%; max-height: 94%; }
  .qs-acts > span:nth-child(-n+2){ display: none; }
  .qs-vmenu{ display: none; }
  .qs-acts > span:nth-child(n+4){ display: none; }
  .qs-spk:nth-of-type(n+3), .qs-body .qs-i:nth-of-type(n+4){ display: none; }
  .pg{ width: 80%; }
  .pg-files .da-chip:not(:first-child){ display: none; }
  .wf-comms .da-cc .da-tc{ display: none; }
  .wf-comms .da-cc:has(.qs-tag:not(.on)){ display: none; }
  .wf-comms .da-rows .da-pt{ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* step 01: the drop zone lights up while the recording is dragged in */
.wf-comms[data-step="0"] .da-drop{ border-color: var(--da-accent); background: rgba(74,158,255,.08); transition: border-color .4s ease, background-color .4s ease; }
.wf-comms .da-dragfile{ right: 22px; top: 92px; }
@media (max-width: 880px){ .wf-comms .da-dragfile{ right: 12px; top: 72px; } }
