/* Konformista concept pages: the Premiere panel as it is (suite-panel.js). CONCEPT ONLY.
   The panel's rules are its own theme's (premiere_uxp/ui/theme.css on
   claude/uxp-facelift-and-timer-panel), renamed kp- so the site's .btn and .card cannot
   reach them; its fonts are the site's. Beside it, what each part does. */
.kp {
  --bg0: #0a0807; --bg1: #121010; --bg2: #191716; --bg3: #221f1d; --bg4: #2a2623;
  --hair: rgba(255, 220, 150, .08); --control: rgba(255, 220, 150, .16); --control-hi: rgba(255, 220, 150, .26);
  --text: #efeae0; --text-dim: #b8ad97; --text-mut: #948a7b; --text-off: #6f675c;
  --gold: #c69d1b; --gold-hi: #d4ae2e; --gold-ink: #1a1408; --ok: #7ab87a;
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; text-align: left;
}
.kp .num { font-family: var(--mono); }

/* ---- what each part does ---- */
.kp-parts { list-style: none; margin: 0; padding: 0; counter-reset: kp; columns: 2; column-gap: 36px; }
.kp-parts li { break-inside: avoid; position: relative; padding: 12px 0 14px 34px; border-top: 1px solid var(--line, rgba(255, 255, 255, .08)); cursor: default;
  counter-increment: kp; transition: background .2s ease; }
.kp-parts li::before { content: counter(kp, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 500 11px var(--mono); color: var(--mut, var(--ink-mut, #8d8b83)); }
.kp-parts b { display: block; font-size: 15px; font-weight: 600; color: var(--text, #ecebe6); margin-bottom: 4px; }
.kp-parts span { display: block; font-size: 14px; line-height: 1.5; color: var(--dim, var(--ink-dim, #a3a199)); }
.kp-parts li.is-on::before { color: var(--gold-hi); }
.kp-parts li.is-on b { color: var(--gold-hi); }

/* ---- the panel, as it docks ---- */
.kp-dock { position: sticky; top: 96px; }
.kp-app { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14);
  background: var(--bg0); color: var(--text); font-family: var(--sans); font-size: 13px; -webkit-font-smoothing: antialiased;
  box-shadow: 0 50px 110px -50px rgba(0, 0, 0, 1); }
.kp-app button { font-family: inherit; }
.kp-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 10px; background: var(--bg1); border-bottom: 1px solid var(--hair); }
.kp-brand { display: flex; flex-direction: column; gap: 1px; }
.kp-word { font: 200 22px var(--display, var(--sans)); color: var(--gold); letter-spacing: 3px; line-height: 1.1; }
.kp-meta { display: flex; gap: 6px; font: 11px var(--mono); color: var(--text-dim); letter-spacing: 1px; }
.kp-conn { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-mut); }
.kp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-mut); }
.kp-dot.is-ok { background: var(--ok); }
.kp-seq { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 12px 16px 6px; }
.kp-seq-name { font-size: 15px; font-weight: 600; }
.kp-seq-meta { font-size: 12px; color: var(--text-dim); }
.kp-seq-meta .num { color: var(--text); }
.kp-seq-meta i { font-style: normal; color: var(--text-off); margin: 0 3px; }
.kp-cap { font-size: 11px; font-weight: 600; letter-spacing: .6px; color: var(--text-mut); }
.kp-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.kp-card { background: var(--bg1); border: 1px solid var(--hair); border-radius: 10px; padding: 12px 14px; }
.kp-summary-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kp-tally { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.kp-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600;
  color: rgb(var(--c)); background: rgba(var(--c), .12); border: 1px solid rgba(var(--c), .26); }
.kp-chip i { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--c)); }
.kp .sev-warn { --c: 194, 130, 48; } .kp .sev-review { --c: 194, 180, 48; } .kp .sev-rebuilt { --c: 46, 160, 160; }
.kp .sev-info { --c: 48, 160, 80; } .kp .sev-placeholder { --c: 140, 80, 194; }
.kp-summary { font-size: 13px; line-height: 1.45; color: var(--text-dim); }
.kp-sends, .kp-doors { display: flex; flex-direction: column; gap: 8px; }
.kp-door-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kp-grade { display: flex; align-items: center; gap: 8px; }
.kp-path { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-dim); }

/* one button family: a filled chip, the one gold action, a text button */
.kp-btn { display: flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 14px; margin: 0; cursor: pointer; white-space: nowrap;
  background: var(--bg3); border: 1px solid var(--control); border-radius: 6px; color: var(--text); font-size: 13px; font-weight: 600;
  transition: background .15s ease, border-color .15s ease, box-shadow .3s ease; }
.kp-btn:hover { background: var(--bg4); border-color: var(--control-hi); }
.kp-btn:disabled { color: var(--text-off); background: var(--bg2); border-color: var(--hair); cursor: default; }
.kp-primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.kp-primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.kp-quiet { background: transparent; border-color: transparent; color: var(--text-dim); padding: 0 8px; }
.kp-quiet:hover { background: transparent; border-color: transparent; color: var(--text); }
.kp-small { min-height: 26px; padding: 0 10px; font-size: 12px; flex: none; }
.kp-large { min-height: 40px; font-size: 14px; }
.kp-door { min-height: 36px; }
/* the control a part on the left names */
.kp-app .is-lit { box-shadow: 0 0 0 2px rgba(212, 174, 46, .75); }

.kp-progress { padding: 10px 16px 6px; background: var(--bg1); border-top: 1px solid var(--hair); }
.kp-progress[hidden] { display: none; }
.kp-progress-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; font-size: 12px; }
.kp-progress-head span:first-child { flex: 1; }
.kp-progress-head .num { font-size: 11px; color: var(--text-mut); }
.kp-track { position: relative; height: 4px; border-radius: 2px; background: var(--bg3); overflow: hidden; }
.kp-bar { position: absolute; top: 0; bottom: 0; width: 30%; background: var(--gold); animation: kp-slide 1.4s ease-in-out infinite; }
@keyframes kp-slide { from { left: -30%; } to { left: 100%; } }
.kp-status { min-height: 30px; padding: 8px 16px 10px; font-size: 12px; line-height: 1.4; color: var(--text-mut); background: var(--bg1); border-top: 1px solid var(--hair); }

