/* HeyCMO app styles scoped to .hc, for showing the real product inside the marketing page. Generated from app/project/heycmo.css + app.css. */
/* HeyCMO, the shipping desk: shared tokens and components.
   Label stock and navy ink, one orange priority action, kraft warmth behind the work,
   status as parcel-tracking stickers. Gabarito for titles, Figtree for text, DM Mono for code only. */
@font-face { font-family: "Gabarito"; src: url("../assets/fonts/gabarito-var.woff") format("woff"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree-var.woff") format("woff"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../assets/fonts/dm-mono-400.woff") format("woff"); font-weight: 400 500; font-style: normal; font-display: swap; }
.hc {
  /* label stock and ink */
  --ink: #1F2B4D;            /* navy: text, rules, the app shell */
  --ink-2: #3D4864;          /* secondary text: 9.1:1 on white, 7.5:1 on the kraft drawer */
  --muted: #5E6579;          /* labels and meta: 5.8:1 on white, 4.8:1 on the kraft drawer */
  --line: rgba(31, 43, 77, 0.14);
  --line-2: rgba(31, 43, 77, 0.56); /* control borders: 3.53:1 on #FFFFFF, 3.42:1 on #F4F4F2, 3.33:1 on #F1E9DD (WCAG 1.4.11 needs 3:1) */
  --paper: #FFFFFF;          /* label stock: cards, drawers, inputs */
  --ground: #F4F4F2;         /* the app's work area */
  --ground-2: #EBEBE6;       /* insets, tags and disabled buttons */
  --kraft: #C9A47E;          /* kraft-tint in DESIGN.md: the hue the page's lit grounds are tinted from */
  --kraft-50: #F1E9DD;       /* the drawer's parcel surface */
  /* action: the priority sticker */
  --action: #F7941D;
  --action-2: #E8820A;
  --action-ink: #1F2B4D;     /* 6.1:1 on the action */
  /* tracking stickers */
  /* every dot is >= 3:1 on its own fill, on white and on kraft-50 (WCAG 1.4.11) */
  --packed: #ECEEF3; --packed-ink: #4A5268; --packed-dot: #767E93;
  --wait: #FFE27A; --wait-ink: #5A4300; --wait-dot: #1F2B4D; --wait-wash: #FFF8DB; --wait-line: #F2D25A;
  --sched: #E6F0FF; --sched-ink: #1F4FB5; --sched-dot: #3B76F6;
  --live: #E3F6EA; --live-ink: #17663A; --live-dot: #1F8F4C;
  --back: #FDE8E6; --back-ink: #B42318; --back-dot: #D93A2F;
  /* type */
  --font-display: "Gabarito", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* shape (soft) */
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  /* depth */
  --shadow-1: 0 1px 2px rgba(31, 43, 77, 0.06), 0 1px 1px rgba(31, 43, 77, 0.04);
  --shadow-2: 0 14px 34px -14px rgba(31, 43, 77, 0.24);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* base */
.hc { font-family: var(--font-text); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: tabular-nums; }
.hc *, .hc *::before, .hc *::after { box-sizing: border-box; }
.hc h1, .hc h2, .hc h3, .hc h4, .hc p { margin: 0; }
.hc ::selection { background: var(--wait); color: var(--ink); }
.hc :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.hc a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.hc a:hover { text-decoration-color: var(--ink); }
.hc .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hc .skip:focus { width: auto; height: auto; clip-path: none; z-index: 50; left: 16px; top: 16px; padding: 10px 14px; background: var(--paper); border-radius: var(--r-sm); }
.hc .muted { color: var(--muted); }
.hc .mono, .hc code { font-family: var(--font-mono); font-size: 0.93em; }

/* type */
.hc .t-title { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.hc .t-h { font-weight: 650; font-size: 17px; line-height: 1.3; }
.hc .t-sub { font-size: 15px; color: var(--ink-2); }
.hc .t-meta { font-size: 13px; color: var(--muted); }
.hc .t-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.hc .t-fig { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }

/* buttons: one pill family */
.hc .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font: 600 15px/1 var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 140ms var(--ease), transform 140ms var(--ease); }
.hc .btn:hover { background: #F7F7F5; }
.hc .btn:active { transform: translateY(1px); }
.hc .btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.hc .btn.primary:hover { background: var(--action-2); border-color: var(--action-2); }
.hc .btn.danger { color: var(--back-ink); border-color: #F3B6B0; }
.hc .btn.danger:hover { background: var(--back); }
.hc .btn.sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.hc .btn.link { border-color: transparent; background: transparent; padding: 0 6px; text-decoration: underline; text-decoration-color: var(--line-2); }
.hc .btn[aria-disabled="true"], .hc .btn:disabled { background: var(--ground-2); border-color: transparent; color: var(--ink-2); cursor: not-allowed; }
.hc .btn svg { width: 18px; height: 18px; flex: none; }
.hc .btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* status: tracking stickers, always a dot and a word */
.hc .st { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 9px; border-radius: var(--r-pill); background: var(--packed); color: var(--packed-ink); font: 600 13px/1 var(--font-text); white-space: nowrap; }
.hc .st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px var(--packed-dot); }
.hc .st.wait { background: var(--wait); color: var(--wait-ink); } .hc .st.wait::before { background: var(--ink); box-shadow: none; }
.hc .st.sched { background: var(--sched); color: var(--sched-ink); } .hc .st.sched::before { background: var(--sched-dot); box-shadow: none; }
.hc .st.live { background: var(--live); color: var(--live-ink); } .hc .st.live::before { background: var(--live-dot); box-shadow: none; }
.hc .st.back { background: var(--back); color: var(--back-ink); } .hc .st.back::before { background: var(--back-dot); box-shadow: none; }
.hc .st.off { background: transparent; color: var(--muted); padding-inline: 0; }
.hc .st.out { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.hc .st.out::before { box-shadow: inset 0 0 0 1.5px var(--packed-dot); }

/* the signature move: a parcel tracking line */
.hc .track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.hc .track li { position: relative; padding: 22px 8px 0 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.hc .track li::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--line); }
.hc .track li:first-child::before { left: 6px; }
.hc .track li:last-child::before { right: auto; width: 6px; }
.hc .track li::after { content: ""; position: absolute; top: 1px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line-2); }
.hc .track li b { display: block; font-weight: 600; color: var(--ink); }
.hc .track li.done::before { background: var(--ink); }
.hc .track li.done::after { background: var(--ink); box-shadow: none; }
.hc .track li.now::before { background: linear-gradient(90deg, var(--ink) 0 6px, var(--line) 6px); }
.hc .track li.now::after { background: var(--wait); box-shadow: inset 0 0 0 2px var(--ink); width: 14px; height: 14px; top: 0; left: -1px; }
.hc .track li.now.ok::after { background: var(--live-dot); box-shadow: inset 0 0 0 2px var(--ink); }
.hc .track li.now.back::after { background: var(--back-dot); }
/* the same line, small, in a table row */
.hc .trk { display: inline-flex; align-items: center; gap: 0; }
.hc .trk i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.hc .trk i + i { margin-left: 12px; position: relative; }
.hc .trk i + i::before { content: ""; position: absolute; right: 8px; top: 3px; width: 12px; height: 2px; background: var(--line); }
.hc .trk i.d { background: var(--ink); box-shadow: none; } .hc .trk i.d + i::before { background: var(--ink); }
.hc .trk i.w { background: var(--wait); box-shadow: inset 0 0 0 1.5px var(--ink); }
.hc .trk i.l { background: var(--live-dot); box-shadow: none; }
.hc .trk i.b { background: var(--back-dot); box-shadow: none; }
.hc .trkx { display: flex; align-items: center; gap: 12px; }
.hc .trkx .when { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hc .trkx .when .t-meta { white-space: nowrap; }

/* level: the name with a five-step gauge */
.hc .level { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px 0 9px; border-radius: var(--r-pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font: 600 13px/1 var(--font-text); white-space: nowrap; }
.hc .level .g { display: inline-flex; gap: 2px; }
.hc .level .g i { width: 5px; height: 12px; border-radius: 2px; background: var(--ground-2); }
.hc .level[data-l="0"] .g i:nth-child(-n+1), .hc .level[data-l="1"] .g i:nth-child(-n+2), .hc .level[data-l="2"] .g i:nth-child(-n+3), .hc .level[data-l="3"] .g i:nth-child(-n+4), .hc .level[data-l="4"] .g i { background: var(--ink); }
.hc .level .c { color: var(--muted); font-weight: 500; }

/* reference numbers: small, beside the name, never the name */
.hc .ref { display: inline; color: var(--muted); font: 500 13px/1.3 var(--font-text); white-space: nowrap; }

/* tags */
.hc .tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--ground-2); color: var(--ink-2); font: 500 13px/1 var(--font-text); white-space: nowrap; }
.hc .tag.demo { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.hc .tag.rec { background: var(--ink); color: #FFFFFF; }

/* cards: white label stock */
.hc .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.hc .card > .label:last-child, .hc .card > .label:first-child { border-radius: 0; border: 0; }
.hc .card > .label:last-child { border-top: 1px solid var(--line); border-bottom-left-radius: var(--r-md); border-bottom-right-radius: var(--r-md); }
.hc .card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.hc .card-b { padding: 18px 20px; }
.hc .card-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }

/* the label: fields split by hairlines, a small label over each value */
.hc .label { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r-md); overflow: hidden; }
.hc .label .row { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.hc .label .row:first-child { border-top: 0; }
.hc .label .f { padding: 12px 16px; min-width: 0; }
.hc .label .f + .f { border-left: 1px solid var(--line-2); }
.hc .label .f .k { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 3px; }
.hc .label .f .v { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.hc .label .f .v small { font-weight: 400; color: var(--ink-2); font-size: 14px; }
.hc .label .sig { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--wait-wash); border-top: 1px solid var(--wait-line); }
.hc .label .sig.done { background: var(--live); border-top-color: #BFE6CB; }
.hc .label .sig.back { background: var(--back); border-top-color: #F3B6B0; }
.hc .label .sig.back .t-meta, .hc .label .sig.back b, .hc .label .sig.back .ref { color: var(--back-ink); }

/* banners */
.hc .banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); }
.hc .banner p { flex: 1 1 260px; font-size: 14px; color: var(--ink-2); }
.hc .banner p b { color: var(--ink); }
.hc .banner.wait { background: var(--wait-wash); border-color: var(--wait-line); }
.hc .banner.back { background: var(--back); border-color: #F3B6B0; }
.hc .banner.live { background: var(--live); border-color: #BFE6CB; }

/* fields */
.hc .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hc .field > label, .hc .field > .lbl { font-size: 14px; font-weight: 600; color: var(--ink); }
.hc .input, .hc select.input, .hc textarea.input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: 400 16px/1.3 var(--font-text); }
.hc textarea.input { padding: 12px 14px; min-height: 96px; resize: vertical; }
.hc .input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31, 43, 77, 0.16); }
.hc .input::placeholder { color: var(--muted); }
.hc .hint { font-size: 13px; color: var(--muted); }
.hc .error { font-size: 13px; font-weight: 600; color: var(--back-ink); }
.hc .check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.hc .check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }

