/* components.css: Shared controls used on every screen: buttons, fields, rows, chips, segmented controls, menus, toasts, empty states.
   Every colour comes from tokens.css (no literals here). Dark mode lives in tokens.css only. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; font: 400 18px/1.2 var(--sans); color: var(--ink); border: 1px solid var(--ink); border-radius: 0; background-color: var(--bg); background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-position: left center; background-size: 0% 100%; transition: background-size .38s cubic-bezier(.6,0,.2,1), color .38s; }
.btn:active { background-size: 100% 100%; color: var(--bg); }
.tier-tab { display: grid; grid-template-columns: auto minmax(0, 1fr); max-width: 520px; font-size: 14px; }
.tier-row > span:first-child { padding-right: 18px; }
.tier-row { display: contents; }
.tier-row > span { padding: 6px 0; border-bottom: 1px solid var(--bd-line); color: var(--bd-ink); font-variant-numeric: tabular-nums; }
.tier-head > span { padding-top: 0; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--bd-muted); border-bottom-color: var(--bd-line2); }
.tier-raw { margin-top: 6px; font-size: 13.5px; color: var(--bd-text); }
@media (hover: hover) {
  .btn:hover { background-size: 100% 100%; color: var(--bg); }
}
.btn.primary { background-color: var(--ink); color: var(--bg); background-image: linear-gradient(var(--bg), var(--bg)); }
.btn.primary:active { color: var(--ink); }
@media (hover: hover) {
  .btn.primary:hover { color: var(--ink); }
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.danger { color: var(--err); border-color: var(--err); background-image: linear-gradient(var(--err), var(--err)); }
.btn.danger:active { color: var(--bg); }
@media (hover: hover) {
  .btn.danger:hover { color: var(--bg); }
}
@media (hover: none) {
  .btn { transition-duration: .12s, .12s; }
}
.link, .row .n .t { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; transition: background-size .38s cubic-bezier(.6, 0, .2, 1); }
.link { background-color: transparent; border: 0; padding: 2px 0 3px; color: var(--ink); font-weight: 400; }
.link:focus-visible { background-size: 100% 1px; }
@media (hover: hover) {
  .link:hover, button.row:hover .n .t { background-size: 100% 1px; }
}
@media (hover: none) {
  .link { background-size: 100% 1px; }
}
.chip { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; color: var(--muted); }
.chip i { width: 9px; height: 9px; background: var(--bd-live); }
.cta { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; }
.cta .btn { min-width: 260px; min-height: 62px; font-size: 20px; font-weight: 500; }
.cta .alt { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 17px; min-height: 48px; }
.cta .alt .link { color: var(--white); text-decoration: underline; text-underline-offset: 5px; background-image: none; padding: 10px 4px; }
@media (max-width: 560px) {
  .cta .btn { width: 100%; }
  .cta .alt { width: 100%; justify-content: center; }
}
.evrow { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--gray-700); }
.evtxt { flex: 1; min-width: 0; }
.evlab { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-200); font-weight: 500; }
.evval { font-size: 18px; font-weight: 400; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evval.none { color: var(--gray-200); }
.evbtn { min-height: 44px; min-width: 64px; padding: 0 14px; font-size: 16px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.sec-head h2 { margin: 0; font: 300 clamp(32px, 6vw, 44px)/1.1 var(--serif); letter-spacing: -0.005em; color: var(--ink); }
.count { font-size: 14px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.list { border-top: 1px solid var(--line); margin-top: 12px; }
.swipe { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.rl { position: relative; z-index: 1; display: flex; align-items: center; background: var(--bg); touch-action: pan-y; transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.swipe.drag .rl { transition: none; }
.rowmore { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; color: var(--text); padding: 0; margin-right: -8px; -webkit-tap-highlight-color: transparent; }
.rowmore:hover, .rowmore:active, .rowmore:focus:not(:focus-visible) { background: none; border: 0; outline: none; }
.del-action { position: absolute; top: 0; right: 0; bottom: 0; width: 104px; border: 0; background: var(--del); color: var(--white); font-size: 17px; font-weight: 500; }
@media (pointer: fine) {
  .del-action { display: none; }
}
.row { display: flex; align-items: center; gap: 14px; padding: 14px 0; flex: 1 1 auto; min-width: 0; min-height: 44px; background: none; border: 0; text-align: left; color: inherit; }
button.row { cursor: pointer; font: inherit; }
button.row:focus-visible { outline-offset: -3px; }
.mk { flex: none; width: 10px; height: 10px; background: var(--ok); }
.mk.none { background: none; border: 1px dashed var(--muted); box-sizing: border-box; }
.mk.send { background: var(--muted); }
.mk.wait { background: var(--wait); }
.mk.fail { background: var(--err); }
.row .m { min-width: 0; flex: 1; }
.row .n { font-size: 20px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { color: var(--muted); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .o { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .o strong { color: var(--ink); font-weight: 600; }
.st { flex: none; font-size: 15px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.st.off { color: var(--muted); }
.st.ok { color: var(--ok); }
.st.wait { color: var(--ink); font-weight: 500; }
.st.fail { color: var(--err); font-weight: 500; }
.spin { width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: sp .7s linear infinite; }
.empty { padding: 28px 0; }
.setup { border-left: 3px solid var(--flag-line); background: var(--flag-bg); color: var(--flag-ink); padding: 14px 16px; font-size: 16px; margin-top: 8px; }
.setup code { font-family: ui-monospace, Menlo, monospace; font-size: 14.5px; }
.owner { display: flex; align-items: center; gap: 14px; border: 1px solid var(--ink); }
.owner .ob { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.owner .om { min-width: 0; }
.owner .ol { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.owner .on { font-size: 19px; font-weight: 600; color: var(--ink); }
.owner .od { font-size: 15px; color: var(--muted); }
.btn.done { background-image: none; background-color: var(--ok); border-color: var(--ok); color: var(--bg); pointer-events: none; }
.btn.done::before { content: ""; width: 6px; height: 11px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); margin-right: 4px; }
.okmark { flex: none; width: 10px; height: 10px; background: var(--ok); }
.okmark.del { background: var(--err); }
.notice { align-items: center; gap: 12px; padding: 14px 0 15px; border-bottom: 1px solid var(--line); font-size: 16.5px; color: var(--ink); max-height: 90px; overflow: hidden; }
.notice .nt { flex: 1; color: var(--text); }
.notice.enter { animation: noticeIn .32s cubic-bezier(.2, .8, .2, 1); }
.notice.out { animation: noticeOut .3s ease forwards; }
.swipe.fresh .rl { animation: freshRow 2.6s ease-out both; }
.evchip { border: 1px solid var(--ink); background: var(--bg); color: var(--ink); padding: 8px 14px; min-height: 44px; font-size: 15.5px; font-weight: 400; }
.evline { align-items: center; gap: 10px; width: min(560px, 92vw); font-size: 15px; color: var(--on-dark-text); min-height: 28px; }
.evline i { flex: none; width: 8px; height: 8px; background: var(--white); }
.evline span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip { margin: 12px 0 0; text-align: center; font-size: 14.5px; color: var(--muted); min-height: 1.5em; }
@media (min-width: 880px) {
  .tip { text-align: left; }
}
.field label { display: block; font-size: 16px; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: 400 19px/1.3 var(--sans); color: var(--ink); background: var(--field); border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0; padding: 0 16px; height: 58px; }
.field textarea { padding: 14px 16px; height: auto; min-height: 92px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--ink); padding-bottom: 0; }
.field.flag input, .field.flag textarea { background: var(--flag-bg); border-bottom-color: var(--flag-line); color: var(--flag-text); }
.note { gap: 10px; align-items: center; font-size: 15px; color: var(--flag-ink); margin-top: 2px; line-height: 1.4; }
.note svg { flex: none; }
.note .link { margin-left: auto; white-space: nowrap; color: var(--ink); min-height: 44px; padding: 0 6px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; background-image: none; }
.field.flag .note { color: var(--flag-ink); }
.chipb { border: 1px solid var(--ink); background: var(--bg); color: var(--ink); padding: 8px 14px; min-height: 44px; font-weight: 400; }
.chipb[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.dup { border: 1px solid var(--ink); padding: 18px 18px 16px; margin-bottom: 22px; }
.dup p { margin: 0 0 4px; font-size: 18px; }
.dup .s { color: var(--muted); font-size: 16px; margin: 0 0 14px; }
.seg button { flex: 1; }
.bar { position: sticky; bottom: 0; z-index: 6; margin: 30px -28px 0; padding: 14px 28px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
.bar-in { max-width: 984px; margin: 0 auto; display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; }
.bar-top { flex: 1 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar-top .own { font-size: 16px; color: var(--muted); white-space: nowrap; }
.bar-top .own strong { color: var(--ink); font-weight: 600; }
.pill { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--ink); flex: 1 1 auto; }
.pill::before { content: ""; width: 10px; height: 10px; background: var(--ok); }
.pill.warn::before { background: var(--wait); }
.bar .btn { flex: 1 1 0; min-height: 52px; padding: 0 14px; font-size: 17px; }
.bar .btn.primary { flex: 2 1 0; }
@media (min-width: 880px) {
  .bar-in { flex-wrap: nowrap; justify-content: flex-end; gap: 12px; }
  .bar-top { flex: 1 1 auto; justify-content: flex-start; gap: 24px; margin-right: auto; }
  .bar .btn, .bar .btn.primary { flex: 0 0 auto; width: auto; min-width: 220px; }
}
@media (max-width: 560px) {
  .bar { margin: 26px -22px 0; padding-left: 22px; padding-right: 22px; }
}
.rothint { align-items: center; gap: 12px; color: var(--white); font-size: 16px; padding: 8px 14px; border: 1px solid var(--glass-line); background: var(--glass-bg); max-width: min(560px, 92vw); }
.rothint svg { flex: none; animation: rot 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) {
  .rothint svg { animation: none; }
}
.cta .alt.alt-photo { flex-basis: 100%; }
@media (min-width: 561px) {
  .cta .alt.alt-photo { justify-content: flex-start; }
}
.cm-cta .btn { min-width: 220px; min-height: 62px; font-size: 20px; font-weight: 500; }
@media (max-width: 560px) {
  .cm-cta .btn { width: 100%; }
}
.cm-col { flex-direction: column; gap: 56px; min-width: 0; }
.cm-secnote { margin: 6px 0 0; color: var(--muted); }
.cm-empty { color: var(--muted); border-bottom: 1px solid var(--line); font-size: var(--t-body); padding: var(--s3) 0; }
.cm-empty .link { color: var(--ink); }
#crm .row { border-bottom: 1px solid var(--line); }
#crm .row .when { flex: none; width: 64px; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--muted); }
#crm .row .when b { display: block; color: var(--ink); font-weight: 600; font-size: 17px; }
#crm .row .n { white-space: normal; }
#crm .row .s { white-space: normal; }
.cm-flag { display: inline-flex; font-weight: 500; padding: 2px 8px; background: var(--flag-bg); border: 1px solid var(--flag-line); color: var(--flag-ink); white-space: nowrap; font-size: var(--t-cap); }
.row.overdue { background: var(--flag-bg); box-shadow: -14px 0 0 var(--flag-bg), 14px 0 0 var(--flag-bg); }
.row.overdue .s { color: var(--flag-ink); }
.row.done .n { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.row.cm-fresh { animation: freshRow 2.6s ease-out both; }
.tick { flex: none; width: 28px; height: 28px; border: 1px solid var(--ink); background: var(--bg); display: grid; place-items: center; padding: 0; }
.tick::after { content: ""; width: 6px; height: 12px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
@media (hover: hover) {
  .tick:hover::after { opacity: .3; border-color: var(--ink); }
}
.tick[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); }
.tick[aria-pressed="true"]::after { opacity: 1; border-color: var(--bg); }
.mk.pend { background: var(--wait); }
@media (max-width: 560px) {
  #crm .row .when { width: 52px; }
  .row.overdue { box-shadow: -10px 0 0 var(--flag-bg), 10px 0 0 var(--flag-bg); }
}
.cm-gauge { height: 6px; background: var(--field); position: relative; }
.cm-gauge i { position: absolute; left: 0; top: 0; bottom: 0; }
.cm-gauge.late i { background: var(--wait); }
.cm-days { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 6px; }
.cm-days b { color: var(--ink); font-weight: 600; }
.cm-quiet .btn { min-height: 44px; padding: 0 16px; font-size: 16px; }
.cm-dval { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.cm-dval b { font-weight: 600; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field { position: relative; }
.combo { position: absolute; z-index: 20; margin: 0; padding: 0; list-style: none; max-height: 264px; overflow-y: auto; }
.combo li { line-height: 1.3; cursor: pointer; color: var(--ink); }
.stagebtn { border: 1px solid var(--ink); background: var(--bg); color: var(--ink); padding: 8px 14px; min-height: 44px; font: inherit; }
.stagebtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cm-suggest .m { flex: 1; min-width: 0; }
.cm-suggest .s { white-space: normal; }
@media (min-width: 641px) {
  .btn { min-height: 46px; padding: 0 22px; font-size: 16px; }
  .cta .btn, .cm-cta .btn { min-height: 48px; min-width: 0; font-size: 16px; font-weight: 400; }
  .evlab,.owner .ol{ font-size: 11.5px; }
  .sec-head h2{ font-size: 26px; }
  .count { font-size: 12px; }
  .link { font-size: 15px; }
  .row .n { font-size: 16.5px; }
  .row .s { font-size: 14px; }
  .row .o { font-size: 13px; }
  .st { font-size: 14px; }
  #crm .row .when { font-size: 14px; }
  #crm .row .when b { font-size: 15px; }
  .cm-days { font-size: 13px; }
  .notice { font-size: 15px; }
  .field label { font-size: 14px; }
  .field input,.field textarea{ font-size: 16px; }
  .field input{ height: 48px; }
  .chipb, .stagebtn, .evchip { min-height: 40px; padding: 6px 14px; font-size: 14.5px; }
}
@media (max-width: 640px) {
  .row { padding: 11px 0; gap: 12px; }
  .row .n { line-height: 1.2; }
  .row .s{ line-height: 1.25; margin-top: 1px; }
}
.kebab { position: relative; flex: none; display: flex; align-items: center; margin-left: 12px; }
.kebab-btn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; margin-right: -10px; background: transparent; cursor: pointer; border: 0; border-radius: 50%; color: var(--muted); transition: background-color .15s ease, color .15s ease; }
.kmenu { position: absolute; z-index: 30; right: -10px; top: calc(100% - 4px); min-width: 190px; background: var(--bg); border: 1px solid var(--ink); box-shadow: var(--shadow-kmenu); display: flex; flex-direction: column; }
.kitem { padding: 12px 16px; text-align: left; font: 400 15px/1.2 var(--sans); color: var(--ink); background: transparent; border: 0; cursor: pointer; min-height: 44px; }
.kitem + .kitem { border-top: 1px solid var(--line); }
.kitem:hover, .kitem:focus-visible { background: var(--ink); color: var(--bg); outline: none; }
.kitem.danger[data-sure] { background: var(--err); color: var(--white); }
.cm-ev:hover .kebab-btn, .kebab-btn:focus-visible, .kebab-btn[aria-expanded="true"] { color: var(--ink); }
.kebab-btn:hover, .kebab-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--ink) 11%, transparent); border-color: transparent; }
.kebab-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
:where(#crm, #deals, #deal, #firm, #activity, #entry, #contacts, #firms, #import, #detail) .sec-head h2{ font-size: var(--t-h2); line-height: 1.15; }
:where(#crm, #deals, #deal, #firm, #activity, #entry, #contacts, #firms, #detail) .sec-head { margin-bottom: var(--s2); }
:where(#crm, #deals, #deal, #firm, #activity, #entry, #contacts, #firms) .count, .cm-secnote { font-size: var(--t-meta); }
:where(#crm, #deals, #deal, #firm, #activity, #entry, #contacts, #firms) .row .n{ font-size: var(--t-row); font-weight: 500; line-height: 1.3; }
:where(#crm, #deals, #deal, #firm, #activity, #entry, #contacts, #firms) .row .s{ font-size: var(--t-meta); }
#crm .mmain .st { font-size: var(--t-meta); }
.btn.cm-sugbtn { font-size: var(--t-meta); }
:where(#crm, #deal, #firm, #activity, #entry) .row.overdue { margin-left: 0; margin-right: 0; padding-left: var(--s2); padding-right: var(--s2); }
.chipb, .seg button { font-size: var(--t-meta); }
.link.danger { color: var(--err); }
.combo-mail { display: block; margin-top: 2px; font-size: var(--t-meta); color: var(--muted); }
@media (max-width: 640px) {
  #crm .mmain .st { max-width: 92px; text-align: right; line-height: 1.25; }
}
.row.overdue, .list .row.overdue { box-shadow: none; margin-left: 0; margin-right: 0; padding-left: var(--s3); padding-right: var(--s3); }
.stagebtn.pass[aria-pressed="true"] { background: var(--muted); border-color: var(--muted); }
.bd-sec > .sec-head { display: flex; justify-content: space-between; gap: 12px; margin: 0; border-bottom: 1px solid var(--bd-ink); padding: 0 0 6px; }
.bd-sec > .sec-head h2 { margin: 0; font: 400 28px/1.2 var(--serif); letter-spacing: 0; text-transform: none; font-size: 22px; color: var(--bd-text); }
.bd-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--bd-muted); letter-spacing: 0; text-transform: none; }
.bd-fold { display: grid; place-items: center; width: 24px; height: 24px; margin: -6px -6px -6px 0; padding: 0; border: 0; background: none; color: var(--bd-muted); cursor: pointer; }
.bd-fold svg { transition: transform .15s; }
.bd-sec.folded .bd-fold svg { transform: rotate(-90deg); }
.bd-sec .list { border: 0; margin: 0; }
.bd-note { margin: 10px 0 0; font-size: 13px; color: var(--bd-muted); }
.screen .seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--bd-seg); border: 0; max-width: 100%; overflow: hidden; }
.screen .seg button { height: 28px; min-height: 28px; padding: 0 12px; border: 0; background: transparent; color: var(--bd-muted); font: 500 13px var(--sans); white-space: nowrap; box-shadow: none; }
.screen .seg button[aria-checked="true"], .screen .seg button[aria-pressed="true"], .screen .seg button.on { background: var(--bd-paper); color: var(--bd-ink); box-shadow: var(--shadow-seg); }
.bd-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border: 0; border-bottom: 1px solid var(--bd-line); background: none; min-height: 0; }
.bd-row.click { cursor: pointer; }
.bd-row.click:hover .bd-n { text-decoration: underline; text-underline-offset: 3px; }
.bd-n { display: block; font-weight: 500; color: var(--bd-ink); }
.bd-s { display: block; font-size: 13px; color: var(--bd-muted); }
.bd-acts { display: flex; gap: 8px; align-items: center; }
.bd-chip { display: inline-block; font-size: 12px; line-height: 1.4; padding: 1px 7px; border: 1px solid var(--bd-line2); color: var(--bd-muted); white-space: nowrap; background: none; }
button.bd-chip { cursor: pointer; font-family: var(--sans); min-height: 0; height: auto; line-height: 1.4; border-radius: 0; }
.bd-chip.on { border-color: var(--bd-ink); color: var(--bd-ink); }
.bd-btn { height: 36px; min-height: 36px; padding: 0 14px; border: 1px solid var(--bd-line2); border-radius: 0; background: var(--bd-paper); color: var(--bd-ink); font: 500 14px var(--sans); white-space: nowrap; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; }
.bd-btn:hover { border-color: var(--bd-ink); }
a.bd-btn { text-decoration: none; }
.bd-days { font-size: 13px; color: var(--bd-navy); white-space: nowrap; }
.bd-days.late { color: var(--bd-burg); }
.bd-days.today { color: var(--bd-ink); }
.bd-empty { padding: 14px 0; border-bottom: 1px solid var(--bd-line); font-size: 14px; color: var(--bd-muted); }
#cmAgenda .bd-mrow { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; padding: 13px 0; }
#cmAgenda .bd-when { font-variant-numeric: tabular-nums; color: var(--bd-ink); font-weight: 500; }
#cmAgenda .bd-when small { display: block; font-size: 12px; font-weight: 400; color: var(--bd-muted); }
#cmCall .bd-row { grid-template-columns: 22px minmax(0, 1fr) auto; }
.bd-rank { color: var(--bd-muted); font-variant-numeric: tabular-nums; }
.bd-fu { display: flex; gap: 10px; align-items: center; min-width: 0; }
.bd-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--bd-navy); }
.bd-dot.late { background: var(--bd-burg); }
.bd-sug { background: var(--bd-rail); padding-left: 12px; padding-right: 12px; }
.bd-rail { margin: 0; padding: 0; border: 0; background: none; }
.bd-top { background: var(--bd-rail); padding: 18px 20px; margin-bottom: 28px; }
.bd-cap { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bd-muted); margin-bottom: 8px; }
.bd-ri { display: block; width: 100%; padding: 11px 0; border: 0; border-top: 1px solid var(--bd-line2); background: none; text-align: left; font: inherit; color: inherit; }
button.bd-ri { cursor: pointer; }
button.bd-ri:hover .bd-rn { text-decoration: underline; text-underline-offset: 3px; }
.bd-rh { display: flex; justify-content: space-between; gap: 10px; }
.bd-rn { font-weight: 500; color: var(--bd-ink); }
.bd-rv { font-size: 13px; color: var(--bd-muted); white-space: nowrap; }
.bd-rs { font-size: 13px; color: var(--bd-muted); display: block; }
.bd-rlink { padding-top: 10px; font-size: 13px; }
.bd-rlink button { border: 0; background: none; padding: 0; font: inherit; color: var(--bd-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bd-segrow { padding-top: 10px; }
@media (max-width: 640px) {
  #cmAgenda .bd-mrow { grid-template-columns: 54px minmax(0, 1fr); align-items: start; }
  #cmCall .bd-row { grid-template-columns: 22px minmax(0, 1fr); }
  .bd-ph-chip { display: block; margin-top: 6px; }
}
.bd-grid .sec-head { flex-wrap: nowrap; min-height: 0; align-items: baseline; }
#crm .bd-grid .bd-sec > .sec-head { align-items: center; }
@media (max-width: 640px) {
  .bd-sug { grid-template-columns: 1fr; }
}
.bd-chip.out.no { border-color: var(--bd-burg); color: var(--bd-burg); }
.bd-chip.out.ok { border-color: var(--bd-green); color: var(--bd-green); }
.bd-chip.ok { border-color: var(--bd-green); color: var(--bd-green); }
.bd-dot.done { background: var(--bd-line2); }
.bd-row.done .bd-n { color: var(--bd-muted); text-decoration: line-through; }
.bd-bin { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -5px -6px -5px 2px; padding: 0; border: 0; background: none; color: var(--bd-muted); cursor: pointer; }
.bd-bin:hover { color: var(--bd-burg); }
.bd-bin.sure { color: var(--white); background: var(--bd-burg-fill); }
.bd-dot.g { background: var(--bd-green); }
.bd-dot.r { background: var(--bd-burg); }
.bd-dot.o { background: none; border: 1px solid var(--bd-muted); box-sizing: border-box; }
.bd-btn.warn { color: var(--bd-bad); }
.bd-btn.warn:hover { border-color: var(--bd-bad); }
@media (max-width: 1024px) {
  .bd-sec > .sec-head h2 { font-size: 20px; }
}
@media (max-width: 640px) {
  .bd-sec > .sec-head h2 { font-size: 18px; }   /* board 147 A: one clear step below the 30 px page title */
}
@keyframes sp { to { transform: rotate(360deg); } }
@keyframes noticeIn { from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; } to { opacity: 1; max-height: 90px; } }
@keyframes noticeOut { to { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; } }
@keyframes freshRow { from { background: var(--fresh); } to { background: var(--bg); } }
@keyframes rot { 0%, 25% { transform: rotate(0); } 65%, 100% { transform: rotate(-90deg); } }

/* In a label set in capitals, the plural s of LPs and GPs stays lowercase ("GPs", not "GPS"). */
.kc { text-transform: none; }
/* lists made from text: spans, so they also work inside buttons */
.tl { display: block; }
.tl > .tli { display: list-item; list-style: disc outside; margin-left: 1.15em; }
.tl > .tli + .tli { margin-top: 4px; }
.tl > .tli::marker { color: var(--bd-muted); }

/* a part of the screen while it folds open or shut (lib/fold.js) */
.fold-moving { overflow: hidden; }
