.app-shell-wide {
  width: min(1480px, calc(100vw - 24px));
}

.vsc-panel {
  padding-bottom: 14px;
}

.vsc-title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.vsc-subtitle {
  margin-top: 12px;
}

.vsc-controls {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.vsc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vsc-row-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vsc-row-fetch button {
  width: 100%;
  min-height: 42px;
}

#fetchButton {
  border-color: #9c3f13;
  background: #9c3f13;
  color: #ffffff;
}

#fetchButton:hover {
  background: #883710;
}

.vsc-row-publication {
  padding: 8px 10px;
  border: 1px solid rgba(76, 53, 27, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.vsc-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b5a49;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vsc-radio,
.vsc-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #2f2418;
}

.vsc-radio input,
.vsc-checkbox input {
  width: 15px;
  height: 15px;
}

.vsc-field {
  display: grid;
  gap: 6px;
}

.vsc-field > span {
  font-size: 12px;
  font-weight: 700;
  color: #6b5a49;
}

.vsc-field input,
.vsc-field select,
.vsc-field textarea {
  min-height: 42px;
  border: 1px solid rgba(76, 53, 27, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #2f2418;
  padding: 10px 12px;
  font: inherit;
}

.vsc-field textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.55;
}

.vsc-field-flex {
  min-width: 0;
}

.vsc-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(76, 53, 27, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.vsc-tab-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4a3827;
  padding: 9px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.vsc-tab-button.is-active {
  background: #9c3f13;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(156, 63, 19, 0.18);
}

.vsc-tab-panel {
  display: none;
}

.vsc-tab-panel.is-active {
  display: block;
}

.vsc-row-actions {
  padding-top: 4px;
}

.vsc-row-actions button {
  border: 1px solid rgba(76, 53, 27, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: #2f2418;
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.vsc-row-actions button:hover {
  background: #fffaf4;
  border-color: rgba(156, 63, 19, 0.24);
}

#heroFetchButton,
#headlineFetchButton,
#headlineAnalyzeButton {
  border-color: #9c3f13;
  background: #9c3f13;
  color: #ffffff;
}

#heroFetchButton:hover,
#headlineFetchButton:hover,
#headlineAnalyzeButton:hover {
  background: #883710;
}

#headlineSelectFilteredButton,
#headlineClearSelectionButton,
#headlineResetPromptButton,
#headlineCopyButton {
  background: rgba(255, 255, 255, 0.94);
}

.vsc-row-actions button:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.vsc-page-status {
  font-size: 12px;
  color: #6b5a49;
  margin-left: 4px;
}

.vsc-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: #4a3827;
}

.vsc-status-detail {
  color: #6b5a49;
}

.vsc-status-bridge {
  margin-top: 6px;
  color: #83511d;
}

.vsc-status-error {
  color: #a4262c;
}

.vsc-status-ok {
  color: #1c5f3f;
}

.vsc-status-warning {
  color: #8a4b00;
}

.vsc-results-panel {
  min-height: 380px;
}

.vsc-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 10px;
}

