/* ==========================================================================
   TRINO — Mesa inteligente
   A interface herda a linguagem institucional do simulador: grafite, ouro,
   informação hierarquizada e uma decisão principal por tela.
   ========================================================================== */

.btn-trino-advisor {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 15px !important;
  overflow: hidden;
  border: 1px solid rgba(201,168,106,.42) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(201,168,106,.11), rgba(201,168,106,.035)),
    #121517 !important;
  color: #f1eee7 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  font-size: 11px !important;
  font-weight: 760 !important;
  letter-spacing: .02em;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn-trino-advisor::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 28%, rgba(224,197,143,.13) 48%, transparent 68%);
  opacity: 0;
  transform: translateX(-35%);
  transition: opacity .2s ease, transform .35s ease;
}
.btn-trino-advisor:hover {
  border-color: rgba(201,168,106,.82) !important;
  background: linear-gradient(180deg, rgba(201,168,106,.16), rgba(201,168,106,.06)), #151719 !important;
  box-shadow: 0 7px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04);
  transform: translateY(-1px);
}
.btn-trino-advisor:hover::after { opacity: 1; transform: translateX(35%); }

.trino-advisor-mark {
  --mark-size: 22px;
  position: relative;
  display: inline-grid;
  width: var(--mark-size);
  height: var(--mark-size);
  flex: 0 0 var(--mark-size);
  place-items: center;
}
.trino-advisor-mark::before {
  content: "";
  width: 0;
  height: 0;
  border-right: calc(var(--mark-size) * .34) solid transparent;
  border-bottom: calc(var(--mark-size) * .68) solid #c9a86a;
  border-left: calc(var(--mark-size) * .34) solid transparent;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.25));
}
.trino-advisor-mark-core {
  position: absolute;
  top: 42%;
  left: 50%;
  width: calc(var(--mark-size) * .20);
  height: calc(var(--mark-size) * .20);
  border-radius: 50%;
  background: #f2ead8;
  box-shadow: 0 0 0 2px rgba(13,15,17,.78);
  transform: translate(-50%,-50%);
}

.trino-advisor-overlay {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(5,7,8,.68);
  backdrop-filter: blur(5px);
  animation: trinoOverlayIn .18s ease both;
}
.trino-advisor-drawer {
  display: flex;
  width: min(580px, 96vw);
  min-width: 0;
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(201,168,106,.23);
  background:
    radial-gradient(760px 360px at 100% 0, rgba(201,168,106,.055), transparent 58%),
    #0d0f11;
  color: #f1f1ee;
  box-shadow: -30px 0 80px rgba(0,0,0,.48);
  animation: trinoDrawerIn .24s cubic-bezier(.2,.75,.2,1) both;
}

.trino-advisor-head {
  position: relative;
  flex: 0 0 auto;
  padding: 18px 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(15,17,19,.92);
  backdrop-filter: blur(18px);
}
.trino-advisor-identity,
.trino-advisor-head-actions,
.trino-advisor-composition-title,
.trino-advisor-library-item {
  display: flex;
  align-items: center;
}
.trino-advisor-identity { gap: 10px; padding-right: 225px; }
.trino-advisor-identity strong {
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .22em;
  line-height: 1;
}
.trino-advisor-identity span:not(.trino-advisor-mark):not(.trino-advisor-mark-core) {
  display: block;
  margin-top: 5px;
  color: #85888a;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.trino-advisor-head-actions {
  position: absolute;
  top: 14px;
  right: 16px;
  gap: 8px;
}
.trino-advisor-new-chat,
.trino-advisor-close {
  min-height: 31px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 7px;
  background: transparent;
  color: #aaa9a3;
  font: inherit;
  font-size: 9.5px;
  cursor: pointer;
}
.trino-advisor-new-chat { padding: 0 10px; }
.trino-advisor-new-chat:hover,
.trino-advisor-close:hover { border-color: rgba(201,168,106,.42); color: #e0c58f; background: rgba(201,168,106,.05); }
.trino-advisor-close { width: 31px; padding: 0; font-size: 20px; line-height: 1; }
.trino-advisor-local {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #85888a;
  font-size: 8.5px;
  letter-spacing: .03em;
}
.trino-advisor-local i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fcba0;
  box-shadow: 0 0 0 3px rgba(127,203,160,.09);
}
.trino-advisor-tabs { display: flex; gap: 20px; margin-top: 17px; }
.trino-advisor-tabs button {
  position: relative;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777a7b;
  font: inherit;
  font-size: 9.5px;
  font-weight: 650;
  cursor: pointer;
}
.trino-advisor-tabs button.active { color: #ecebe7; }
.trino-advisor-tabs button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #c9a86a;
}

