/* DIE2HARD Studio 1.23 — the page of an item, the bell, the client-room conversation.
   The thread, the composer and the sheet are in conversation.css (shared with the client space); this file is what is only in the Studio. */

/* ---- a row of the project: the arrow carries the number of messages */
#workspace .p2-edit.cvs-open{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:auto;min-width:44px;padding:0 4px 0 8px;border-radius:22px}
#workspace .cvs-count{display:inline-flex;align-items:center;gap:3px;height:24px;padding:0 8px;border-radius:12px;background:var(--p2-line-2,#e9e3d9);color:var(--p2-soft,#3d3a35);font:700 12.5px/1 var(--p2-sans,Inter,system-ui,sans-serif)}
#workspace .cvs-count svg{flex:none}

/* ---- the page of an item (inside the shared sheet) */
dialog.cvs-page .cv-sheet-top{display:grid;gap:14px}
dialog.cvs-page .cv-sheet-title h2{font-size:24px}
.cvs-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.cvs-f{display:grid;gap:6px;margin:0;font-size:13px;font-weight:650;color:var(--cv-soft);text-transform:none;letter-spacing:normal}
.cvs-f select,.cvs-f input{display:block;width:100%;min-height:44px;margin:0;padding:0 12px;border:1px solid var(--cv-line);border-radius:12px;background:var(--cv-surface);color:var(--cv-ink);font:inherit;font-size:16px;font-weight:500;line-height:1.2}
.cvs-f select{padding-right:30px}
.cvs-f select:focus,.cvs-f input:focus{outline:2px solid var(--cv-accent);outline-offset:1px;border-color:transparent}
.cvs-late{display:inline-block;margin-left:4px;padding:0 7px;border-radius:999px;background:rgba(180,65,46,.12);color:var(--cv-bad);font-size:12px;font-weight:700;font-style:normal;line-height:1.6}
.cvs-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.cvs-flag{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;border:1px solid var(--cv-tint-line);background:var(--cv-tint);color:var(--cv-ink-accent);font-size:13px;font-weight:650}
.cvs-note{margin:0;padding:10px 12px;border-radius:12px;background:var(--cv-tint);border:1px solid var(--cv-tint-line);color:var(--cv-ink);font-size:14px;line-height:1.45}
.cvs-facts{display:grid;gap:0;margin:0;border:1px solid var(--cv-line);border-radius:14px;background:var(--cv-surface);overflow:hidden}
.cvs-facts>div{display:grid;grid-template-columns:minmax(96px,32%) minmax(0,1fr);gap:10px;align-items:baseline;padding:10px 14px;border-bottom:1px solid var(--cv-line2)}
.cvs-facts>div:last-child{border-bottom:0}
.cvs-facts dt{margin:0;font-size:13px;font-weight:650;color:var(--cv-muted)}
.cvs-facts dd{margin:0;font-size:15px;color:var(--cv-ink);overflow-wrap:anywhere}
.cvs-facts dd a{color:var(--cv-ink-accent);font-weight:650;text-underline-offset:2px}
.cvs-block{padding:12px 14px;border:1px solid var(--cv-line);border-radius:14px;background:var(--cv-surface)}
.cvs-block h3{margin:0 0 4px;font-family:var(--cv-sans);font-size:13px;font-weight:650;color:var(--cv-muted);text-transform:none;letter-spacing:normal}
.cvs-long{font-size:15.5px;line-height:1.55;color:var(--cv-ink);white-space:pre-wrap;overflow-wrap:anywhere}
.cvs-long a{color:var(--cv-ink-accent);font-weight:600;text-underline-offset:2px}
.cvs-thumb{border-radius:14px;overflow:hidden;border:1px solid var(--cv-line);background:var(--cv-surface2);max-height:300px}
.cvs-thumb img{display:block;width:100%;max-height:300px;object-fit:cover}
dialog.cvs-page .cv-sheet-top.is-saving{opacity:.6;pointer-events:none;transition:opacity .15s}
.cvs-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 6px;font-size:14.5px;color:var(--cv-soft)}
.cvs-facts-wrap{display:grid;gap:10px}
.cvs-facts-wrap a.cv-btn{text-decoration:none}

/* the status chips of the Studio, inside the sheet too (they live under #workspace on the pages) */
.cv-sheet .p2-pill{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;font-size:12.5px;font-weight:650;background:var(--cv-surface2);color:var(--cv-soft);white-space:nowrap;margin-right:4px;border:1px solid var(--cv-line)}
.cv-sheet .p2-pill.is-blocked,.cv-sheet .p2-pill.is-changes_requested{background:#f6dcd5;color:var(--cv-bad)}
.cv-sheet .p2-pill.is-in_progress,.cv-sheet .p2-pill.is-in_review,.cv-sheet .p2-pill.is-ready{background:#fde3d3;color:var(--cv-ink-accent)}
.cv-sheet .p2-pill.is-approved,.cv-sheet .p2-pill.is-published,.cv-sheet .p2-pill.is-done{background:#dcebd9;color:var(--cv-good)}

/* ---- the bell */
body.d19 .topbar .cvs-bell,.cvs-bell{position:relative;display:inline-grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:none;color:var(--paper,#f2ede6);cursor:pointer;flex:none}
.cvs-bell:hover{background:rgba(255,255,255,.1)}
.cvs-bell:focus-visible{outline:2px solid var(--orange,#f26522);outline-offset:2px}
.cvs-badge{position:absolute;top:0;right:-2px;min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:9px;background:#f26522;color:#161513;font:700 11px/18px var(--sans,system-ui,sans-serif);text-align:center;box-shadow:0 0 0 2px #101010}
.cvs-badge[hidden]{display:none}

/* on a phone the top bar has room for four buttons: the bell takes the place of the "?" (Help is under More, as the tour says) */
@media (max-width:650px),(pointer:coarse) and (max-height:500px) and (max-width:1000px){
  body.has-bell .topbar #d19HelpBtn{display:none!important}
}

/* ---- the client room: the conversation buttons */
#workspace .v115-room .cvs-conv-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 6px;border:0;background:none;color:var(--p2-soft,#3d3a35);font:650 13.5px var(--p2-sans,Inter,system-ui,sans-serif);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#workspace .v115-room .cvs-conv-btn b{font-weight:700;color:var(--p2-orange-ink,#a8400a);text-decoration:none}
#workspace .v115-room .cvs-attach{display:block;margin-top:3px;font-size:12.5px;color:var(--p2-muted,#716a60)}
#workspace .v115-room .cvs-open-room{margin-top:8px}
