/* Pick your business (build v12, agent scenarios): the examples in the name menu, the crumb, the morph, the previews. */

/* ---------------------------------------------------------------- the menu */
.menu-title.sc-has{width:24.5rem} /* [controls v15] 20rem in the spec; wider so every "for" line fits whole ("Trades, cleaners, landscapers, events, agencies") */
.sc-list{display:flex;flex-direction:column;gap:2px}
.sc-cap{font:var(--type-label-caps);letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);padding:var(--s-1) var(--s-3) var(--s-1)}
.mi.sc-item{min-height:3.25rem;grid-template-columns:2rem 1fr 14px;column-gap:var(--s-3);padding:var(--s-2) var(--s-3) var(--s-2) var(--s-2);text-align:left}
.sc-tile{width:2rem;height:2rem;border-radius:.625rem;display:grid;place-content:center;
  background:linear-gradient(160deg,color-mix(in srgb,var(--tint) 32%,transparent),color-mix(in srgb,var(--tint) 8%,transparent));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 0 0 1px color-mix(in srgb,var(--tint) 38%,transparent),0 6px 14px -8px color-mix(in srgb,var(--tint) 70%,transparent)}
.sc-tile svg{width:18px;height:18px;display:block}
.sc-tile .glyph-fill{fill:var(--tint)}
.sc-words{display:flex;flex-direction:column;min-width:0}
.sc-name{font:550 .875rem/1.25rem var(--font-sans);color:var(--text-1);letter-spacing:-.005em}
.sc-desc{font:var(--type-menu-desc);color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc-check{width:14px;height:14px;fill:none;stroke:var(--text-1);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.sc-item[aria-checked="true"]{background:rgba(255,255,255,.045);box-shadow:inset 0 0 0 1px var(--obs-hairline, rgba(255,255,255,.08))}
.sc-item[aria-checked="true"] .sc-check{opacity:.9}
.sc-item[aria-disabled="true"]{opacity:.5;cursor:default}
.sc-item[aria-disabled="true"]:hover{background:none}
.sc-sep{display:block;height:1px;margin:0 var(--s-2);background:var(--obs-hairline, rgba(255,255,255,.08))}

/* ---------------------------------------------------------------- [controls v15] the Example pill (brainstorm-v15 SPEC 2.4)
   A slim glass bubble set into the island: the example's bare coloured icon, its name, a bare chevron (owner's pick, 2026-12-02).
   "Example" stays in the markup for screen readers only. */
.ex-wrap{display:flex;align-items:center;position:relative;min-width:0}
.ex-pill{position:relative;display:inline-flex;align-items:center;gap:.4375rem;height:2.125rem;padding:0 .625rem 0 .5rem;border-radius:var(--r-pill);min-width:0;
  background:var(--obs-wash);box-shadow:inset 0 0 0 1px var(--obs-hairline),inset 0 1px 0 rgba(255,255,255,.08);text-align:left;cursor:pointer;
  transition:background-color var(--d-2) var(--ease-std),box-shadow var(--d-2) var(--ease-std),transform var(--d-1) var(--ease-out)}
.ex-pill:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.ex-tile{width:1.125rem;height:1.125rem;display:grid;place-content:center;flex:none}
.ex-tile svg{width:16px;height:16px;display:block}
.ex-tile .glyph-fill{fill:var(--tint)}
.ex-stack{display:flex;flex-direction:column;min-width:0;line-height:1}
.ex-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ex-pill .name-text{font:550 .9375rem/1.25rem var(--font-sans);letter-spacing:-.01em;color:var(--text-1);max-width:22ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ex-well{width:.875rem;height:1.25rem;display:grid;place-content:center;flex:none;
  transition:transform var(--d-1) var(--ease-out)}
.ex-well .chev{width:12px;height:12px;display:block;fill:none;stroke:var(--text-2);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform var(--d-2) var(--ease-out)}
@media (hover:hover) and (pointer:fine){
  .ex-pill:hover{background:rgba(255,255,255,.09);box-shadow:inset 0 0 0 1px var(--obs-hairline-hi),inset 0 1px 0 rgba(255,255,255,.08)}
  .ex-pill:hover .ex-well{transform:translateY(1px)}
}
.ex-pill:active{transform:scale(.98)}
.ex-pill[aria-expanded="true"]{background:rgba(255,255,255,.10);box-shadow:inset 0 0 0 1px var(--obs-hairline-hi),inset 0 1px 0 rgba(255,255,255,.08)}
.ex-pill[aria-expanded="true"] .chev{transform:rotate(180deg)}
.ex-pill[hidden]{display:none}
/* the one pass of light along the rim (P.examplesGlow): a 1 px ring, masked, the light travelling across it */
.ex-rim{position:absolute;inset:-1px;border-radius:inherit;padding:1.5px;pointer-events:none;opacity:0;
  background:linear-gradient(100deg,transparent 22%,#B9AEFF 42%,#5FE0F7 58%,transparent 78%) 160% 0/220% 100% no-repeat;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
/* reduced motion: no sweep; the rim and a soft halo brighten for 2 s, then fade back (the transition) */
.ex-pill.ex-lit{box-shadow:inset 0 0 0 1px rgba(185,174,255,.75),inset 0 1px 0 rgba(255,255,255,.08),0 0 18px -4px rgba(120,160,255,.55);transition:box-shadow var(--d-3) var(--ease-std)}
.ex-wrap .name-input{height:2.125rem;border-radius:var(--r-pill);padding:0 var(--s-3)}

/* ---------------------------------------------------------------- the menu's phone parts (hidden on wider screens) */
.sc-sheet-head{display:none}
.sc-backdrop{position:fixed;inset:0;z-index:39;background:rgba(5,6,11,.5)}
.sc-backdrop[hidden]{display:none}

/* ---------------------------------------------------------------- the morph */
.card .sc-x{position:absolute;margin:0;pointer-events:none;z-index:1}
.sc-ghosts,.sc-old-labels{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none}
.sc-old-lines{pointer-events:none}
html.sc-morphing .f10-pill{transition:left .55s cubic-bezier(.2,.8,.2,1),width .55s cubic-bezier(.2,.8,.2,1)}
html.sc-morphing .card{transition:none}

/* ---------------------------------------------------------------- previews (same .pv family as the form, contact, email and chat) */
.sc-pv-sheet .sc-sheet{display:grid;grid-template-columns:repeat(var(--cols),auto);border-radius:var(--r-sm);overflow:hidden;
  box-shadow:inset 0 0 0 1px var(--obs-hairline, rgba(255,255,255,.08))}
.sc-sh-k,.sc-sh-v{padding:.375rem .5rem;font:var(--type-field-value);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc-sh-k{font:500 .6875rem/1rem var(--font-sans);letter-spacing:.04em;text-transform:uppercase;color:var(--text-3);background:rgba(255,255,255,.035);
  border-bottom:1px solid var(--obs-hairline, rgba(255,255,255,.08))}
.sc-sh-v{color:var(--text-1);background:color-mix(in srgb,var(--tint-crm) 7%,transparent)}

.sc-pv-ticket .sc-tk-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--s-2)}
.sc-tk-no{font:var(--type-label-caps);letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}
.sc-tk-state{font:500 .75rem/1.25rem var(--font-sans);color:var(--tint-crm);padding:0 var(--s-2);border-radius:var(--r-pill);
  background:color-mix(in srgb,var(--tint-crm) 12%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tint-crm) 30%,transparent)}
.sc-pv-ticket .pv-sub{margin-top:.125rem}
.pv-tags span.sc-urgent{color:var(--tint-chat);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tint-chat) 40%,transparent)}

/* [engine v15] previews of the new examples: a quote (sent with the email), a review, a late invoice */
.sc-q-items{margin-top:var(--s-3)}
.sc-q-item{display:grid;grid-template-columns:1fr auto;gap:var(--s-3);padding:var(--s-2) 0;font:var(--type-field-value)}
.sc-q-item + .sc-q-item{border-top:1px solid var(--obs-hairline,rgba(255,255,255,.08))}
.sc-q-what{color:var(--text-2)}
.sc-q-price{color:var(--text-1);font-variant-numeric:tabular-nums}
.sc-q-total{display:flex;align-items:baseline;justify-content:space-between;margin-top:var(--s-2);padding-top:var(--s-2);border-top:1px solid var(--obs-hairline,rgba(255,255,255,.08))}
.sc-q-total .sc-inv-amount{margin-top:0}
.wi-edit > .sc-pv-quote{margin-top:var(--s-2)}
.sc-stars{display:inline-flex;gap:3px}
.sc-stars i{width:14px;height:14px;display:block;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);background:var(--text-3);opacity:.45}
.sc-stars i.on{background:var(--tint-mail);opacity:1}
.sc-inv-amount{margin-top:var(--s-2);font:600 1.125rem/1.5rem var(--font-sans);font-variant-numeric:tabular-nums;color:var(--text-1)}
.sc-tk-state.is-late{color:var(--tint-mail);background:color-mix(in srgb,var(--tint-mail) 12%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tint-mail) 30%,transparent)}