.trino-advisor-chat {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}
.trino-advisor-messages {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 26px 24px 18px;
  scrollbar-color: #3b3e40 transparent;
  scrollbar-width: thin;
}
.trino-advisor-messages::-webkit-scrollbar { width: 7px; }
.trino-advisor-messages::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: #3b3e40; background-clip: padding-box; }

.trino-advisor-welcome {
  max-width: 480px;
  margin: 4px auto 25px;
  text-align: center;
}
.trino-advisor-welcome-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.trino-advisor-orbit {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(201,168,106,.28);
  border-radius: 50%;
  background: rgba(201,168,106,.025);
  box-shadow: inset 0 0 0 7px rgba(201,168,106,.018);
}
.trino-advisor-eyebrow {
  color: #c9a86a;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .17em;
}
.trino-advisor-welcome h3 {
  max-width: 430px;
  margin: 17px auto 0;
  color: #f3f1eb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.16;
}
.trino-advisor-welcome p {
  max-width: 430px;
  margin: 10px auto 14px;
  color: #9b9c98;
  font-size: 11.5px;
  line-height: 1.55;
}
.trino-advisor-context-line {
  display: flex;
  justify-content: center;
  gap: 0;
  color: #666a6b;
  font-size: 8.5px;
}
.trino-advisor-context-line span + span::before { content: "·"; padding: 0 8px; color: #c9a86a; }

.trino-advisor-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
}
.trino-advisor-block-title strong { color: #c1c1bc; font-size: 9px; font-weight: 700; }
.trino-advisor-block-title span { color: #666a6b; font-size: 8px; }
.trino-advisor-quick-start { max-width: 480px; margin: 0 auto; }
.trino-advisor-suggestions { display: grid; gap: 7px; }
.trino-advisor-suggestions button {
  position: relative;
  display: grid;
  grid-template-columns: 105px 1fr 18px;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 8px;
  background: rgba(255,255,255,.017);
  color: #e4e3de;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.trino-advisor-suggestions button:hover {
  border-color: rgba(201,168,106,.42);
  background: rgba(201,168,106,.045);
  transform: translateX(2px);
}
.trino-advisor-suggestions button > span {
  color: #c9a86a;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.trino-advisor-suggestions button > strong {
  overflow: hidden;
  color: #aaa9a4;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trino-advisor-suggestions button > i { color: #c9a86a; font-size: 14px; font-style: normal; text-align: right; }

.trino-advisor-briefing {
  max-width: 480px;
  margin: 9px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  background: rgba(255,255,255,.012);
}
.trino-advisor-briefing > summary {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: #a7a7a2;
  cursor: pointer;
  list-style: none;
}
.trino-advisor-briefing > summary::-webkit-details-marker { display: none; }
.trino-advisor-briefing-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(201,168,106,.26);
  border-radius: 5px;
  color: #c9a86a;
  font-size: 7px;
}
.trino-advisor-briefing summary strong { display: block; font-size: 9.5px; }
.trino-advisor-briefing summary small { display: block; margin-top: 2px; color: #666a6b; font-size: 8px; }
.trino-advisor-briefing-time { color: #666a6b; font-size: 8px; }
.trino-advisor-briefing-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.trino-advisor-field { display: block; min-width: 0; }
.trino-advisor-field.full,
.trino-advisor-briefing-footer.full { grid-column: 1 / -1; }
.trino-advisor-field > span {
  display: block;
  margin-bottom: 5px;
  color: #777a7b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.trino-advisor-field input,
.trino-advisor-field select {
  width: 100%;
  min-height: 35px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
  outline: 0;
  background: #111416;
  color: #d9d9d4;
  font: inherit;
  font-size: 10px;
}
.trino-advisor-field input { padding: 7px 9px; }
.trino-advisor-field select { padding: 6px 8px; }
.trino-advisor-field input:focus,
.trino-advisor-field select:focus { border-color: rgba(201,168,106,.65); box-shadow: 0 0 0 3px rgba(201,168,106,.07); }
.trino-advisor-field input[aria-invalid="true"] { border-color: #c16f6f; }
.trino-advisor-briefing-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.trino-advisor-briefing-status { color: #d88d8d; font-size: 8.5px; }
.trino-advisor-briefing-footer .btn { min-height: 34px; font-size: 9px; }

.trino-advisor-message { max-width: 100%; }
.trino-advisor-user {
  width: max-content;
  max-width: min(440px, 88%);
  margin: 0 0 13px auto;
  padding: 10px 13px;
  border: 1px solid rgba(201,168,106,.22);
  border-radius: 10px 10px 2px 10px;
  background: rgba(201,168,106,.065);
  color: #d7d5cf;
  font-size: 10.5px;
  line-height: 1.45;
}
.trino-advisor-answer { margin: 0 0 20px; }
.trino-advisor-answer-body {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.024), transparent 34%),
    #141719;
  box-shadow: 0 16px 38px rgba(0,0,0,.18);
}
.trino-advisor-answer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
}
.trino-advisor-decision-label { display: inline-flex; align-items: center; gap: 7px; color: #c9a86a; font-size: 7.5px; font-weight: 850; letter-spacing: .14em; }
.trino-advisor-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #7fcba0; box-shadow: 0 0 0 3px rgba(127,203,160,.08); }
.trino-advisor-status-dot.attention { background: #d8b05d; box-shadow: 0 0 0 3px rgba(216,176,93,.08); }
.trino-advisor-confidence {
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 99px;
  color: #85888a;
  font-size: 7.5px;
}
.trino-advisor-confidence.confidence-high { border-color: rgba(127,203,160,.20); color: #8fd3aa; }
.trino-advisor-verdict {
  margin: 10px 16px 0;
  color: #f0eee8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.3;
}
.trino-advisor-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  margin: 15px 16px 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 8px;
  background: rgba(255,255,255,.075);
}
.trino-advisor-highlights > div { min-width: 0; padding: 10px; background: #111416; }
.trino-advisor-highlights span { display: block; color: #737677; font-size: 7px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.trino-advisor-highlights strong { display: block; overflow: hidden; margin-top: 4px; color: #d7d6d1; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.trino-advisor-highlights .tone-green strong { color: #7fcba0; }
.trino-advisor-highlights .tone-gold strong { color: #e0c58f; }
.trino-advisor-highlights .tone-amber strong { color: #d8b05d; }
.trino-advisor-rationale {
  margin: 14px 16px 0;
  color: #9d9e9a;
  font-size: 10.5px;
  line-height: 1.55;
}

.trino-advisor-compositions { margin: 15px 16px 0; }
.trino-advisor-composition {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.012);
}
.trino-advisor-composition.featured {
  border-color: rgba(201,168,106,.34);
  background: linear-gradient(135deg, rgba(201,168,106,.075), rgba(201,168,106,.018) 55%);
}
.trino-advisor-composition-title { gap: 9px; }
.trino-advisor-composition-title > div { min-width: 0; flex: 1; }
.trino-advisor-composition-title strong { display: block; color: #eceae4; font-size: 10.5px; }
.trino-advisor-composition-title span:not(.trino-advisor-rank):not(.trino-advisor-best-badge) { display: block; overflow: hidden; margin-top: 2px; color: #777a7b; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.trino-advisor-rank { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border: 1px solid rgba(201,168,106,.28); border-radius: 50%; color: #c9a86a; font-size: 7px; font-weight: 800; }
.trino-advisor-best-badge { padding: 4px 7px; border-radius: 99px; background: rgba(127,203,160,.08); color: #83cba2; font-size: 7px; font-weight: 750; }
.trino-advisor-composition-key { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.trino-advisor-composition-key span { display: block; color: #6d7071; font-size: 7px; text-transform: uppercase; }
.trino-advisor-composition-key strong { display: block; margin-top: 3px; color: #d0cfca; font-size: 9px; font-weight: 700; }
.trino-advisor-apply {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid #c9a86a;
  border-radius: 7px;
  background: #c9a86a;
  color: #17130c;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.trino-advisor-apply:hover { background: #dfc48e; }
.trino-advisor-alternatives { margin-top: 8px; }
.trino-advisor-alternatives > summary,
.trino-advisor-use-alt {
  color: #8e8f8b;
  font-size: 8.5px;
  cursor: pointer;
}
.trino-advisor-alternatives > summary { padding: 7px 0; }
.trino-advisor-alternatives .trino-advisor-composition { margin-top: 7px; }
.trino-advisor-use-alt { margin-top: 9px; padding: 0; border: 0; background: transparent; }
.trino-advisor-use-alt:hover { color: #e0c58f; }

.trino-advisor-answer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 16px 0;
  padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,.065);
}
.trino-advisor-copy,
.trino-advisor-followup > summary {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 6px;
  background: transparent;
  color: #85888a;
  font: inherit;
  font-size: 8px;
  cursor: pointer;
}
.trino-advisor-copy:hover,
.trino-advisor-followup > summary:hover { border-color: rgba(201,168,106,.34); color: #e0c58f; }
.trino-advisor-copy.success { border-color: rgba(127,203,160,.32); color: #7fcba0; }
.trino-advisor-followup { display: contents; }
.trino-advisor-followup > summary { list-style: none; }
.trino-advisor-followup > summary::-webkit-details-marker { display: none; }
.trino-advisor-followup ul {
  width: 100%;
  margin: 6px 0 0;
  padding: 9px 10px 9px 25px;
  border-radius: 6px;
  background: #111416;
  color: #92938f;
  font-size: 8.5px;
  line-height: 1.55;
}
.trino-advisor-source-count { margin-left: auto; color: #626566; font-size: 7.5px; }
.trino-advisor-detail,
.trino-advisor-evidence {
  margin: 10px 16px 0;
  border-top: 1px solid rgba(255,255,255,.055);
}
.trino-advisor-detail > summary,
.trino-advisor-evidence > summary {
  padding: 10px 0 0;
  color: #737677;
  font-size: 8.5px;
  cursor: pointer;
}
.trino-advisor-section { padding-top: 10px; }
.trino-advisor-section h4 { margin: 0 0 5px; color: #c2c2bd; font-size: 9px; }
.trino-advisor-section p { margin: 0; color: #92938f; font-size: 9.5px; line-height: 1.5; white-space: pre-line; }
.trino-advisor-section.tone-warning { padding-left: 9px; border-left: 2px solid rgba(216,176,93,.55); }
.trino-advisor-section.tone-positive { padding-left: 9px; border-left: 2px solid rgba(127,203,160,.50); }
.trino-advisor-evidence-list { display: grid; gap: 6px; padding-top: 8px; }
.trino-advisor-source { padding: 8px 9px; border: 1px solid rgba(255,255,255,.06); border-radius: 6px; background: #111416; }
.trino-advisor-source strong { display: block; color: #c0c0bb; font-size: 8.5px; }
.trino-advisor-source span { display: block; margin-top: 2px; color: #9a8050; font-size: 7.5px; }
.trino-advisor-source p { margin: 4px 0 0; color: #707374; font-size: 8px; line-height: 1.4; }
.trino-advisor-disclaimer { margin: 11px 16px 14px; color: #55595a; font-size: 7px; line-height: 1.4; }

.trino-advisor-thinking {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  padding: 11px 13px;
  border: 1px solid rgba(201,168,106,.18);
  border-radius: 8px;
  background: rgba(201,168,106,.035);
  color: #91928e;
  font-size: 9px;
}
.trino-advisor-thinking .trino-advisor-mark { animation: trinoAdvisorPulse 1.1s ease-in-out infinite; }

.trino-advisor-composer {
  flex: 0 0 auto;
  margin: 0 18px 18px;
  padding: 11px 11px 9px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  background: #141719;
  box-shadow: 0 -14px 40px rgba(0,0,0,.18), 0 12px 34px rgba(0,0,0,.22);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.trino-advisor-composer:focus-within { border-color: rgba(201,168,106,.58); box-shadow: 0 0 0 3px rgba(201,168,106,.055), 0 14px 36px rgba(0,0,0,.25); }
.trino-advisor-composer textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  max-height: 120px;
  box-sizing: border-box;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e5e4df;
  font: inherit;
  font-size: 11px;
  line-height: 1.45;
}
.trino-advisor-composer textarea::placeholder { color: #66696a; }
.trino-advisor-composer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 5px; }
.trino-advisor-composer-row > span { color: #5f6263; font-size: 7.5px; }
.trino-advisor-send {
  display: inline-flex;
  min-width: 88px;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 11px;
  border: 1px solid #c9a86a;
  border-radius: 7px;
  background: #c9a86a;
  color: #17130c;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}
.trino-advisor-send:hover { background: #e0c58f; }
.trino-advisor-send:disabled { opacity: .55; cursor: wait; }

.trino-advisor-sources {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 26px 24px;
}
.trino-advisor-source-hero {
  padding: 23px;
  border: 1px solid rgba(201,168,106,.22);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(201,168,106,.06), rgba(201,168,106,.012));
  text-align: center;
}
.trino-advisor-source-icon { display: grid; width: 36px; height: 36px; margin: 0 auto 11px; place-items: center; border: 1px solid rgba(201,168,106,.28); border-radius: 50%; color: #c9a86a; font-size: 18px; }
.trino-advisor-source-hero h3,
.trino-advisor-library h3 { margin: 0 0 6px; color: #e7e5df; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 500; }
.trino-advisor-source-hero p { max-width: 430px; margin: 0 auto 13px; color: #90918d; font-size: 10px; line-height: 1.5; }
.trino-advisor-source-hero .btn { min-height: 35px; font-size: 9px; }
.trino-advisor-source-limits { display: block; margin-top: 9px; color: #5f6263; font-size: 7.5px; }
.trino-advisor-source-status { min-height: 14px; margin-top: 8px; color: #81837f; font-size: 8.5px; }
.trino-advisor-source-status.success { color: #7fcba0; }
.trino-advisor-source-status.error { color: #d88d8d; }
.trino-advisor-library { margin-top: 20px; }
.trino-advisor-library-item {
  gap: 10px;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 8px;
  background: #141719;
}
.trino-advisor-library-item > div:nth-child(2) { min-width: 0; flex: 1; }
.trino-advisor-library-item strong { display: block; overflow: hidden; color: #d0cfca; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.trino-advisor-library-item span { display: block; margin-top: 2px; color: #737677; font-size: 8px; }
.trino-advisor-library-badge { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(201,168,106,.22); border-radius: 6px; color: #c9a86a; font-size: 7px; font-weight: 850; }
.trino-advisor-library-state { color: #7fcba0 !important; font-weight: 750; }
.trino-advisor-remove-source { border: 0; background: transparent; color: #777a7b; font: inherit; font-size: 8px; cursor: pointer; }
.trino-advisor-remove-source:hover { color: #d88d8d; }
.trino-advisor-empty-library { color: #737677; font-size: 9px; }
.trino-advisor-security-card { margin-top: 15px; padding: 12px; border-left: 2px solid rgba(127,203,160,.38); background: rgba(127,203,160,.035); }
.trino-advisor-security-card strong { color: #8acba4; font-size: 9px; }
.trino-advisor-security-card p { margin: 4px 0 0; color: #78847b; font-size: 8.5px; line-height: 1.45; }

@keyframes trinoOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes trinoDrawerIn { from { opacity: .4; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes trinoAdvisorPulse { 50% { opacity: .45; transform: scale(.94); } }

@media (max-width: 700px) {
  .trino-advisor-drawer { width: 100vw; }
  .trino-advisor-head { padding-right: 14px; padding-left: 14px; }
  .trino-advisor-identity { padding-right: 170px; }
  .trino-advisor-local { display: none; }
  .trino-advisor-messages,
  .trino-advisor-sources { padding: 20px 14px 14px; }
  .trino-advisor-welcome h3 { font-size: 24px; }
  .trino-advisor-suggestions button { grid-template-columns: 92px 1fr 16px; }
  .trino-advisor-composer { margin: 0 10px 10px; }
  .trino-advisor-highlights,
  .trino-advisor-composition-key { grid-template-columns: 1fr 1fr; }
  .trino-advisor-field.full,
  .trino-advisor-briefing-footer.full { grid-column: auto; }
  .trino-advisor-briefing-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .trino-advisor-overlay,
  .trino-advisor-drawer,
  .trino-advisor-thinking .trino-advisor-mark,
  .btn-trino-advisor::after { animation: none !important; transition: none !important; }
}