/* the dialogs open over the panel, as they do in Premiere */
.kp-modal { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(10, 8, 7, .72); }
.kp-modal[hidden] { display: none; }
.kp-modal-card { width: 100%; max-height: 100%; overflow-y: auto; padding: 16px; border-radius: 10px; border: 1px solid var(--control); background: var(--bg1); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.kp-modal-title { margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.kp-modal-text { margin: 2px 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.kp-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.kp-modal-actions .kp-btn { min-width: 96px; }
.kp-row { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.kp-label { flex: 0 0 80px; font-size: 11px; font-weight: 600; letter-spacing: .6px; color: var(--text-mut); white-space: nowrap; }
.kp-select, .kp-input { flex: 1 1 auto; min-width: 0; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--control); background: var(--bg2); color: var(--text); font: 12.5px var(--sans); }
.kp-select-small { flex: 0 0 116px; }
/* the site's own field style (site.css, suite-pages.css) must not reach the panel's */
.kp .kp-app input.kp-input, .kp .kp-app select.kp-select { height: 28px; min-height: 0; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--control); background: var(--bg2); color: var(--text); font: 12.5px var(--sans); box-shadow: none; }
.kp-check { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); cursor: pointer; }
.kp-check input { accent-color: var(--gold); margin: 0; }
.kp-ext { flex: none; }
.kp-section { display: block; margin: 12px 0 4px; }

@media (max-width: 1100px) { .kp-parts { columns: 1; } }
@media (max-width: 860px) {
  .kp { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .kp-dock { position: static; order: -1; max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .kp-bar { animation: none; left: 0; width: 100%; opacity: .5; } }
