/* src-v1/v1.css */
.v1-app {
  background: #f8fafc;
  color: #334155;
  min-height: 100vh;
  font: 15px/1.7 system-ui;
}
.v1-app * {
  box-sizing: border-box;
}
.v1-header {
  height: 68px;
  padding: 0 32px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 30px;
}
.v1-header a:first-child {
  font-weight: 750;
  letter-spacing: 1px;
  color: #312e81;
}
.v1-header a:last-child {
  margin-left: auto;
  color: #4f46e5;
}
.v1-local-banner {
  padding: 8px 24px;
  background: #eef2ff;
  color: #4f46e5;
  text-align: center;
  font-size: 12px;
}
.v1-main {
  max-width: 1380px;
  margin: 28px auto;
  padding: 0 28px 50px;
}
.v1-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}
.v1-app h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}
.v1-app h2 {
  font-size: 19px;
  font-weight: 650;
  margin: 0 0 14px;
}
.v1-app h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}
.v1-app h4 {
  font-size: 14px;
  font-weight: 650;
  margin: 14px 0 7px;
}
.v1-app p {
  margin: 8px 0;
}
.v1-panel {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin: 18px 0;
}
.v1-app textarea {
  width: 100%;
  border: 1px solid #dce2ec;
  border-radius: 8px;
  padding: 14px;
  font: 15px/1.8 system-ui;
  resize: vertical;
  background: #fff;
  color: #334155;
}
.v1-question textarea {
  height: 210px;
  font-size: 14px;
}
.v1-editor {
  min-height: 280px;
}
.v1-app select {
  display: block;
  padding: 7px 10px;
  border: 1px solid #dce2ec;
  border-radius: 6px;
}
.v1-app button {
  cursor: pointer;
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #dfe3f5;
  border-radius: 7px;
  font-size: 13px;
  padding: 8px 14px;
  line-height: 1.5;
}
.v1-app button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.v1-app .v1-primary {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
}
.v1-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.v1-subtle {
  font-size: 12px;
  color: #64748b;
}
.v1-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.v1-tabs {
  display: flex;
  gap: 10px;
  margin: 22px 0;
}
.v1-tabs button.active {
  background: #4f46e5;
  color: white;
}
.v1-result-layout {
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  gap: 24px;
  align-items: start;
}
.v1-result-layout .v1-panel {
  margin: 0;
}
.v1-original {
  position: sticky;
  top: 18px;
  max-height: 80vh;
  overflow: auto;
}
.v1-source {
  white-space: pre-wrap;
  font: 16px/1.95 system-ui;
  overflow-wrap: anywhere;
}
.v1-original-focus {
  background: #dddffd;
  border-radius: 3px;
  box-shadow: 0 0 0 3px #dddffd;
}
.v1-record {
  padding: 22px 0;
  border-bottom: 1px solid #e2e8f0;
  overflow-wrap: anywhere;
}
.v1-record-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.v1-app .v1-locate {
  padding: 5px 10px;
  background: #e0e7ff;
  color: #4338ca;
  border: none;
}
.v1-english {
  font: 15px/1.9 system-ui;
  white-space: pre-wrap;
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  padding: 15px;
  overflow-wrap: anywhere;
}
.v1-added {
  background: #dcefe4;
  color: #24573b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.v1-deleted {
  background: #fce1df;
  color: #8b4641;
  text-decoration: line-through;
}
.v1-marker {
  vertical-align: super;
  font-size: 11px;
  margin-left: 3px;
  line-height: 0;
}
.v1-marker a {
  color: #4f46e5;
  text-decoration: none;
}
.v1-explanations {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.v1-explanations li {
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}
.v1-kind {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}
.v1-error {
  color: #9f4b45;
  background: #fbe8e4;
}
.v1-optional {
  color: #5145a5;
  background: #eeeafa;
}
.v1-content_gap {
  color: #336150;
  background: #e9f5ef;
}
.v1-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font: 14px/1.8 system-ui;
  margin: 9px 0;
}
.v1-pair span:first-child {
  color: #94564e;
}
.v1-pair span:last-child {
  color: #2b7253;
}
.v1-benefit {
  color: #516275;
  font-size: 14px;
}
.v1-app details {
  margin: 12px 0;
  font-size: 13px;
}
.v1-app summary {
  cursor: pointer;
  color: #64748b;
}
.v1-note {
  border-left: 3px solid #c9a168;
  background: #fff8e9;
  color: #785c30;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 13px;
}
.v1-good {
  color: #4b7760;
}
.v1-task {
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}
.v1-task > span {
  float: right;
  color: #4f46e5;
  font-size: 12px;
}
.v1-whole {
  font-size: 15px;
}
.v1-failure {
  border-color: #ecc8c3;
  background: #fff8f7;
}
.v1-loading {
  text-align: center;
  padding: 40px;
}
.v1-spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid #e0e7ff;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: v1-spin 1s linear infinite;
}
.v1-tools {
  margin-top: 32px;
}
.v1-tools button {
  margin: 8px;
}
.v1-meta {
  margin-top: 25px;
}
@keyframes v1-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 800px) {
  .v1-main {
    padding: 0 16px 35px;
    margin: 20px auto;
  }
  .v1-header {
    padding: 0 16px;
    gap: 14px;
    font-size: 12px;
  }
  .v1-heading {
    display: block;
  }
  .v1-heading label {
    display: block;
    margin-top: 14px;
  }
  .v1-result-layout {
    grid-template-columns: 1fr;
  }
  .v1-original {
    position: static;
    max-height: none;
  }
  .v1-panel {
    padding: 18px;
  }
  .v1-app h1 {
    font-size: 21px;
  }
  .v1-tabs {
    gap: 6px;
  }
  .v1-tabs button {
    padding: 7px 10px;
  }
  .v1-actions {
    display: grid;
  }
  .v1-source {
    font-size: 15px;
  }
  .v1-question textarea {
    height: 270px;
  }
}
.v1-integrated .v1-tabs {
  flex-wrap: wrap;
}
.v1-integrated aside {
  min-width: 0;
}
.v1-integrated main > .flex.gap-8.items-start > section {
  min-width: 0;
}
@media (max-width: 800px) {
  .v1-integrated .flex.gap-8.items-start {
    flex-direction: column;
  }
  .v1-integrated .flex.gap-8.items-start > aside {
    width: 100%;
  }
  .v1-integrated .flex.gap-8.items-start > section {
    width: 100%;
    position: static;
  }
  .v1-integrated main {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
@media (min-width: 801px) {
  .v1-integrated main > .flex.gap-8.items-start > section,
  .v1-integrated main > .flex.gap-8.items-start > aside {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}
.v1-app.v1-diagnosis {
  min-height: 0;
  background: white;
}
.v1-original-view .v1-source {
  font-family:
    ui-serif,
    Georgia,
    Cambria,
    "Times New Roman",
    Times,
    serif;
  font-size: 1.125rem;
  line-height: 1.625;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 800px) {
  .v1-original-view [role=tabpanel] {
    padding: 20px;
    min-height: 0;
  }
  .v1-original-view [role=tab] {
    padding: 8px;
    font-size: 13px;
  }
}
@media (min-width: 801px) {
  .v1-integrated main > .flex.gap-8.items-start {
    flex-direction: row;
  }
}
.v1-legacy-sample {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.v1-legacy-sample button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
