/* Granum — alinhado à Clínica do Grão (modern-2026) */
:root {
  --g-green: #1a6b4a;
  --g-green-dark: #0f4a32;
  --g-green-soft: #e8f5ee;
  --g-green-mid: #d4ecdf;
  --g-text: #0f1f18;
  --g-muted: #5a7268;
  --g-line: rgba(15, 31, 24, 0.1);
  --g-bg: #f8faf9;
  --g-surface: #ffffff;
  --g-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --g-radius: 16px;
  --g-shadow: 0 10px 28px rgba(15, 31, 24, 0.08);
  --g-green-glow: rgba(26, 107, 74, 0.18);
  --g-vvh: 100dvh;
}

html:has(body.granum-chat),
body.granum-chat {
  height: var(--g-vvh, 100dvh);
  margin: 0;
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(26, 107, 74, 0.1) 0%, transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(15, 74, 50, 0.06) 0%, transparent 50%),
    var(--g-bg) !important;
  color: var(--g-text);
  font-family: var(--g-font);
  -webkit-font-smoothing: antialiased;
}

body.granum-chat {
  min-height: var(--g-vvh, 100dvh);
  max-height: var(--g-vvh, 100dvh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}

body.granum-chat .cg-footer {
  display: none !important;
}

body.granum-chat .cg-header {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--g-line);
  box-shadow: 0 1px 0 var(--g-line), 0 8px 24px rgba(15, 31, 24, 0.04);
}

/* Fallback header (quando assets/ da Clínica não estão nesta pasta) */
body.granum-chat .cg-header .container,
body.granum-chat .cg-header-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.granum-chat .cg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--g-text);
  font-family: var(--g-font);
}

body.granum-chat .cg-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

body.granum-chat .cg-brand-text strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

body.granum-chat .cg-brand-text small {
  font-size: 0.78rem;
  color: var(--g-muted);
}

body.granum-chat .cg-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.granum-chat .cg-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3d5248;
  text-decoration: none;
  font-family: var(--g-font);
}

body.granum-chat .cg-nav a.active {
  background: var(--g-green-soft);
  color: var(--g-green-dark);
  box-shadow: none;
}

body.granum-chat .cg-nav a.cg-nav-cta:not(.active) {
  background: linear-gradient(145deg, #1a6b4a 0%, #23855c 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(26, 107, 74, 0.22);
}

.g-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.g-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 4px 12px;
}

.g-empty {
  margin: 6vh auto 0;
  text-align: center;
  max-width: 30rem;
  padding: 8px 12px 24px;
}

.g-mark {
  display: block;
  width: min(440px, 88vw);
  height: auto;
  margin: 0 auto 10px;
}

.g-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.g-empty .g-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--g-green-dark);
  background: var(--g-green-soft);
}

.g-empty h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--g-green-dark);
}

.g-empty p {
  margin: 8px auto 0;
  max-width: 22rem;
  color: var(--g-muted);
  font-size: 1rem;
  line-height: 1.45;
}

body.granum-chat form.g-dock label.g-coleta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px auto 0;
  max-width: 36rem;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--g-muted);
  cursor: pointer;
}

.g-coleta input {
  margin-top: 2px;
  flex: 0 0 auto;
}

.g-msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  margin: 0 0 24px;
  align-items: start;
}

.g-msg.user {
  grid-template-columns: 1fr;
}

.g-msg.user .g-body {
  margin-left: auto;
  max-width: 85%;
  background: var(--g-green-soft);
  border: 1px solid rgba(26, 107, 74, 0.12);
  border-radius: 18px 18px 6px 18px;
  padding: 12px 16px;
  color: var(--g-text);
}

.g-av {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 2px;
  box-shadow: none;
}

.g-av .g-think-mark {
  width: 40px;
  height: 40px;
}

.g-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--g-text);
}

.g-msg.assistant .g-body {
  padding: 2px 0;
}

.g-body p {
  margin: 0 0 0.75em;
}

.g-body p:last-child {
  margin-bottom: 0;
}

.g-body em {
  font-style: italic;
  color: var(--g-green-dark);
}

.g-thumb {
  display: block;
  max-width: min(100%, 420px);
  border-radius: 14px;
  margin: 10px 0 0;
  border: 1px solid var(--g-line);
  box-shadow: var(--g-shadow);
}

.g-curve-wrap {
  margin: 0.75rem 0 1rem;
  max-width: 100%;
  overflow-x: auto;
}

.g-curve {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border: 1px solid var(--g-line);
  border-radius: 8px;
  background: #f7f4ef;
}

.g-user-file {
  font-size: 0.88rem;
  color: var(--g-muted);
  margin-top: 6px;
}

