/* The client desk on Home (lib/clientdesk.js draws it): the dashboard's own look, from ../app/app/globals.css.
   From 1280px a phone overlaps its right edge. Under 1100px the menu runs along the top. On phones (760px and
   under) the desk takes the dashboard's phone layout, with the menu at its foot.
   All four pages share one grid cell, so switching between them never changes the height. */
.cd-sec { background: #ffe252; border-top: 1px solid var(--ink); }
.cd-sec .kick, .cd-sec .sec-dek { color: #2b2823; }
.cd-sec .sec-h mark { color: #fff; background: linear-gradient(transparent 12%, var(--ink) 12%, var(--ink) 94%, transparent 94%); padding: 0 .12em; }

.cd { --cd-line: #e8e3d8; --cd-mute: #625f59; --cd-3: #faf8f3; --cd-hl: #fff0a3;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; font: 400 14px/1.45 var(--sans); font-variant-numeric: tabular-nums; }
.cd p, .cd dl, .cd dd, .cd ul, .cd ol, .cd h3, .cd h4 { margin: 0; padding: 0; list-style: none; }
.cd h3, .cd h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; }
.cd button, .cd select { font: inherit; color: inherit; }
.cd button { cursor: pointer; }
.cd i { font-style: normal; }
.cd small { font-size: 12.5px; color: var(--cd-mute); }
.cd mark { background: linear-gradient(transparent 12%, #ffe252 12%, #ffe252 92%, transparent 92%); padding: 0 .12em; }
.cd .kick { font-size: 11.5px; letter-spacing: .07em; color: var(--cd-mute); }
.cd .k-i { width: 1.25em; height: 1.25em; vertical-align: -.25em; }
.cd :focus-visible { outline-offset: 2px; }

/* ---------- the window and its menu ---------- */
.cd-win { position: relative; display: grid; grid-template-columns: 216px minmax(0, 1fr); min-width: 0; background: var(--paper); border: 1px solid var(--ink); border-radius: 5px; overflow: hidden;
  box-shadow: 0 1px 1px rgba(60, 48, 0, .12), 0 10px 22px rgba(60, 48, 0, .14), 0 40px 80px rgba(60, 48, 0, .24); }
.cd-rail { display: flex; flex-direction: column; min-width: 0; padding: 22px 0 22px 16px; background: var(--paper-2); box-shadow: inset -1px 0 0 var(--rule); }
.cd-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.cd-brand .k-mark { width: 24px; height: 24px; color: var(--ink); }
.cd-brand b { font: 500 17px/1 var(--serif); letter-spacing: -.015em; white-space: nowrap; }
.cd-for { margin: 0 16px 16px 0; padding: 11px 13px 12px; background: var(--sheet); border: 1px solid var(--cd-line); border-top: 3px solid var(--ink); box-shadow: var(--shadow-sm); }
.cd-for b { display: block; margin: 4px 0 3px; font: 500 18px/1.2 var(--serif); }
.cd-for small { display: block; line-height: 1.4; }
.cd-tabs { display: grid; gap: 1px; }
.cd-tabs button { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 14px; border: 1px solid transparent; border-right: 0; border-radius: 5px 0 0 5px; background: none; color: var(--body); font-weight: 500; text-align: left; }
.cd-tabs em { margin-left: auto; font: 400 12.5px var(--mono); color: var(--cd-mute); }
.cd-tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, .5); }
.cd-tabs [aria-selected="true"], .cd-tabs [aria-selected="true"]:hover { color: var(--ink); background: var(--paper); border-color: var(--rule); font-weight: 600; box-shadow: inset 4px 0 0 #ffe252; }
.cd-also { margin: auto 16px 0 0 !important; padding-top: 18px !important; font-size: 13px; color: var(--body); }
.cd-also .kick { margin-bottom: 6px; padding-top: 14px; border-top: 1px solid var(--rule); }
.cd-page { display: grid; min-width: 0; padding: 26px 30px 30px; container-type: inline-size; }
.cd-view { grid-area: 1 / 1; min-width: 0; visibility: hidden; }
.cd-view.on { visibility: visible; }
.cd-head { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--ink); }
.cd-head h3 { margin-top: 5px; font-size: 34px; line-height: 1.08; letter-spacing: -.025em; }
.cd-head p:last-child { margin-top: 5px; color: var(--body); }
.cd-toast { position: absolute; z-index: 3; left: calc(50% + 108px); bottom: 22px; translate: -50% 10px; padding: 10px 16px !important; border-radius: 4px; background: var(--ink); color: #fff; font-weight: 500; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .18s, translate .18s, visibility .18s; pointer-events: none; }
.cd-toast.on { translate: -50% 0; opacity: 1; visibility: visible; }

/* ---------- what the pages share ---------- */
.cd-sheet { min-width: 0; background: var(--sheet); border: 1px solid var(--cd-line); border-radius: 4px; box-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(40, 32, 18, .05); }
.cd-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 16px; padding: 12px 0 8px; border-bottom: 1px solid var(--ink); }
.cd-sh h4 { font-size: 19px; line-height: 1.2; }
.cd-sh span { font-size: 12.5px; color: var(--cd-mute); text-align: right; }
.cd-rank { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border: 1.5px solid var(--ink); border-radius: 15px; background: var(--sheet); font-weight: 600; line-height: 1; }
.cd-rk { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cd-rk small { font-size: 12px; line-height: 1.2; white-space: nowrap; }
.cd-star { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: none; }
.cd-star:hover { background: rgba(20, 20, 20, .06); }
.cd-star .k-i { width: 17px; height: 17px; }
.cd-star[aria-pressed="true"] .k-i { fill: #ffe252; }
.cd-prop { display: flex; gap: 11px; align-items: flex-start; min-width: 0; }
.cd-prop > div { min-width: 0; flex: 1; }
.cd-use { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid var(--rule); border-radius: 5px; background: var(--sheet); color: var(--body); }
.cd-use .k-i { width: 18px; height: 18px; }
.cd-name { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.cd-name b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
button.cd-name:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cd-bar { height: 9px; margin-top: 5px; border-radius: 1px; background: #c9c3b6; }
.cd-why { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.cd-why li { line-height: 1.4; }
.cd-why i, .cd-src i { margin-left: 4px; font: 400 12.5px var(--mono); color: var(--cd-mute); white-space: nowrap; }
.cd-band { font: 500 15px/1.3 var(--serif); letter-spacing: -.01em; }
.cd-none { padding: 18px 16px !important; color: var(--cd-mute); }
.cd-stage { position: relative; display: inline-flex; max-width: 100%; }
.cd-stage select { appearance: none; max-width: 100%; min-height: 30px; margin: 0; padding: 3px 28px 3px 10px; border: 1px solid #aaa397; border-radius: 4px; background: var(--sheet); font-size: 13px; font-weight: 500; text-overflow: ellipsis; cursor: pointer; }
.cd-stage select:hover { border-color: var(--ink); }
.cd-stage .k-i { position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; translate: 0 -50%; pointer-events: none; }
.cd-stage option { background: #fff; color: #141414; }
.cd-stage[data-stage="new"] select { border-style: dashed; background: transparent; color: var(--cd-mute); }
.cd-stage[data-stage="contacted"] select, .cd-stage[data-stage="meeting"] select { background: #e6ecf4; border-color: #9fb4cf; color: #2f4f7a; }
.cd-stage[data-stage="pitching"] select { background: var(--cd-hl); border-color: #cdb53a; color: var(--ink); }
.cd-stage[data-stage="won"] { color: #fff; }
.cd-stage[data-stage="won"] select { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- this week ---------- */
.cd-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px !important; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--sheet); }
.cd-figs > div { min-width: 0; padding: 11px 16px 12px; border-left: 1px solid var(--cd-line); }
.cd-figs > div:first-child { border-left: 0; }
.cd-figs dt { font-size: 12.5px; color: var(--cd-mute); }
.cd-figs dd { font-size: 12.5px; line-height: 1.35; color: var(--body); }
.cd-figs dt + dd { font: 500 30px/1.15 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.cd-figs .cd-hot dt + dd { color: var(--stamp); }
.cd-two { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cd-side { display: grid; gap: 16px; min-width: 0; }
.cd-start > li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; padding: 13px 16px 13px 12px; border-bottom: 1px solid var(--cd-line); }
.cd-start > li:last-child, .cd-list > li:last-child { border-bottom: 0; }
.cd-start .cd-why { margin-top: 9px; }
.cd-start [data-on="true"], .cd-list [data-on="true"] { box-shadow: inset 4px 0 0 #ffe252; }
.cd-worth { text-align: right; }
.cd-worth b { display: block; margin-top: 1px; max-width: 5.6em; font: 500 17px/1.2 var(--serif); letter-spacing: -.01em; }
.cd-due, .cd-log { padding: 4px 16px 6px !important; }
.cd-due li, .cd-log li { padding: 9px 0; border-bottom: 1px solid var(--cd-line); }
.cd-due li:last-child, .cd-log li:last-child { border-bottom: 0; }
.cd-due b, .cd-due span, .cd-log span, .cd-log small { display: block; }
.cd-due b, .cd-log b { font-weight: 600; }
.cd-due span, .cd-log span { color: var(--body); line-height: 1.4; }
.cd-log b { color: var(--ink); }
.cd-due small { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 3px; color: var(--ink); font-weight: 500; }
.cd-due em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 400; }
.cd-due em .k-i { width: 13px; height: 13px; }
.cd-due .cd-now { color: var(--stamp); font-weight: 600; }

/* ---------- leads ---------- */
.cd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cd-chips button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet); font-weight: 500; }
.cd-chips button:hover { border-color: var(--ink); }
.cd-chips [aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 -3px 0 #ffe252; }
.cd-chips .k-i { width: 15px; height: 15px; }
.cd-lh, .cd-list > li { display: grid; grid-template-columns: 64px minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(0, .78fr) minmax(128px, .95fr); gap: 12px; align-items: center; padding: 8px 16px 8px 12px; border-bottom: 1px solid var(--cd-line); }
.cd-lh { padding-top: 10px; padding-bottom: 8px; border-bottom-color: var(--ink); font-size: 12.5px; font-weight: 600; }
.cd-list .cd-rk { flex-direction: row; gap: 4px; }
.cd-list .cd-why { gap: 1px; font-size: 13.5px; }
.cd-work { display: grid; gap: 2px; justify-items: start; min-width: 0; }
.cd-work small { line-height: 1.3; }
.cd-rest { display: none; }
@container (max-width: 700px) {                                             /* a narrow page: no type icons, tighter columns */
  .cd-list .cd-use { display: none; }
  .cd-lh, .cd-list > li { grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, .9fr) minmax(118px, 1fr); gap: 10px; }
}

/* ---------- pipeline ---------- */
.cd-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: stretch; min-height: 440px; }
.cd-col { min-width: 0; padding: 0 8px 10px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; }
.cd-col.cd-over { background: var(--cd-hl); box-shadow: inset 0 0 0 2px var(--ink); }
.cd-col h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 10px 1px 7px; margin-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 17px; }
.cd-col h4 span { font: 400 12.5px var(--mono); letter-spacing: 0; color: var(--body); }
.cd-col .cd-none { padding: 8px 2px !important; font-size: 13px; }
.cd-card { display: grid; gap: 9px; margin-bottom: 8px; padding: 9px; background: var(--sheet); border: 1px solid var(--cd-line); border-top: 2px solid var(--ink); border-radius: 3px; box-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(40, 32, 18, .05); }
.cd-card[draggable="true"] { cursor: grab; }
.cd-card.cd-held { opacity: .4; }
.cd-card[data-on="true"] { box-shadow: inset 4px 0 0 #ffe252; }
.cd-card .cd-rk { flex-direction: row; justify-content: space-between; }
.cd-card .cd-use { display: none; }
.cd-card dl { display: grid; gap: 3px; padding-top: 8px !important; border-top: 1px solid var(--cd-line); font-size: 13px; line-height: 1.35; }
.cd-card dl > div { gap: 5px; }
.cd-card dt { font-size: 12px; color: var(--cd-mute); }
.cd-card .cd-stage, .cd-card select { width: 100%; }
.cd-card select { padding: 3px 22px 3px 8px; font-size: 12.5px; }
.cd-card .cd-stage .k-i { right: 6px; }

/* ---------- proof ---------- */
.cd-pf { padding: 18px 20px 14px; }
.cd-verdict { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.cd-verdict p { max-width: 54ch; font-size: 15px; color: var(--body); }
.cd-verdict b { font-weight: 600; color: var(--ink); }
.cd-stamp { flex: none; padding: 6px 12px 5px; border: 3px double var(--stamp); border-radius: 5px; color: var(--stamp); font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: .09em; text-transform: uppercase; rotate: -4deg; }
.cd-pf table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cd-pf th { padding: 11px 12px 8px 0; text-align: left; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
.cd-pf tbody th { width: 92px; padding: 12px 12px 12px 0; font-size: 14px; vertical-align: top; border-color: var(--cd-line); }
.cd-pf thead th:first-child { width: 92px; }
.cd-pf td { padding: 10px 18px 10px 0; vertical-align: top; border-bottom: 1px solid var(--cd-line); }
.cd-pf td b { display: block; font: 500 21px/1.1 var(--serif); letter-spacing: -.015em; }
.cd-pf td small { display: block; }
.cd-rg { position: relative; display: block; height: 20px; background: linear-gradient(var(--rule), var(--rule)) 0 50% / 100% 1px no-repeat; }
.cd-rg i, .cd-rg s, .cd-rg u { position: absolute; top: 50%; }
.cd-rg i { height: 2px; margin-top: -1px; background: var(--ink); }
.cd-rg s { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border: 2px solid var(--ink); border-radius: 50%; background: var(--ink); }
.cd-rg.cd-open s { background: var(--sheet); }
.cd-rg u { top: 1px; bottom: 1px; width: 1.5px; margin-left: -.75px; background: var(--stamp); }
.cd-key { display: flex; align-items: baseline; gap: 8px; margin-top: 12px !important; font-size: 12.5px; color: var(--cd-mute); }
.cd-key .cd-rg { flex: none; width: 2px; height: 13px; background: none; }
.cd-led { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; margin: 14px 0 18px; padding: 14px 20px; }
.cd-led > .k-i { width: 30px; height: 30px; margin-top: 2px; }
.cd-led b { display: block; font: 500 18px/1.25 var(--serif); }
.cd-led span { color: var(--body); }
.cd-led code { display: block; margin-top: 4px; font: 400 12.5px/1.5 var(--mono); overflow-wrap: anywhere; }

/* ---------- the phone ---------- */
.cd-phone { display: none; }
.cd-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: 22px !important; max-width: 76ch; font-size: 14px; color: #2b2823; }
.cd-note .k-i { margin-top: .12em; }
.cd-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 36px; margin: 44px 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.cd-points li { padding-top: 18px; font-size: 15px; line-height: 1.5; color: #2b2823; }
.cd-points b { display: block; margin-bottom: 4px; font: 500 21px/1.2 var(--serif); letter-spacing: -.012em; color: var(--ink); }

@media (min-width: 1280px) {
  .cd { grid-template-columns: minmax(0, 1fr) 300px; }
  .cd-win { margin-right: -58px; }
  .cd-page { padding-right: 88px; }                                          /* clear of the phone */
  .cd-toast { left: calc(50% + 80px); }
  .cd-phone { display: block; position: relative; z-index: 2; margin: 64px 0 0; padding: 9px; border-radius: 40px; background: #141310; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #4a463d, 0 18px 34px rgba(60, 48, 0, .28), 0 50px 90px rgba(60, 48, 0, .34); }
  .cd-screen { overflow: hidden; height: 640px; border-radius: 32px; background: var(--paper); }
  .cd-note { grid-column: 1; max-width: 70ch; }
}
.cd-ph-top { display: flex; align-items: center; gap: 11px; height: 60px; padding: 4px 18px 0; border-bottom: 1px solid var(--ink); }
.cd-ph-top .k-mark { width: 25px; height: 25px; color: var(--ink); }
.cd-ph-top b { display: block; font: 500 16px/1.2 var(--serif); }
.cd-ph-top span { display: block; font-size: 12px; line-height: 1.3; color: var(--cd-mute); }
.cd-ph-in { display: grid; gap: 13px; padding: 14px; }
.cd-ph-in > .cd-rk { flex-direction: row; gap: 9px; }
.cd-ph-in > .cd-rk small { margin-right: auto; font-size: 13px; }
.cd-ph-in h3 { display: flex; align-items: center; gap: 11px; font-size: 27px; line-height: 1.1; letter-spacing: -.02em; }
.cd-ph-dl { display: grid; gap: 8px; padding: 11px 0 12px !important; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.cd-ph-dl > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; align-items: center; }
.cd-ph-dl dt { font-size: 13px; color: var(--cd-mute); }
.cd-ph-dl dd { font-weight: 500; }
.cd-ph-dl .cd-bar { margin: 0; }
.cd-phone .cd-sh { margin: 0 13px; padding: 9px 0 7px; }
.cd-phone .cd-sh h4 { font-size: 17px; white-space: nowrap; }
.cd-src { padding: 2px 13px 4px !important; }
.cd-src li { padding: 7px 0; border-bottom: 1px solid var(--cd-line); }
.cd-src li:last-child { border-bottom: 0; }
.cd-src small { display: block; line-height: 1.35; }
.cd-ph-work { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: center; padding: 11px 13px 12px; }
.cd-ph-work p { line-height: 1.3; font-size: 13px; }
.cd-ph-work p small { display: block; }

/* ---------- under 1100px: the menu runs along the top ---------- */
@media (max-width: 1099px) {
  .cd-win { grid-template-columns: minmax(0, 1fr); }
  .cd-rail { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 20px; align-items: center; padding: 14px 24px 0; box-shadow: inset 0 -1px 0 var(--rule); }
  .cd-brand { margin: 0; }
  .cd-for { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
  .cd-for .kick { display: none; }
  .cd-for b { margin: 0; }
  .cd-also { display: none; }
  .cd-tabs { grid-column: 1 / -1; display: flex; gap: 2px; margin-top: 12px; }
  .cd-tabs button { min-height: 44px; border: 1px solid transparent; border-bottom: 0; border-radius: 5px 5px 0 0; }
  .cd-tabs em { margin-left: 2px; }
  .cd-tabs [aria-selected="true"], .cd-tabs [aria-selected="true"]:hover { border-color: var(--rule); box-shadow: inset 0 4px 0 #ffe252; }
  .cd-toast { left: 50%; }
  .cd-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 36px; }
}
@media (max-width: 960px) {
  .cd-page { padding: 24px 22px 26px; }
  .cd-cols { gap: 7px; }
  .cd-col { padding: 0 6px 8px; }
  .cd-col h4 { font-size: 15px; }
  .cd-card { padding: 8px 7px; }
}
