/* node_modules/antd/dist/reset.css */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@-ms-viewport {
  width: device-width;
}
body {
  margin: 0;
}
[tabindex="-1"]:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type=text],
input[type=password],
input[type=number],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    Courier,
    monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role=button],
input:not([type=range]),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type=radio],
input[type=checkbox] {
  box-sizing: border-box;
  padding: 0;
}
input[type=date],
input[type=time],
input[type=datetime-local],
input[type=month] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}
[type=search] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type=search]::-webkit-search-cancel-button,
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
mark {
  padding: 0.2em;
  background-color: #feffe6;
}

/* src/styles.css */
:root {
  color: #2c3850;
  background: #f3f6fb;
  font-family:
    "Noto Sans SC",
    "Microsoft YaHei",
    ui-sans-serif,
    system-ui,
    sans-serif;
}
body {
  margin: 0;
  min-width: 320px;
  background: #f3f6fb;
}
.app-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 40px;
}
.topbar {
  padding: 12px 0 16px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand svg {
  color: #4c7dff;
  flex: 0 0 auto;
}
.brand h2.ant-typography {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #182132;
  font-family:
    "Noto Serif SC",
    "Songti SC",
    serif;
}
.brand-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.query-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 10px;
  align-items: stretch;
  margin: 16px 0 12px;
}
.query-band .ant-btn {
  height: 100%;
  min-height: 56px;
  border: 0;
  background:
    linear-gradient(
      135deg,
      #4c7dff 0%,
      #6366f1 100%);
  box-shadow: none;
}
.query-band .ant-input,
.query-band .ant-input-textarea,
.query-band textarea,
.query-band .ant-btn {
  width: 100%;
}
.example-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.example-row .ant-btn {
  max-width: 100%;
}
.result-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result-summary {
  min-height: 28px;
  display: flex;
  align-items: center;
}
.result-summary .ant-space,
.result-summary .ant-space-item,
.master-status .ant-space,
.master-status .ant-space-item {
  min-width: 0;
  max-width: 100%;
}
.result-summary .ant-tag,
.master-status .ant-tag,
.status-row .ant-tag {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.notice-stack {
  width: 100%;
}
.notice-stack .ant-space-item,
.notice-stack .ant-alert {
  width: 100%;
}
.notice-stack .ant-alert-message {
  min-width: 0;
  overflow-wrap: anywhere;
}
.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.article-card {
  border-radius: 14px;
  border-color: #dbe4f0;
}
.article-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #667085;
  font-size: 13px;
  margin-bottom: 8px;
}
.article-public-facts {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 8px;
  padding: 8px 0;
  border-top: 1px solid #eef1f4;
  border-bottom: 1px solid #eef1f4;
  font-size: 13px;
  color: #344054;
}
.article-public-facts > span,
.article-public-facts > a {
  min-width: 0;
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
}
.fact-label {
  flex: 0 0 auto;
  color: #667085;
}
.article-public-facts span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.status-tag {
  margin-inline-end: 0;
  max-width: 100%;
}
.retrieval-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: #475467;
  font-size: 13px;
}
.reason-line {
  margin-bottom: 8px;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}
.source-line {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: #475467;
  font-size: 13px;
}
.source-line .ant-btn {
  padding: 0 4px;
  height: 24px;
}
.rich-elements {
  margin: 8px 0 10px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fafafa;
}
.rich-title,
.rich-item-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.rich-title {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}
.rich-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.rich-item {
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}
.rich-item-head span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #344054;
}
.rich-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}
.rich-item-meta span,
.rich-preview {
  overflow-wrap: anywhere;
}
.rich-preview {
  margin-top: 4px;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}