/* tabs: filters over a list */
.hc .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.hc .tabs a { flex: none; }
.hc .tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.hc .tabs a:hover { color: var(--ink); }
.hc .tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.hc .tabs .n { min-width: 22px; height: 20px; padding: 0 7px; border-radius: var(--r-pill); background: var(--ground-2); font-size: 12px; line-height: 20px; text-align: center; color: var(--ink-2); }
.hc .tabs .n.w { background: var(--wait); color: var(--wait-ink); }
.hc .ft { display: block; height: 0; scroll-margin-top: 24px; }
.hc #waiting:target ~ .tbl tbody tr:not([data-s="wait"]), .hc #scheduled:target ~ .tbl tbody tr:not([data-s="sched"]),
.hc #live:target ~ .tbl tbody tr:not([data-s="live"]), .hc #drafts:target ~ .tbl tbody tr:not([data-s="draft"]) { display: none; }
.hc .ft:target ~ .tabs a[aria-current="page"] { color: var(--ink-2); border-bottom-color: transparent; }
.hc #waiting:target ~ .tabs a[href="#waiting"], .hc #scheduled:target ~ .tabs a[href="#scheduled"],
.hc #live:target ~ .tabs a[href="#live"], .hc #drafts:target ~ .tabs a[href="#drafts"] { color: var(--ink); border-bottom-color: var(--ink); }
.hc .u { display: none; }

