:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1b3439;
  background: #f5f6f3;
  font-synthesis: none;
  --green: #1e6056;
  --muted: #6b7d7b;
  --line: #dfe6e0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 11px 17px;
  color: #25463f;
}
button:hover {
  background: #edf3ee;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
input,
textarea,
select {
  width: 100%;
  background: white;
  border: 1px solid #cdd9d2;
  border-radius: 7px;
  padding: 12px;
  color: #243e39;
}
textarea {
  min-height: 130px;
  resize: vertical;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 7px;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.7px;
  margin: 8px 0 12px;
}
h2 {
  font-size: 19px;
  margin: 0 0 18px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.75;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.eyebrow {
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #7d9389;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 19px;
  font-weight: 700;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  background: #d9ecbd;
  color: #173c32;
  border-radius: 11px;
  font-size: 17px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 400;
  color: #a8c1b7;
  margin-top: 4px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-art {
  padding: 64px 70px;
  color: white;
  background: #122e33;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid #6b918f45;
  border-radius: 50%;
  right: -210px;
  bottom: 10px;
  box-shadow:
    0 0 0 65px #6b918f12,
    0 0 0 130px #6b918f08;
}
.login-art h1 {
  font-size: 50px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.login-art p {
  color: #b9ccc3;
  max-width: 400px;
}
.login-art .eyebrow {
  color: #b7c98c;
}
.login-form {
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-form > div {
  max-width: 370px;
  width: 100%;
}
.login-form button {
  width: 100%;
  margin-top: 28px;
}
.login-art footer {
  color: #9fb5b1;
  font-size: 12px;
}
.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #122e33;
  color: #dce9e0;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  font-size: 17px;
  margin-bottom: 42px;
}
.nav {
  display: grid;
  gap: 8px;
}
.nav button {
  border: 0;
  color: #b8cec4;
  text-align: left;
  background: transparent;
  padding: 14px;
  font-size: 14px;
}
.nav button.active {
  background: #294741;
  color: #e3f5cd;
}
.nav button:hover {
  background: #294741;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #35504c;
  padding-top: 22px;
}
.sidebar-bottom button {
  margin-top: 14px;
  background: none;
  color: #afc5bd;
  border-color: #446159;
  width: 100%;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  font-size: 13px;
  color: var(--muted);
}
.pill {
  display: inline-block;
  border: 1px solid #d9e5d8;
  background: #f2f7ee;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  color: #45633b;
}
.content {
  max-width: 1400px;
  padding: 34px 42px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-head p {
  margin: 0;
}
.hero {
  border-radius: 13px;
  padding: 32px 36px;
  background: #e8eee2;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
  border: 1px solid #dbe4d1;
}
.hero h2 {
  font-size: 25px;
  margin: 12px 0;
}
.hero p {
  margin: 0;
  color: #61705a;
  font-size: 14px;
}
.hero-symbol {
  font-size: 70px;
  color: #a0b27d;
  line-height: 1;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  min-width: 0;
}
.card small {
  color: var(--muted);
}
.stat {
  font-size: 32px;
  display: block;
  margin: 14px 0 8px;
}
.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-head h2 {
  margin: 0;
}
.empty {
  border: 1px dashed #ccd9cb;
  border-radius: 10px;
  padding: 38px 22px;
  text-align: center;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: #35524a;
  margin-bottom: 10px;
  font-size: 17px;
}
.empty p {
  font-size: 14px;
  margin: 0;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf0ea;
  padding: 17px 0;
}
.row:last-child {
  border-bottom: 0;
}
.row strong {
  display: block;
  margin-bottom: 5px;
}
.row small {
  color: var(--muted);
}
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.row-actions button {
  font-size: 12px;
  padding: 7px 11px;
}
.review-stats div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px;
}
.review-stats strong {
  display: block;
  margin-top: 8px;
  line-height: 1.5;
}
.import-row select {
  width: auto;
  min-width: 130px;
  padding: 8px;
}
.import-row a {
  align-self: center;
  color: var(--green);
  font-size: 13px;
}
.step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
}
.step-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #edf2e7;
  color: #536a41;
  font-size: 12px;
}
.step p {
  margin: 5px 0;
  font-size: 13px;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.tabs button.active {
  background: #254e44;
  color: white;
  border-color: #254e44;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.full {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  font-weight: 400;
}
.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.checks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.checks label {
  margin: 0;
}
.bad {
  color: #af5035;
}
.hint {
  padding: 13px 16px;
  background: #f2f5ef;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #5e725f;
  margin: 16px 0;
}
.quote-tag {
  background: #fff4e5;
  color: #936626;
  border-color: #ead9bd;
}
.hidden {
  display: none !important;
}
.document-name {
  word-break: break-all;
}
.proposal-body {
  white-space: pre-wrap;
  line-height: 1.8;
  color: #44564c;
  max-height: 300px;
  overflow: auto;
}
#notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 420px;
  background: #173f36;
  color: white;
  padding: 15px 24px;
  border-radius: 10px;
  box-shadow: 0 8px 30px #10281c26;
  display: none;
  z-index: 20;
}
#notice.visible {
  display: block;
}
.user-card {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.user-card select {
  width: auto;
  min-width: 200px;
}
.account-note {
  font-size: 12px;
  color: #78877c;
  margin-top: 20px;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 48px;
  }
  .hero {
    padding: 40px;
  }
  .card {
    padding: 28px;
  }
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 24px 14px;
  }
  .content {
    padding: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .grid {
    gap: 10px;
  }
  .card {
    padding: 18px;
  }
  .login-art {
    padding: 40px;
  }
  .login-art h1 {
    font-size: 34px;
  }
}
@media (max-width: 600px) {
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 26px;
    min-height: 220px;
  }
  .login-art h1 {
    font-size: 26px;
    margin: 22px 0 8px;
  }
  .login-art p,
  .login-art footer {
    display: none;
  }
  .login-form {
    padding: 30px 24px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 18px;
  }
  .sidebar .brand {
    margin-bottom: 18px;
  }
  .nav {
    display: flex;
    overflow: auto;
  }
  .nav button {
    white-space: nowrap;
  }
  .sidebar-bottom {
    display: block;
    margin-top: 12px;
    padding-top: 10px;
  }
  .sidebar-bottom > strong,
  .sidebar-bottom > p {
    display: none;
  }
  .sidebar-bottom button {
    width: auto;
    margin-top: 0;
  }
  .topbar {
    height: 56px;
    padding: 0 18px;
  }
  .content {
    padding: 20px 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .grid .card {
    margin-bottom: 0;
  }
  .grid {
    margin-bottom: 22px;
  }
  .hero {
    padding: 22px;
  }
  .hero-symbol {
    display: none;
  }
  h1 {
    font-size: 25px;
  }
  .page-head {
    align-items: flex-start;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .row {
    flex-wrap: wrap;
  }
  .row-actions {
    width: 100%;
  }
  .topbar span:first-child {
    max-width: 60%;
  }
  .page-head > button {
    white-space: nowrap;
  }
  .checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
