:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #fff;
  --ink: #18212f;
  --muted: #637083;
  --line: #e1e5eb;
  --blue: #245ecc;
  --blue-soft: #edf3ff;
  --green: #20734d;
  --green-soft: #eaf6ee;
  --red: #b73236;
  --red-soft: #fff0f0;
  --pending: #7c6424;
  --pending-soft: #faf4e4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button,
input,
select {
  outline-offset: 3px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
}
[hidden] {
  display: none !important;
}
.prototype-note {
  height: 32px;
  display: flex;
  gap: 7px;
  justify-content: center;
  align-items: center;
  background: #eaf0fa;
  border-bottom: 1px solid #d8e2f2;
  font-size: 12px;
  color: #445974;
}
.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6282b3;
}
.note-divider {
  color: #8293ac;
  margin: 0 3px;
}
.app-header {
  height: 68px;
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.brand span {
  margin: 0 15px;
  color: #bac2cd;
  font-weight: 400;
}
.brand strong {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.1px;
}
.account {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #dbe1ea;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 650;
  background: #f8f9fb;
  color: #536176;
}
.text-button {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 8px 5px;
  margin-left: 9px;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 28px 36px 38px;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.page-title p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.page-title p strong {
  font-weight: 500;
  color: #48576c;
}
.sample-badge {
  color: #66758a;
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 12px;
}
.summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0 21px;
  font-size: 13px;
  flex-wrap: wrap;
}
.summary-item {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
}
.summary-item strong {
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.summary-divider {
  height: 17px;
  width: 1px;
  background: #d7dee8;
}
.status-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.compliant {
  background: var(--green);
}
.status-dot.non_compliant {
  background: var(--red);
}
.status-dot.pending {
  background: #b59b5d;
}
.workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px 14px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #cfd6e1;
  border-radius: 5px;
  width: 410px;
  background: #fff;
  height: 39px;
  padding: 0 11px;
}
.search-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px #245ecc10;
}
.search-field svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: #8390a3;
}
.search-field input {
  width: 100%;
  height: 100%;
  border: 0;
  background: none;
  outline: none;
  font-size: 13px;
  color: var(--ink);
}
.search-field input::placeholder {
  color: #8994a5;
}
.market-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #58677b;
  font-size: 13px;
}
.market-filter select {
  height: 36px;
  min-width: 92px;
  border: 1px solid #d5dce5;
  border-radius: 5px;
  background: white;
  padding: 0 10px;
  color: #344257;
}
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 20px 16px;
}
.status-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dbe1e9;
  border-radius: 5px;
  background: #fff;
  color: #5b687c;
  padding: 7px 10px;
  font-size: 12px;
}
.filter-button[aria-pressed="true"] {
  color: var(--blue);
  border-color: #a9c1ef;
  background: var(--blue-soft);
}
.filter-button .filter-count {
  color: #8490a3;
  font-variant-numeric: tabular-nums;
}
.filter-button[aria-pressed="true"] .filter-count {
  color: #6585b8;
}
.result-count {
  font-size: 12px;
  color: #7a8798;
  white-space: nowrap;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}
