/* ext-visualise (13 Oct): the Concept section of the conversation panel. app.css tokens only,
   so light and dark both follow. Quiet until there is a picture; then the picture leads. */
.concept-panel { display: grid; gap: 12px; padding: 14px 16px 12px; min-width: 0; }
.concept-panel .side-note { margin: 0; overflow-wrap: anywhere; }
.concept-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.concept-chip { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid var(--rule2); border-radius: 999px; font: 600 10px/1.4 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.concept-title { margin: 0; font: 600 10.5px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.concept-missing { margin: 0; padding: 10px 12px; border: 1px dashed var(--rule2); border-radius: var(--r); display: grid; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.concept-missing b { font-weight: 600; color: var(--ink); }
.concept-missing ul { margin: 0; padding-left: 18px; }

/* the photos it would use */
.concept-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.concept-photo { position: relative; display: grid; gap: 4px; width: 92px; padding: 0; border: 0; background: transparent; box-shadow: none; text-align: left; cursor: pointer; }
.concept-photo:hover { transform: none; background: transparent; }
.concept-photo img, .concept-photo .photo-missing { width: 92px; height: 92px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--rule); background: var(--bg2); font-size: 10.5px; }
.concept-photo.is-on img { outline: 2px solid var(--gold); outline-offset: 1px; }
.concept-photo.is-off img { opacity: .45; }
.concept-photo-kind { font: 600 10.5px/1.3 var(--text); color: var(--soft); white-space: nowrap; }
.concept-photo.is-on .concept-photo-kind { color: var(--ink); }
.concept-brief { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--soft); overflow-wrap: anywhere; }
.concept-brief b { font-weight: 600; color: var(--ink2); }

.concept-note { width: 100%; min-height: 54px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 13.5px; line-height: 1.45; resize: vertical; }
.concept-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.concept-disclosure { margin: 0; flex: 1 1 180px; font-size: 12px; line-height: 1.45; color: var(--soft); }
.concept-disclosure b { font-weight: 600; color: var(--ink2); }
.concept-btn { height: 30px; padding: 0 12px; gap: 6px; border-radius: var(--r-sm); background: transparent; color: var(--soft); font: 600 12px/1 var(--text); box-shadow: none; white-space: nowrap; }
.concept-btn:hover { color: var(--ink); background: var(--accent2); border-color: var(--gold-line); transform: none; }
.concept-btn.is-primary { height: 34px; background: var(--primary-bg); border-color: var(--primary-line); color: var(--primary-fg); }
.concept-btn.is-primary:hover { background: var(--primary-bg-hover); color: var(--primary-fg); }
.concept-btn[disabled] { opacity: .5; cursor: default; }
.concept-panel .icon { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.concept-budget { margin: 0; font-size: 11.5px; color: var(--muted); }
.concept-problem { margin: 0; padding: 9px 11px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 7%, var(--paper)); font-size: 12.5px; line-height: 1.5; color: var(--ink2); }
.concept-problem.is-stop { border-color: color-mix(in srgb, var(--stop) 45%, transparent); background: color-mix(in srgb, var(--stop) 6%, var(--paper)); }

/* one concept: the design and the preview side by side */
.concept-one { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule); }
.concept-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.concept-fig { margin: 0; display: grid; gap: 6px; min-width: 0; }
.concept-fig img { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--rule); background: var(--bg2); cursor: zoom-in; }
.concept-fig figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font: 600 11.5px/1.3 var(--text); color: var(--ink2); }
.concept-hole { display: grid; place-items: center; min-height: 150px; aspect-ratio: 1; padding: 14px; border: 1px dashed var(--rule2); border-radius: var(--r); font-size: 12px; line-height: 1.5; color: var(--soft); text-align: center; overflow-wrap: anywhere; }
.concept-hole.is-busy { border-style: solid; border-color: var(--rule); background: linear-gradient(100deg, var(--paper2) 30%, var(--bg2) 50%, var(--paper2) 70%) 0 0 / 300% 100%; animation: concept-wait 2.2s linear infinite; }
@keyframes concept-wait { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .concept-hole.is-busy { animation: none; } }
.concept-label { margin: 0; padding: 7px 10px; border-left: 2px solid var(--gold); background: var(--paper2); border-radius: 0 var(--r-sm) var(--r-sm) 0; font: 600 12px/1.45 var(--text); color: var(--ink); }
.concept-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.concept-meta { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.concept-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--soft); }
.concept-older > summary { cursor: pointer; font: 600 12px/1.6 var(--text); color: var(--soft); }
.concept-older[open] > summary { margin-bottom: 4px; }
@media (max-width: 420px) {
  .concept-pair { grid-template-columns: 1fr; }
  .concept-btn { height: 36px; }
}

