/* SPDX-License-Identifier: Apache-2.0 */
/* learn.css — 0.8 SU.811 (sx-learn): the "What it learned" dialog and the offer bar (learn-ui.js). Tokens only. */

.tc-learnbar {
  position: absolute; z-index: 3; left: .5rem; right: .5rem; top: .5rem;
  padding: .35rem .6rem; font-size: .8125rem;
  background: var(--sheet-2); border: var(--pen-2) solid var(--ink); border-radius: var(--radius);
}
.tc-learnbar .btn-sm-cc { white-space: nowrap; }

.tc-dialog.tc-learn { width: min(46rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); display: flex; flex-direction: column; }
.tc-dialog.tc-learn:not([open]) { display: none; }
.tc-learn-body { overflow: auto; padding: .25rem 1rem .75rem; font-size: .875rem; }
.tc-learn-lead { margin: .5rem 0; }
.tc-learn-note { margin: .5rem 0; padding: .4rem .6rem; border-left: var(--pen-3) solid var(--action); font-size: .8125rem; }
.tc-learn-top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .5rem 0; }
.tc-learn-top .tc-input { flex: 1 1 14rem; }
.tc-learn-sec { border-top: var(--pen-1) solid var(--line); margin-top: .75rem; padding-top: .5rem; }
.tc-learn-h3 { font-size: .9375rem; font-weight: 700; margin: 0 0 .25rem; }
.tc-learn-intro, .tc-learn-empty { margin: .25rem 0; color: var(--ink-2); font-size: .8125rem; }
.tc-learn-list { list-style: none; margin: .25rem 0 0; padding: 0; }
.tc-learn-row { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; border-bottom: var(--pen-1) solid var(--line); }
.tc-learn-row:last-child { border-bottom: 0; }
.tc-learn-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tc-learn-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-learn-sub { color: var(--ink-2); font-size: .75rem; }
.tc-learn-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.tc-learn-acts .btn-sm-cc { white-space: nowrap; }
.tc-learn-thumb { flex: none; width: 2.5rem; height: 2.5rem; object-fit: contain; image-rendering: pixelated; border: var(--pen-1) solid var(--line); background: var(--sheet); }
.tc-learn-checks { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.tc-learn .tc-iconbtn { background: none; border: var(--pen-1) solid transparent; border-radius: var(--radius); color: var(--ink); padding: .15rem .35rem; cursor: pointer; }
.tc-learn .tc-iconbtn:hover, .tc-learn .tc-iconbtn:focus-visible { border-color: var(--ink); }
@media (max-width: 540px) {
  .tc-learn-row { flex-wrap: wrap; }
  .tc-learn-acts { width: 100%; justify-content: flex-start; }
}
.tc-learn-field { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .8125rem; }
.tc-learn-field .tc-input { font-weight: 400; }
.tc-learn .btn-sm-cc, .tc-learnbar .btn-sm-cc { padding: .15rem .55rem; font-size: .8125rem; line-height: 1.4; }

/* 0.11 MT.1: the model takeoff dialog (modeltakeoff-takeoff.js; the table's own layout is the shared panel's) */
.tc-dialog.tc-learn.tc-mt { width: min(72rem, calc(100vw - 2rem)); }
.tc-mt .tc-dialog-head { justify-content: space-between; }