.g-dock {
  position: sticky;
  bottom: 0;
  padding: 10px 0 calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(248, 250, 249, 0) 0%, var(--g-bg) 28%);
}

.g-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 8px 8px;
}

.g-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 6px 10px;
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--g-text);
  box-shadow: 0 2px 8px rgba(15, 31, 24, 0.04);
}

.g-chip button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--g-muted);
  padding: 0;
  box-shadow: none;
}

.g-box {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
  border: 1px solid rgba(26, 107, 74, 0.16);
  border-radius: 22px;
  padding: 8px 10px 8px 10px;
  background: var(--g-surface);
  box-shadow: var(--g-shadow);
}

.g-box-mark {
  flex: 0 0 36px;
  width: 36px;
  height: 40px;
  display: grid;
  place-items: center;
  margin: 0 0 6px;
}

.g-box-mark .g-think-mark {
  width: 34px;
  height: 36px;
  opacity: 0.78;
}

.g-box-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.g-box:focus-within {
  border-color: rgba(26, 107, 74, 0.42);
  box-shadow: 0 0 0 4px var(--g-green-glow), var(--g-shadow);
}

.g-box textarea {
  width: 100%;
  border: 0;
  resize: none;
  outline: none;
  font: inherit;
  font-family: var(--g-font);
  font-size: 1rem;
  line-height: 1.5;
  max-height: 180px;
  padding: 6px 4px;
  background: transparent;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--g-text);
}

.g-box textarea::placeholder {
  color: #7a9186;
  font-size: 0.95em;
}

.g-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 2px;
}

.g-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  font-size: 0 !important;
  color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.g-icon {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--g-muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  transition: background 0.15s, color 0.15s;
}

.g-icon:hover {
  background: var(--g-green-soft);
  color: var(--g-green);
}

.g-app.is-drop .g-box {
  outline: 2px dashed var(--g-green);
  outline-offset: 4px;
}

.g-send {
  appearance: none;
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #1a6b4a 0%, #23855c 100%);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 4px 12px rgba(26, 107, 74, 0.28);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.g-send:hover:not(:disabled) {
  background: linear-gradient(145deg, #0f4a32 0%, #1a6b4a 100%);
  transform: translateY(-1px);
}

.g-send:disabled {
  background: var(--g-green-mid);
  color: rgba(15, 31, 24, 0.35);
  cursor: default;
  box-shadow: none;
}

.g-legal {
  text-align: center;
  margin: 12px 0 0;
}

.g-legal,
body.granum-chat form.g-dock label.g-coleta {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--g-muted);
}

.g-busy {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 8px 10px;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--g-green-soft);
  color: var(--g-green-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

.g-busy-mark,
.g-busy .g-think-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.g-busy[hidden] {
  display: none !important;
}

.g-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--g-muted);
  font-weight: 600;
}

.g-think {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--g-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.g-think-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: block;
  overflow: visible;
}

.g-think-mark .g-a-halo {
  stroke-dasharray: 10 16;
  transform-origin: 500px 500px;
  opacity: 0.22;
}

.g-think-mark .g-a-arc circle {
  fill: #145c43;
  opacity: 0.2;
}

.g-think-mark .g-a-arc circle:nth-child(n+4) {
  fill: #d9a11a;
}

.g-think-mark .g-a-packet {
  opacity: 0;
}

.g-think-mark .g-a-packet-a {
  offset-path: path("M628 372 H718 L768 322 H852");
}

.g-think-mark .g-a-packet-b {
  offset-path: path("M648 452 H748 L808 398 H878");
}

.g-app.is-thinking .g-box-mark .g-think-mark,
.g-msg.is-wait .g-think-mark,
.g-busy .g-think-mark {
  opacity: 1;
}

.g-app.is-thinking .g-think-mark .g-a-halo,
.g-msg.is-wait .g-think-mark .g-a-halo,
.g-busy .g-think-mark .g-a-halo {
  animation: g-a-halo 8s linear infinite;
  opacity: 0.4;
}

.g-app.is-thinking .g-think-mark .g-a-grain,
.g-msg.is-wait .g-think-mark .g-a-grain,
.g-busy .g-think-mark .g-a-grain {
  transform-origin: 500px 530px;
  animation: g-a-glow 1.5s ease-in-out infinite;
}

.g-app.is-thinking .g-think-mark .g-a-arc circle,
.g-msg.is-wait .g-think-mark .g-a-arc circle,
.g-busy .g-think-mark .g-a-arc circle {
  animation: g-a-spark 1.8s ease-in-out infinite;
}

