.jurisprudencia-search-page {
  position: relative;
  min-height: calc(100vh - 96px);
  max-width: 100vw;
  overflow-x: clip;
  overflow-y: visible;
  background:
    radial-gradient(circle at 18% 0%, rgba(51, 99, 225, 0.10) 0%, rgba(51, 99, 225, 0.04) 24%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 86% 0%, rgba(51, 99, 225, 0.06) 0%, rgba(51, 99, 225, 0.025) 24%, rgba(255, 255, 255, 0) 40%),
    #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jurisprudencia-search-page,
.jurisprudencia-search-page * {
  box-sizing: border-box;
}

.jurisprudencia-search-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.34) 46%, rgba(0, 0, 0, 0) 86%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.34) 46%, rgba(0, 0, 0, 0) 86%);
  pointer-events: none;
}

.jurisprudencia-search-page::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 78%);
  pointer-events: none;
}

.search-shell {
  position: relative;
  z-index: 1;
  padding: 72px 0 96px;
}

.search-shell .container {
  width: min(1376px, calc(100% - 48px));
  max-width: 1376px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

.search-brand-mark {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}

.search-page-form {
  width: min(1120px, 100%);
  max-width: 100%;
  margin-bottom: 24px;
}

.search-status {
  width: min(1120px, 100%);
  margin: 0 auto 22px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #4b5563;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
}

.search-status-usage {
  display: grid;
  gap: 10px;
  color: #526078;
}

.search-usage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #0f172a;
}

.search-usage-head strong {
  font-weight: 700;
}

.search-usage-head span {
  color: #526078;
  font-size: 14px;
}

.search-usage-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef8;
}

.search-usage-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #3363e1;
  transition: width 0.24s ease;
}

.search-status-usage p {
  margin: 0;
  color: #526078;
}

.search-status-usage a {
  color: #2452c6;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: min(1120px, 100%);
  margin: 0 auto 22px;
}

