/* Insyn on real data: the bits the mockup didn't need (brand picker in the menu, save state in the
   editor, the answer's SQL list for admin, competitor search). Always light, red/ink/paper. */

/* the brand you work under (admin picks; a client sees theirs) */
.org-pick { display: grid; gap: 3px; margin: 0 10px 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.org-label { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.org-sel { border: 0; background: transparent; font: 700 15px/1.3 Inter, system-ui, sans-serif; color: var(--ink); padding: 0; margin: 0 -2px; cursor: pointer; min-width: 0; max-width: 100%; }
.org-sel:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.org-name { font-size: 15px; color: var(--ink); }
.tb-title { font-weight: 600; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* waiting */
.loading { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; }
.auth-form .btn-red[disabled] { opacity: .7; cursor: default; }

/* the answer: paragraphs and lists from the engine's text */
.ans-text { font-size: 15.5px; line-height: 1.6; display: grid; gap: 8px; }
.ans-text p { margin: 0; }
.ans-text ul { margin: 0; padding-left: 20px; display: grid; gap: 3px; }
.ans-meta span:not(.gpill) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sql-list { display: grid; gap: 10px; }
.sql-head { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.data-box.kpi-box { height: 150px; }
.data-box.kpi-box .ins-kpi-value { font-family: "Inter Tight", Inter, system-ui, sans-serif; font-weight: 800; font-size: 44px; }

/* a card on a tavla that is gone, or not for this person yet */
.card.card-gone { padding: 14px; color: var(--muted); font-size: 14px; display: grid; place-items: center; text-align: center; border-style: dashed; box-shadow: none; }

/* the editor: save state, and the look-only version */
.ed-save { font-size: 12.5px; color: var(--muted); white-space: nowrap; margin-right: 6px; }
.ed-save.bad { color: var(--red); font-weight: 600; }
.ed-ro .ed-board { cursor: default; }
.ed-props-ro { display: grid; gap: 10px; align-content: start; }
.ed-props-ro h3 { font-size: 16px; font-weight: 800; }

/* competitor list: remove, add from suggestions, search our data (admin) */
.complist li { display: flex; align-items: center; gap: 4px; }
.complist li > label { flex: 1; min-width: 0; }
.comp-x { flex-shrink: 0; width: 28px; height: 28px; font-size: 12px; color: var(--muted); }
.comp-x:hover { color: var(--red); }
.comp-add { display: grid; gap: 8px; margin-top: 4px; }
.comp-add select { min-height: 36px; }
.comp-search { width: 100%; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.comp-hits { display: grid; gap: 2px; margin-top: 4px; }
.comp-hit { text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--ink); }
.comp-hit:hover { background: var(--hover); }
.comp-hit span { color: var(--muted); }
.adm-found.busy { opacity: .55; transition: opacity .2s; }
.namelist.pick label > strong { min-width: 0; }
.namelist.pick .cwhy { flex-basis: 100%; padding-left: 26px; }
.adm-sub { margin: 6px 0 -4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.adm-danger { border-style: dashed; box-shadow: none; }
.mail-to { font-size: 13px; color: var(--ink-2); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-ctx-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* the answer column never grows past the screen: a chart drawn wider shrinks with it */
.ai-body { grid-template-columns: minmax(0, 1fr); }
.ai-body > *, .data-block, .data-box { min-width: 0; }

/* several of the brand's own series (LUMENE, IDA WARG, Cutrin): red, then ink, then dark grey; everyone else grey.
   Every pair checked with the dataviz validator (all pairs: CVD ΔE ≥ 11.8, normal ΔE ≥ 20); it flags the greys as
   achromatic, which is Hyllkoll's rule (red/grey/ink, never blue or green); legend, tooltip and table view carry identity. */
.ins-own2 { fill: var(--ink); } .ins-own3 { fill: #6B6B6B; }
.ins-swatch-own2, .ins-key-own2, .ml-key-own2 { background: var(--ink); }
.ins-swatch-own3, .ins-key-own3, .ml-key-own3 { background: #6B6B6B; }
.ml-line.ml-own2 { stroke: var(--ink); } .ml-line.ml-own3 { stroke: #6B6B6B; }
.ml-dot.ml-own2 { fill: var(--ink); } .ml-dot.ml-own3 { fill: #6B6B6B; }

/* the play mark on "Presentera" (drawn: the ▶ character turns into an emoji on Apple devices) */
.btn .play{width:10px;height:10px;margin-right:1px;flex:none;display:inline-block}

/* our own name for a brand in the data (eleganttouch), quiet, after where it is sold */
.keytag { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 6px; background: var(--hover); color: var(--muted); font: 500 11.5px/1.6 ui-monospace, "SF Mono", Menlo, monospace; vertical-align: 1px; }

/* Bevaka (insyn-watch.js): the section on a card's page, the dialog's rule line, the bell on a watched card */
.watch { display: grid; gap: 10px; }
.watch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.watch-item { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.watch-item.off { opacity: .6; }
.watch-item .actions { margin-top: 2px; }
.w-what { font-size: 13.5px; line-height: 1.45; }
.w-rule { align-items: center; }
.w-rule select { flex: 1 1 160px; }
.w-rule input[type="number"] { flex: 0 0 84px; width: 84px; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.w-word, .w-unit { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.w-now { margin: -6px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.wmark { display: inline-flex; width: 16px; height: 16px; color: var(--ink-2); }
.wmark svg { width: 16px; height: 16px; }

/* Dela: the external link section in the share dialog (insyn-canvas.js) */
.share-ext { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.share-gone { color: var(--red); font-weight: 600; }
.share-warn { margin: 0; font-size: 14px; font-weight: 600; color: var(--red); }
.share-list { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 2px; }

/* a tavla opened through its external link (insyn-shared.js): the pages top to bottom, no login */
.sh { min-height: 100vh; display: flex; flex-direction: column; border-top: 4px solid var(--red); }
.sh-top { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.sh-top .grow { flex: 1; }
.sh-main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 24px 24px; display: grid; gap: 8px; }
.sh-main h1 { font-size: 30px; font-weight: 800; line-height: 1.15; }
.sh-pages { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 24px; }
.sh-page { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); background: var(--card); }
.sh-page-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; }
.sh-page-in .el-slot { display: none; }
.sh-foot { margin-top: auto; padding: 20px 24px 28px; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .sh-top { padding: 12px 16px; }
  .sh-main { padding: 22px 16px 16px; }
  .sh-main h1 { font-size: 24px; }
  .sh-pages { gap: 14px; }
}