.vsc-empty {
  grid-column: 1 / -1;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b5a49;
  border: 1px dashed rgba(156, 63, 19, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 18px;
}

.vsc-card {
  border: 1px solid rgba(76, 53, 27, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

.vsc-image-wrap {
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vsc-image-wrap-empty {
  color: #8a7460;
  font-size: 12px;
  padding: 10px;
  text-align: center;
}

.vsc-hero {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
}

.vsc-content {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.vsc-headline {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 20px;
  line-height: 1.15;
}

.vsc-meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6b5a49;
  word-break: break-word;
}

.vsc-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vsc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(76, 53, 27, 0.2);
  border-radius: 8px;
  text-decoration: none;
  color: #2f2418;
  padding: 0 10px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.vsc-link:hover {
  background: #ffffff;
}

.vsc-headline-stack {
  display: grid;
  gap: 14px;
}

.vsc-headline-config {
  border: 1px solid rgba(76, 53, 27, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  overflow: hidden;
  max-width: 980px;
}

.vsc-headline-config summary {
  list-style: none;
}

.vsc-headline-config summary::-webkit-details-marker {
  display: none;
}

.vsc-headline-config-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 13px 14px;
  color: #2f2418;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 249, 242, 0.92), rgba(248, 236, 224, 0.92));
}

.vsc-headline-config-summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #8d360f;
  font-size: 18px;
  line-height: 1;
}

.vsc-headline-config[open] .vsc-headline-config-summary::after {
  content: "-";
}

.vsc-headline-config-note {
  font-size: 11px;
  font-weight: 600;
  color: #6b5a49;
}

.vsc-headline-config-body {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid rgba(76, 53, 27, 0.08);
}

.vsc-headline-config-body button,
.vsc-headline-model-bar button {
  border: 1px solid rgba(76, 53, 27, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #2f2418;
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.vsc-headline-config-body button {
  justify-self: start;
  width: fit-content;
}

.vsc-headline-config-body button:hover,
.vsc-headline-model-bar button:hover {
  background: #fffaf4;
  border-color: rgba(156, 63, 19, 0.24);
}

.vsc-headline-config-body button:disabled,
.vsc-headline-model-bar button:disabled,
#fetchButton:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.vsc-headline-model-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(76, 53, 27, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.vsc-headline-model-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.vsc-headline-model-card .vsc-field-flex {
  min-width: 0;
}

.vsc-headline-model-card input[type="search"] {
  min-height: 42px;
}

.vsc-model-dropdown {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.vsc-model-option {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid rgba(76, 53, 27, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  text-align: left;
  color: #2f2418;
  cursor: pointer;
}

.vsc-model-option:hover {
  background: #fffaf4;
  border-color: rgba(156, 63, 19, 0.24);
}

.vsc-model-option.is-selected {
  border-color: #9c3f13;
  background: rgba(156, 63, 19, 0.08);
  box-shadow: 0 0 0 1px rgba(156, 63, 19, 0.14) inset;
}

.vsc-model-option-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 700;
}

.vsc-model-option-id {
  font-size: 12px;
  color: #6b5a49;
  font-weight: 600;
}

.vsc-model-option-meta {
  font-size: 12px;
  color: #6b5a49;
  line-height: 1.45;
}

.vsc-model-empty {
  border: 1px dashed rgba(156, 63, 19, 0.18);
  border-radius: 12px;
  padding: 12px;
  color: #6b5a49;
  background: rgba(255, 255, 255, 0.68);
}

.vsc-prompt-accordion {
  border: 1px solid rgba(76, 53, 27, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  max-width: 820px;
}

.vsc-prompt-accordion summary {
  list-style: none;
}

.vsc-prompt-accordion summary::-webkit-details-marker {
  display: none;
}

.vsc-prompt-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 12px 14px;
  color: #2f2418;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 249, 242, 0.9), rgba(248, 236, 224, 0.9));
}

.vsc-prompt-summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #8d360f;
  font-size: 18px;
  line-height: 1;
}

.vsc-prompt-accordion[open] .vsc-prompt-summary::after {
  content: "−";
}

.vsc-prompt-summary-note {
  font-size: 11px;
  font-weight: 600;
  color: #6b5a49;
}

.vsc-prompt-body {
  border-top: 1px solid rgba(76, 53, 27, 0.08);
  padding: 12px;
}

.vsc-prompt-body textarea {
  width: 100%;
}

.vsc-headline-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.vsc-table thead tr.vsc-table-filter-row th {
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

.vsc-table-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 249, 242, 0.94), rgba(248, 236, 224, 0.94));
}

.vsc-table-filters .vsc-field > span {
  font-size: 11px;
}

.vsc-table-filters .vsc-field select {
  min-height: 40px;
}

.vsc-table-shell {
  overflow: auto;
  border: 1px solid rgba(76, 53, 27, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.vsc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1140px;
}

.vsc-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 249, 242, 0.96), rgba(248, 236, 224, 0.96));
  border-bottom: 1px solid rgba(76, 53, 27, 0.14);
  color: #4a3827;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 14px 12px;
}

.vsc-table tbody td {
  border-top: 1px solid rgba(76, 53, 27, 0.08);
  padding: 14px 12px;
  vertical-align: top;
  font-size: 14px;
}

.vsc-table tbody tr:hover {
  background: rgba(156, 63, 19, 0.035);
}

.vsc-row-selected {
  background: rgba(156, 63, 19, 0.06);
}

.vsc-select-th,
.vsc-select-cell {
  width: 48px;
  min-width: 48px;
  text-align: center;
}

.vsc-select-th {
  padding-inline: 8px;
}

.vsc-row-checkbox {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  accent-color: #9c3f13;
  cursor: pointer;
}

.vsc-select-th .vsc-row-checkbox {
  margin: 0;
}

.vsc-row-yes {
  background: rgba(28, 95, 63, 0.03);
}

.vsc-row-no,
.vsc-row-error {
  background: rgba(164, 38, 44, 0.03);
}

.vsc-row-pending {
  background: rgba(107, 90, 73, 0.018);
}

.vsc-empty-cell {
  text-align: center;
  color: #6b5a49;
  padding: 30px 16px;
}

.vsc-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.vsc-badge-muted {
  background: rgba(255, 255, 255, 0.8);
  color: #6b5a49;
  border: 1px solid rgba(76, 53, 27, 0.12);
}

.vsc-badge-soft {
  background: rgba(156, 63, 19, 0.08);
  color: #8d360f;
  border: 1px solid rgba(156, 63, 19, 0.14);
}

.vsc-badge-yes {
  background: rgba(28, 95, 63, 0.12);
  color: #1c5f3f;
  border: 1px solid rgba(28, 95, 63, 0.22);
}

.vsc-badge-no {
  background: rgba(164, 38, 44, 0.12);
  color: #a4262c;
  border: 1px solid rgba(164, 38, 44, 0.22);
}

.vsc-badge-pending {
  background: rgba(107, 90, 73, 0.12);
  color: #6b5a49;
  border: 1px solid rgba(107, 90, 73, 0.2);
}

.vsc-badge-error {
  background: rgba(164, 38, 44, 0.08);
  color: #a4262c;
  border: 1px solid rgba(164, 38, 44, 0.18);
}

.vsc-verdict-cell {
  min-width: 170px;
}

.vsc-alternates {
  min-width: 260px;
}

.vsc-alternates ol {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #2f2418;
}

.vsc-alternates li + li {
  margin-top: 8px;
}

.vsc-alternate {
  line-height: 1.45;
}

.vsc-reason {
  margin: 0;
  color: #6b5a49;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .vsc-headline-model-bar {
    grid-template-columns: 1fr;
  }

  .vsc-row-split {
    grid-template-columns: 1fr;
  }

  .vsc-results {
    grid-template-columns: 1fr;
  }

  .vsc-card {
    grid-template-columns: 1fr;
  }

  .vsc-table {
    min-width: 920px;
  }
}
