/* styles/terminal.css: the code panel (ui/terminal.jsx), shared by the Setup room, the model page and the integration guides. */
.term { position: relative; border-radius: 22px; background: rgba(248,243,234,.82); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(42,31,25,.45); }
.term__tabs { position: relative; z-index: 3; display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.term__tabs::-webkit-scrollbar { display: none; }
.term__tabs button { position: relative; z-index: 1; flex: none; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font: 500 13.5px/1 var(--sans); cursor: pointer; transition: color 200ms ease, transform 160ms var(--out); }
.term__tabs button:active { transform: scale(0.97); }
.term__tabs button[aria-selected="true"] { color: var(--cream); }
.term__thumb { position: absolute; z-index: 0; top: 8px; left: 0; height: 38px; width: 0; border-radius: 999px; background: var(--dark); transition: transform 300ms var(--inout), width 300ms var(--inout); }
.term__body { position: relative; }
.term__code { margin: 0; padding: 26px 28px 30px; min-height: 352px; font: 400 clamp(12.5px, 1.05vw, 14.5px)/1.85 var(--mono); color: var(--ink); overflow-x: auto; tab-size: 2; transition: opacity 180ms ease; }
.term__code.is-hidden { opacity: 0; }
.term__vapour { position: absolute; z-index: 2; left: 0; right: 0; top: -160px; bottom: 0; width: 100%; height: calc(100% + 160px); pointer-events: none; }
.term__code k { color: var(--code-k); }
.term__code s { color: var(--umber); text-decoration: none; }
.term__code c { color: var(--code-c); font-style: italic; }
.term__copy { position: absolute; z-index: 4; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-hi); color: var(--ink-2); font: 500 12.5px/1 var(--sans); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--out); }
.term__copy:active { transform: scale(0.96); }
.term__copy svg { width: 14px; height: 14px; }
.term__copy[data-copied="copied"] { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.term__note { margin: 0; padding: 12px 28px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); min-height: 46px; }
@media (hover: hover) and (pointer: fine) { .term__tabs button:hover { color: var(--ink); } .term__tabs button[aria-selected="true"]:hover { color: var(--cream); } }
@media (pointer: coarse) { .term__tabs button { height: 44px; } }
@media (max-width: 640px) { .term__code { min-height: 300px; padding: 20px 18px 24px; } .term__note { padding-inline: 18px; } }
