/* Settings, Install: the choice cards, the borrowed computer card, the prompt well with its Copy, the requests waiting with their match codes, and the AIs connected. The tokens and the shared panel, tile, badge, button and arrow looks are app.css's. */
.inst { display: grid; gap: var(--gap); }
.inst-label { margin: 0; color: var(--ink-2); font-size: 0.9375rem; font-weight: 600; }

/* The choices: wall cards, the picked one with an accent border, a soft ring and its tick. */
.inst-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.inst-choice, .inst-borrow {
  --inst-tint: #eef2ff;
  position: relative; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-panel);
  background: linear-gradient(135deg, color-mix(in srgb, var(--inst-tint) 85%, #fff), #fff 50%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px -18px rgba(15, 23, 42, 0.28);
  color: var(--ink); font: 500 0.875rem/1.45 var(--font); text-align: left; cursor: pointer;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.inst-choice { display: grid; align-content: start; gap: 0.3rem; padding: 1.1rem 1.15rem 1.2rem; }
.inst-violet { --inst-tint: #ede9fe; }
.inst-choice:hover { transform: translateY(-2px); border-color: #c7d2fe; box-shadow: var(--glow-hover); }
.inst-choice:active { transform: scale(0.99); }
.inst-choice[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 12px 28px -18px rgba(15, 23, 42, 0.28); }
.inst-choice:focus-visible, .inst-borrow:focus-visible, .inst-done:focus-visible { outline: none; box-shadow: var(--focus); }
.inst-choice .fr-tile { width: 36px; height: 36px; margin-bottom: 0.45rem; border-radius: 10px; }
.inst-choice .fr-tile .icon { width: 19px; height: 19px; }
.inst-choice b { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.inst-choice > span:last-child { color: var(--ink-2); }
.inst-pick { position: absolute; top: 0.9rem; right: 0.9rem; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; opacity: 0; transform: scale(0.6); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out); }
.inst-pick .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.inst-choice[aria-pressed="true"] .inst-pick { opacity: 1; transform: none; }

/* The borrowed computer: one whole row that lifts, in the honey pair, its round arrow filling on hover. */
.inst-borrow { --inst-tint: #fef3c7; display: flex; align-items: center; gap: 0.875rem; width: 100%; padding: 0.875rem 1rem; }
.inst-borrow:hover { transform: translateY(-1px); border-color: #fcd34d; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 18px 34px -16px rgba(245, 158, 11, 0.35); }
.inst-borrow .fr-tile { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg, #fcd34d, #f59e0b); box-shadow: 0 6px 14px -6px #f59e0b, inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.inst-borrow .fr-tile .icon { width: 19px; height: 19px; }
.inst-borrow:hover .go, .inst-done:hover .go { border-color: var(--accent); background: var(--accent); color: #fff; }

/* The prompt beside the requests, one column under 1100px. */
.inst-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; gap: var(--gap); }
.inst-prompt, .inst-side { display: grid; gap: var(--gap); min-width: 0; }
.inst-grid .pnl { margin: 0; }
.inst-well { margin: 0; padding: 1rem 1.125rem; border-radius: var(--r-card); background: var(--well); box-shadow: inset 0 0 0 1px var(--line-soft); color: var(--ink); font: 500 0.875rem/1.65 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.inst-well code { font: inherit; }
.inst-foot { display: flex; justify-content: flex-end; }
.inst-foot .btn.inst-copy { height: auto; padding: 0.75rem 1.5rem; border: 0; border-radius: var(--r-pill); background: var(--grad-pill); box-shadow: var(--glow-btn); font-size: 0.9375rem; font-weight: 600; }
.inst-foot .btn.inst-copy .icon { width: 17px; height: 17px; }
.inst-foot .btn.inst-copy:active { transform: scale(0.97); }

/* A waiting request in its well: who asks, the time left, the match code large, then Deny and Approve side by side. */
.inst-asks, .inst-dones { display: grid; gap: 0.625rem; margin: 0; padding: 0; list-style: none; }
.inst-ask { display: grid; gap: 0.75rem; padding: 0.875rem; border-radius: var(--r-card); background: var(--well); box-shadow: inset 0 0 0 1px var(--line-soft); }
.inst-ask.is-new { animation: inst-rise var(--dur-slow) var(--ease-out); }
.inst-ask-head { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.inst-who { display: grid; flex: 1 1 auto; gap: 0.125rem; min-width: 0; }
.inst-who b { color: var(--ink); font-size: 0.875rem; font-weight: 600; overflow-wrap: anywhere; }
.inst-who span { color: var(--ink-2); font-size: 0.875rem; font-weight: 500; }
.inst-code { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.625rem 0.875rem; border-radius: var(--r-row); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ring-soft); }
.inst-code span { color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; }
.inst-code b { margin-right: -0.28em; color: var(--ink); font: 700 1.75rem/1 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; letter-spacing: 0.28em; }
.inst-answer { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.inst-answer .btn { width: 100%; }

/* An AI connected: a whole row to Devices. */
.inst-done { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 0.75rem; border-radius: var(--r-row); color: inherit; text-decoration: none; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.inst-done:hover { transform: translateY(-1px); background: var(--surface-2); box-shadow: var(--glow-hover); }

@keyframes inst-rise { from { opacity: 0; transform: translateY(4px); } }

@media (max-width: 1100px) {
  .inst-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .inst-choices { grid-template-columns: minmax(0, 1fr); }
  .inst-choice { grid-template-columns: 36px minmax(0, 1fr); column-gap: 0.875rem; padding: 0.9rem 1rem; }
  .inst-choice .fr-tile { grid-row: span 2; margin: 0; }
  .inst-choice b { padding-right: 1.75rem; }
  .inst-foot .btn.inst-copy { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .inst-choice, .inst-borrow, .inst-done, .inst-pick { transition: none; }
  .inst-choice:hover, .inst-choice:active, .inst-borrow:hover, .inst-done:hover, .inst-foot .btn.inst-copy:active { transform: none; }
  .inst-ask.is-new { animation: none; }
}