.concept-photo .photo-missing { display: grid; place-items: center; padding: 6px; text-align: center; line-height: 1.3; color: var(--soft); overflow: hidden; }

/* 13 Oct: the feasibility assessment comes before any picture and sits above every one */
.concept-assess { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule); min-width: 0; }
.concept-verdict-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.concept-verdict { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 7%, var(--paper)); color: var(--ink); font: 600 12px/1.4 var(--text); }
.concept-verdict.is-feasible { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 8%, var(--paper)); }
.concept-verdict.is-not { border-color: color-mix(in srgb, var(--stop) 45%, transparent); background: color-mix(in srgb, var(--stop) 6%, var(--paper)); }
.concept-summary { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.concept-criteria { display: grid; gap: 5px; font-size: 12.5px; line-height: 1.45; }
.concept-criterion { display: grid; grid-template-columns: 9px minmax(84px, 34%) minmax(0, 1fr); gap: 2px 8px; align-items: baseline; color: var(--ink2); }
.concept-criterion b { font-weight: 600; color: var(--ink); }
.concept-criterion > span:last-child { overflow-wrap: anywhere; color: var(--soft); }
.concept-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); align-self: center; }
.concept-criterion.is-concern .concept-dot { background: var(--warn); }
.concept-criterion.is-blocker .concept-dot { background: var(--stop); }
.concept-criterion.is-not_judged .concept-dot { background: transparent; border: 1px solid var(--rule2); }
.concept-more > summary { cursor: pointer; font: 600 12px/1.6 var(--text); color: var(--soft); }
.concept-more[open] { display: grid; gap: 5px; }
.concept-list { font-size: 12.5px; line-height: 1.5; color: var(--ink2); }
.concept-list b { font-weight: 600; color: var(--ink); }
.concept-list ul { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.concept-guidance { display: grid; gap: 6px; padding: 10px 12px; border: 1px dashed var(--rule2); border-radius: var(--r); font-size: 13px; line-height: 1.5; color: var(--ink2); }
.concept-guidance b { font-weight: 600; color: var(--ink); }
.concept-guidance p { margin: 0; overflow-wrap: anywhere; }
.concept-guidance-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 11.5px; color: var(--muted); }
.concept-top-box { display: grid; gap: 6px; }
.concept-top { display: inline-flex; align-self: start; justify-self: start; border: 1px solid var(--rule2); border-radius: var(--r-sm); overflow: hidden; }
.concept-top button { height: 30px; padding: 0 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--soft); font: 600 12px/1 var(--text); text-transform: capitalize; }
.concept-top button + button { border-left: 1px solid var(--rule2); }
.concept-top button:hover { transform: none; background: var(--paper2); color: var(--ink); }
.concept-top button[aria-pressed="true"] { background: var(--accent2); color: var(--ink); }
.concept-kind { margin: 0; font: 600 10.5px/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.concept-kind.is-adapted { color: var(--warn); }
.concept-link { height: auto; padding: 2px 0; border: 0; background: transparent; box-shadow: none; color: var(--soft); font: 600 12px/1.4 var(--text); text-decoration: underline; text-underline-offset: 3px; }
.concept-link:hover { transform: none; background: transparent; color: var(--ink); }
.concept-link[disabled] { opacity: .5; cursor: default; }
@media (max-width: 420px) { .concept-top button { height: 36px; } .concept-criterion { grid-template-columns: 9px minmax(0, 1fr); } .concept-criterion > span:last-child { grid-column: 2; } }
.concept-ask .concept-btn { white-space: normal; height: auto; min-height: 34px; padding-top: 6px; padding-bottom: 6px; text-align: left; line-height: 1.3; max-width: 100%; }
