/* Grow Admin · shared/ap-cheatsheet.css: the Customer Success cheat sheet page (pages/cs-cheat-sheet.js).
   Uses the design-system tokens only (light + dark follow automatically). No color-mix() (WebKit). */
.cs-wrap { min-width: 0; }
.cs-bar { position: sticky; top: calc(var(--hdr) + var(--stripe-h)); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 0 -8px 14px; padding: 10px 8px; background: var(--canvas); }
.cs-search { flex: 1 1 220px; max-width: 560px; }
.cs-search .inp { box-shadow: var(--e1); }
.cs-count { font-size: 13.5px; font-weight: 650; color: var(--ink-3); min-width: 0; }
.cs-showdel { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.cs-editnote { margin: 0 0 14px; }
.cs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.cs-nav { position: sticky; top: calc(var(--hdr) + var(--stripe-h) + 72px); max-height: calc(100vh - var(--hdr) - 100px); overflow-y: auto; scrollbar-width: thin;
  padding: 4px 4px 12px 0; font-size: 13.5px; }
.cs-nav-h { margin: 0 0 8px; font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.cs-nav ol { list-style: none; margin: 0; padding: 0; }
.cs-nav > ol > li { margin-bottom: 4px; }
.cs-nav ol ol { margin: 2px 0 6px 10px; padding-left: 8px; border-left: 1px solid var(--line); }
.cs-nav a { display: block; padding: 5px 8px; border-radius: 7px; color: var(--ink-2); font-weight: 600; text-decoration: none; line-height: 1.3; }
.cs-nav ol ol a { font-weight: 550; font-size: 13px; color: var(--ink-3); }
.cs-nav a:hover { background: var(--hover); color: var(--ink); }
.cs-nav a[aria-current] { background: var(--sf); color: var(--ink); box-shadow: var(--e1); }
.cs-nav ol ol a[aria-current="location"] { color: var(--ink); }
.cs-content { min-width: 0; }

.cs-sec { margin: 0 0 30px; scroll-margin-top: calc(var(--hdr) + var(--stripe-h) + 76px); }
.cs-sec-h, .cs-grp-h, .cs-item-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cs-sec-h { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cs-sec-h h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.cs-grp { margin: 18px 0 10px; scroll-margin-top: calc(var(--hdr) + var(--stripe-h) + 76px); }
.cs-grp-h h3 { margin: 0; font-size: 16.5px; letter-spacing: -.01em; }
.cs-grp > .cs-md { margin-top: 8px; }
.cs-item { margin: 10px 0; padding: 14px 18px; scroll-margin-top: calc(var(--hdr) + var(--stripe-h) + 76px); }
.cs-item-h h4 { margin: 0; font-size: 15px; line-height: 1.35; }
.cs-item > .cs-md { margin-top: 8px; }
.cs-anchor { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--ink-3); opacity: 0; transition: opacity .15s; }
.cs-anchor svg { width: 15px; height: 15px; }
.cs-sec-h:hover .cs-anchor, .cs-grp-h:hover .cs-anchor, .cs-item-h:hover .cs-anchor, .cs-anchor:focus-visible { opacity: 1; }
.cs-anchor:hover { background: var(--hover); color: var(--ink); }
@media (hover: none) { .cs-anchor { opacity: .7; } }
.cs-tools { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.is-deleted > .cs-sec-h h2, .is-deleted > .cs-grp-h h3, .is-deleted > .cs-item-h h4 { text-decoration: line-through; color: var(--ink-3); }
.is-deleted { opacity: .72; }
.cs-flash { animation: csFlash 1.6s ease-out; }
@keyframes csFlash { 0% { box-shadow: 0 0 0 3px var(--acc-ring); } 100% { box-shadow: 0 0 0 0 transparent; } }
.cs-sec.cs-flash, .cs-grp.cs-flash { animation: none; }

/* markdown bodies */
.cs-md { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.cs-md p { margin: 0 0 10px; }
.cs-md p:last-child { margin-bottom: 0; }
.cs-md .md-h { font-weight: 750; color: var(--ink); }
.cs-md strong { color: var(--ink); font-weight: 700; }
.cs-md ul, .cs-md ol { margin: 0 0 10px; padding-left: 22px; }
.cs-md li { margin: 3px 0; }
.cs-md a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.cs-md a:hover { text-decoration-color: currentColor; }
.cs-md code { padding: 1px 5px; border-radius: 5px; background: var(--bg); font-size: .92em; }
.md-tbl { overflow-x: auto; margin: 0 0 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); background: var(--sf); }
.md-tbl table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.md-tbl th { text-align: left; padding: 9px 11px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); background: var(--bg); border-bottom: 1px solid var(--line); vertical-align: bottom; }
.md-tbl td { padding: 9px 11px; border-bottom: 1px solid var(--hair); vertical-align: top; color: var(--ink-2); }
.md-tbl tr:last-child td { border-bottom: 0; }
.md-tbl td:first-child { color: var(--ink); font-weight: 650; }
.md-reply { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; padding: 10px 10px 10px 14px; border-radius: 10px;
  background: var(--acc-soft); box-shadow: inset 3px 0 0 var(--acc); }
.md-reply blockquote { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--ink); font-weight: 550; }
.md-reply blockquote p { margin: 0 0 8px; }
.md-reply blockquote p:last-child { margin: 0; }
.md-copy { flex: none; }
.md-copy.is-done { box-shadow: inset 0 0 0 1.5px var(--acc-ring); }
mark.cs-hit { padding: 0 1px; border-radius: 3px; background: #FFE58A; color: #1F2328; }
html[data-mode="dark"] mark.cs-hit { background: #8A6D00; color: #FFFFFF; }

/* search: hide what doesn't match */
.cs-hide, .cs-searching .cs-miss { display: none !important; }
.cs-nohits { margin-top: 10px; }
.cs-muted { color: var(--ink-3); }
.cs-foot { margin: 26px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.cs-foot-n { white-space: nowrap; }

/* editor + history dialogs */
.cs-ed { display: grid; gap: 12px; }
.cs-ed .fld-l { display: grid; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); margin: 0; }
.cs-ed-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.cs-ed-ta { min-height: 320px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.cs-ed-prev { display: grid; gap: 6px; min-width: 0; }
.cs-ed-preview { min-height: 320px; max-height: 420px; overflow: auto; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.cs-ed-more summary { cursor: pointer; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.cs-ed-more[open] { display: grid; gap: 10px; }
.cs-ed-help { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.cs-ed-err { margin: 0; color: var(--alert-ink); font-weight: 650; font-size: 13.5px; }
dialog.dlg.wide:has(.cs-ed), dialog.dlg.wide:has(.cs-hist) { width: min(1040px, calc(100vw - 24px)); }
.cs-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cs-hist-i { padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.cs-hist-i.is-cur { box-shadow: inset 0 0 0 1.5px var(--acc-ring); }
.cs-hist-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; }
.cs-hist-h .btn { margin-left: auto; }
.cs-hist details { margin-top: 6px; }
.cs-hist summary { cursor: pointer; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.cs-hist-t { margin: 8px 0 6px; }

/* narrow screens: the menu becomes a scrollable row under the search bar */
@media (max-width: 1100px) {
  .cs-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cs-nav { position: static; max-height: none; overflow-x: auto; padding: 0 0 6px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .cs-nav-h { display: none; }
  .cs-nav > ol { display: flex; gap: 6px; padding-right: 40px; }
  .cs-nav > ol > li { margin: 0; flex: none; }
  .cs-nav ol ol { display: none; }
  .cs-nav a { white-space: nowrap; background: var(--sf); box-shadow: var(--e1); }
}
@media (max-width: 720px) {
  .cs-ed-split { grid-template-columns: minmax(0, 1fr); }
  .cs-ed-ta, .cs-ed-preview { min-height: 200px; }
  .cs-item { padding: 12px 14px; }
  .cs-tools { margin-left: 0; }
  /* tables become stacked cards so nothing needs side-scrolling on a phone */
  .md-tbl { box-shadow: none; background: none; overflow: visible; }
  .md-tbl table, .md-tbl tbody, .md-tbl tr, .md-tbl td { display: block; width: 100%; }
  .md-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .md-tbl tr { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--sf); box-shadow: inset 0 0 0 1px var(--line); }
  .md-tbl td { padding: 4px 0; border: 0; }
  .md-tbl td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
  .md-tbl td:first-child::before { display: none; }
  .md-reply { flex-direction: column; }
}

/* print: a clean document (light colours from tokens.css; no menus, search, tools or buttons) */
@media print {
  .hdr, .rail, .ap-rail, .sheet, .scrim, .ftr, .ap-livebar, .ph-act, .ap-pinbtn, .cs-bar, .cs-nav, .cs-tools, .cs-editnote, .md-copy, .cs-anchor, #toast { display: none !important; }
  .app { display: block !important; max-width: none !important; padding: 0 !important; }
  .main { padding: 0 !important; }
  .cs-layout { display: block; }
  .cs-hide, .cs-searching .cs-miss { display: revert !important; }
  .is-deleted { display: none !important; }
  .cs-item { box-shadow: none; border: 1px solid #D3D8DE; break-inside: avoid; }
  .cs-sec { break-before: auto; }
  .cs-sec-h h2 { break-after: avoid; }
  .md-tbl { box-shadow: none; overflow: visible; }
  .md-tbl tr { break-inside: avoid; }
  .md-reply { background: #F5F8E9; box-shadow: inset 3px 0 0 #9CC24A; }
  mark.cs-hit { background: none; color: inherit; }
  .cs-md a::after { content: " (" attr(href) ")"; font-size: 11px; color: #5F6873; }
  .cs-md a[href^="#"]::after { content: ""; }
}