/* ---------------------------------------------------------------- [controls v15] phones: the compact pill, the menu as a bottom sheet */
@media (max-width:600px){
  .island-left .wordmark{display:none}
  .ex-pill{height:2.25rem;gap:.375rem;padding:0 .4375rem 0 .5rem}
  .ex-pill::before{content:"";position:absolute;inset:-4px;border-radius:inherit}
  .ex-tile{width:1rem;height:1rem}
  .ex-tile svg{width:14px;height:14px}
  .ex-label{display:none}
  .ex-pill .name-text{max-width:14ch}
  #menu-title.menu-title{left:.75rem!important;right:.75rem;top:auto!important;bottom:.75rem;width:auto;max-height:calc(100dvh - 6rem);overflow-y:auto;overscroll-behavior:contain;
    border-radius:var(--r-lg);padding:var(--s-2) var(--s-2) var(--s-3);gap:var(--s-1)}
  #menu-title .sc-sheet-head{display:grid;grid-template-columns:1fr 2.75rem;align-items:center;position:relative;padding:var(--s-3) 0 0 var(--s-3);touch-action:none}
  .sc-grab{position:absolute;top:.25rem;left:50%;width:2.25rem;height:.25rem;margin-left:-1.125rem;border-radius:2px;background:var(--obs-hairline-hi)}
  .sc-sheet-title{font:var(--type-menu-item);color:var(--text-1)}
  .sc-close{width:2.75rem;height:2.75rem;border-radius:50%;display:grid;place-content:center;color:var(--text-2)}
  .sc-close svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
  #menu-title .sc-cap{display:none}
  #menu-title .mi.sc-item{min-height:3.5rem}
  #menu-title .sc-desc{white-space:normal;text-wrap:pretty} /* a long "for" line wraps on a phone, never cut */
  #menu-title [data-act="rename"],#menu-title [data-act="duplicate"]{display:none}
}