.g-app.is-thinking .g-think-mark .g-a-arc circle:nth-child(1),
.g-msg.is-wait .g-think-mark .g-a-arc circle:nth-child(1),
.g-busy .g-think-mark .g-a-arc circle:nth-child(1) { animation-delay: 0s; }
.g-app.is-thinking .g-think-mark .g-a-arc circle:nth-child(2),
.g-msg.is-wait .g-think-mark .g-a-arc circle:nth-child(2),
.g-busy .g-think-mark .g-a-arc circle:nth-child(2) { animation-delay: 0.1s; }
.g-app.is-thinking .g-think-mark .g-a-arc circle:nth-child(3),
.g-msg.is-wait .g-think-mark .g-a-arc circle:nth-child(3),
.g-busy .g-think-mark .g-a-arc circle:nth-child(3) { animation-delay: 0.2s; }
.g-app.is-thinking .g-think-mark .g-a-arc circle:nth-child(4),
.g-msg.is-wait .g-think-mark .g-a-arc circle:nth-child(4),
.g-busy .g-think-mark .g-a-arc circle:nth-child(4) { animation-delay: 0.3s; }
.g-app.is-thinking .g-think-mark .g-a-arc circle:nth-child(5),
.g-msg.is-wait .g-think-mark .g-a-arc circle:nth-child(5),
.g-busy .g-think-mark .g-a-arc circle:nth-child(5) { animation-delay: 0.4s; }
.g-app.is-thinking .g-think-mark .g-a-arc circle:nth-child(6),
.g-msg.is-wait .g-think-mark .g-a-arc circle:nth-child(6),
.g-busy .g-think-mark .g-a-arc circle:nth-child(6) { animation-delay: 0.5s; }
.g-app.is-thinking .g-think-mark .g-a-arc circle:nth-child(7),
.g-msg.is-wait .g-think-mark .g-a-arc circle:nth-child(7),
.g-busy .g-think-mark .g-a-arc circle:nth-child(7) { animation-delay: 0.6s; }
.g-app.is-thinking .g-think-mark .g-a-arc circle:nth-child(8),
.g-msg.is-wait .g-think-mark .g-a-arc circle:nth-child(8),
.g-busy .g-think-mark .g-a-arc circle:nth-child(8) { animation-delay: 0.7s; }
.g-app.is-thinking .g-think-mark .g-a-arc circle:nth-child(9),
.g-msg.is-wait .g-think-mark .g-a-arc circle:nth-child(9),
.g-busy .g-think-mark .g-a-arc circle:nth-child(9) { animation-delay: 0.8s; }

.g-app.is-thinking .g-think-mark .g-a-trace path,
.g-msg.is-wait .g-think-mark .g-a-trace path,
.g-busy .g-think-mark .g-a-trace path {
  stroke-dasharray: 28 96;
  animation: g-a-flow 1.65s linear infinite;
}

.g-app.is-thinking .g-think-mark .g-a-nodes circle,
.g-msg.is-wait .g-think-mark .g-a-nodes circle,
.g-busy .g-think-mark .g-a-nodes circle {
  animation: g-a-node 1.15s ease-in-out infinite;
}

.g-app.is-thinking .g-think-mark .g-a-packet,
.g-msg.is-wait .g-think-mark .g-a-packet,
.g-busy .g-think-mark .g-a-packet {
  opacity: 1;
  animation: g-a-packet 1.45s linear infinite;
}

.g-app.is-thinking .g-think-mark .g-a-packet-b,
.g-msg.is-wait .g-think-mark .g-a-packet-b,
.g-busy .g-think-mark .g-a-packet-b {
  animation-delay: 0.35s;
}

@keyframes g-a-halo {
  to {
    transform: rotate(360deg);
  }
}

@keyframes g-a-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 1px rgba(242, 200, 91, 0.15));
    opacity: 0.9;
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(242, 200, 91, 0.85));
    opacity: 1;
  }
}

@keyframes g-a-spark {
  0%,
  100% {
    opacity: 0.16;
  }
  48%,
  56% {
    opacity: 1;
  }
}

@keyframes g-a-flow {
  to {
    stroke-dashoffset: -124;
  }
}

@keyframes g-a-node {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 1;
  }
}

@keyframes g-a-packet {
  to {
    offset-distance: 100%;
  }
}

.g-spin {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2.5px solid rgba(26, 107, 74, 0.22);
  border-top-color: var(--g-green);
  border-radius: 50%;
  animation: g-rotate 0.7s linear infinite;
}

@keyframes g-rotate {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .g-spin { animation: none; border-top-color: var(--g-green); }
}