.search-secondary-button {
  min-height: 38px;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #ffffff;
  color: #101828;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.search-secondary-button:hover,
.search-secondary-button:focus {
  border-color: #3363E1;
  color: #3363E1;
}

.search-source-panel,
.search-results {
  width: min(1120px, 100%);
  max-width: 100%;
  margin: 0 auto;
}

.search-source-panel {
  margin-bottom: 22px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 22px;
}

.search-source-panel-head {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.search-source-panel-head strong {
  color: #101828;
  font-size: 18px;
  font-weight: 600;
}

.search-source-panel-head span {
  color: #4b5563;
  font-size: 14px;
}

.search-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.search-source-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  margin: 0;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  cursor: pointer;
}

.search-source-card:has(input:checked) {
  border-color: #3363E1;
}

.search-source-card input {
  width: 18px;
  height: 18px;
  accent-color: #3363E1;
}

.search-source-card strong {
  color: #101828;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.search-source-card span {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.search-results {
  min-width: 0;
  min-height: 260px;
}

.search-empty-state,
.search-result-card {
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.search-empty-state {
  display: grid;
  align-content: center;
  min-height: 280px;
  padding: 40px;
  text-align: left;
}

.search-empty-state h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: #101828;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.search-empty-state p {
  max-width: 760px;
  margin: 0;
  color: #4b5563;
  font-size: 20px;
  line-height: 1.55;
}

.search-suggested-questions {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.search-suggested-questions strong {
  color: #101828;
  font-size: 15px;
  font-weight: 700;
}

.search-result-card {
  display: grid;
  gap: 24px;
  min-width: 0;
  padding: 28px;
  overflow-wrap: anywhere;
}

.judicial-results { display: grid; gap: 24px; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.judicial-results-header h2 { font-size: 24px; margin: 0 0 8px; }
.judicial-results-header p, .judicial-note, .judicial-search-info { color: #586473; font-size: 14px; line-height: 1.6; }
.judicial-decision { background: white; border: 1px solid #dce1e7; border-radius: 12px; padding: 28px; min-width: 0; }
.judicial-meta { font-family: "JetBrains Mono", "JetBrains Mono Fallback", monospace; font-size: 12px; color: #586473; margin: 0 0 10px; overflow-wrap: anywhere; }
.judicial-decision h3 { font-size: 23px; margin: 0 0 12px; color: #032d5e; }
.judicial-decision h3 span { font-size: 17px; color: #586473; font-weight: 400; }
.judicial-reference { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.judicial-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.judicial-decision button, .judicial-button, .judicial-results nav button { display: inline-flex; align-items: center; border: 1px solid #dce1e7; border-radius: 10px; padding: 9px 16px; background-color: #f7f7f7; color: #032d5e; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; background-image: linear-gradient(to right, #e5e9ee 50%, #f7f7f7 50%); background-size: 200% 100%; background-position: 100% 0; transition: background-position .34s ease; }
.judicial-decision button:not(:disabled):hover, .judicial-decision button:not(:disabled):focus-visible, .judicial-button:hover, .judicial-button:focus-visible, .judicial-results nav button:not(:disabled):hover, .judicial-results nav button:not(:disabled):focus-visible { background-position: 0 0; }
.judicial-decision button:disabled { cursor: wait; transition: none; }
.judicial-reading:not(:empty) { border-top: 1px solid #e4e7eb; margin: 20px 0; padding-top: 20px; }
.judicial-reading blockquote { margin: 16px 0; padding: 18px; background: #f7f7f7; border-left: 3px solid #d9a13d; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.8; }
.judicial-excerpts { border-top: 1px solid #e4e7eb; padding-top: 20px; }
.judicial-excerpts h4 { font-size: 16px; margin: 0 0 18px; }
.judicial-excerpt { padding: 18px; background: #f7f7f7; border-left: 3px solid #d9a13d; margin-bottom: 16px; scroll-margin-top: 110px; }
.judicial-excerpt blockquote { margin: 0 0 14px; font-size: 15px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.judicial-search-info summary { cursor: pointer; }
@media (max-width: 600px) { .judicial-decision { padding: 18px; } .judicial-excerpt { padding: 14px; } .judicial-actions > * { max-width: 100%; } }

.search-answer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  align-items: start;
  gap: 20px;
  min-width: 0;
}

.search-answer-card {
  min-width: 0;
  align-content: start;
}

.search-answer-inspector {
  position: sticky;
  top: 112px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.search-answer-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 20px;
}

.search-answer-panel dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.search-answer-panel dl div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid #e6edf7;
}

.search-answer-panel dl div:first-child {
  padding-top: 0;
}

.search-answer-panel dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.search-answer-panel dt {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-answer-panel dd {
  margin: 0;
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.search-result-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.search-result-head h2 {
  margin: 0;
  color: #101828;
  font-size: 26px;
  font-weight: 600;
}

.search-tag,
.search-citation-quality,
.search-citation-score {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #ffffff;
  color: #3363E1;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.search-result-block {
  display: grid;
  gap: 10px;
}

.search-eyebrow {
  margin: 0;
  color: #3363E1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-answer-text,
.search-snippet,
.search-citation p {
  margin: 0;
  color: #263244;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.search-answer-text {
  display: grid;
  gap: 12px;
}

.search-answer-text p,
.search-answer-text h3,
.search-answer-text ul,
.search-answer-text ol {
  margin: 0;
}

.search-answer-text h3 {
  color: #263244;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.search-answer-text ul,
.search-answer-text ol {
  display: grid;
  gap: 6px;
  padding-left: 24px;
}

.search-answer-text strong {
  font-weight: 700;
}

.search-used-source-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-used-source-list li {
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

.search-citation-list {
  display: grid;
  gap: 12px;
}

.search-citation-compact-list {
  display: grid;
  gap: 8px;
}

.search-citation-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  min-width: 0;
}

.search-citation-compact::-webkit-details-marker {
  display: none;
}

.search-citation-compact-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.search-citation-compact-main strong {
  overflow: hidden;
  color: #101828;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-citation-compact-main span {
  overflow: hidden;
  color: #667085;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-citation-compact-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.search-citation-details {
  display: grid;
  gap: 0;
}

.search-citation-expand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #ffffff;
  color: #3363E1;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.search-citation-expand i {
  font-size: 11px;
  transition: transform 0.18s ease;
}

.search-citation-details[open] .search-citation-expand i {
  transform: rotate(180deg);
}

.search-citation-details-body {
  display: grid;
}

.search-citation-details[open] .search-citation-details-body {
  margin-top: 12px;
}

.search-citation {
  display: grid;
  gap: 18px;
  min-width: 0;
  border: 1px solid #dbe5f2;
  border-left: 3px solid #3363E1;
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
}

.search-citation:target {
  outline: 2px solid #3363E1;
  outline-offset: 3px;
}

.search-citation-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.search-citation-head div:first-child {
  display: grid;
  gap: 4px;
}

.search-citation-head strong {
  color: #101828;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.search-citation-head span {
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.search-citation blockquote {
  margin: 0;
  color: #263244;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.search-citation a,
.search-citation-ref {
  color: #3363E1;
  font-weight: 600;
  text-decoration: none;
}

.search-citation-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-save-source-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #c7d7ed;
  border-radius: 8px;
  padding: 0 13px;
  color: #244fbe;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.search-save-source-button-compact {
  min-height: 34px;
  padding: 0 11px;
}

.search-save-source-button:hover,
.search-save-source-button:focus {
  border-color: #3363E1;
  color: #244fbe;
}

.search-save-source-button:disabled,
.search-save-source-button.is-saved {
  cursor: default;
  color: #15803d;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.search-citation a:hover,
.search-citation-ref:hover {
  text-decoration: underline;
}

.search-citation small,
.search-request-id {
  color: #6b7280;
  font-size: 13px;
}

.search-citation-quality {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  max-width: 100%;
  width: fit-content;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #f8fbff;
  padding: 5px 9px;
  white-space: normal;
}

.search-citation-quality i {
  font-size: 11px;
  line-height: 1;
}

.search-citation-quality span,
.search-citation-quality strong {
  font-size: 12px;
  font-weight: 600;
}

.search-citation-quality-success {
  border-color: rgba(40, 167, 69, 0.28);
  background: rgba(40, 167, 69, 0.08);
}

.search-citation-quality-success span,
.search-citation-quality-success strong,
.search-citation-quality-success i {
  color: var(--success);
}

.search-citation-quality-warning {
  border-color: rgba(255, 193, 7, 0.36);
  background: rgba(255, 193, 7, 0.12);
}

.search-citation-quality-warning span,
.search-citation-quality-warning strong,
.search-citation-quality-warning i {
  color: #8a6500;
}

.search-citation-quality-danger {
  border-color: rgba(220, 53, 69, 0.28);
  background: rgba(220, 53, 69, 0.08);
}

.search-citation-quality-danger span,
.search-citation-quality-danger strong,
.search-citation-quality-danger i {
  color: var(--danger);
}

.search-confidence-badge {
  margin-top: 2px;
}

.search-related-block {
  border-top: 1px solid #e6edf7;
  padding-top: 20px;
}

.search-integration-block {
  border-top: 1px solid #e6edf7;
  padding-top: 20px;
}

.search-integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.search-integration-grid a {
  display: grid;
  gap: 7px;
  min-height: 116px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #ffffff;
  color: #263244;
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.search-integration-grid a:hover,
.search-integration-grid a:focus {
  border-color: #3363E1;
  color: #3363E1;
  text-decoration: none;
  transform: translateY(-1px);
}

.search-integration-grid strong {
  color: #101828;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.search-integration-grid span {
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.search-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-related-chip {
  max-width: 100%;
  border: 1px solid #cddbf7;
  border-radius: 999px;
  background: #ffffff;
  color: #263244;
  cursor: pointer;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.search-related-chip:hover {
  border-color: #3363E1;
  color: #3363E1;
  transform: translateY(-1px);
}

.search-error {
  border-color: rgba(185, 28, 28, 0.28);
}

.search-error h2 {
  color: #b91c1c;
}

.search-loading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  align-items: start;
  gap: 20px;
  min-width: 0;
}

.search-loading-card {
  min-width: 0;
  align-content: start;
}

.search-loading-head {
  display: grid;
  gap: 12px;
}

.search-loading-head h2 {
  max-width: 760px;
  margin: 0;
  color: #101828;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.search-loading-head p:last-child {
  max-width: 880px;
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.6;
}

.search-loading-current {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  color: #101828;
  font-size: 17px;
  font-weight: 500;
}

.search-loading-current strong {
  font-weight: 600;
}

.search-loading-spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 3px solid #dbe5f2;
  border-top-color: #3363E1;
  border-radius: 999px;
  animation: search-loading-spin 0.82s linear infinite;
}

.search-loading-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.search-loading-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3363E1 0%, #31ce36 100%);
  transition: width 0.52s ease;
}

.search-loading-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-loading-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  color: #667085;
}

.search-loading-steps li i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #f8fbff;
  color: #667085;
  font-size: 16px;
}

.search-loading-steps li div {
  display: grid;
  gap: 5px;
}

.search-loading-steps strong {
  color: #101828;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.search-loading-steps span {
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.search-loading-steps li.is-active {
  border-color: #3363E1;
  background: #f8fbff;
}

.search-loading-steps li.is-active i {
  border-color: #3363E1;
  color: #3363E1;
}

.search-loading-steps li.is-done {
  border-color: rgba(49, 206, 54, 0.28);
}

.search-loading-steps li.is-done i {
  border-color: rgba(49, 206, 54, 0.34);
  background: rgba(49, 206, 54, 0.08);
  color: #159829;
}

.search-loading-inspector {
  position: sticky;
  top: 112px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.search-loading-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 20px;
}

.search-loading-panel dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.search-loading-panel dl div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid #e6edf7;
}

.search-loading-panel dl div:first-child {
  padding-top: 0;
}

.search-loading-panel dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.search-loading-panel dt {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-loading-panel dd {
  margin: 0;
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.search-loading-note {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
}

.search-loading-cancel {
  min-height: 38px;
  width: fit-content;
  border: 1px solid rgba(180, 35, 24, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #b42318;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.search-loading-cancel:hover,
.search-loading-cancel:focus {
  border-color: #b42318;
}

@keyframes search-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .search-shell {
    padding: 52px 0 72px;
  }

  .search-loading-layout {
    grid-template-columns: 1fr;
  }

  .search-answer-layout {
    grid-template-columns: 1fr;
  }

  .search-loading-inspector {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-answer-inspector {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .search-shell {
    padding: 34px 0 56px;
  }

  .search-shell .container {
    width: calc(100% - 32px);
    max-width: none;
  }

  .search-page-form.jurisprudencia-search {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    margin-right: auto;
    margin-bottom: 18px;
    margin-left: auto;
    border-radius: 32px;
    padding: 12px;
  }

  .search-page-form .jurisprudencia-search-field {
    display: flex;
    width: 100%;
    min-height: 58px;
    min-width: 0;
  }

  .search-page-form .jurisprudencia-search-icon {
    margin-left: 14px;
    margin-right: 10px;
    font-size: 21px;
  }

  .search-page-form input {
    min-width: 0;
    font-size: 16px;
  }

  .search-page-form button {
    width: 100%;
    min-width: 0;
    min-height: 56px;
  }

  .search-status,
  .search-actions,
  .search-source-panel,
  .search-results {
    width: 100%;
    max-width: 100%;
  }

  .search-status {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.45;
  }

  .search-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-secondary-button {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    font-size: 15px;
  }

  .search-answer-layout,
  .search-loading-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }

  .search-loading-inspector,
  .search-answer-inspector,
  .search-loading-steps {
    grid-template-columns: 1fr;
  }

  .search-loading-head h2 {
    font-size: 25px;
  }

  .search-loading-current {
    align-items: flex-start;
    font-size: 16px;
  }

  .search-loading-steps li {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 14px;
  }

  .search-loading-steps li i {
    width: 36px;
    height: 36px;
  }

  .search-source-grid {
    grid-template-columns: 1fr;
  }

  .search-empty-state,
  .search-result-card,
  .search-source-panel,
  .search-loading-panel,
  .search-answer-panel {
    width: 100%;
    max-width: 100%;
    padding: 20px;
  }

  .search-answer-text,
  .search-snippet,
  .search-citation p {
    font-size: 16px;
    line-height: 1.7;
  }

  .search-citation-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-citation-compact {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .search-citation-compact-actions {
    justify-content: flex-start;
  }

  .search-citation-compact strong,
  .search-citation-compact span {
    white-space: normal;
  }

  .search-citation-quality,
  .search-citation-expand {
    min-height: 38px;
  }

  .search-related-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-related-chip {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
  }

  .search-integration-grid {
    grid-template-columns: 1fr;
  }

  .search-empty-state h1 {
    font-size: 36px;
    line-height: 1.18;
  }

  .search-empty-state p {
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  .search-shell .container {
    width: calc(100% - 24px);
  }

  .search-page-form.jurisprudencia-search {
    border-radius: 26px;
    padding: 10px;
  }

  .search-empty-state,
  .search-result-card,
  .search-source-panel,
  .search-loading-panel,
  .search-answer-panel {
    padding: 18px;
  }

  .search-eyebrow {
    font-size: 12px;
  }

  .search-answer-text,
  .search-snippet,
  .search-citation p {
    font-size: 15px;
  }
}
