/* Library, Sign, Contracts and My desk front pages (portal rethink stage 13; library.js,
   CONFIG.LIBRARY_NEW and MYDESK_NEW). Every rule is scoped under .lb, except the ones that
   set the classic screen aside while a front page draws (.lb-takes). Black for decisions,
   red only for what waits on the person and for what is late, the yellow whisper on the
   one primary button (New document). */
.view.lb-takes > :not(.lb) { display: none !important; }
/* desk2 and the iPhone pages set their own page to block with high specificity; these win */
html #view-esign.view.lb-takes.lb-takes.lb-takes > :not(.lb), html #view-bkdesk.view.lb-takes.lb-takes.lb-takes > :not(.lb), html #view-library.view.lb-takes.lb-takes.lb-takes > :not(.lb) { display: none !important; }
html #view-esign.view.lb-takes.lb-takes > #lb-sign:not([hidden]), html #view-bkdesk.view.lb-takes.lb-takes > #lb-desk:not([hidden]), html #view-library.view.lb-takes.lb-takes > #lb-library:not([hidden]) { display: block !important; }
.lb[hidden] { display: none !important; }
.lb { --lb-ink: #111; --lb-ink2: #3A3A36; --lb-line: #E3E3DC; --lb-line2: #EFEFE9; --lb-mute: #73736D; --lb-col: #EBEBE4; --lb-red: #D6362B; --lb-y: #F5C500; --lb-ph: #ECECE5;
  color: var(--lb-ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
:where(.lb) button, :where(.lb) input, :where(.lb) select { font: inherit; color: inherit; }
.lb-wrap, .lb-page { padding: 4px 0 40px; }
.lb .lb-mute { color: var(--lb-mute); font-size: 13.5px; }
.lb .is-red { color: var(--lb-red); }
.lb .lb-strong { font-weight: 650; }
.lb .lb-status { color: var(--lb-mute); font-size: 15px; margin: 18px 0; }
.lb .lb-pad { padding: 14px 24px; margin: 0; }
.lb .lb-pad2 { padding: 0 24px 10px; margin: 0; }
.lb .lb-gap { margin-top: 20px; }
.lb .lb-note { font-size: 12.5px; margin: 8px 0 0; }
.lb .lb-aside { font-size: 13px; color: var(--lb-mute); margin: 12px 4px 0; line-height: 1.45; }
.lb .lb-center { text-align: center; }
.lb-grow { flex: 1; }
.lb .lb-link { padding: 0; border: 0; background: none; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; color: var(--lb-ink); text-decoration: none; }
.lb .lb-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border: 1px solid var(--lb-line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--lb-ink); }
.lb-btn:hover { background: #FAFAF7; }
.lb-btn[disabled] { opacity: .4; cursor: default; }
.lb-btn.is-k { background: var(--lb-ink); border-color: var(--lb-ink); color: #fff; }
.lb-btn.is-y { background: var(--lb-y); border-color: var(--lb-y); color: #111; }
.lb-btn.is-soft { background: var(--lb-col); border-color: transparent; }
.lb-btn.is-sm { height: 34px; padding: 0 13px; font-size: 13.5px; }
.lb-mask { letter-spacing: .12em; color: var(--lb-ink2); }

.lb-crumbs { display: flex; align-items: center; gap: 8px; color: var(--lb-mute); font-size: 15px; margin: 0 0 16px; min-height: 38px; }
.lb-crumbs > button { border: 0; background: none; padding: 0; color: var(--lb-mute); cursor: pointer; font-size: 15px; }
.lb-crumbs b { color: var(--lb-ink); font-size: 17px; font-weight: 650; }
.lb-crumbs .lb-btn + .lb-link, .lb-crumbs .lb-btn + .lb-btn { margin-left: 6px; }
.lb-crumbs .lb-link { margin-left: 16px; }
.lb .lb-big { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0; max-width: 980px; }
.lb .lb-sub { color: var(--lb-mute); font-size: 15px; margin: 6px 0 0; }
.lb .lb-h2 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.lb .lb-h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.lb-card { background: #fff; border: 1px solid var(--lb-line); border-radius: 14px; padding: 20px 24px; }
.lb-card.lb-tbl { padding: 0; overflow: hidden; }
.lb-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.lb-ch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lb-chpad { padding: 20px 24px 8px; }
.lb-foot { display: flex; justify-content: space-between; gap: 12px; color: var(--lb-mute); font-size: 13px; margin: 0; padding: 14px 24px; border-top: 1px solid var(--lb-line2); }
.lb-row { display: grid; gap: 16px; align-items: center; padding: 15px 24px; border: 0; border-left: 3px solid transparent; background: none; width: 100%; text-align: left; font-size: 14.5px; }
.lb-row + .lb-row { border-top: 1px solid var(--lb-line2); }
button.lb-row { cursor: pointer; }
button.lb-row:hover { background: #FAFAF7; }
.lb-row.is-you { border-left-color: var(--lb-red); }
.lb-row.is-grey { border-left-color: #C9C9C2; }
.lb-row.is-h { padding-top: 6px; padding-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--lb-mute); }
.lb-row b { font-weight: 650; }
.lb .lb-r { text-align: right; justify-self: end; }
.lb-stack { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lb-acts { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }

/* search */
.lb-search { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--lb-line); border-radius: 14px; padding: 0 22px; height: 60px; color: var(--lb-mute); }
.lb-search input { flex: 1; border: 0; outline: 0; background: none; font-size: 17px; color: var(--lb-ink); min-width: 0; }
.lb-search.is-sm { height: 42px; border-radius: 11px; padding: 0 14px; gap: 10px; width: 300px; }
.lb-search.is-sm input { font-size: 14.5px; }
.lb-res { grid-template-columns: minmax(0, 1fr) auto; }

/* library home */
.lb-secs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.lb-secs.lb-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lb-secs.lb-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lb-sec { display: flex; flex-direction: column; }
.lb .lb-secsub { margin: 4px 0 0; min-height: 36px; }
.lb .lb-count { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 14px 0 0; font-variant-numeric: tabular-nums; }
.lb .lb-unit { margin: 0 0 10px; }
.lb-secrows { display: flex; flex-direction: column; flex: 1; }
.lb-secrow { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--lb-line2); background: none; padding: 10px 0; font-size: 14.5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-secrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.lb-more { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 12px 0 0; font-weight: 650; font-size: 14.5px; cursor: pointer; align-self: flex-start; }
.lb-week { grid-template-columns: minmax(0, 1fr) 170px 200px; padding-top: 17px; padding-bottom: 17px; }
.lb-week b, .lb-res b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tidy { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 14px 24px; font-size: 14.5px; }
.lb-tidy + .lb-tidy, .lb-tidylist + .lb-tidy { border-top: 1px solid var(--lb-line2); }
.lb-tidylist { padding: 0 24px 12px; }

/* a guide */
.lb-art { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.lb-read { padding: 34px 40px 40px; }
.lb .lb-title { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0; }
.lb .lb-meta { margin: 6px 0 0; }
.lb .lb-lede { font-size: 16px; line-height: 1.5; margin: 18px 0 0; max-width: 760px; }
.lb-preview { margin-top: 20px; border-radius: 12px; overflow: hidden; background: var(--lb-ph); height: 560px; }
.lb-preview iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--lb-ph); }
.lb .lb-openrow { margin: 14px 0 0; }
.lb-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lb-heads { display: flex; margin-top: 10px; }
.lb-head { width: 26px; height: 26px; border-radius: 50%; background: var(--lb-ph); color: #73736D; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; margin-left: -6px; }
.lb-head:first-child { margin-left: 0; }

/* builds */
.lb-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--lb-col); }
.lb-seg button { height: 34px; padding: 0 16px; border: 0; border-radius: 8px; background: none; color: var(--lb-mute); font-size: 14.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.lb-seg button.is-on { background: #fff; color: var(--lb-ink); font-weight: 600; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08); }
.lb-bbar { display: flex; align-items: center; gap: 16px; margin: 20px 0 16px; }
.lb-brow + .lb-brow { border-top: 1px solid var(--lb-line2); }
.lb-brow.is-open { background: #FAFAF7; }
.lb-bmain { display: grid; grid-template-columns: minmax(0, 1fr) 230px 150px; gap: 18px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 16px 24px; cursor: pointer; font-size: 14.5px; }
.lb-bmain .lb-stack .lb-mute { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-bmore { padding: 0 24px 18px; }
.lb-kvs { display: flex; gap: 36px; flex-wrap: wrap; }
.lb-kvs > div { display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.lb-kvs b { font-weight: 500; }
.lb-bacts { display: flex; gap: 12px; align-items: center; margin-top: 14px; }

/* sign */
.lb-wait { grid-template-columns: minmax(0, 1fr) auto; padding-top: 16px; padding-bottom: 16px; }
.lb-out { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) 64px 64px auto; }
/* the classic screen's own toolbar (Envelopes / Templates / Drafts) belongs to the classic page */
html.lb-on #d2-tbslot { visibility: hidden; }
.lb-out .lb-btn { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.lb-signed { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 70px auto; }
.lb-tpl { grid-template-columns: minmax(0, 1fr) auto; padding-top: 11px; padding-bottom: 11px; }
.lb-v-sign .lb-grid { grid-template-columns: minmax(0, 1fr) 330px; }

/* the phone sign screen (p-sign) */
.lb-wrap.is-phone { padding: 6px 2px 120px; }
.lb-pback { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font-size: 19px; font-weight: 650; cursor: pointer; margin: 4px 0 12px; }
.lb .lb-ptitle { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 750; margin: 0 0 6px; }
.lb-pdoc { background: #fff; border: 1px solid var(--lb-line); border-radius: 16px; padding: 22px 20px; margin-top: 16px; }
.lb-psig + .lb-psig { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--lb-line2); }
.lb-psig .lb-mute { margin: 0; }
.lb-phere { border: 1.5px dashed #8A8A84; background: #FFF9E0; border-radius: 10px; padding: 18px 16px; font-weight: 650; font-size: 17px; }
.lb .lb-pread { display: block; margin: 18px auto 0; font-size: 16px; }
.lb .lb-pnote { margin: 14px 2px 0; line-height: 1.45; }
.lb-btn.lb-pbig { width: 100%; height: 54px; border-radius: 14px; font-size: 17px; margin-top: 14px; }

/* contracts (inside Clients) */
.lb-ctrpage .lb-page { padding-top: 0; }
.lb-ctr { grid-template-columns: minmax(0, 1.2fr) 100px 108px 74px minmax(0, 1.5fr) 236px; padding-top: 14px; padding-bottom: 14px; }
.lb-what { font-size: 14px; line-height: 1.4; }
.lb-ctr .lb-stack .lb-mute { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-ctr .lb-acts { gap: 14px; }
.lb-cup { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 12px 0; font-size: 14.5px; }
.lb-cup + .lb-cup { border-top: 1px solid var(--lb-line2); }
.lb-ctrpage .lb-grid { grid-template-columns: minmax(0, 1fr) 270px; }
.lb-ctrpage .lb-card.lb-tbl .lb-row { padding-left: 20px; padding-right: 20px; gap: 14px; }

/* my desk */
.lb-dtop { display: flex; align-items: flex-start; gap: 14px; }
.lb-dtop .lb-btn, .lb-dtop .lb-select, .lb-dtop .lb-link, .lb-dtop > .lb-strong { margin-top: 4px; }
.lb-dtop .lb-link { margin-top: 14px; }
.lb-dtop > .lb-strong { margin-top: 12px; }
.lb-select { height: 38px; border: 1px solid var(--lb-line); border-radius: 10px; background: #fff; padding: 0 12px; font-size: 14.5px; font-weight: 600; }
.lb .lb-ro { color: var(--lb-mute); font-size: 13.5px; margin: 10px 0 0; }
.lb-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 22px; align-items: start; }
.lb-dcol { background: var(--lb-col); border-radius: 14px; padding: 14px 10px 12px; min-height: 420px; display: flex; flex-direction: column; gap: 10px; }
.lb .lb-dhead { font-size: 15.5px; font-weight: 700; margin: 0 6px 2px; }
.lb .lb-dhead span { color: var(--lb-mute); font-weight: 500; margin-left: 4px; }
.lb .lb-dhead.is-red, .lb .lb-dhead.is-red span { color: var(--lb-red); }
.lb-dcard { display: flex; flex-direction: column; gap: 3px; text-align: left; background: #fff; border: 1px solid var(--lb-line); border-left: 3px solid transparent; border-radius: 11px; padding: 12px 14px; cursor: pointer; font-size: 14px; width: 100%; }
.lb-dcard.is-you { border-left-color: var(--lb-red); }
.lb-dcard.is-sel { box-shadow: 0 0 0 2px var(--lb-ink); }
.lb-dcard b { font-weight: 650; font-size: 14.5px; line-height: 1.3; }
.lb-dcard .lb-mute { font-size: 13px; }
.lb-dfoot { white-space: nowrap; display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: 13px; }
.lb .lb-dempty { margin: 6px; font-size: 13px; }
.lb .lb-dnote { font-size: 12.5px; margin: 4px 6px 0; line-height: 1.45; }
.lb-dbar { display: flex; align-items: center; gap: 8px; color: var(--lb-mute); font-size: 13.5px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--lb-line); }
.lb-dback { position: fixed; inset: 0; background: rgba(17,17,17,.28); z-index: 59; border: 0; padding: 0; cursor: default; }
.lb-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 540px; background: #fff; border-left: 1px solid var(--lb-line); box-shadow: -12px 0 32px rgba(0,0,0,.08); z-index: 60; display: flex; flex-direction: column; overflow: hidden; }
.lb-phead { display: flex; align-items: flex-start; gap: 12px; padding: 24px 26px 6px; }
.lb-phead > div { flex: 1; min-width: 0; }
.lb-phead .lb-mute { margin: 4px 0 0; }
.lb-ball { font-size: 13.5px; font-weight: 650; color: var(--lb-mute); white-space: nowrap; margin-top: 4px; }
.lb-ball.is-red { color: var(--lb-red); }
.lb-x { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--lb-col); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.lb-steps { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 10px 26px 4px; padding: 0 0 14px; border-bottom: 1px solid var(--lb-line2); }
.lb-steps li { border-top: 3px solid var(--lb-line); padding-top: 7px; font-size: 12.5px; color: var(--lb-mute); line-height: 1.3; }
.lb-steps li.is-done { border-top-color: var(--lb-ink); color: var(--lb-ink2); }
.lb-steps li.is-now { border-top-color: var(--lb-ink); color: var(--lb-ink); font-weight: 650; }
.lb-steps li.is-now.is-you { border-top-color: var(--lb-red); color: var(--lb-red); }
.lb-pbody { flex: 1; overflow-y: auto; padding: 6px 26px 16px; }
.lb-kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 11px 0; font-size: 14.5px; border-bottom: 1px solid var(--lb-line2); }
.lb-pbody .lb-ch { margin-top: 18px; }
.lb-pbody .lb-h3 { margin: 0 0 6px; }
.lb-qline { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.lb-qline.is-g { font-weight: 650; padding-top: 10px; }
.lb-qline.is-total { font-weight: 700; border-top: 1px solid var(--lb-line2); margin-top: 6px; padding-top: 10px; }
.lb-dform { padding: 14px 26px 0; border-top: 1px solid var(--lb-line); display: flex; flex-direction: column; gap: 10px; }
.lb-dform:empty { display: none; }
.lb-dacts { padding: 12px 26px 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.lb-dacts .lb-mute { flex-basis: 100%; margin: 0 0 2px; font-size: 13px; line-height: 1.45; }

/* Rethink 17: the Library overview, Builds, Sign and Contracts on the phone: one column, the
   tiles stacked, tables as stacked rows, 44px targets, the classic link on its own line. */
html.tp-ios-app #view-esign > #lb-back-esign#lb-back-esign.lb-backbar:not([hidden]) { display: flex !important; padding: 2px 16px 0; }
.lb-backbar[hidden] { display: none !important; }
.lb-backbar .lb-pback { min-height: 44px; margin: 0; font-size: 17px; font-weight: 600; }
.lb-wrap.is-phone { padding: 6px 16px 120px; }
.lb-wrap.is-phone .lb-grid, .lb-wrap.is-phone .lb-v-sign .lb-grid, .lb-wrap.is-phone .lb-ctrpage .lb-grid,
.lb-v-sign .lb-wrap.is-phone .lb-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lb-wrap.is-phone .lb-secs, .lb-wrap.is-phone .lb-secs.lb-n2, .lb-wrap.is-phone .lb-secs.lb-n4 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.lb-wrap.is-phone .lb-sec { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; }
.lb-wrap.is-phone .lb-sec .lb-h2, .lb-wrap.is-phone .lb-sec .lb-secsub, .lb-wrap.is-phone .lb-sec .lb-secrows, .lb-wrap.is-phone .lb-sec .lb-more { grid-column: 1 / -1; }
.lb-wrap.is-phone .lb-sec .lb-secsub { min-height: 0; }
.lb-wrap.is-phone .lb-sec .lb-count { grid-column: 1; grid-row: 3; font-size: 26px; margin: 8px 0 0; }
.lb-wrap.is-phone .lb-sec .lb-unit { grid-column: 2; grid-row: 3; }
.lb-wrap.is-phone .lb-more, .lb-wrap.is-phone .lb-secrow { min-height: 44px; }
.lb-wrap.is-phone .lb-crumbs { flex-wrap: wrap; row-gap: 6px; }
.lb-wrap.is-phone .lb-crumbs .lb-link { margin-left: auto; }
.lb-wrap.is-phone .lb-big { font-size: 22px; }
.lb-wrap.is-phone .lb-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-left: 16px; padding-right: 16px; }
.lb-wrap.is-phone .lb-row > :first-child { flex: 1 1 100%; min-width: 0; }
.lb-wrap.is-phone .lb-row.is-h { display: none; }
.lb-wrap.is-phone .lb-acts { margin-left: auto; }
.lb-wrap.is-phone .lb-btn { min-height: 44px; }
.lb-wrap.is-phone.cb-ctr { padding: 0 0 40px; }
.lb-wrap.is-phone > .lb-ptitle { font-size: 34px; margin: 4px 0 12px; }
/* Rethink 20: the phone's Sign title and its two controls under it */
.lb-wrap.is-phone > .lb-ptools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.lb-wrap.is-phone .lb-art { display: block; }
.lb-wrap.is-phone .lb-read { padding: 22px 18px 24px; border-radius: 18px; }
.lb-wrap.is-phone .lb-read .lb-title { font-size: 26px; line-height: 1.2; }
.lb-wrap.is-phone .lb-side { margin-top: 14px; }
.lb-wrap.is-phone > .lb-pback { margin: 0 0 6px -6px; }
.lb-wrap.is-phone > .lb-pback { min-height: 44px; }