.rich-preview-note {
  margin-top: 4px;
  color: #8a5a00;
  font-size: 12px;
  line-height: 1.5;
}
.law-text.ant-typography {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.78;
  color: #182132;
  font-size: 15px;
}
.hash-line {
  margin-top: 10px;
  color: #667085;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.workspace-tabs {
  margin-top: 14px;
}
.workspace-tabs .ant-tabs-nav {
  margin-bottom: 14px;
}
.master-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.master-status {
  min-height: 28px;
  display: flex;
  align-items: center;
}
.master-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px minmax(170px, auto) 96px;
  gap: 10px;
  align-items: center;
}
.master-select {
  width: 100%;
}
.master-checks {
  min-width: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.master-checks .ant-checkbox-wrapper {
  margin-inline-start: 0;
  white-space: nowrap;
}
.master-card {
  border-radius: 6px;
  border-color: #d8dee4;
}
.master-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 12px;
  margin-bottom: 8px;
  padding: 8px 0;
  border-top: 1px solid #eef1f4;
  border-bottom: 1px solid #eef1f4;
  font-size: 13px;
  color: #344054;
}
.master-facts > div {
  min-width: 0;
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.master-facts span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.master-warning {
  margin-top: 8px;
}
.expand-button {
  align-self: flex-start;
}
.query-progress {
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #fff;
}
.progress-summary {
  width: 100%;
  padding: 11px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  background: transparent;
  color: #2c3850;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.progress-summary svg {
  color: #60718a;
  transition: transform 160ms ease;
}
.progress-summary svg.expanded {
  transform: rotate(180deg);
}
.progress-steps {
  margin: 0;
  padding: 0 14px 12px;
  list-style: none;
}
.progress-steps li {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8fa0b8;
  font-size: 13px;
}
.progress-steps li.complete {
  color: #60718a;
}
.progress-steps li.active {
  color: #182132;
  font-weight: 500;
}
.progress-steps li.failed {
  color: #b42318;
}
.progress-steps li.stopped {
  color: #52637b;
  font-weight: 500;
}
.step-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #edf2ff;
  color: #4c7dff;
  font-size: 11px;
}
.progress-steps li.complete .step-icon {
  background: #eaf7ef;
  color: #23834b;
}
.progress-steps li.failed .step-icon {
  background: #fff1f0;
  color: #b42318;
}
.progress-steps li.stopped .step-icon {
  background: #eef2f6;
  color: #52637b;
}
.progress-failure-reason {
  margin: 0 14px 12px 43px;
  color: #b42318;
  font-size: 12px;
  line-height: 1.6;
}
.step-icon .ant-spin {
  line-height: 1;
}
.step-icon .ant-spin-dot {
  font-size: 14px;
}
.material-notice {
  margin-top: 4px;
  padding: 12px 2px 0;
  border-top: 1px solid #dbe4f0;
  color: #60718a;
  font-size: 12px;
  line-height: 1.6;
}
.app-footer {
  margin-top: 18px;
  padding: 12px 2px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #dbe4f0;
  color: #60718a;
  font-size: 12px;
  line-height: 1.6;
}
.app-footer .ant-btn-link {
  flex: 0 0 auto;
  padding-inline: 2px;
}
.feedback-form {
  display: grid;
  gap: 8px;
}
.feedback-form label:not(:first-child) {
  margin-top: 6px;
}
.empty-wrap,
.loading-wrap {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed #dbe4f0;
  border-radius: 14px;
  background: #fff;
}
@media (max-width: 720px) {
  .app-shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 12px;
  }
  .query-band {
    grid-template-columns: 1fr;
  }
  .master-toolbar {
    grid-template-columns: 1fr;
  }
  .query-band .ant-btn {
    height: 44px;
    min-height: 44px;
  }
  .brand {
    align-items: flex-start;
  }
  .brand h2.ant-typography {
    font-size: 20px;
  }
  .brand,
  .brand-tags,
  .example-row,
  .result-summary,
  .article-head,
  .article-meta,
  .status-row,
  .retrieval-row,
  .source-line,
  .rich-title,
  .rich-item-head,
  .rich-item-meta,
  .master-status,
  .master-checks {
    min-width: 0;
  }
  .result-summary .ant-space,
  .article-head .ant-space {
    width: 100%;
  }
  .article-public-facts {
    align-items: flex-start;
  }
  .master-facts {
    grid-template-columns: 1fr;
  }
}