th {
  height: 38px;
  padding: 9px 20px;
  background: #f8f9fb;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
  color: #66758b;
}
td {
  padding: 14px 20px;
  border-bottom: 1px solid #edf0f4;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.keyword-column {
  width: 29%;
}
.market-column {
  width: 95px;
}
.outcome-column {
  width: 192px;
}
.column-hint {
  font-weight: 400;
  color: #919ca9;
  padding-left: 7px;
}
.keyword-name {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.keyword-image-count {
  font-size: 11px;
  color: #8a96a6;
  margin-top: 6px;
}
.market-tag {
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #e0e5ed;
  background: #f8f9fb;
  border-radius: 4px;
  padding: 4px 7px;
  color: #607086;
  display: inline-block;
}
.image-strip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.thumbnail-button {
  position: relative;
  width: 66px;
  flex: none;
  border: 1px solid #dde3eb;
  border-radius: 5px;
  padding: 3px;
  background: white;
  overflow: hidden;
}
.thumbnail-button:hover {
  border-color: #81a4e1;
  box-shadow: 0 0 0 2px #edf3ff;
}
.thumbnail-button img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 2px;
  background: #eef1f5;
}
.thumb-status {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  position: absolute;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: white;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.thumb-status.compliant {
  background: var(--green);
}
.thumb-status.non_compliant {
  background: var(--red);
}
.thumb-status.pending {
  background: #ab914e;
  font-size: 11px;
}
.more-images {
  width: 66px;
  height: 66px;
  border: 1px dashed #ccd5e2;
  border-radius: 5px;
  background: #f8faff;
  color: #56729a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  gap: 2px;
}
.more-images small {
  font-size: 10px;
}
.more-images:hover {
  background: #edf3ff;
}
.collapse-images {
  border: none;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  padding: 5px 0;
  align-self: center;
}
.row-outcomes {
  display: flex;
  gap: 5px;
  flex-direction: column;
  align-items: flex-start;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.2;
  padding: 4px 7px;
  border-radius: 4px;
  font-weight: 550;
  white-space: nowrap;
}
.status-badge.compliant {
  background: var(--green-soft);
  color: var(--green);
}
.status-badge.non_compliant {
  background: var(--red-soft);
  color: var(--red);
}
.status-badge.pending {
  background: var(--pending-soft);
  color: var(--pending);
}
.status-badge .number {
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: #8490a2;
  font-size: 11px;
  background: #fafbfc;
}
.empty-state {
  text-align: center;
  padding: 50px 24px;
}
.empty-symbol {
  font-size: 30px;
  color: #99a6b9;
}
.empty-state h2 {
  font-size: 17px;
  margin: 9px 0;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}
.secondary-button {
  border: 1px solid #d4dce7;
  border-radius: 5px;
  background: #fff;
  padding: 7px 10px;
  font-size: 12px;
  color: #52647d;
}
.secondary-button:hover:not(:disabled) {
  background: #f3f6fb;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--blue);
  border-radius: 5px;
  background: var(--blue);
  color: white;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 550;
}
.primary-button:hover {
  background: #1c50b4;
}
.login-view {
  min-height: calc(100vh - 32px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 420px;
  max-width: 100%;
  padding: 38px;
  background: white;
  border: 1px solid #dde3ec;
  border-radius: 8px;
}
.login-brand {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.5px;
  margin-bottom: 35px;
}
.login-card h1 {
  font-size: 24px;
}
.login-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 13px 0 28px;
}
.login-card .primary-button {
  width: 100%;
}
.login-caption {
  text-align: center;
  font-size: 11px;
  color: #8a96a7;
  margin-top: 16px;
}
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a273866;
  padding: 24px;
}
.detail-dialog {
  width: 1020px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: white;
  border: 1px solid #cfd7e4;
  border-radius: 8px;
  box-shadow: 0 12px 48px #17253a33;
}
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 11px;
  color: #8590a1;
  margin-bottom: 5px;
}
.detail-header h2 {
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.15px;
}
.icon-button {
  border: 1px solid #e3e7ee;
  border-radius: 5px;
  width: 31px;
  height: 31px;
  background: #fff;
  color: #66768d;
  font-size: 23px;
  line-height: 1;
  flex: none;
  margin-left: 16px;
}
.detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.image-side {
  padding: 22px;
  background: #f7f9fc;
  border-right: 1px solid var(--line);
}
.image-side > img {
  display: block;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #edf1f6;
  border: 1px solid #e1e6ee;
  border-radius: 4px;
}
.image-navigation {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: 15px;
}
.image-navigation > span {
  font-size: 11px;
  color: #78869a;
  font-variant-numeric: tabular-nums;
}
.info-side {
  padding: 25px;
}
.detail-meta {
  display: flex;
  gap: 13px;
  align-items: center;
  color: #7b899e;
  font-size: 12px;
  margin-bottom: 15px;
}
.detail-meta .source-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.info-side > .status-badge {
  font-size: 12px;
  padding: 6px 9px;
}
.reason-section {
  margin-top: 26px;
}
.info-side h3 {
  font-size: 12px;
  font-weight: 650;
  color: #65748b;
  margin: 0 0 10px;
}
.reason-section p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  color: #35465c;
}
.transcription-section {
  margin-top: 25px;
}
.transcription {
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 5px;
  padding: 15px;
  color: #3c4c62;
  min-height: 85px;
}
.detail-demo-note {
  font-size: 11px;
  color: #8b96a5;
  line-height: 1.5;
  margin: 23px 0 0;
}
body.modal-open {
  overflow: hidden;
}
@media (min-width: 1500px) {
  .keyword-column {
    width: 32%;
  }
}
@media (max-width: 1050px) {
  main {
    padding: 24px;
  }
  .app-header {
    padding: 0 24px;
  }
  .keyword-column {
    width: 30%;
  }
  .outcome-column {
    width: 173px;
  }
  .market-column {
    width: 75px;
  }
  th,
  td {
    padding-left: 14px;
    padding-right: 14px;
  }
  .column-hint {
    display: none;
  }
  .thumbnail-button {
    width: 57px;
  }
  .thumbnail-button img {
    width: 49px;
    height: 49px;
  }
  .more-images {
    width: 57px;
    height: 57px;
  }
  .account > span:not(.avatar) {
    display: none;
  }
  .detail-dialog {
    width: 900px;
  }
  .image-side {
    padding: 18px;
  }
  .info-side {
    padding: 21px;
  }
}
@media (max-width: 720px) {
  .prototype-note {
    font-size: 10px;
    gap: 4px;
  }
  .app-header {
    height: 59px;
    padding: 0 16px;
  }
  .brand {
    font-size: 16px;
  }
  .brand span {
    margin: 0 8px;
  }
  .brand strong {
    font-size: 13px;
  }
  .account {
    gap: 2px;
  }
  .account .avatar {
    display: none;
  }
  .text-button {
    font-size: 12px;
    margin-left: 0;
  }
  main {
    padding: 22px 14px;
  }
  .page-title h1 {
    font-size: 23px;
  }
  .page-title p {
    font-size: 12px;
    max-width: 300px;
    line-height: 1.6;
  }
  .sample-badge {
    display: none;
  }
  .summary {
    gap: 12px;
    font-size: 11px;
    padding: 17px 0;
  }
  .summary-item {
    gap: 5px;
  }
  .summary-item strong {
    font-size: 14px;
  }
  .summary-divider {
    display: none;
  }
  .toolbar {
    padding: 14px;
    gap: 10px;
  }
  .search-field {
    width: auto;
    flex: 1;
  }
  .market-filter {
    font-size: 11px;
    gap: 5px;
  }
  .market-filter select {
    min-width: 65px;
    max-width: 75px;
    padding: 0 5px;
  }
  .filter-row {
    padding: 0 14px 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .status-filters {
    gap: 4px;
  }
  .filter-button {
    padding: 6px;
    font-size: 10px;
  }
  .result-count {
    font-size: 10px;
  }
  table {
    min-width: 730px;
  }
  .table-footer {
    padding: 12px 14px;
    flex-direction: column;
    gap: 5px;
  }
  .detail-overlay {
    padding: 10px;
  }
  .detail-dialog {
    max-height: calc(100vh - 20px);
  }
  .detail-header {
    padding: 14px 16px;
  }
  .detail-header h2 {
    font-size: 15px;
  }
  .detail-body {
    grid-template-columns: 1fr;
  }
  .image-side {
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .image-side > img {
    max-height: 360px;
  }
  .info-side {
    padding: 19px;
  }
  .image-navigation .secondary-button {
    font-size: 11px;
  }
  .login-card {
    padding: 30px;
  }
}
.login-view {
  min-height: 100vh;
}
.login-form {
  width: 320px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-form input {
  width: 100%;
  height: 46px;
  border: 1px solid #d4dce6;
  border-radius: 5px;
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
  font-size: 14px;
}
.login-form input::placeholder {
  color: #8c97a5;
}
.login-form input:focus {
  border-color: var(--blue);
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
.page-navigation {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
}
.page-navigation a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  padding: 11px 16px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 550;
}
.page-navigation a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.page-navigation a:hover {
  background: #edf1f7;
}
.page-navigation a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.footer-description {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-description > span:first-child {
  color: #52647d;
}
.table-footer {
  align-items: center;
}
.pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}
.pagination .secondary-button {
  font-size: 11px;
}
.page-size {
  color: #8b96a5;
  margin-right: 6px;
}
.pagination > span {
  font-variant-numeric: tabular-nums;
}
.timestamp-column {
  width: 164px;
}
.log-image-column {
  width: 95px;
}
.log-keyword-column {
  width: 23%;
}
.log-market-column {
  width: 80px;
}
.log-status-column {
  width: 145px;
}
.timezone-hint {
  display: block;
  font-weight: 400;
  font-size: 10px;
  color: #909baa;
  margin-top: 4px;
}
.log-table th {
  height: 48px;
}
.log-timestamp {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  line-height: 1.7;
  max-width: 130px;
  color: #63738b;
}
.log-source-id {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #7c8ba0;
  font-size: 10px;
  margin-top: 6px;
}
.log-reason {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #64728a;
}
.detail-meta {
  flex-wrap: wrap;
  row-gap: 10px;
}
.detail-timestamp {
  width: 100%;
  font-size: 11px;
  color: #7b899e;
}
@media (max-width: 1050px) {
  .timestamp-column {
    width: 145px;
  }
  .log-image-column {
    width: 80px;
  }
  .log-market-column {
    width: 65px;
  }
  .log-keyword-column {
    width: 21%;
  }
  .log-status-column {
    width: 130px;
  }
  .table-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .pagination {
    margin-left: auto;
  }
}
@media (max-width: 720px) {
  .page-navigation {
    margin-bottom: 12px;
  }
  .page-navigation a {
    font-size: 12px;
    padding: 10px 13px;
  }
  .prototype-note {
    height: auto;
    min-height: 32px;
    padding: 6px 12px;
    flex-wrap: wrap;
    text-align: center;
  }
  .table-footer {
    align-items: stretch;
  }
  .pagination {
    margin-left: 0;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .pagination .page-size {
    margin-right: auto;
  }
  .log-table {
    min-width: 1050px;
  }
  .log-keyword-column {
    width: 22%;
  }
  .summary {
    row-gap: 10px;
  }
}
.keyword-column {
  width: 24%;
}
.market-column {
  width: 75px;
}
.outcome-column {
  width: 145px;
}
.header-subtitle {
  display: block;
  color: #97a0ae;
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px;
}
.analysis-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-caption {
  font-size: 11px;
  color: #8190a3;
}
.changes-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #876432;
  font-size: 11px;
}
.changes-filter input {
  accent-color: var(--blue);
  margin: 0;
}
.summary {
  gap: 18px;
}
.summary-label {
  font-size: 11px;
  color: #8290a2;
}
.changed-summary strong {
  color: #986524;
}
.changed-summary {
  color: #986524;
}
.status-badge.unknown {
  background: #f0f2f5;
  color: #7e8a9b;
}
.result-changed {
  border-color: #d6a65a;
  background: #fffaf1;
}
.result-changed:hover {
  border-color: #b58035;
  box-shadow: 0 0 0 2px #fff4dc;
}
.thumb-comparison {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 1px 1px;
  font-size: 9px;
  font-weight: 500;
}
.thumb-comparison > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #728096;
}
.thumb-comparison > span.compliant {
  color: var(--green);
}
.thumb-comparison > span.non_compliant {
  color: var(--red);
}
.thumb-comparison > span.pending {
  color: var(--pending);
}
.thumb-comparison strong {
  font-size: 10px;
}
.more-images {
  height: 104px;
}
.change-badge {
  display: inline-block;
  border: 1px solid #e6c991;
  background: #fff7e7;
  color: #92642b;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
}
.comparison-note {
  font-size: 12px;
  color: #647389;
  padding: 9px 11px;
  background: #f5f7fa;
  border: 1px solid #e2e7ef;
  border-radius: 5px;
  margin-bottom: 15px;
}
.comparison-note.changed {
  background: #fff8e9;
  border-color: #e8cd9b;
  color: #8a612b;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.comparison-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
}
.comparison-panel h3 {
  margin-bottom: 10px;
  color: #3e506a;
  font-size: 13px;
}
.comparison-panel h3 .header-subtitle {
  display: inline;
  margin-left: 4px;
}
.comparison-panel p {
  font-size: 12px;
  color: #576a83;
  line-height: 1.65;
  margin: 13px 0 0;
  overflow-wrap: anywhere;
}
.reason-source {
  display: block;
  font-size: 10px;
  color: #8e9bad;
  line-height: 1.5;
  margin-top: 10px;
}
.log-table {
  min-width: 1090px;
}
.log-table .timestamp-column {
  width: 143px;
}
.log-table .log-image-column {
  width: 83px;
}
.log-table .log-keyword-column {
  width: 19%;
}
.log-table .log-market-column {
  width: 70px;
}
.log-table .log-status-column {
  width: 133px;
}
@media (max-width: 1050px) {
  #images-table table {
    min-width: 920px;
  }
  .outcome-column {
    width: 140px;
  }
  .keyword-column {
    width: 24%;
  }
  .filter-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .analysis-filters {
    gap: 8px;
  }
  .filter-caption {
    width: 100%;
  }
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }
  .comparison-panel {
    padding: 10px;
  }
  .prototype-note {
    font-size: 9px;
  }
  .more-images {
    height: 95px;
  }
  .summary {
    gap: 12px;
  }
}
.scope-note {
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0;
}
.operator-body {
  padding: 0 20px 20px;
}
.operator-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#operations {
  margin: 0 0 18px;
}
summary {
  cursor: pointer;
  padding: 14px 20px;
  font-weight: 600;
}
#operation-status {
  white-space: pre-wrap;
  margin-top: 14px;
}
dialog.detail-dialog {
  width: min(1150px, 95vw);
  max-height: 90vh;
  border: 1px solid var(--line);
  padding: 0;
  color: var(--ink);
  border-radius: 8px;
}
dialog::backdrop {
  background: #15223880;
}
dialog .detail-body {
  max-height: 75vh;
  overflow: auto;
}
.scope-note,
.technical-error {
  line-height: 1.5;
}
.technical-error {
  color: #7c6424;
  font-size: 12px;
}
.image-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.image-list button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  padding: 3px;
}
.image-list img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.image-list button:focus-visible {
  outline: 2px solid var(--blue);
}
.outcome-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.group-pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
  margin-top: 6px;
}
.comparison-panel p,
.new-reason {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.transcription {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.source-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.detail-image {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
}
.comparison-grid {
  gap: 12px;
}
.login-form #login-error {
  font-size: 13px;
  color: var(--red);
  margin: 0;
}
#results-error {
  color: var(--red);
}
.changed-note {
  color: var(--blue);
  font-size: 12px;
}
#log-table table {
  table-layout: auto;
}
#log-table th {
  min-width: 110px;
}
.status-badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  width: fit-content;
}
.status-badge.compliant {
  background: var(--green-soft);
  color: var(--green);
}
.status-badge.non_compliant {
  background: var(--red-soft);
  color: var(--red);
}
.status-badge.pending,
.status-badge.not_available {
  background: var(--pending-soft);
  color: var(--pending);
}
@media (max-width: 700px) {
  .filter-row,
  .toolbar {
    align-items: start;
    flex-direction: column;
  }
  .search-field {
    width: 100%;
  }
  .app-header {
    padding: 0 16px;
  }
  .brand {
    font-size: 15px;
  }
  .brand strong {
    font-size: 13px;
  }
  .account {
    max-width: 35%;
  }
  main {
    padding: 20px 12px;
  }
  .detail-body {
    display: block !important;
  }
  .image-side,
  .info-side {
    width: 100% !important;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .table-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .analysis-filters {
    flex-wrap: wrap;
  }
  .keyword-column {
    width: 230px;
  }
  .outcome-column {
    width: 160px;
  }
}