@media (max-width: 640px) {
  .g-app {
    width: calc(100% - 12px);
  }

  .g-thread {
    padding: 12px 2px 8px;
    -webkit-overflow-scrolling: touch;
  }

  .g-empty {
    margin-top: 3vh;
    padding: 4px 8px 16px;
  }

  .g-mark {
    width: min(360px, 90vw);
  }

  .g-empty p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .g-icon,
  .g-send {
    width: 44px;
    height: 44px;
  }

  .g-box {
    border-radius: 18px;
  }

  .g-box textarea {
    font-size: 16px;
  }

  .g-coleta {
    max-width: none;
    padding: 0 4px;
  }

  body.granum-chat .cg-header-inner,
  body.granum-chat .cg-header .container {
    min-height: 56px;
    width: calc(100% - 16px);
  }

  body.granum-chat .cg-nav {
    /* menu mobile do site continua disponível */
  }
}

@media (max-height: 720px) {
  .g-mark {
    width: min(320px, 82vw);
  }

  .g-empty {
    margin-top: 1.5vh;
  }
}

.g-laudo {
  margin: 0.85rem 0 0.4rem;
  background: #fff;
  border: 1px solid var(--g-line);
  border-radius: 14px;
  overflow: hidden;
  max-width: 36rem;
}

.g-laudo-brands {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 8px 14px;
  padding: 10px 14px 12px;
  min-height: 108px;
  background: #f4f8f6;
  border-bottom: 1px solid var(--g-line);
}

.g-laudo-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 96px;
  min-width: 0;
}

.g-laudo-brand img {
  display: block;
  max-height: 90px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.g-laudo-brand--granum img {
  max-height: 54px;
}

.g-laudo-brand--clinica img,
.g-laudo-brand--nta img {
  max-height: 90px;
}

.g-laudo-brand--ufmt img {
  max-height: 88px;
}

.g-laudo-head {
  padding: 12px 16px 4px;
}

.g-laudo-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-green-dark);
}

.g-laudo-head h2 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--g-text);
}

.g-laudo-product {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--g-green-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.g-laudo--soja .g-laudo-product { background: #1f6b3a; }
.g-laudo--milho .g-laudo-product { background: #c9a227; color: #1a1404; }
.g-laudo--milho-pipoca .g-laudo-product { background: #d47a1f; color: #1a1404; }
.g-laudo--feijao .g-laudo-product { background: #5c2e1a; }
.g-laudo--arroz .g-laudo-product { background: #5b6570; }
.g-laudo--trigo .g-laudo-product { background: #b0894b; color: #1a1404; }

.g-laudo-spec {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--g-green-dark);
}

.g-laudo-alert {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 2px solid #b45309;
  background: #fff7ed;
  border-radius: 10px;
  color: #7c2d12;
}

.g-laudo-alert strong {
  display: block;
  margin: 0 0 4px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.g-laudo-alert p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.g-laudo-warn {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8a4b12;
}

.g-laudo-meta {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--g-muted);
}

.g-laudo-ids {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 16px 12px;
}

.g-laudo-ids[data-n="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.g-laudo-ids[data-n="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.g-laudo-id {
  background: var(--g-green-soft);
  border-radius: 10px;
  padding: 8px 10px;
}

.g-laudo-id small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g-muted);
}

.g-laudo-id strong {
  display: block;
  margin-top: 2px;
  font-size: 0.98rem;
  color: var(--g-green-dark);
}

.g-laudo table {
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.g-laudo th,
.g-laudo td {
  text-align: left;
  padding: 6px 0;
  border-bottom: 1px solid var(--g-line);
}

.g-laudo th {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g-muted);
}

.g-laudo td:last-child,
.g-laudo th:last-child,
.g-laudo td.num,
.g-laudo th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.g-laudo tr.is-pull td {
  color: var(--g-green-dark);
  font-weight: 700;
}

.g-laudo-foot {
  padding: 0 16px 12px;
  font-size: 0.75rem;
  color: var(--g-muted);
  line-height: 1.45;
}

.g-laudo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}

.g-laudo-actions button {
  appearance: none;
  border: 1px solid rgba(26, 107, 74, 0.28);
  background: var(--g-green-soft);
  color: var(--g-green-dark);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}

.g-laudo-actions button:hover {
  background: var(--g-green-mid);
}

@media print {
  body.granum-chat .cg-header,
  body.granum-chat .g-dock,
  body.granum-chat .g-msg.user,
  body.granum-chat .g-av,
  body.granum-chat .g-empty,
  body.granum-chat .g-msg.assistant .g-body > p,
  .g-laudo-actions {
    display: none !important;
  }

  body.granum-chat,
  body.granum-chat .g-app,
  body.granum-chat .g-thread {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .g-laudo {
    max-width: none;
    border: 0;
    border-radius: 0;
    break-inside: avoid;
  }

  .g-laudo-alert {
    border-width: 2px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media (max-width: 520px) {
  .g-laudo-brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .g-laudo-ids,
  .g-laudo-ids[data-n="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
