:root {
  font:
    15px/1.55 system-ui,
    "Microsoft YaHei",
    sans-serif;
  color: #213a35;
  background: #f3f6f5;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 20px max(20px, calc((100% - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #dbe5e1;
}
.brand {
  font-size: 22px;
  font-weight: 750;
  text-decoration: none;
  color: #175349;
}
.brand span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #5e746d;
}
.header-actions {
  display: flex;
  gap: 8px;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 28px 20px 70px;
}
h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 10px;
}
h2 {
  font-size: 19px;
  margin: 0 0 16px;
}
h3 {
  font-size: 16px;
  margin: 0;
}
p,
li,
small,
label,
a,
strong,
div {
  overflow-wrap: anywhere;
}
button,
.button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  border: 1px solid #c7d6cf;
  background: #fff;
  border-radius: 8px;
  color: #175349;
  padding: 10px 15px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #edf5f0;
}
button.primary {
  background: #175349;
  border-color: #175349;
  color: white;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #a2c5b7;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
label {
  display: grid;
  gap: 6px;
  color: #526b61;
  font-size: 14px;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #c7d6cf;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: #213a35;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
form {
  display: grid;
  gap: 16px;
}
.panel {
  background: white;
  border: 1px solid #dbe5e1;
  border-radius: 12px;
  padding: 22px;
  min-width: 0;
}
.login {
  max-width: 420px;
  margin: 5vh auto;
}
.muted,
small {
  color: #6c8078;
  font-size: 13px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.toolbar input {
  max-width: 320px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
}
.stack {
  display: grid;
  gap: 20px;
  align-content: start;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.wide {
  grid-column: 1/-1;
}
.request-list {
  display: grid;
  gap: 12px;
}
.request-card {
  width: 100%;
  text-align: left;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 10px;
}
.request-card strong {
  font-size: 18px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.badge {
  font-size: 12px;
  border: 1px solid #dbe5e1;
  border-radius: 20px;
  padding: 3px 10px;
  background: #f4f8f6;
}
.badge.draft {
  background: #fff4db;
  color: #876321;
}
.tag {
  font-size: 12px;
  color: #5d746b;
}
.description {
  white-space: pre-wrap;
}
.error {
  border: 1px solid #e4c1bc;
  background: #fff0ec;
  color: #8a3c2d;
  padding: 13px;
  border-radius: 8px;
}
.file {
  padding: 12px 0;
  border-bottom: 1px solid #edf1ef;
  display: grid;
  gap: 5px;
}
.file a {
  color: #175349;
}
.chat {
  display: grid;
  gap: 10px;
  max-height: 500px;
  overflow: auto;
  margin: 15px 0;
}
.message {
  padding: 12px 14px;
  background: #f0f5f2;
  border-radius: 9px;
  white-space: pre-wrap;
}
.message.mine {
  background: #e4f0e9;
}
.message small {
  display: block;
  margin-bottom: 5px;
}
.quote {
  border: 1px solid #dbe5e1;
  padding: 16px;
  border-radius: 9px;
  display: grid;
  gap: 7px;
}
.quote.selected {
  border: 2px solid #175349;
  background: #f4faf6;
}
.quote.stale {
  opacity: 0.7;
}
.price {
  font-size: 22px;
  font-weight: 700;
}
.notice {
  padding: 13px;
  border-radius: 8px;
  background: #fff6df;
  color: #775f2f;
}
details summary {
  cursor: pointer;
  font-weight: 650;
  padding: 8px 0;
}
details form {
  margin-top: 15px;
}
#notice {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #183e33;
  color: #fff;
  padding: 13px 20px;
  max-width: 90vw;
  border-radius: 9px;
  z-index: 10;
}
@media (max-width: 760px) {
  header {
    padding: 16px;
    gap: 10px;
  }
  .brand {
    font-size: 19px;
  }
  main {
    padding: 22px 14px 60px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 17px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .toolbar {
    align-items: flex-start;
  }
  .toolbar input {
    max-width: none;
  }
  h1 {
    font-size: 24px;
  }
  .header-actions button {
    padding: 9px 12px;
  }
  .price {
    font-size: 20px;
  }
}
