/* Extra parts for the External Client Apps practice org.
   Salesforce look-alike bits use SLDS tokens (mock-org.css); guide bits use the Clay tokens (guide.css). */

/* New External Client App: one long Lightning page with collapsible sections */
.eca-form { padding: 8px 16px 16px; }
.eca-req { margin: 4px 0 4px; }
.eca-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.eca-sec { padding: 8px 4px 0; }
.eca-sec .slds-form-element { max-width: 640px; }
.eca-foot { display: flex; justify-content: flex-end; gap: 6px; padding-top: 12px; border-top: 1px solid var(--sf-line); margin-top: 12px; flex-wrap: wrap; }
.eca-foot.l { justify-content: flex-start; }
.lx-card.flat { border: 0; border-bottom: 1px solid var(--sf-line); border-radius: 0; margin: 0 0 8px; }
.lx-card.flat > header { padding: 8px 0; }
.lx-card.flat .lx-fields { padding: 0 0 12px; }
.lx-card.flat .body { padding: 0 0 8px; }
.eca-keys-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f3f3f3; border-radius: 4px; padding: 8px 12px; flex-wrap: wrap; }

/* Dueling picklist (Lightning style) */
.lx-duel { margin-bottom: 12px; }
.duel-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.duel-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; max-width: 300px; }
.duel-box { height: 170px; overflow-y: auto; border: 1px solid var(--sf-line2); border-radius: 4px; background: #fff; padding: 4px 0; }
.duel-opt { padding: 5px 10px; cursor: pointer; font-size: .8125rem; line-height: 1.3; }
.duel-opt:hover { background: #f3f3f3; }
.duel-opt.sel { background: #0176d3 !important; color: #fff; }
.duel-mid { display: flex; flex-direction: column; gap: 6px; }

/* Consumer Key and Secret */
.key-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sf-line); }
.key-row .k { font-weight: 700; font-size: .75rem; color: var(--sf-weak); }
.key-v { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.key-v code { font: 12.5px "Geist Mono", Consolas, monospace; background: #f3f3f3; padding: 4px 8px; border-radius: 4px; overflow-wrap: anywhere; min-width: 0; }

/* SkyShip ops console (re-uses the Developer Console window styles) */
.dc.ops .dc-title { background: linear-gradient(#2a3142, #1d2230); color: #fff; border-bottom-color: #111; }
.dc.ops .dc-title .x { color: #fff; }
.dc.ops .dc-menu { background: #252b3a; color: #c9cfdd; border-bottom-color: #111; }
.ops-dot { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #3CC4B0, #7C97F6); }
.ops-host { margin-right: auto; color: #666; font: 11.5px "Geist Mono", monospace; }
.rec { margin: 0; }
.rec > header { gap: 10px; }
.rec-ic { width: 28px; height: 28px; border-radius: 4px; background: #06a59a; display: grid; place-items: center; }
.rec-ic .ico { fill: #fff; }
.rec-new { color: #2e844a; background: #e6f7ef; padding: 1px 6px; border-radius: 4px; }

/* Guide panes: inbox and SkyShip admin portal */
.cg .mail-dot { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, #FF8A6B, #FFC93C); }
.cg .mail .row { display: flex; gap: 8px; align-items: center; }
.cg .mail-body { margin: 0; font-size: 14px; }
.cg .mail-code { font: 600 22px var(--mono); letter-spacing: .18em; color: var(--ink); background: var(--panel); border-radius: 10px; padding: 6px 12px; }
.cg .sky-sel { height: 34px; font: 12.5px var(--mono); border: 0; border-radius: 10px; padding: 0 8px; color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); width: 100%; }

@media (max-width: 760px) {
  .eca-grid { grid-template-columns: minmax(0, 1fr); }
  .key-row { grid-template-columns: minmax(0, 1fr); }
}
.lx-duel > .slds-form-element__label { display: block; font-weight: 700; margin-bottom: 4px; }
.slds-section.slds-is-open .slds-section__title-action-icon { transform: none; }
