/* plan.css · Round 56 · the "start" pass (plan.js)
   The plan card (a sentence of chips, what it creates, one Run), the chip menus, Keep in a project, and the one-time
   offer to make a conversation a project. Neutral chips stay in place; cobalt is only on Run, which goes somewhere. */

/* ---------- the card ---------- */
.ds-pl { margin-top: 14px; padding-top: 16px; border-top: 1px solid #E4EAF2; color: #0F1B2D; }
.ds-pl:not(.is-on) { display: none; }
.ds-pl-s { margin: 0; font-size: 16.5px; line-height: 2.1; color: #0F1B2D; text-wrap: pretty; }
html[data-skin] .ds-pl-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 32px; margin: 0 1px; padding: 0 8px 0 11px; vertical-align: baseline; border: 1px solid transparent; border-radius: var(--ds-r-chip, 8px) !important; background: #EDF1F7; color: #0F1B2D; font: inherit; font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -.005em; cursor: default; transition: background-color .16s ease, border-color .16s ease; }
html[data-skin] .ds-pl-chip > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html[data-skin] .ds-pl-chip svg { flex: none; width: 12px; height: 12px; color: #5C718B; transition: transform .22s cubic-bezier(.22, 1, .36, 1); }
html[data-skin] .ds-pl-chip:hover { background: #E2E8F2; }
html[data-skin] .ds-pl-chip[aria-expanded="true"] { border-color: #17283E; background: #fff; }
html[data-skin] .ds-pl-chip[aria-expanded="true"] svg { transform: rotate(180deg); }
html[data-skin] .ds-pl-chip:focus-visible { outline: 2px solid #2F6BDB; outline-offset: 2px; }
html[data-skin] .ds-pl-chip.is-text > span { max-width: 30ch; font-weight: 500; }
/* Daystrom (Oct 15): a question's chip shows the question as typed, over two lines at most */
html[data-skin] .ds-pl-chip.is-q { height: auto; min-height: 32px; padding-top: 6px; padding-bottom: 6px; text-align: left; line-height: 1.3; }
html[data-skin] .ds-pl-chip.is-q > span { max-width: 52ch; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ds-pl-g:has(.is-q) { white-space: normal; }
html[data-skin] .ds-pl-g .ds-pl-chip.is-q { max-width: 100%; }
.ds-pl-g { white-space: nowrap; }
html[data-skin] .ds-pl-g .ds-pl-chip { max-width: calc(100% - 6.5em); }
.ds-pl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 14px; }
.ds-pl-into { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; flex: 1 1 260px; }
.ds-pl-k { flex: none; font-size: 14px; color: #536A84; }
html[data-skin] .ds-pl-chip.is-into { min-width: 0; flex: 0 1 auto; font-size: 14.5px; height: 34px; }
html[data-skin] .ds-pl-chip.is-into > span { max-width: 44ch; }
html[data-skin] .ds-pl .ds-pl-run { flex: none; height: 40px; padding: 0 16px; gap: 8px; font-size: 15px; font-weight: 600; box-shadow: none; border-radius: var(--ds-r-key, 8px) !important; background: var(--ck-cobalt, #2F6BDB); border-color: var(--ck-cobalt, #2F6BDB); color: #fff; cursor: default; }
html[data-skin] .ds-pl .ds-pl-run:hover { background: var(--ck-cobalt-hover, #2459C2); border-color: var(--ck-cobalt-hover, #2459C2); }
html[data-skin] .ds-pl .ds-pl-run svg { width: 12px; height: 12px; }
html[data-skin] .ds-pl .ds-pl-run.is-wait { background: #E6ECF5; border-color: #D5DEEB; color: #536A84; }   /* waiting reads as waiting, and still reads: muted ink on a pale ground (white on pale was 1.5:1) */
.ds-pl-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: #647A94; }
.ds-pl-note.warn { color: #B4361C; animation: ds-pl-nudge .42s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes ds-pl-nudge { 20% { transform: translateX(-3px); } 45% { transform: translateX(3px); } 70% { transform: translateX(-2px); } 100% { transform: none; } }
.ds-pl.is-done { padding-top: 12px; }
.ds-pl-done { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; color: #17283E; }
.ds-pl-done svg { flex: none; width: 16px; height: 16px; color: #17A06A; }

/* in the dark console the card sits inside the white answer; in the header console and on pages it sits on paper */
.ds-askp .ds-pl-s { font-size: 16px; }

/* ---------- the menus ---------- */
html[data-skin] .ds-pl-menu { position: fixed; z-index: 200; left: 0; top: 0; width: 320px; max-height: min(440px, 72vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; background: #fff; color: #0F1B2D; border: 1px solid rgba(15, 27, 45, .12); border-radius: 12px !important; box-shadow: 0 26px 60px -26px rgba(8, 18, 38, .5), 0 2px 6px rgba(8, 18, 38, .08); opacity: 0; transform: translateY(-4px); transition: opacity .18s ease, transform .24s cubic-bezier(.22, 1, .36, 1); scrollbar-width: thin; }
html[data-skin] .ds-pl-menu.on { opacity: 1; transform: none; }
.ds-pl-mh { margin: 8px 10px 6px; font-size: 12.5px; font-weight: 600; color: #647A94; }
.ds-pl-mk { margin: 10px 10px 4px; padding-top: 10px; border-top: 1px solid #EDF1F6; font-size: 12.5px; font-weight: 600; color: #647A94; }
.ds-pl-ol { list-style: none; margin: 0; padding: 0; }
html[data-skin] .ds-pl-opt { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px !important; background: transparent; color: inherit; font: inherit; text-align: left; cursor: default; }
html[data-skin] .ds-pl-opt:hover { background: #F1F4F9; }
html[data-skin] .ds-pl-opt:focus-visible { outline: 2px solid #2F6BDB; outline-offset: -2px; background: #F1F4F9; }
html[data-skin] .ds-pl-opt[aria-disabled="true"] { color: #647A94; }
.ds-pl-ck { display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; color: #2F6BDB; }
.ds-pl-ck svg { width: 14px; height: 14px; opacity: 0; }
.ds-pl-opt.on .ds-pl-ck svg, .ds-pl-ck.is-plus svg { opacity: 1; }
.ds-pl-ot { min-width: 0; }
.ds-pl-ot b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.ds-pl-ot span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: #647A94; text-wrap: pretty; }
html[data-skin] .ds-pl-opt.is-row { grid-template-columns: minmax(0, 1fr) 30px; align-items: center; padding-right: 6px; }
html[data-skin] .ds-pl-opt.is-row:hover { background: transparent; }
html[data-skin] .ds-pl-rm { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px !important; background: transparent; color: #647A94; cursor: default; }
html[data-skin] .ds-pl-rm:hover { background: #EDF1F7; color: #0F1B2D; }
.ds-pl-rm svg { width: 12px; height: 12px; }
.ds-pl-mfoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; padding: 8px 6px 4px; border-top: 1px solid #EDF1F6; }
html[data-skin] .ds-pl-mfoot .ds-btn { height: 34px; padding: 0 12px; font-size: 14px; font-weight: 600; gap: 6px; box-shadow: none; border-radius: 8px !important; }
html[data-skin] .ds-pl-mfoot .ds-btn:not(.ds-primary) { border-color: transparent; background: #EDF1F7; color: #17283E; }
.ds-pl-mfoot .ds-btn svg { width: 12px; height: 12px; }
html[data-skin] .ds-pl-tx { display: block; width: calc(100% - 12px); min-height: 92px; margin: 2px 6px 6px; padding: 10px 12px; border: 1px solid #CBD5E3; border-radius: 10px !important; background: #fff; color: #0F1B2D; font: inherit; font-size: 15px; line-height: 1.5; resize: vertical; }
html[data-skin] .ds-pl-tx:focus, html[data-skin] .ds-pl-nm:focus { outline: 0; border-color: #2F6BDB; box-shadow: 0 0 0 3px rgba(47, 107, 219, .16); }
html[data-skin] .ds-pl-nm { display: block; width: calc(100% - 50px); height: 36px; margin: 0 6px 8px 44px; padding: 0 10px; border: 1px solid #CBD5E3; border-radius: 8px !important; background: #fff; color: #0F1B2D; font: inherit; font-size: 14px; }
.ds-pl-new:not(.on) .ds-pl-nm { border-color: #E1E7EF; color: #647A94; }

/* phones: the menu is a bottom sheet with a grip */
html[data-skin] .ds-pl-menu.is-sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-height: 72vh; padding: 18px 8px calc(14px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0 !important; transform: translateY(18px); box-shadow: 0 -20px 60px -20px rgba(8, 18, 38, .5); }
html[data-skin] .ds-pl-menu.is-sheet.on { transform: none; }
.ds-pl-menu.is-sheet::before { content: ''; position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #D3DBE6; }
.ds-pl-menu.is-sheet .ds-pl-opt { padding: 12px 10px; }

/* ---------- Keep in a project ---------- */
html[data-skin] .ds-btn[data-keep].is-kept { background: #E8F6EF; border-color: transparent; color: #11664A; }

/* ---------- the one-time offer under the third answer on one topic ---------- */
.ds-pl-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 16px; padding: 14px 16px; background: #F1F5FB; border-radius: 10px; overflow: hidden; transition: height .3s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, margin .3s, padding .3s; }
.ds-pl-offer.is-gone { height: 0 !important; margin-top: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.ds-pl-offer-t { flex: 1 1 260px; min-width: 0; }
.ds-pl-offer-t b { display: block; font-size: 15px; font-weight: 700; color: #0F1B2D; }
.ds-pl-offer-t span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: #536A84; text-wrap: pretty; }
.ds-pl-offer-a { display: flex; gap: 8px; flex: none; }
html[data-skin] .ds-pl-offer .ds-btn { height: 36px; padding: 0 14px; font-size: 14px; font-weight: 600; box-shadow: none; border-radius: 8px !important; }
html[data-skin] .ds-pl-offer .ds-btn.ds-primary { background: var(--ck-cobalt, #2F6BDB); border-color: var(--ck-cobalt, #2F6BDB); color: #fff; }
html[data-skin] .ds-pl-offer .ds-btn:not(.ds-primary) { border-color: transparent; background: #fff; color: #17283E; }

@media (max-width: 720px) {
  .ds-pl-s { font-size: 16px; line-height: 2.15; }
  html[data-skin] .ds-pl-chip { font-size: 15px; }
  html[data-skin] .ds-pl-chip.is-text > span { max-width: 22ch; }
  html[data-skin] .ds-pl-chip.is-into > span { max-width: 26ch; }
  .ds-pl-g { white-space: normal; }
  html[data-skin] .ds-pl-g .ds-pl-chip { max-width: 100%; }
  .ds-pl-foot { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .ds-pl-into { flex: none; }
  html[data-skin] .ds-pl .ds-pl-run { width: 100%; justify-content: center; height: 44px; }
  .ds-pl-offer-a { width: 100%; } .ds-pl-offer-a .ds-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-skin] .ds-pl-menu, .ds-pl-offer, html[data-skin] .ds-pl-chip svg { transition: none; }
  .ds-pl-note.warn { animation: none; }
}

/* Oct 9: ticketing partners shown locked in the platforms menu */
html[data-skin] .ds-pl-opt.is-soon { color: #647A94; cursor: default; }
html[data-skin] .ds-pl-opt.is-soon:hover { background: transparent; }
.ds-pl-ck.is-lock svg { opacity: 1; width: 14px; height: 14px; }
.ds-pl-opt.is-soon b { font-weight: 500; }
.ds-pl-ck.is-lock { color: #8A9AB0; }

/* Oct 9 (Josh): the plan card, tightened. The answer above it is a short title ("Here's the plan."), so the card loses its
   divider and its sub-line. The joining words go quiet so the chips read as the choices; one footer carries what it
   creates on the left and how long it takes (or what it still needs) beside the one action on the right. */
.ds-pl { margin-top: 12px; padding-top: 0; border-top: 0; }
.ds-pl-w { color: #647A94; }
html[data-skin] .ds-pl-chip { font-weight: 600; color: #17283E; }
html[data-skin] .ds-pl-chip.is-text > span { max-width: 36ch; font-weight: 600; }
.ds-pl-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid #EDF1F6; align-items: center; justify-content: space-between; gap: 12px 20px; }
.ds-pl-into { flex: 0 1 auto; }
.ds-pl-go { display: flex; align-items: center; gap: 14px; margin-left: auto; min-width: 0; }
.ds-pl-go .ds-pl-note { margin: 0; font-size: 13.5px; line-height: 1.3; color: #647A94; text-align: right; }
.ds-pl-go .ds-pl-note[hidden] { display: none; }
@media (max-width: 560px) { .ds-pl-go { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; } .ds-pl-go .ds-pl-note { flex-basis: 100%; text-align: left; } }   /* the full-width Run sits under its note, inside the card */

/* Daystrom: a plan that needs creative asks for it in its own chip, before Run is pressed; a question plan with trailers
   attached offers the plan that uses them */
html[data-skin] .ds-pl-chip.is-need { border: 1px dashed #2F6BDB; background: #F3F7FF; color: #2459C2; }
html[data-skin] .ds-pl-chip.is-need:hover { background: #E8F0FF; }
html[data-skin] .ds-pl-chip.is-need svg { color: #2459C2; }
.ds-pl-alt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #F1F5FB; font-size: 14px; line-height: 1.45; color: #2F4460; }
html[data-skin] .ds-pl-alt .ds-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ck-cobalt, #2F6BDB); cursor: pointer; }
html[data-skin] .ds-pl-alt .ds-link:hover { text-decoration: underline; }
.ds-pl-mk.is-first { margin-top: 4px; padding-top: 0; border-top: 0; }

html[data-skin] .ds-pl-chip.is-text.is-q > span { max-width: 52ch; }
@media (max-width: 720px) { html[data-skin] .ds-pl-chip.is-text.is-q > span { max-width: 100%; } }
