.card-head h2 svg {
  width: 17px;
  height: 17px;
  color: #8798b3;
}
.doc-toolbar > span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.doc-toolbar svg {
  width: 14px;
  height: 14px;
}
.privacy-note svg {
  width: 17px;
  height: 17px;
  color: #7c94b8;
}
.field label .evidence {
  flex-shrink: 0;
}
:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: #202d43;
  background: #eef1f5;
  font-size: 14px;
  font-synthesis: none;
  --blue: #315feb;
  --navy: #192b4d;
  --muted: #7b8798;
  --line: #e7ebf1;
  --green: #168a70;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button {
  border: 0;
}
a {
  color: var(--blue);
}
.prototype-bar {
  height: 42px;
  background: #14213a;
  color: #dce4f4;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.prototype-bar b {
  padding-right: 16px;
  color: white;
}
.prototype-bar > div {
  display: flex;
  gap: 4px;
  align-items: center;
}
.mode,
.bar-reset {
  color: #b9c6dd;
  background: transparent;
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 5px;
}
.mode.active {
  background: #3b4b65;
  color: white;
}
.bar-reset {
  border-left: 1px solid #4a5870;
  margin-left: 8px;
  border-radius: 0;
}
#frame {
  container-type: inline-size;
  container-name: view;
  background: #f5f7fa;
  min-height: calc(100vh - 42px);
  margin: auto;
  transition: width 0.2s;
}
body.preview-phone #frame {
  width: 390px;
  max-width: 100%;
  box-shadow: 0 8px 50px #192b4d22;
  margin: 24px auto;
  border: 1px solid #d7dfec;
  border-radius: 20px;
  overflow: hidden;
  min-height: 800px;
}
.layout {
  display: grid;
  grid-template-columns: 218px 1fr;
  min-height: calc(100vh - 42px);
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 27px 17px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 11px 28px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 1px;
}
.brand-mark {
  background: var(--navy);
  color: #fff;
  width: 32px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 23px;
  letter-spacing: -2px;
}
.brand small {
  display: block;
  color: #929cad;
  letter-spacing: 1.5px;
  font-size: 9px;
  font-weight: 500;
  margin-top: 4px;
}
.nav-label {
  font-size: 10px;
  color: #a4acb9;
  padding: 16px 15px 9px;
  letter-spacing: 1px;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 7px;
  background: transparent;
  color: #69768a;
  text-align: left;
  margin-bottom: 4px;
}
.nav-btn.active {
  color: var(--blue);
  background: #edf2ff;
  font-weight: 600;
}
.nav-btn .count {
  margin-left: auto;
  font-size: 10px;
  background: #dfe8ff;
  padding: 2px 6px;
  border-radius: 4px;
}
.nav-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 90px 10px 0;
}
.tenant {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
  color: #657086;
}
.tenant b {
  display: block;
  font-size: 12px;
  color: #33405a;
  margin: 5px 0;
}
.tenant span {
  font-size: 10px;
  color: #9aa4b3;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 0 34px;
}
.breadcrumb {
  font-size: 12px;
  color: #8993a2;
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb b {
  font-weight: 500;
  color: #34415a;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 17px;
}
.avatar {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8edf8;
  color: #41567e;
  font-size: 11px;
}
.user {
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.top-notice {
  font-size: 11px;
  color: #8590a0;
  border-right: 1px solid var(--line);
  padding-right: 18px;
}
.mobile-brand {
  display: none;
}
.content {
  max-width: 1390px;
  margin: auto;
  padding: 30px 36px 90px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 18px;
}
.eyebrow {
  color: #8d99ad;
  font-size: 10px;
  letter-spacing: 1.6px;
  margin-bottom: 9px;
  text-transform: uppercase;
}
.page-head h1 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}
.subtitle {
  color: #8a95a6;
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}
.btn {
  padding: 11px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  background: #fff;
  color: #47556d;
  border: 1px solid #dce2ec;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 3px 7px #315feb12;
}
.btn.subtle {
  background: transparent;
  border-color: transparent;
  color: #75839a;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn.small {
  padding: 7px 11px;
  font-size: 11px;
}
.steps {
  display: flex;
  padding: 23px 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 22px;
  gap: 14px;
}
.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9ba5b3;
  position: relative;
}
.step:not(:last-child):after {
  content: "";
  height: 1px;
  background: #e4e9f2;
  flex: 1;
  margin-left: 14px;
}
.step-dot {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #f0f3f8;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.step span {
  font-size: 12px;
  white-space: nowrap;
}
.step.active {
  color: var(--blue);
  font-weight: 600;
}
.step.active .step-dot {
  background: var(--blue);
  color: white;
}
.step.done {
  color: #60728f;
}
.step.done .step-dot {
  background: #eaf0ff;
  color: var(--blue);
}
.grid-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.card-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card-head h2,
.section-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-head small {
  font-size: 10px;
  color: #98a2b1;
}
.card-body {
  padding: 24px;
}
.upload-zone {
  border: 1px dashed #cbd6e7;
  border-radius: 8px;
  background: #fafcff;
  min-height: 244px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  transition: 0.2s;
  cursor: pointer;
}
.upload-zone.dragover {
  background: #eef3ff;
  border-color: var(--blue);
}
.upload-icon {
  display: grid;
  place-items: center;
  background: #ecf1ff;
  color: var(--blue);
  width: 56px;
  height: 56px;
  border-radius: 13px;
  margin-bottom: 18px;
}
.upload-icon svg {
  width: 27px;
  height: 27px;
}
.upload-zone h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 10px;
}
.upload-zone p {
  color: #95a0b2;
  font-size: 11px;
  margin: 0 0 18px;
  line-height: 1.9;
}
.or {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #a7b0bd;
  margin: 22px 0;
  font-size: 10px;
}
.or:before,
.or:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.demo-file {
  padding: 16px;
  background: #f7f9fc;
  border: 1px solid #e7ecf4;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.file-icon {
  width: 35px;
  height: 42px;
  border: 1px solid #e1e7f0;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #cd725a;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.file-info {
  flex: 1;
  min-width: 0;
}
.file-info b {
  font-size: 12px;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-info small {
  font-size: 10px;
  color: #95a0b1;
}
.demo-tag,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 10px;
  background: #eef3ff;
  color: #5678bc;
  white-space: nowrap;
}
.tag.green {
  background: #e8f5ef;
  color: #228674;
}
.tag.amber {
  background: #fff3db;
  color: #b98229;
}
.tag.gray {
  background: #f0f3f7;
  color: #7b879b;
}
.aside-title {
  font-size: 12px;
  color: #3c4d68;
  margin: 0 0 20px;
}
.aside-tip {
  display: flex;
  gap: 11px;
  margin-bottom: 24px;
}
.aside-tip .tip-n {
  font-size: 11px;
  color: #6e8abc;
  background: #edf2fa;
  border-radius: 50%;
  height: 22px;
  width: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.aside-tip b {
  font-size: 12px;
  display: block;
  font-weight: 500;
  margin: 2px 0 8px;
}
.aside-tip p,
.small-copy {
  font-size: 11px;
  color: #94a0b0;
  line-height: 1.9;
  margin: 0;
}
.privacy-note {
  background: #f6f8fb;
  padding: 16px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.9;
  color: #8593a7;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.notice.info {
  color: #6b7d9d;
  background: #edf3ff;
  border: 1px solid #e0eaff;
}
.notice.warn {
  color: #9d782f;
  background: #fff9ed;
  border: 1px solid #f1e6c9;
}
.notice svg {
  width: 15px;
  height: 18px;
  flex-shrink: 0;
}
.bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 16px;
}
.bottom-actions .right {
  display: flex;
  gap: 9px;
}
.bottom-hint {
  font-size: 11px;
  color: #97a1b1;
}
.processing {
  padding: 52px 30px 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.ai-orb {
  width: 78px;
  height: 78px;
  border: 1px solid #dce6ff;
  background: radial-gradient(circle at 30% 30%, #fafbff, #dbe7ff);
  margin: 0 auto 25px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: var(--blue);
  box-shadow: 0 10px 40px #315feb12;
}
.ai-orb svg {
  width: 36px;
  height: 36px;
}
.processing h2 {
  font-size: 20px;
  font-weight: 600;
}
.processing > p {
  font-size: 12px;
  color: #91a0b4;
  line-height: 1.9;
}
.progress-track {
  height: 5px;
  background: #ebeff7;
  border-radius: 10px;
  margin-top: 30px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--blue);
  transition: width 0.5s;
}
.process-list {
  text-align: left;
  max-width: 420px;
  margin: 25px auto;
}
.process-row {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  color: #a6afbc;
  font-size: 12px;
}
.process-row.done {
  color: #458a78;
}
.process-row.current {
  color: var(--blue);
}
.process-row small {
  margin-left: auto;
  font-size: 10px;
}
.spin {
  display: inline-block;
  animation: rotate 1.5s linear infinite;
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
.review-intro {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  align-items: center;
}
.review-intro b {
  font-weight: 500;
  font-size: 12px;
}
.review-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: start;
}
.doc-panel {
  position: sticky;
  top: 20px;
  overflow: hidden;
}
.doc-toolbar {
  padding: 14px 17px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #7b8a9f;
}
.doc-paper-wrap {
  background: #edf0f4;
  padding: 23px;
  max-height: 730px;
  overflow: auto;
}
.doc-paper {
  background: white;
  box-shadow: 0 3px 12px #28385910;
  padding: 40px 30px 30px;
  min-height: 560px;
  font-family: "Songti SC", "SimSun", serif;
  color: #40434a;
  line-height: 2.2;
  font-size: 11px;
  position: relative;
}
.doc-paper:after {
  content: "演示合同";
  position: absolute;
  top: 45%;
  left: 12%;
  font-size: 50px;
  letter-spacing: 9px;
  color: #6c86b412;
  transform: rotate(-28deg);
  pointer-events: none;
}
.doc-paper h3 {
  text-align: center;
  font-size: 16px;
  margin: 0 0 30px;
  color: #222b3b;
}
.doc-paper h4 {
  font-size: 12px;
  margin: 20px 0 7px;
}
.doc-paper p {
  margin: 12px 0;
  position: relative;
  z-index: 1;
}
.source-highlight {
  background: #fff2b9;
  box-shadow: 0 0 0 4px #fff2b9;
  border-radius: 1px;
}
.doc-footer {
  text-align: center;
  font-size: 9px;
  color: #a4abb6;
  padding-top: 28px;
}
.doc-status {
  padding: 12px 17px;
  display: flex;
  justify-content: space-between;
  background: #fff;
  font-size: 10px;
  color: #94a0b3;
}
.form-panel .card {
  margin-bottom: 17px;
}
.form-section {
  padding: 22px;
}
.form-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.form-section-title h3 {
  font-size: 13px;
  margin: 0;
  font-weight: 600;
}
.section-number {
  color: #98a8c3;
  font-size: 10px;
  margin-right: 8px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #78869b;
  margin-bottom: 8px;
  gap: 8px;
}
.required {
  color: #d68c6e;
  padding-left: 3px;
}
.evidence {
  font-size: 9px;
  border: 0;
  background: #f1f5fc;
  color: #6d86b0;
  padding: 3px 6px;
  border-radius: 3px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dde4ee;
  background: #fff;
  border-radius: 5px;
  color: #35435d;
  padding: 10px 11px;
  min-height: 38px;
  font-size: 12px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid #d9e3ff;
  border-color: #92aaff;
}
.field textarea {
  resize: vertical;
  line-height: 1.8;
}
.field input.invalid {
  border-color: #d67e68;
  background: #fffaf8;
}
.field input.edited {
  border-left: 3px solid var(--blue);
}
.field .help {
  font-size: 10px;
  color: #9ca6b5;
  margin-top: 7px;
  line-height: 1.7;
}
.form-note {
  font-size: 10px;
  color: #9aa6b7;
  margin-top: 17px;
  line-height: 1.9;
}
.form-note b {
  color: #6880a9;
  font-weight: 500;
}
.switch-line {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.switch-line label {
  font-size: 11px;
  line-height: 1.8;
  color: #738199;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #65738b;
  font-size: 11px;
  line-height: 1.9;
}
.check input {
  accent-color: var(--blue);
  height: 15px;
  width: 15px;
  flex-shrink: 0;
  margin: 3px 0 0;
}
.check strong {
  font-weight: 500;
  color: #3f506d;
}
.table-wrap {
  overflow: auto;
}
.installments {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.installments th {
  color: #8d99aa;
  font-weight: 400;
  text-align: left;
  background: #f7f9fc;
  padding: 10px;
}
.installments td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf0f5;
  line-height: 1.7;
}
.installments td:nth-child(2) {
  white-space: nowrap;
}
.installments small {
  color: #93a0b2;
  display: block;
  font-size: 9px;
}
.timeline {
  border-left: 1px solid #e0e6f1;
  margin: 7px 0 0 7px;
  padding-left: 24px;
}
.timeline-item {
  position: relative;
  padding: 0 0 25px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -29px;
  top: 3px;
  height: 8px;
  width: 8px;
  border: 2px solid #d5e0f7;
  border-radius: 50%;
  background: #fff;
}
.timeline-item:first-child:before {
  background: var(--blue);
  border-color: var(--blue);
}
.timeline-item b {
  font-size: 12px;
  font-weight: 500;
}
.timeline-item p {
  font-size: 11px;
  color: #96a0b0;
  margin: 8px 0 0;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.reminder-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}
.reminder-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.chip {
  padding: 6px 10px;
  background: #eef3fd;
  color: #637fae;
  font-size: 10px;
  border-radius: 4px;
  border: 1px solid #dfe8f8;
}
.summary-list {
  margin: 0;
}
.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.summary-list dt {
  color: #8b97a8;
}
.summary-list dd {
  margin: 0;
  color: #37465f;
  text-align: right;
}
.success-hero {
  padding: 38px 30px 32px;
  background: linear-gradient(120deg, #fff, #f4f8ff);
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
.success-mark {
  height: 56px;
  width: 56px;
  background: #e6f5ef;
  color: #198b73;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.success-mark svg {
  height: 29px;
  width: 29px;
}
.success-hero h1 {
  font-size: 23px;
  margin: 0 0 10px;
}
.success-hero p {
  font-size: 12px;
  color: #8796aa;
  line-height: 1.9;
  margin: 0;
}
.success-actions {
  margin-left: auto;
  display: flex;
  gap: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 23px;
}
.stat {
  padding: 22px 23px;
}
.stat span {
  color: #909caf;
  font-size: 11px;
}
.stat b {
  display: block;
  margin: 12px 0 10px;
  font-weight: 500;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.stat b small {
  font-size: 12px;
  margin-left: 6px;
  font-weight: 400;
  color: #9ca6b3;
}
.stat p {
  font-size: 10px;
  color: #9ba6b6;
  margin: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
}
.name-chain {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 22px 0 10px;
}
.name-node {
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 6px;
  flex: 1;
  background: #fafbfd;
}
.name-node.current {
  border-color: #d5e0ff;
  background: #f1f5ff;
}
.name-node span {
  display: block;
  font-size: 10px;
  color: #9aa5b4;
  margin-bottom: 9px;
}
.name-node b {
  font-size: 12px;
  font-weight: 500;
}
.name-arrow {
  align-self: center;
  color: #c2ccda;
}
.detail-tabs {
  display: flex;
  gap: 27px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.detail-tab {
  background: transparent;
  padding: 0 0 15px;
  color: #95a0b1;
  font-size: 12px;
}
.detail-tab.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}
.contract-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}
.contract-row .actions {
  display: flex;
  gap: 7px;
}
.activity {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.9;
}
.activity span {
  color: #a2aaba;
  font-size: 10px;
}
.activity b {
  font-weight: 500;
  color: #465875;
}
.mobile-tabs {
  display: none;
}
.empty {
  padding: 40px;
  text-align: center;
  color: #8d9aae;
  font-size: 12px;
  line-height: 2;
}
.search-row {
  display: flex;
  gap: 14px;
  margin: 15px 0;
}
.search-row input {
  flex: 1;
  padding: 12px;
  border: 1px solid #dde4ee;
  border-radius: 6px;
  background: white;
  min-width: 0;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.list-row h3 {
  margin: 0 0 8px;
  font-size: 14px;
}
.list-row p {
  margin: 0;
  color: #97a1b2;
  font-size: 11px;
  line-height: 1.8;
}
.list-row .grow {
  flex: 1;
}
.list-row:last-child {
  border: 0;
}
.cover {
  height: 60px;
  width: 44px;
  background: linear-gradient(140deg, #233b5b, #6e8f9c);
  color: #e2e7ed;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 10px;
  writing-mode: vertical-rl;
  letter-spacing: 3px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #17243b66;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  backdrop-filter: blur(3px);
}
.modal {
  width: min(650px, calc(100vw - 36px));
  max-width: 100%;
  min-width: 0;
  max-height: 88vh;
  overflow: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 80px #17243b33;
}
.modal .doc-paper {
  max-width: 480px;
  margin: 20px auto;
  min-height: 400px;
}
.modal-body {
  padding: 24px;
  line-height: 1.9;
  color: #71809a;
  font-size: 12px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 17px 22px;
}
.modal-header b {
  font-weight: 500;
}
.close {
  background: #f2f5fa;
  color: #6e7b91;
  border-radius: 50%;
  height: 26px;
  width: 26px;
}
.modal iframe {
  width: 100%;
  height: 70vh;
  border: 0;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #21334f;
  color: #fff;
  font-size: 12px;
  border-radius: 7px;
  padding: 13px 22px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: 90%;
  box-shadow: 0 5px 20px #21334f25;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.error-text {
  color: #bd6650;
  font-size: 11px;
  margin-top: 12px;
  line-height: 1.8;
}
.hidden {
  display: none !important;
}
.spinner-ring {
  width: 13px;
  height: 13px;
  border: 1.5px solid #c8d5ef;
  border-top-color: var(--blue);
  border-radius: 50%;
  display: inline-block;
  animation: rotate 1s linear infinite;
}
.right-status {
  font-size: 10px;
  color: #97a2b3;
}
.form-bottom {
  background: #fff;
  border: 1px solid var(--line);
  padding: 17px 22px;
  border-radius: 8px;
  margin-top: 18px;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}
.field-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.field-inline input {
  width: 70px;
  padding: 9px;
  border: 1px solid #dde4ee;
  border-radius: 5px;
  color: #35435d;
}
.proof-dot {
  height: 5px;
  width: 5px;
  background: #a3b7d8;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.doc-panel .btn.small {
  font-size: 10px;
}
.demo-banner {
  color: #8a98ab;
  font-size: 10px;
  margin: 8px 0 18px;
  line-height: 1.8;
}
.mobile-bottom-nav {
  display: none;
}
@container view (max-width: 1000px) {
  .layout {
    grid-template-columns: 180px 1fr;
  }
  .sidebar {
    padding: 24px 10px;
  }
  .content {
    padding: 24px 22px 80px;
  }
  .grid-upload {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .topbar {
    padding: 0 24px;
  }
  .review-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .doc-paper-wrap {
    padding: 12px;
  }
  .doc-paper {
    padding: 24px 18px;
  }
  .form-section {
    padding: 18px;
  }
  .fields {
    gap: 15px 12px;
  }
  .steps {
    padding: 20px 17px;
    gap: 8px;
  }
  .step:not(:last-child):after {
    margin-left: 3px;
  }
  .step {
    gap: 6px;
  }
  .step span {
    font-size: 11px;
  }
  .success-hero {
    flex-wrap: wrap;
  }
  .success-actions {
    margin-left: 76px;
  }
}
@container view (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: 59px;
    padding: 0 18px;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
  }
  .mobile-brand .brand-mark {
    height: 27px;
    width: 25px;
    font-size: 19px;
    border-radius: 5px;
  }
  .top-notice {
    display: none;
  }
  .user > span {
    display: none;
  }
  .content {
    padding: 22px 16px 120px;
  }
  .page-head {
    margin-bottom: 20px;
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 7px;
  }
  .subtitle {
    font-size: 11px;
    line-height: 1.8;
  }
  .page-head > .btn {
    padding: 8px;
    font-size: 10px;
  }
  .steps {
    padding: 16px 12px;
    gap: 4px;
    margin-bottom: 18px;
  }
  .step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .step:not(:last-child):after {
    position: absolute;
    top: 12px;
    left: calc(50% + 20px);
    width: calc(100% - 35px);
    margin: 0;
  }
  .step span {
    font-size: 10px;
  }
  .step-dot {
    height: 25px;
    width: 25px;
    font-size: 10px;
  }
  .grid-upload,
  .reminder-grid,
  .review-grid,
  .detail-grid {
    display: block;
  }
  .upload-aside {
    margin-top: 18px;
  }
  .upload-aside .aside-tip {
    margin-bottom: 16px;
  }
  .card-head {
    padding: 17px;
  }
  .card-body {
    padding: 18px;
  }
  .upload-zone {
    padding: 24px 12px;
    min-height: 220px;
  }
  .upload-zone h3 {
    font-size: 13px;
  }
  .upload-zone p {
    font-size: 10px;
  }
  .demo-file {
    padding: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .demo-file .btn {
    margin-left: auto;
  }
  .demo-file .file-info {
    min-width: 180px;
  }
  .demo-tag {
    font-size: 9px;
  }
  .bottom-actions,
  .form-bottom {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    background: #fff;
    padding: 13px;
    border: 1px solid var(--line);
    box-shadow: 0 4px 25px #192b4d12;
    border-radius: 8px;
    gap: 8px;
    margin-top: 18px;
  }
  .bottom-hint {
    display: none;
  }
  .bottom-actions .right {
    margin-left: auto;
    gap: 4px;
  }
  .bottom-actions .btn,
  .form-bottom .btn {
    padding: 10px 12px;
    font-size: 11px;
  }
  .bottom-actions > .btn.subtle {
    padding-left: 0;
  }
  .review-intro {
    font-size: 10px;
    align-items: flex-start;
  }
  .review-intro b {
    font-size: 11px;
  }
  .review-intro .tag {
    font-size: 9px;
  }
  .mobile-tabs {
    display: flex;
    background: #e9edf5;
    padding: 4px;
    border-radius: 6px;
    gap: 4px;
    margin-bottom: 16px;
  }
  .mobile-tabs button {
    flex: 1;
    padding: 10px;
    background: transparent;
    border-radius: 4px;
    font-size: 11px;
    color: #8b98ad;
  }
  .mobile-tabs button.active {
    background: white;
    box-shadow: 0 1px 4px #1d335416;
    color: var(--blue);
  }
  .review-grid[data-mobile-tab="fields"] .doc-panel {
    display: none;
  }
  .review-grid[data-mobile-tab="document"] .form-panel {
    display: none;
  }
  .doc-panel {
    position: static;
    margin-bottom: 16px;
  }
  .doc-paper-wrap {
    max-height: none;
    padding: 15px;
  }
  .doc-paper {
    padding: 30px 24px;
    min-height: 550px;
  }
  .doc-toolbar {
    font-size: 10px;
  }
  .fields {
    grid-template-columns: 1fr 1fr;
    gap: 17px 12px;
  }
  .field label {
    font-size: 10px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 12px;
    padding: 10px 8px;
  }
  .form-section {
    padding: 18px;
  }
  .form-section-title h3 {
    font-size: 12px;
  }
  .notice {
    padding: 12px;
    font-size: 10px;
    margin-bottom: 15px;
  }
  .form-note {
    font-size: 10px;
  }
  .installments {
    font-size: 10px;
  }
  .installments td {
    padding: 10px 7px;
  }
  .installments th {
    padding: 9px 7px;
  }
  .reminder-grid > .card {
    margin-bottom: 16px;
  }
  .reminder-grid .form-section {
    padding: 19px;
  }
  .summary-list > div {
    font-size: 11px;
  }
  .success-hero {
    padding: 25px 20px;
    gap: 14px;
    margin-bottom: 16px;
    align-items: flex-start;
  }
  .success-mark {
    width: 42px;
    height: 42px;
  }
  .success-hero h1 {
    font-size: 19px;
    margin-top: 2px;
  }
  .success-hero p {
    font-size: 10px;
  }
  .success-actions {
    margin: 0 0 0 56px;
    flex-wrap: wrap;
  }
  .success-actions .btn {
    font-size: 11px;
    padding: 9px 12px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }
  .stat {
    padding: 18px 16px;
  }
  .stat b {
    font-size: 22px;
    margin: 10px 0;
  }
  .stat span {
    font-size: 10px;
  }
  .stat p {
    font-size: 9px;
  }
  .detail-grid > .card {
    margin-bottom: 16px;
  }
  .name-chain {
    gap: 5px;
    flex-wrap: wrap;
  }
  .name-node {
    padding: 12px 9px;
    min-width: 80px;
  }
  .name-node b {
    font-size: 10px;
  }
  .name-node span {
    font-size: 9px;
  }
  .detail-tabs {
    gap: 24px;
  }
  .contract-row {
    flex-wrap: wrap;
  }
  .contract-row .actions {
    margin-left: 47px;
  }
  .detail-grid .card-body {
    padding: 18px;
  }
  .processing {
    padding: 36px 19px;
  }
  .processing h2 {
    font-size: 18px;
  }
  .processing > p {
    font-size: 11px;
  }
  .process-row {
    font-size: 11px;
  }
  .process-row small {
    font-size: 9px;
  }
  .review-intro .right-status {
    display: none;
  }
  .form-bottom {
    align-items: flex-start;
  }
  .form-bottom .check {
    font-size: 10px;
  }
  .form-bottom .btn {
    align-self: center;
  }
  .list-row {
    padding: 17px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .list-row .btn {
    margin-left: auto;
  }
  .list-row h3 {
    font-size: 13px;
  }
  .list-row p {
    font-size: 10px;
  }
  .modal-body {
    padding: 19px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal .doc-paper {
    margin: 10px;
    padding: 25px 20px;
  }
  .demo-banner {
    font-size: 9px;
  }
  .mobile-bottom-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
  }
  .mobile-bottom-nav button {
    background: transparent;
    font-size: 11px;
    color: #95a1b4;
    padding: 0 0 8px;
  }
  .mobile-bottom-nav button.active {
    color: var(--blue);
    border-bottom: 2px solid var(--blue);
  }
}
@media (max-width: 600px) {
  .prototype-bar {
    height: auto;
    min-height: 42px;
    padding: 7px 11px;
    gap: 5px;
  }
  .bar-note {
    display: none;
  }
  .prototype-bar b {
    padding: 0;
  }
  .mode {
    padding: 5px 7px;
  }
  .bar-reset {
    padding: 5px 7px;
    margin-left: 3px;
  }
  body.preview-phone #frame {
    margin: 0 auto;
    border: 0;
    border-radius: 0;
  }
  .prototype-bar > span {
    font-size: 10px;
  }
}
