:root {
  --ground: #e9e9e6;
  --card: #ffffff;
  --line: #dcdcd8;
  --line2: #c4c4bf;
  --t1: #181818;
  --t2: #404040;
  --t3: #606060;
  --primary: #0e0e0e;
  --link: #1264a3;
  --ok-bg: #e8f6e4;
  --ok-fg: #14580e;
  --warn-bg: #ffecd6;
  --warn-fg: #7a3208;
  --warn-line: #c45c14;
  --bad-bg: #fde8e6;
  --bad-fg: #8a1c12;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--t1); font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif; font-size: 14px; line-height: 1.45; font-feature-settings: "ss01", "tnum", "kern"; }
button { font-family: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
textarea, input { font: inherit; color: var(--t1); }

.desk { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.deskbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.deskbar h1 { margin: 0; font-size: 15px; font-weight: 600; }
.deskbar p { margin: 0; font-size: 13px; color: var(--t2); }
.tiny-btn { height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line2); background: #fff; font-size: 13px; font-weight: 500; color: var(--t1); }

.windows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.windows.solo { grid-template-columns: minmax(0, 1fr); }
.win { background: var(--card); border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; height: 600px; box-shadow: 0 1px 2px rgb(0 0 0 / 6%); }
.windows.solo .win { height: calc(100vh - 92px); min-height: 560px; }
.win.hidden { display: none; }
.chrome { height: 40px; flex-shrink: 0; background: #f1f1ef; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.lights { display: inline-flex; gap: 6px; }
.lights span { width: 11px; height: 11px; border-radius: 6px; background: #d0d0cc; }
.url { flex: 1; min-width: 0; height: 26px; border-radius: 6px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 12px; color: var(--t2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.url b { color: var(--t1); font-weight: 600; }
.new-dot { width: 8px; height: 8px; border-radius: 4px; background: #d93a2b; flex-shrink: 0; }
.chrome-btn { height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12px; color: var(--t2); }
.body { flex: 1; min-height: 0; display: flex; }

/* Mail */
.mail { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mail-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.mail-head .who { width: 32px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.mail-head .title { font-weight: 600; }
.mail-head .sub { font-size: 12px; color: var(--t3); }
.scroll { flex: 1; min-height: 0; overflow-y: auto; }
.thread-subject { padding: 14px 16px 4px; font-size: 17px; font-weight: 600; }
.email { margin: 8px 16px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.email.mine { background: #fafaf8; }
.email-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.email-top b { font-weight: 600; }
.email-top time { font-size: 12px; color: var(--t3); flex-shrink: 0; }
.email .to { font-size: 12px; color: var(--t3); }
.email .text { white-space: pre-line; color: var(--t1); }
.email .via { font-size: 12px; color: var(--t3); display: inline-flex; align-items: center; gap: 6px; }
.attach { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 8px; padding: 8px 12px; background: #fff; font-size: 13px; color: var(--t1); text-align: left; }
.attach .doc-ico { width: 22px; height: 26px; border-radius: 3px; background: #2f6fd6; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.attach small { display: block; color: var(--t3); font-size: 12px; }
.compose { border-top: 1px solid var(--line); padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.compose label { font-size: 12px; color: var(--t3); }
.compose textarea { width: 100%; resize: vertical; min-height: 72px; max-height: 220px; border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; line-height: 1.45; }
.compose-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line2); background: #fff; font-size: 12px; color: var(--t1); }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn { height: 36px; padding: 0 16px; border-radius: 8px; border: 0; font-size: 14px; font-weight: 600; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:disabled { background: #b0b0b0; cursor: default; }
.btn-ok { background: #2ca01c; color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line2); color: var(--t1); font-weight: 500; }
.btn-send { background: #1f7a3a; color: #fff; height: 32px; border-radius: 6px; padding: 0 14px; font-size: 13px; }

/* Contract document */
.doc-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #f1f1ef; }
.doc-bar { padding: 8px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: #fff; flex-wrap: wrap; }
.doc-bar .name { font-weight: 600; flex: 1; min-width: 0; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t2); }
.paper { margin: 16px auto; width: min(640px, calc(100% - 32px)); background: #fff; border: 1px solid var(--line); padding: 36px 44px; font-family: 'IBM Plex Serif', Georgia, serif; font-size: 14px; line-height: 1.6; color: #1c1c1c; }
.paper h2 { font-family: 'IBM Plex Sans', sans-serif; font-size: 18px; text-align: center; margin: 0 0 4px; }
.paper .parties { text-align: center; color: var(--t2); margin-bottom: 20px; }
.paper h3 { font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 6px; color: var(--t2); }
.paper p { margin: 0 0 8px; }
.paper .num { font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; margin-right: 6px; }
.paper .changed { background: #f3fbf1; border-left: 3px solid #2ca01c; padding-left: 8px; margin-left: -11px; }
.paper .was { color: var(--bad-fg); text-decoration: line-through; background: var(--bad-bg); display: block; font-size: 13px; }
.paper .sign { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; }
.paper .sign div { border-top: 1px solid var(--t3); padding-top: 6px; }

/* Mission Control */
.mc { flex: 1; min-width: 0; display: flex; }
.mc-nav { width: 148px; flex-shrink: 0; border-right: 1px solid var(--line); background: #fafaf8; padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.mc-brand { font-weight: 700; font-size: 13px; padding: 2px 8px 10px; }
.mc-nav button { text-align: left; height: 32px; padding: 0 10px; border-radius: 6px; border: 0; background: transparent; font-size: 13px; color: var(--t2); display: flex; justify-content: space-between; align-items: center; }
.mc-nav button.on { background: #ebebe8; color: var(--t1); font-weight: 600; }
.count { font-family: 'IBM Plex Mono', monospace; font-size: 11px; background: var(--warn-bg); color: var(--warn-fg); border-radius: 9px; padding: 0 6px; }
.mc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mc-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); }
.mc-tabs button { height: 34px; padding: 0 12px; border: 0; background: transparent; border-bottom: 2px solid transparent; font-size: 13px; color: var(--t2); }
.mc-tabs button.on { border-bottom-color: var(--primary); color: var(--t1); font-weight: 600; }
.mc-split { flex: 1; min-height: 0; display: flex; }
.mc-list { width: 44%; min-width: 200px; border-right: 1px solid var(--line); overflow-y: auto; }
.mc-item { width: 100%; text-align: left; border: 0; border-bottom: 1px solid #ececea; background: #fff; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.mc-item.on { background: #f2f7fc; }
.mc-item .t { font-weight: 600; font-size: 13px; }
.mc-item .s { font-size: 12px; color: var(--t2); }
.mc-item .row { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.pill { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: var(--ok-bg); color: var(--ok-fg); white-space: nowrap; }
.pill.warn { background: var(--warn-bg); color: var(--warn-fg); }
.pill.bad { background: var(--bad-bg); color: var(--bad-fg); }
.pill.run { background: #e3eefa; color: #0b4c80; }
.mc-detail { flex: 1; min-width: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mc-detail h2 { margin: 0; font-size: 16px; }
.mc-detail .meta { font-size: 12px; color: var(--t3); }
.step { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.step .lbl { font-size: 12px; font-weight: 600; color: var(--t2); display: flex; justify-content: space-between; gap: 8px; }
.step .txt { font-size: 13px; white-space: pre-line; }
.step.skipped { opacity: .6; }
.add { background: var(--ok-bg); color: var(--ok-fg); border-radius: 3px; padding: 0 2px; }
.del { background: var(--bad-bg); color: var(--bad-fg); text-decoration: line-through; border-radius: 3px; padding: 0 2px; }
.actions { display: flex; gap: 8px; }
.empty { margin: 20px 16px; color: var(--t3); font-size: 13px; }
.rules { margin: 0; padding: 14px 14px 14px 32px; display: flex; flex-direction: column; gap: 8px; }
.rules li.fresh { background: var(--ok-bg); border-radius: 4px; padding: 2px 4px; }

/* Slack */
.slack { flex: 1; min-width: 0; display: flex; }
.side { width: 168px; flex-shrink: 0; background: #1f1e23; color: #d5d4da; padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.side .ws { font-weight: 700; color: #fff; padding: 0 8px 10px; }
.side .head { padding: 10px 8px 6px; color: #9c9ba2; font-size: 12px; font-weight: 600; }
.nav { text-align: left; height: 30px; padding: 0 8px; border-radius: 6px; border: 0; font-size: 13px; background: transparent; color: #d5d4da; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.nav.on { background: var(--link); color: #fff; }
.badge-red { min-width: 18px; height: 18px; border-radius: 9px; background: #d93a2b; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.pane { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.pane + .pane { border-left: 1px solid #e8e8e5; background: #fbfbfa; }
.pane-head { height: 44px; flex-shrink: 0; border-bottom: 1px solid #e8e8e5; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-weight: 700; }
.pane-head small { font-weight: 400; font-size: 12px; color: var(--t3); }
.pane-head .x { margin-left: auto; border: 0; background: transparent; font-size: 13px; color: var(--t3); }
.msg { padding: 7px 14px; display: flex; gap: 10px; }
.msg.hl { background: #f2f7fc; }
.msg.root { background: #f4f4f2; }
.av { width: 34px; height: 34px; flex-shrink: 0; border-radius: 6px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.av.me { background: var(--link); }
.mwho { display: flex; gap: 8px; align-items: baseline; }
.mwho b { font-weight: 700; }
.mwho .app { font-size: 10px; font-weight: 600; color: var(--t2); background: #e8e8e5; border-radius: 3px; padding: 0 4px; }
.mwho time { font-size: 12px; color: var(--t3); }
.line { white-space: pre-wrap; overflow-wrap: anywhere; }
.mention { background: #e3eefa; color: #0b4c80; border-radius: 3px; padding: 0 2px; }
.link { color: var(--link); text-decoration: underline; }
.replies { align-self: flex-start; margin-top: 4px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--link); font-size: 12px; font-weight: 600; }
.typing { padding: 4px 14px 8px; font-size: 12px; color: var(--t3); font-style: italic; }
.s-compose { padding: 10px 12px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
.s-box { border: 1px solid var(--line2); border-radius: 8px; background: #fff; display: flex; flex-direction: column; }
.s-box:focus-within { border-color: var(--link); }
.s-box textarea { border: 0; resize: none; padding: 8px 10px; min-height: 64px; background: transparent; outline: none; }
.s-tools { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 4px 6px 6px; }
.s-tools .mention-btn { border: 0; background: transparent; color: var(--t2); font-size: 13px; font-weight: 600; height: 28px; padding: 0 6px; border-radius: 4px; }
.try { display: flex; flex-wrap: wrap; gap: 6px; }
.try button { max-width: 100%; text-align: left; border: 1px dashed var(--line2); background: #fff; border-radius: 6px; padding: 4px 8px; font-size: 12px; color: var(--t2); }

@media (max-width: 1100px) {
  .windows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .desk { padding: 8px; }
  .win { height: 640px; }
  .side { width: 52px; }
  .side .ws, .side .head, .nav .lbl { display: none; }
  .mc-nav { width: 64px; }
  .mc-brand { display: none; }
  .mc-split { flex-direction: column; }
  .mc-list { width: auto; max-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
  .slack .pane + .pane { display: none; }
  .slack.thread-open .pane:first-of-type { display: none; }
  .slack.thread-open .pane + .pane { display: flex; border-left: 0; }
  .paper { padding: 20px; }
}
.email-row { width: calc(100% - 32px); text-align: left; background: #fff; font-size: 13px; padding: 8px 14px; gap: 2px; }
.email-row:hover { background: #fafaf8; }
.email-row .email-top { display: flex; }
.email-row .snippet { color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.desk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabstrip { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line2); overflow-x: auto; margin-bottom: -12px; }
.tab { height: 36px; padding: 0 16px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; background: transparent; font-size: 13px; font-weight: 500; color: var(--t2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tab:hover { background: #f4f4f2; }
.tab.on { background: #fff; border-color: var(--line2); color: var(--t1); font-weight: 600; position: relative; top: 1px; }
.windows.tabbed .win { border-top-left-radius: 0; }
/* Question card, in the style of a Slack app message */
.qcard { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.qc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 15px; }
.qc-num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--t3); }
.qc-tag { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: var(--ok-bg); color: var(--ok-fg); }
.qc-tag.warn { background: var(--warn-bg); color: var(--warn-fg); }
.qc-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; font-size: 13px; }
.qc-fields > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--t3); }
.qc-answer { display: flex; flex-direction: column; gap: 2px; font-size: 13px; background: #f7f7f5; border-radius: 6px; padding: 8px 10px; }
.qc-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.qc-btn { height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line2); background: #fff; color: var(--t1); font-size: 13px; font-weight: 600; }
.qc-btn:hover { background: #f4f4f2; }
.qc-btn.primary { background: #1f7a3a; border-color: #1f7a3a; color: #fff; }
.qc-btn.primary:hover { background: #18622f; }
.qc-btn.danger { color: #a3271b; border-color: #e3b5b0; }
.qc-btn.danger:hover { background: var(--bad-bg); }
.qc-custom { display: flex; flex-direction: column; gap: 6px; }
.qc-custom label { font-size: 12px; color: var(--t3); }
.qc-custom textarea { border: 1px solid var(--line2); border-radius: 6px; padding: 8px 10px; resize: vertical; min-height: 64px; }
.qc-status { font-size: 13px; color: var(--t2); border-top: 1px solid #ececea; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qc-status.ok { color: var(--ok-fg); }
.qc-undo { border: 0; background: transparent; color: var(--link); font-size: 13px; padding: 0; text-decoration: underline; }
@media (max-width: 700px) { .qc-fields { grid-template-columns: minmax(0, 1fr); } }
.qc-note { font-size: 12px; color: var(--t3); }
.s-box textarea { min-height: 44px; }

/* Povio Dashboard */
.dash { flex: 1; min-width: 0; display: flex; }
.dash-nav { width: 148px; flex-shrink: 0; border-right: 1px solid var(--line); background: #fafaf8; padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.dash-nav button { text-align: left; height: 32px; padding: 0 10px; border-radius: 6px; border: 0; background: transparent; font-size: 13px; color: var(--t2); }
.dash-nav button.on { background: #ebebe8; color: var(--t1); font-weight: 600; }
.dash-main { flex: 1; min-width: 0; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dash-head h2 { margin: 0; font-size: 18px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dash-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dash-card h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--t3); }
.dash-card p { margin: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--t3); }
.field input, .fees input { height: 32px; border: 1px solid var(--line2); border-radius: 6px; padding: 0 8px; font-size: 14px; background: #fff; }
.field input:disabled, .fees input:disabled { background: #f4f4f2; color: var(--t2); }
.fees { width: 100%; border-collapse: collapse; font-size: 13px; }
.fees caption { text-align: left; font-size: 12px; color: var(--t3); padding-bottom: 4px; }
.fees th { text-align: left; font-weight: 600; color: var(--t2); border-bottom: 1px solid var(--line); padding: 4px 6px; }
.fees td { border-bottom: 1px solid #ececea; padding: 4px 6px; }
.fees input { width: 84px; height: 28px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.muted { color: var(--t3); }
.small { font-size: 12px; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.new { font-size: 10px; font-weight: 700; background: #fff; color: #0061fe; border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.activity { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; max-height: 150px; overflow-y: auto; }
.activity time { color: var(--t3); font-size: 12px; margin-right: 8px; font-family: 'IBM Plex Mono', monospace; }
.pill.purple, .qc-tag.purple { background: #efe7fb; color: #5a2c99; }
.pill.grey { background: #ececea; color: var(--t2); }
.qc-tag.blue { background: #e3eefa; color: #0b4c80; }

/* Contract views: portal, Google Doc, Dropbox Sign */
.doc-ico.portal { background: var(--primary); }
.doc-ico.gdoc { background: #2f6fd6; }
.doc-ico.ds { background: #0061fe; font-size: 9px; }
.doc-ico.pdf { background: #b3261e; font-size: 9px; }
.gdoc-ico { display: inline-flex; width: 18px; height: 22px; border-radius: 3px; background: #2f6fd6; color: #fff; font-size: 11px; font-weight: 700; align-items: center; justify-content: center; margin-right: 6px; vertical-align: middle; }
.banner { margin: 16px auto 0; width: min(640px, calc(100% - 32px)); background: #fff8e8; border: 1px solid #f0d9a8; border-radius: 8px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; font-size: 13px; }
.banner.ok { background: var(--ok-bg); border-color: #b9e0b0; color: var(--ok-fg); }
.btn-sign { background: #0061fe; color: #fff; }
.btn-sign:disabled { background: #9db9f5; cursor: default; }
.doc-hint { margin: 12px auto 0; width: min(640px, calc(100% - 32px)); font-size: 12px; color: var(--t3); }
.sign-bar { padding: 8px 12px; display: flex; align-items: center; gap: 12px; background: #0b1f44; color: #fff; }
.sign-bar span { flex: 1; min-width: 0; font-size: 13px; color: #c9d6f2; }
.sign-box { margin: 0 auto 24px; width: min(640px, calc(100% - 32px)); background: #fff; border: 2px solid #0061fe; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sign-box > label:first-child { font-size: 12px; color: var(--t3); }
.sign-box input[type=text], .sign-box input:not([type]) { height: 40px; border: 1px solid var(--line2); border-radius: 6px; padding: 0 10px; font-family: 'IBM Plex Serif', serif; font-size: 20px; font-style: italic; }
.sign-box .btn { align-self: flex-start; }
.paper .fees { margin-bottom: 8px; font-family: 'IBM Plex Sans', sans-serif; }
.paper .sig { display: block; font-family: 'IBM Plex Serif', serif; font-style: italic; font-size: 20px; color: #1c3d8c; min-height: 28px; }
.paper .sig.empty { color: var(--t3); font-size: 13px; font-style: normal; border: 1px dashed var(--line2); border-radius: 4px; padding: 4px 8px; display: inline-block; min-height: 0; margin-bottom: 4px; }
@media (max-width: 900px) { .dash-grid, .fields { grid-template-columns: minmax(0, 1fr); } .dash-nav { display: none; } }

/* Contract preview card in a Slack thread */
.ccard { gap: 8px; }
.cc-head { display: flex; gap: 10px; align-items: center; }
.cc-head .doc-ico { width: 26px; height: 32px; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cc-changes { margin: 2px 0 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.cc-preview { max-height: 380px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; background: #f1f1ef; }
.cc-preview .paper { margin: 0; width: auto; border: 0; padding: 18px 20px; font-size: 13px; }
.qc-btn.sign { background: #0061fe; border-color: #0061fe; color: #fff; }
.qc-btn.sign:hover { background: #0050d4; }

.dash-grid.single { grid-template-columns: minmax(0, 1fr); }

/* A case waiting for approval */
.win.attention { border-color: var(--warn-line); box-shadow: 0 0 0 3px rgb(196 92 20 / 25%); }
.win.attention .chrome { background: #fff3e6; }
.tab .count { margin-left: 2px; }
.toast { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 24px rgb(0 0 0 / 18%); }
.toast.enter { animation: toast-in .25s ease-out; }
.toast-ico { width: 34px; height: 34px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-body { display: flex; flex-direction: column; font-size: 13px; min-width: 0; }
.toast-body span { color: var(--t2); }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .toast.enter { animation: none; } }

.toast-top { display: flex; align-items: center; gap: 12px; }
.toast-top .toast-body { flex: 1; }
.toast-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toast-list button { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: #fffaf4; padding: 6px 10px; display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.toast-list button:hover { background: #fff3e6; }
.toast-list span { color: var(--t2); font-size: 12px; }
.readonly { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--t3); background: #fafaf8; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 10px; width: min(400px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto; }
.toast.warn { border-color: var(--warn-line); }
.toast-x { width: 28px; height: 28px; border: 0; background: transparent; font-size: 18px; color: var(--t3); border-radius: 6px; align-self: flex-start; }
.toast-x:hover { background: #f4f4f2; }
.toast-open { align-self: flex-end; }
.toast-ico.app-dash { background: #0e0e0e; }
.toast-ico.app-client { background: #7a4fb3; }
.toast-ico.app-slack { background: #1f1e23; }
.toast-ico.app-mc { background: #c45c14; }