/* tables */
.hc .tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.hc .tbl th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.hc .tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.hc .tbl tr:last-child td { border-bottom: 0; }
.hc .tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc .tbl td .s { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.hc .tbl tbody tr.link { cursor: pointer; }
.hc .tbl tbody tr.link:hover td { background: #FAFAF8; }
.hc .tbl tbody tr[aria-selected="true"] td { background: var(--kraft-50); }
.hc .tbl tbody tr.waiting td { background: #FFFDF5; }
.hc .tbl tbody tr.waiting[aria-selected="true"] td { background: var(--kraft-50); }
.hc .tbl a.row-link { color: inherit; text-decoration: none; font-weight: 600; }
.hc .tbl a.row-link:hover { text-decoration: underline; }

/* tables stack into rows on a phone */
@media (max-width: 640px) {
  .hc .tbl.stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hc .tbl.stack-sm, .hc .tbl.stack-sm tbody { display: block; width: 100%; }
  .hc .tbl.stack-sm tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .hc .tbl.stack-sm tr:last-child { border-bottom: 0; }
  .hc .tbl.stack-sm td { display: block; padding: 0; border: 0; background: transparent; }
  .hc .tbl.stack-sm td:first-child { flex: 1 1 100%; }
  .hc .tbl.stack-sm tbody th { display: block; flex: 1 1 100%; padding: 0; border: 0; background: transparent; white-space: normal; text-align: left; font-size: 14px; color: var(--ink); }
  .hc .tbl.stack-sm { table-layout: auto; }
  .hc .tbl.stack-sm td.num { text-align: left; }
  .hc .tbl.stack-sm td[data-label] { flex: 1 1 100%; }
  .hc .tbl.stack-sm td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
  .hc .tbl.stack-sm tbody tr.waiting { background: #FFFDF5; }
  .hc .tbl.stack-sm tbody tr[aria-selected="true"] { background: var(--kraft-50); }
  .hc .tbl.stack-sm tbody tr[aria-selected="true"] td { background: transparent; }
  .hc .tabs { flex-wrap: wrap; overflow-x: visible; }
  .hc .u { display: inline; }
}

/* command line, for developers only */
.hc .dev { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--muted); }
.hc .cmd { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 9px 10px 9px 14px; border-radius: var(--r-sm); background: var(--ink); color: #E6E8EE; font: 400 14px/1.3 var(--font-mono); }
.hc .cmd code { font: inherit; white-space: nowrap; overflow-x: auto; min-width: 0; }
@media (max-width: 640px) { .hc .cmd code { white-space: normal; overflow-wrap: anywhere; } .hc .cmd button { min-width: 44px; min-height: 44px; } }
.hc .cmd .p { color: var(--action); }
.hc .cmd button { flex: none; min-height: 30px; padding: 0 6px; border: 0; background: transparent; color: #E6E8EE; font: 600 13px/1 var(--font-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hc .cmd :focus-visible { outline-color: var(--action); }

/* plain steps: an ordered list for things that are not a piece of work (setup, sign-up). The tracking line is for work only */
.hc .psteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0 20px; counter-reset: pstep; }
.hc .psteps li { counter-increment: pstep; display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13px; line-height: 1.4; color: var(--muted); }
.hc .psteps li b { font-weight: 600; font-size: 14px; color: var(--ink); }
.hc .psteps li b::before { content: counter(pstep) ". "; }
.hc .psteps li .ps { font-weight: 600; color: var(--ink-2); }
.hc .psteps li.now { border-top-color: var(--ink); }
@media (max-width: 640px) {
  .hc .psteps { grid-template-columns: 1fr; gap: 0; }
  .hc .psteps li { padding: 12px 0; }
  /* a tracking line stands upright on a phone, so no stop is cut off */
  .hc .track { grid-template-columns: 1fr; }
  .hc .track li { padding: 0 0 14px 26px; min-height: 34px; }
  .hc .track li::before { top: 6px; bottom: -6px; left: 5px; right: auto; width: 2px; height: auto; }
  .hc .track li:first-child::before { left: 5px; }
  .hc .track li:last-child::before { display: none; }
  .hc .track li.now::before { background: var(--line); }
  .hc .track li.fill::before { transform-origin: center top; }
  .hc .btn.sm { min-height: 44px; }
  .hc .ag-side select.input, .hc select.input { min-height: 44px; height: auto; }
}

/* people */
.hc .av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ground-2); color: var(--ink); font: 600 12px/1 var(--font-text); flex: none; }

/* the one motion: a piece moves along its tracking line when it changes state (never on scroll) */
@keyframes hc-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hc-fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 640px) { .hc .track li.fill::before { animation-name: hc-fill-y; } }
@keyframes hc-stop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hc .track li.fill::before { transform-origin: left center; animation: hc-fill 520ms var(--ease) 200ms both; }
.hc .track li.pop::after { animation: hc-stop 360ms var(--ease) 680ms both; }
@media (prefers-reduced-motion: reduce) { .hc *, .hc *::before, .hc *::after { animation: none !important; transition: none !important; } }
@media (max-width: 640px) {
  .hc .cmd button { min-width: 44px; min-height: 44px; }
  .hc .card-h a.t-meta, .hc a.tag, .hc .items a.t, .hc a.row-link, .hc .tbl a.row-link { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 640px) { .hc .drawer li > a { display: inline-flex; align-items: center; min-height: 44px; } }

/* HeyCMO app shell: a navy sidebar, a light work area, the manifest, and the label drawer. */

.hc.appx { background: var(--ground); }

/* shell */
.hc .app { display: flex; flex-wrap: wrap; }
.hc .side { flex: 0 0 248px; background: var(--ink); color: #FFFFFF; padding: 18px 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.hc .side .brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 8px 14px; }
.hc .side .wordmark { color: #FFFFFF; font: 700 22px/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none; }
.hc .side .ws { display: flex; flex-direction: column; gap: 2px; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.08); color: #FFFFFF; text-decoration: none; }
.hc .side .ws b { font-size: 14px; font-weight: 600; }
.hc .side .ws small { font-size: 13px; color: #CFD7EE; }
.hc .side .ws:hover { background: rgba(255, 255, 255, 0.13); }
.hc .side .new { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0 0 14px; border-radius: var(--r-pill); background: var(--action); color: var(--action-ink); font: 600 15px/1 var(--font-text); text-decoration: none; }
.hc .side .new:hover, .hc .side .new[aria-current="page"] { background: var(--action-2); }
.hc .side .new svg { width: 18px; height: 18px; }
.hc .side .grp { margin: 14px 12px 4px; font-size: 13px; font-weight: 500; color: #BCC6E3; }
.hc .side a.it { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: var(--r-sm); color: #E1E7F5; text-decoration: none; font-size: 15px; font-weight: 500; }
.hc .side a.it .l { display: inline-flex; align-items: center; gap: 10px; }
.hc .side a.it svg { width: 18px; height: 18px; flex: none; opacity: 0.9; }
.hc .side a.it:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.hc .side a.it[aria-current="page"] { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; font-weight: 600; }
.hc .side .count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); background: var(--wait); color: var(--wait-ink); font: 700 12px/22px var(--font-text); text-align: center; }
.hc .side .grow { flex: 1; min-height: 16px; }
.hc .side .side-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hc .side .m-wait, .hc .side .m-new, .hc .side .m-nav { display: none; }
.hc .side { position: relative; }
.hc .side .pause { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: var(--r-sm); color: #FFD2CC; font-size: 14px; font-weight: 600; text-decoration: none; }
.hc .side .pause:hover { background: rgba(255, 255, 255, 0.08); }
.hc .side .pause svg { width: 18px; height: 18px; }
.hc .side .me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: #CFD7EE; }
.hc .side .me b { display: block; color: #FFFFFF; font-size: 14px; font-weight: 600; }
.hc .side .me .av { background: #34406A; color: #FFFFFF; }
.hc .side :focus-visible { outline-color: var(--action); }

.hc .main { flex: 999 1 560px; min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 48px; display: flex; flex-direction: column; gap: 22px; }
.hc .p-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.hc .p-head .t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hc .p-head .t-sub { max-width: 70ch; }
.hc .crumbs { font-size: 14px; color: var(--muted); }
.hc .crumbs a { color: var(--ink-2); }

/* work area with a label drawer */
.hc .split { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 20px; align-items: start; }
.hc .split > * { min-width: 0; }
.hc .drawer { align-self: start; margin-right: calc(-1 * clamp(16px, 3vw, 40px)); background: var(--kraft-50); border: 1px solid #E3D6C3; border-right: 0; border-radius: var(--r-lg) 0 0 var(--r-lg); padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.hc .drawer .d-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 4px 4px 0; }
.hc .drawer .d-h h2 { font: 600 20px/1.25 var(--font-display); letter-spacing: -0.01em; }
.hc .drawer .d-sec { border-top: 1px solid rgba(31, 43, 77, 0.24); padding: 14px 4px 0; }
.hc .drawer .d-sec h3, .hc .drawer .d-sec .d-h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.hc .drawer .d-act { display: flex; flex-wrap: wrap; gap: 10px; }
.hc .drawer .d-act .btn { flex: 1 1 auto; }

/* list rows of work (outside tables) */
.hc .items { list-style: none; margin: 0; padding: 0; }
.hc .items li { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); }
.hc .items li:first-child { border-top: 0; }
.hc .items .grow { flex: 1; min-width: 0; }
.hc .items .t { display: block; font-weight: 600; }
.hc .items .s { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* stats inside a card */
.hc .stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.hc .stats > div { padding: 16px 20px; }
.hc .stats > div + div { border-left: 1px solid var(--line); }
.hc .stats .k { font-size: 13px; font-weight: 500; color: var(--muted); }
.hc .stats .v { font: 600 28px/1.1 var(--font-display); letter-spacing: -0.02em; margin-top: 4px; }
.hc .stats .v small { font: 500 14px/1 var(--font-text); color: var(--ink-2); letter-spacing: 0; }

/* a meter (credits) */
.hc .meter { height: 8px; border-radius: var(--r-pill); background: var(--ground-2); overflow: hidden; }
.hc .meter i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }

/* dialog over a scrim */
.hc .scrim { position: absolute; inset: 0; background: rgba(31, 43, 77, 0.45); display: grid; place-items: center; padding: 24px; z-index: 40; }
.hc .dialog { width: min(440px, 100%); background: var(--paper); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 32px 64px -24px rgba(31, 43, 77, 0.5); }
.hc .dialog h2 { font: 600 22px/1.25 var(--font-display); }
.hc .dialog .key { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--wait); color: var(--ink); }
.hc .dialog .key svg { width: 28px; height: 28px; }

/* public pages (audit, sign-up, claim): a light page with a top bar */
.hc .pub { min-height: 100vh; background: var(--ground); }
.hc .pub-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 clamp(16px, 3vw, 40px); background: var(--paper); border-bottom: 1px solid var(--line); }
.hc .pub-bar .wordmark { display: inline-flex; align-items: center; min-height: 44px; font: 700 22px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.hc .pub-main { max-width: 1200px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 40px) 56px; display: flex; flex-direction: column; gap: 22px; }

/* framed media: an email, a Slack message, a phone */
.hc .mail { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-2); }
.hc .mail .m-h { padding: 14px 20px; border-bottom: 1px solid var(--line); background: #FAFAF8; font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }
.hc .mail .m-b { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.hc .slack { background: #FFFFFF; border: 1px solid #DDDDDD; border-radius: var(--r-md); font-family: var(--font-text); }
.hc.phonex { width: min(390px, 100%); margin: 0 auto; min-height: 844px; background: var(--ground); }
.hc .p-bar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.hc .p-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.hc .p-actions { position: sticky; bottom: 0; padding: 12px 16px 20px; background: var(--paper); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.hc .p-actions .btn { width: 100%; min-height: 48px; }

/* phone width */
@media (max-width: 900px) {
  .hc .split, .hc .main .split { grid-template-columns: 1fr; }
  .hc .drawer { margin: 0 calc(-1 * clamp(16px, 3vw, 40px)); border-right: 0; border-left: 0; border-radius: 0; }
}
@media (max-width: 640px) {
  /* the sidebar becomes a top bar: wordmark, what waits, Start a job, Menu */
  .hc .side { flex: 1 1 100%; padding: 8px 16px; gap: 0; }
  .hc .side .brand { padding: 0; min-height: 52px; gap: 8px; }
  .hc .side .brand .wordmark { margin-right: auto; }
  .hc .side .m-wait { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; text-decoration: none; }
  .hc .side .brand .wordmark { display: inline-flex; align-items: center; min-height: 44px; }
  .hc .side .m-new { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); background: var(--action); color: var(--action-ink); font: 600 14px/1 var(--font-text); text-decoration: none; }
  .hc .side .m-new svg { width: 16px; height: 16px; }
  .hc .side .m-nav { display: block; }
  .hc .side .m-menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, 0.35); color: #FFFFFF; font: 600 14px/1 var(--font-text); cursor: pointer; list-style: none; }
  .hc .side .m-menu::-webkit-details-marker { display: none; }
  .hc .side .m-menu .m-c, .hc .side .m-nav[open] .m-menu .m-o { display: none; }
  .hc .side .m-nav[open] .m-menu .m-c { display: inline; }
  .hc .side .m-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; display: flex; flex-direction: column; gap: 2px; padding: 8px 16px 16px; background: var(--ink); box-shadow: 0 18px 30px -18px rgba(31, 43, 77, 0.6); }
  .hc .side .side-body { display: none; }
  .hc .main { padding: 20px 16px 40px; }
  .hc .t-title { font-size: 24px; }
  .hc .label .row { grid-template-columns: 1fr; }
  .hc .label .f + .f { border-left: 0; border-top: 1px solid var(--line-2); }
  .hc .stats { grid-template-columns: 1fr; }
  .hc .stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
