/* Pristop OS demo: extra styles for Brief Enricher (.bf-) and Meeting Minutes (.mt-) */

/* ---------- Brief Enricher: new brief ---------- */
.bf-form { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.bf-form .step > .no { padding-top: 22px; }
.bf-form .step > .bd { padding: 20px 0 28px; }
.bf-sth { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 30px; margin-bottom: 16px; }
.bf-aside { position: sticky; top: 0; }
.bf-aside .kv { grid-template-columns: 110px minmax(0, 1fr); }
.bf-aside .kv dd { overflow-wrap: anywhere; }
.bf-aside .kv dd .mono { font-size: 12px; }
.bf-drop { cursor: pointer; padding: 46px 24px 40px; }
.bf-drop:hover { border-style: solid; }
.bf-drop .ext { cursor: pointer; }
.drop.over .soft { color: #cfcfcf; }
.bf-file { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.bf-file .mono { font-size: 14px; }
.bf-text { background: var(--wash); padding: 18px 22px; font-size: 15px; line-height: 1.5; max-height: 232px; overflow-y: auto; white-space: pre-wrap; }
.bf-text.tall { max-height: 320px; }
.bf-found { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0 0; font-size: 14.5px; }
.bf-found > span { display: flex; align-items: center; gap: 10px; }
.bf-fields { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 20px; }
.bf-picks { border-top: 1px solid var(--ink); margin-top: 14px; }
.bf-pick { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 16px; padding: 13px 12px 13px 14px; border-bottom: 1px solid var(--rule); cursor: pointer; align-items: start; box-shadow: inset 3px 0 0 transparent; }
.bf-pick:hover { background: var(--wash); }
.bf-pick .rd { width: 18px; height: 18px; border: 1px solid var(--ink); margin-top: 2px; background: var(--paper); }
.bf-pick.on { background: var(--wash); box-shadow: inset 3px 0 0 var(--ink); }
.bf-pick.on .rd { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center no-repeat; }
.bf-pick .t { font-weight: 600; font-size: 16px; }
.bf-pick small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 1px; }
.bf-pick p { font-size: 14.5px; color: var(--soft); margin-top: 6px; max-width: 760px; }
.bf-nopick { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.bf-opt p { margin: 8px 0 0 49px; max-width: 420px; }
.bf-err { display: flex; align-items: center; gap: 8px; color: var(--neg); font-size: 14px; margin-top: 12px; }
.bf-errs { margin-top: 16px; border-top: 1px solid var(--neg); padding-top: 10px; color: var(--neg); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.bf-errs > div { display: flex; gap: 8px; align-items: flex-start; }
.bf-errs svg { margin-top: 3px; }

/* ---------- Brief Enricher: progress with the three agents ---------- */
.bf-run { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 26px; }
.bf-run .big { max-width: 820px; }
.bf-ov { width: 300px; flex: none; }
.bf-ov .fig { margin-bottom: 10px; text-align: right; }
.bf-agent h3 { min-height: 24px; }
.bf-alines { margin-top: 16px; min-height: 84px; }
.bf-alines li { position: relative; padding: 4px 0 4px 20px; font-size: 14.5px; color: var(--mute); opacity: .35; transition: opacity .3s; }
.bf-alines li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border: 1px solid currentColor; }
.bf-alines li.on { opacity: 1; color: var(--ink); }
.bf-alines li.on::before { background: var(--ink); animation: pulse 1.1s ease-in-out infinite; }
.bf-alines li.done { opacity: 1; color: var(--soft); }
.bf-alines li.done::before { background: var(--soft); border-color: var(--soft); }
.bf-alines li.fail { opacity: 1; color: var(--neg); }
.bf-alines li.fail::before { background: var(--neg); border-color: var(--neg); }

/* ---------- Brief Enricher: enriched result ---------- */
.bf-kv { grid-template-columns: 150px minmax(0, 1fr); }
.bf-kv dd { font-size: 16px; padding-right: 12px; }
.bf-kv dd.gap { box-shadow: inset -3px 0 0 var(--warn); }
.bf-kv .tag svg { margin-right: -1px; }
.bf-gap { border-left: 3px solid var(--warn); padding: 2px 0 4px 16px; margin-bottom: 20px; }
.bf-gap .mono { color: var(--warn); font-weight: 500; }
.bf-gap b { font-weight: 600; font-size: 17px; }
.bf-gap p { margin-top: 5px; font-size: 15px; max-width: 620px; }
.bf-gap p.ask { color: var(--soft); }
.bf-gap p.ask .label { display: block; color: var(--mute); margin-bottom: 2px; font-size: 10.5px; }
.bf-cards { gap: 36px 28px; }
.bf-card { display: block; }
.bf-card .thumb { outline: 1px solid transparent; outline-offset: 3px; }
.bf-card:hover .thumb { outline-color: var(--ink); }
.bf-card h3 { margin-top: 6px; }
.bf-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.bf-card .mono { font-size: 12px; margin-top: 3px; }
.bf-why { font-size: 14.5px; color: var(--soft); margin-top: 10px; }
.bf-why .label { display: block; color: var(--mute); font-size: 10.5px; margin-bottom: 2px; }
.bf-kpi { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--soft); }
.bf-kpi b { font-weight: 300; font-size: 26px; line-height: 1; color: var(--ink); white-space: nowrap; }
.bf-no { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 4px; border: 1px solid var(--ink); font-family: "JBMono", monospace; font-size: 11px; font-weight: 500; flex: none; }
.bf-points li { display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--rule); }
.bf-points li:first-child { border-top: 1px solid var(--rule); }
.bf-points li > .mono { color: var(--mute); padding-top: 3px; }
.bf-points li p { font-size: 16.5px; max-width: 760px; }
.bf-base { background: var(--wash); padding: 16px 18px; }
.bf-base p { margin-top: 8px; font-size: 15px; }
.bf-srcs small.mono { font-size: 11.5px; }
.bf-srcs .click { cursor: pointer; }
.bf-rate { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--ink); }
.bf-saved { padding: 4px 0 22px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.bf-demo { margin-top: 56px; font-size: 12.5px; color: var(--mute); }
.bf-demo a { border-bottom: 1px solid var(--rule); }
.bf-demo a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Brief Enricher: chat, share, export ---------- */
.bf-ask { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ink); }
.bf-ask .in { height: 46px; font-size: 16.5px; border-color: var(--ink); }
.bf-ask .btn { height: 46px; }
.bf-sugl a { cursor: pointer; font-size: 17px; }
.msg.ai .prose li b, .bf-saved .prose li b { font-weight: 600; }
.msg.ai .srcchip, .bf-saved .srcchip { max-width: 330px; }
.bf-share label { cursor: pointer; }
.bf-share input { appearance: none; width: 18px; height: 18px; border: 1px solid var(--ink); flex: none; cursor: pointer; }
.bf-share input:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center no-repeat; }
.bf-share input:disabled { opacity: .4; }
.bf-doc { background: var(--wash); padding: 30px 38px; max-height: 54vh; overflow-y: auto; font-size: 15px; line-height: 1.45; }
.bf-doc h2 { font-size: 26px; text-transform: none; font-weight: 700; }
.bf-doc h4 { font-weight: 600; font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; margin: 24px 0 8px; padding-top: 12px; border-top: 1px solid var(--ink); }
.bf-doc p { margin-top: 8px; }
.bf-doc p.m { color: var(--mute); font-size: 13px; }
.bf-doc table th { color: var(--ink); font-size: 11px; width: 140px; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.bf-doc table td { padding: 8px 0; font-size: 15px; vertical-align: top; }
.bf-doc ol, .bf-doc ul { margin: 6px 0 0 20px; }
.bf-doc ol { list-style: decimal; }
.bf-doc ul { list-style: square; }
.bf-doc ul.s { list-style: none; margin-left: 0; font-size: 13.5px; color: var(--soft); }
.bf-doc li { margin-top: 5px; }

@media (max-width: 1500px) {
  .bf-form { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
  .bf-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bf-fields > :first-child { grid-column: 1 / -1; }
  .bf-ov { width: 220px; }
}

/* ---------- Meeting Minutes: shared ---------- */
.mt-faces { display: inline-flex; gap: 3px; }
.mt-tc { display: inline-block; font-size: 11.5px; color: var(--mute); border: 1px solid var(--rule); padding: 0 5px; margin-left: 4px; white-space: nowrap; vertical-align: 1px; }
.mt-tc:hover { color: var(--ink); border-color: var(--ink); }
/* Speaker markers: the only colour on the transcript, small and muted */
.mt-sq { display: inline-block; width: 10px; height: 10px; background: var(--mute); flex: none; }
.mt-sq.s0 { background: #4f6d8a; } .mt-sq.s1 { background: #a5694f; } .mt-sq.s2 { background: #6f8452; }
.mt-sq.s3 { background: #80608a; } .mt-sq.s4 { background: #b08a3e; } .mt-sq.s5 { background: #4d8a84; }

/* ---------- Meeting Minutes: manual record ---------- */
.mt-stage { background: var(--ink); color: var(--paper); padding: 30px 40px 36px; min-height: 548px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.mt-stage .sp { flex: 1; }
.mt-sthead { display: flex; align-items: center; gap: 12px; min-height: 24px; }
.mt-sthead .mono { color: #bdbdbd; }
.mt-sthead .spin { border-color: #444; border-top-color: var(--paper); }
.mt-dot { width: 12px; height: 12px; background: #8a8a8a; flex: none; }
.mt-dot.rec { background: #e5482d; animation: pulse 1.1s ease-in-out infinite; }
.mt-dot.warn { background: #d99a2b; }
.mt-dot.neg { background: #e5482d; }
.mt-timer { font-weight: 200; font-size: 168px; line-height: .95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mt-stage h2 { font-size: 34px; max-width: 760px; }
.mt-stage .big { max-width: 760px; color: #dcdcda; }
.mt-live { display: flex; align-items: center; gap: 3px; height: 74px; margin-top: 26px; }
.mt-live i { flex: 1; min-width: 2px; height: 3%; background: var(--paper); transition: height .12s linear; }
.mt-live.dark { height: 46px; margin-top: 0; flex: 1; max-width: 420px; }
.mt-live.dark i { background: var(--ink); }
.mt-recbtn { display: inline-flex; align-items: center; gap: 14px; height: 84px; padding: 0 40px 0 32px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: .16em; text-transform: uppercase; }
.mt-recbtn svg { color: #c4321c; }
.mt-recbtn:hover { background: #e9e9e6; }
.mt-stage .btn.inv { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.mt-stage .btn.inv:hover { background: #e9e9e6; }
.mt-stage .btn.dark { background: var(--ink); color: var(--paper); border-color: #6a6a6a; }
.mt-stage .btn.dark:hover { border-color: var(--paper); }
.mt-stage .ext { border-color: #8a8a8a; color: #dcdcda; cursor: pointer; }
.mt-stage .bar { background: #3a3a3a; }
.mt-stage .bar i { background: var(--paper); transition: none; }
.mt-meterrow { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.mt-meterrow .mono { width: 62px; text-align: right; }
.mt-meter { flex: 1; display: flex; gap: 3px; height: 18px; }
.mt-meter i { flex: 1; background: var(--rule); }
.mt-meter i.on { background: var(--ink); }
.mt-meter i.on:nth-child(n+25) { background: var(--warn); }

/* ---------- Meeting Minutes: Teams bot ---------- */
.mt-prev { margin-top: 20px; padding: 18px 20px; background: var(--wash); }
.mt-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.mt-people > span { display: flex; align-items: center; gap: 10px; font-size: 15px; min-width: 0; }
.mt-people small { display: block; color: var(--mute); font-size: 12.5px; }
.mt-phases > div { padding-bottom: 16px; }
.mt-phases > div.on { box-shadow: inset 0 3px 0 var(--ink); }
.mt-botbody { padding: 28px 0 8px; border-top: 1px solid var(--rule); }
.mt-cap { border-left: 3px solid var(--ink); padding: 2px 0 2px 16px; }
.mt-cap p { font-size: 18px; font-weight: 300; margin-top: 6px; min-height: 50px; }
.mt-cap p b { font-weight: 600; }
.mt-talk { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; opacity: 0; }
.mt-talk.on { opacity: 1; }
.mt-talk i { width: 3px; background: var(--ink); height: 40%; animation: mt-talk .7s ease-in-out infinite; }
.mt-talk i:nth-child(2) { animation-delay: .15s; } .mt-talk i:nth-child(3) { animation-delay: .3s; }
@keyframes mt-talk { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.mt-date { width: 46px; text-align: center; flex: none; line-height: 1.05; }
.mt-date b { font-weight: 300; font-size: 26px; display: block; }
.mt-date small { text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; }

/* ---------- Meeting Minutes: detail ---------- */
.mt-items { border-top: 1px solid var(--rule); }
.mt-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.mt-item .check { margin-top: 2px; gap: 0; }
.mt-item .t { font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.mt-item.done .t { text-decoration: line-through; color: var(--mute); }
.mt-item.edit { background: var(--wash); padding: 16px; box-shadow: inset 3px 0 0 var(--ink); }
.mt-item .btn.ghost { flex: none; }
.mt-audio { display: flex; align-items: center; gap: 16px; border: 1px solid var(--ink); padding: 10px 16px 10px 10px; margin-bottom: 26px; position: sticky; top: 0; z-index: 5; background: var(--paper); box-shadow: 0 -40px 0 var(--paper); }
.mt-audio .pp { width: 46px; height: 46px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; flex: none; }
.mt-audio .mono { font-size: 13.5px; min-width: 46px; }
.mt-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 46px; cursor: pointer; min-width: 0; }
.mt-wave i { flex: 1; min-width: 1px; background: #cfcfcc; }
.mt-wave i.on { background: var(--ink); }
.mt-line { display: grid; grid-template-columns: 62px 178px minmax(0, 1fr); gap: 0 14px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--rule); cursor: pointer; box-shadow: inset 3px 0 0 transparent; align-items: baseline; }
.mt-line:hover { background: var(--wash); }
.mt-line.on { background: var(--wash); box-shadow: inset 3px 0 0 var(--ink); }
.mt-line .tm { color: var(--mute); }
.mt-line.on .tm { color: var(--ink); font-weight: 600; }
.mt-line .sp { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-line p { font-size: 16.5px; line-height: 1.42; max-width: 860px; }
.mt-line mark { background: var(--ink); color: var(--paper); padding: 0 3px; }
.mt-tside { position: sticky; top: 94px; align-self: start; }
.mt-spk { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.mt-spk .t { font-weight: 600; }
.mt-spk small { display: block; color: var(--mute); font-size: 12.5px; }
.mt-spk.edit .in { flex: 1; }
.mt-mail { border: 1px solid var(--ink); }
.mt-mh { display: grid; grid-template-columns: 96px minmax(0, 1fr); background: var(--wash); padding: 8px 24px; font-size: 15px; }
.mt-mh > * { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.mt-mh > :nth-last-child(-n+2) { border-bottom: 0; }
.mt-mh dt { color: var(--mute); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding-top: 11px; }
.mt-mb { padding: 22px 28px 6px; font-size: 15.5px; line-height: 1.5; max-width: 900px; }
.mt-mb + .mt-mb { padding-top: 0; }
.mt-mb p { margin-bottom: 12px; }
.mt-mb h4 { font-weight: 600; font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; margin: 22px 0 8px; padding-top: 12px; border-top: 1px solid var(--ink); }
.mt-mb ol { list-style: decimal; margin: 0 0 12px 20px; }
.mt-mb ul { list-style: square; margin: 0 0 12px 20px; }
.mt-mb li { margin-top: 5px; }
.mt-mb table { margin-bottom: 14px; }
.mt-mb td { font-size: 15px; padding: 8px 14px 8px 0; }
.mt-mb th { padding-bottom: 6px; border-bottom-color: var(--rule); }
.mt-mb p.ft { color: var(--mute); font-size: 13px; border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 18px; }
.mt-estat .st { font-size: 15px; letter-spacing: .1em; }
.mt-estat .st i { width: 11px; height: 11px; }
.mt-rcpt { cursor: pointer; }
.mt-rcpt input { appearance: none; width: 18px; height: 18px; border: 1px solid var(--ink); flex: none; cursor: pointer; }
.mt-rcpt input:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center no-repeat; }
.mt-rcpt input:disabled { opacity: .45; }

/* ---------- Meeting Minutes: approval queue ---------- */
.mt-qlist { border-top: 1px solid var(--ink); }
.mt-q { display: grid; grid-template-columns: 330px minmax(0, 1fr) 200px; gap: 40px; padding: 24px 0 26px; border-bottom: 1px solid var(--rule); align-items: start; }
.mt-q .t { font-weight: 600; font-size: 19px; line-height: 1.2; }
.mt-q a.t:hover { text-decoration: underline; text-underline-offset: 3px; }
.mt-q small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 4px; }
.mt-q .sub { font-weight: 600; font-size: 17px; margin-top: 4px; }
.mt-q p { color: var(--soft); font-size: 15px; margin-top: 6px; max-width: 860px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mt-empty { border-top: 0; padding: 56px 0 40px; }
@media (max-width: 1500px) {
  .mt-timer { font-size: 128px; }
  .mt-q { grid-template-columns: 260px minmax(0, 1fr) 170px; gap: 28px; }
  .mt-line { grid-template-columns: 58px 150px minmax(0, 1fr); }
  .mt-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
