/* connect.css — the Connect data pill and window (see connect.js) */
.cx-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 15px; border-radius: 17px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.cx-pill:hover, .cx-pill:focus-visible { background: var(--hl); outline: none; box-shadow: 0 0 0 3px rgba(255,241,168,.8); }
#connect .veil { z-index: 60; }
.cx-win { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(880px, calc(100vw - 32px)); height: min(600px, calc(100vh - 32px));
  background: #fff; border: var(--rule); box-shadow: 0 30px 70px rgba(15,15,14,.3); display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.cx-win nav { border-right: 1px solid var(--hair); background: var(--paper); display: flex; flex-direction: column; padding: 16px 0; }
.cx-brand { display: flex; align-items: center; gap: 8px; padding: 0 18px 16px; font-weight: 600; }
.cx-step { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-left: 3px solid transparent; font-size: 15px; color: var(--sub); }
.cx-step i { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--hair); font: 700 11px var(--mono); font-style: normal; color: var(--ink); background: #fff; }
.cx-step[aria-current="step"] { background: var(--hl); border-left-color: var(--ink); color: var(--ink); font-weight: 600; } .cx-step[aria-current="step"] i { border-color: var(--ink); }
.cx-step[data-done="true"] { color: var(--ink); } .cx-step[data-done="true"] i { background: var(--ink); color: #fff; border-color: var(--ink); }
.cx-win section { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cx-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px 0; }
.cx-head h2 { margin: 0; font: 400 34px var(--serif); }
.cx-x { width: 30px; height: 30px; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; font-size: 14px; }
.cx-body { flex-grow: 1; padding: 18px 28px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.cx-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 28px; border-top: 1px solid var(--hair); }
.cx-err { margin-right: auto; color: var(--red); font-size: 13.5px; }
.cx-field { display: flex; flex-direction: column; gap: 7px; } .cx-field > span, .cx-label { font-size: 14px; font-weight: 600; }
.cx-tiles, .cx-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .cx-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cx-tile, .cx-opt { display: flex; flex-direction: column; gap: 3px; padding: 16px; border: 2px solid var(--hair); background: #fff; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.cx-tile b, .cx-opt b { font-size: 17px; } .cx-tile small, .cx-opt small { font-size: 13.5px; color: var(--sub); }
.cx-tile[aria-pressed="true"], .cx-opt[aria-pressed="true"] { border-color: var(--ink); background: #fffbe6; }
.cx-tile:disabled, .cx-opt:disabled { cursor: not-allowed; opacity: .6; }
.cx-drop { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border: 1.5px dashed var(--src); background: #f7f9ff; font-size: 15px; cursor: pointer; }
.cx-drop.over { background: var(--hl); } .cx-link { color: var(--src); font-size: 14px; }
.cx-map { display: grid; grid-template-columns: 100px 18px minmax(0, 1fr) 20px; gap: 10px; align-items: center; } .cx-map b { font-size: 16px; } .cx-map select { font: 13px var(--mono); }
.cx-ok { color: var(--ok); font-weight: 700; }
.cx-more summary { cursor: pointer; color: var(--src); font-size: 14px; } .cx-more[open] { display: flex; flex-direction: column; gap: 10px; }
.cx-example { padding: 12px 14px; border: 1px solid var(--hair); background: var(--paper); font-size: 14px; line-height: 1.55; } .cx-example .kicker { display: block; }
.cx-est { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .cx-big { font: 400 40px var(--serif); }
.cx-check { display: flex; gap: 10px; align-items: center; font-size: 15px; } .cx-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.cx-warn { color: var(--watch, #9a6200); font-size: 14px; }
.cx-bar { height: 6px; background: var(--hair); } .cx-bar i { display: block; height: 100%; background: var(--ink); transition: width 200ms; }
/* the console's top bar, where the pill lives */
.appbar { height: 52px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--hair); background: #fff; position: sticky; top: 0; z-index: 30; }
.appbar .brand { display: flex; align-items: center; gap: 9px; font-weight: 600; text-decoration: none; color: var(--ink); }
.appbar .spacer { margin-left: auto; } .appbar .docs { font-size: 13px; color: var(--sub); text-decoration: none; }
@media (max-width: 720px) {
  .cx-win { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); } .cx-win nav { flex-direction: row; flex-wrap: wrap; padding: 8px; border-right: 0; border-bottom: 1px solid var(--hair); }
  .cx-brand { display: none; } .cx-step { padding: 8px 10px; font-size: 13px; } .cx-opts, .cx-tiles { grid-template-columns: minmax(0, 1fr); } .cx-head h2 { font-size: 28px; }
  .appbar .docs { display: none; }
}
