.st-ui {
  --st-ink: #252921;
  --st-green: #274537;
  --st-line: #d3d6c9;
  --st-accent: #b08132;
  color: var(--st-ink);
  font-size: 1rem;
  line-height: 1.55;
}
.st-ui [hidden],
.st-notice[hidden] {
  display: none !important;
}
.st-ui h2,
.st-ui h3 {
  overflow-wrap: anywhere;
}
.st-ui h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.22;
}
.st-ui label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.94rem;
}
.st-ui input,
.st-ui select,
.st-ui textarea {
  display: block;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  border: 1px solid #9fa797;
  background: white;
  color: var(--st-ink);
  border-radius: 5px;
  padding: 0.58rem 0.72rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  min-height: 44px;
}
.st-ui select {
  appearance: none;
  padding-right: 2rem;
  background: white
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%234b564b' stroke-width='1.6'/%3E%3C/svg%3E")
    no-repeat right 0.65rem center;
}
.st-ui textarea {
  resize: vertical;
  min-height: 80px;
}
.st-ui a {
  text-underline-offset: 3px;
}
.st-btn,
.st-textbtn,
.st-chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.46rem 0.8rem;
  border: 1px solid #a7b09f;
  border-radius: 5px;
  background: #fff;
  color: #233a2d;
  font:
    600 0.91rem/1.3 "Segoe UI",
    Arial,
    sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.st-btn:hover,
.st-chip:hover,
.st-btn[aria-pressed="true"],
.st-chip[aria-pressed="true"] {
  background: #e8eddf;
  border-color: #71876f;
}
.st-primary,
.st-primary:hover,
.st-btn[aria-current="page"] {
  background: #284637;
  border-color: #284637;
  color: #fff;
}
.st-textbtn {
  border: 0;
  background: transparent;
  text-decoration: underline;
  padding-inline: 0.25rem;
}
.st-chip {
  border-radius: 24px;
  background: #eff3e9;
}
.st-ui :focus-visible,
.st-btn:focus-visible,
.st-chip:focus-visible,
.st-textbtn:focus-visible {
  outline: 3px solid #b57d1e;
  outline-offset: 3px;
}
.st-ui .st-muted,
.st-muted,
.st-cardkind {
  color: #52604f;
}
.st-ui .st-muted {
  margin: 0.5rem 0;
  font-size: 0.94rem;
}
.st-active:empty,
.st-ui #st-active:empty {
  display: none;
}
.st-find {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.st-find input {
  max-width: 720px;
}
.st-filtergrid,
.st-formgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 0.8rem;
}
.st-filtergrid select {
  max-width: 100%;
  text-overflow: ellipsis;
}
.st-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--st-line);
  margin: 0.7rem 0;
  padding-bottom: 0.55rem;
}
.st-toolbar span {
  font-weight: 700;
  margin-right: auto;
  scroll-margin-top: 90px;
}
.st-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.st-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  border: 1px solid var(--st-line);
  border-radius: 8px;
  min-width: 0;
}
.st-photobox {
  display: block;
  position: relative;
  width: 100%;
  height: clamp(190px, 24vw, 260px);
  flex: none;
  background: #f3f3ed;
}
.st-photobox img {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  object-position: center;
}
.st-cardbody {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}
.st-cardkind {
  font-size: 0.85rem;
  font-weight: 600;
}
.st-cardbody h3,
.st-line h3 {
  font-size: 1.18rem;
  line-height: 1.28;
  margin: 0.38rem 0 0.58rem;
}
.st-cardbody h3 a,
.st-line h3 a {
  color: inherit;
  text-decoration: none;
}
.st-cardbody h3 a:hover,
.st-line h3 a:hover {
  text-decoration: underline;
}
.st-cardbody p {
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.st-cardactions,
.st-chips,
.st-pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.st-cardbody .st-cardactions {
  margin-top: auto;
}
.st-pager {
  justify-content: center;
  margin: 1.2rem 0;
}
.st-empty {
  background: #f2f3ed;
  border-radius: 5px;
  padding: 1rem;
  grid-column: 1/-1;
  margin: 0.8rem 0;
}
.st-tablewrap {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
  overscroll-behavior-inline: contain;
}
.st-tablewrap table {
  border-collapse: collapse;
  text-align: left;
  min-width: 560px;
  width: 100%;
  background: #fff;
}
.st-tablewrap td,
.st-tablewrap th {
  border: 1px solid var(--st-line);
  padding: 0.7rem;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.st-tablewrap thead {
  background: #e7ecde;
}
.st-tablewrap tbody th {
  min-width: 110px;
}
.st-pick {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0;
}
.st-pick label {
  width: min(100%, 450px);
}
.st-chips {
  margin: 0.65rem 0;
}
.st-dialog {
  z-index: 99;
  width: min(480px, calc(100% - 24px));
  border: 1px solid #828b79;
  padding: 1.5rem;
  border-radius: 8px;
  background: #fafbf6;
  max-height: 84dvh;
  overflow: auto;
  box-sizing: border-box;
  box-shadow: 0 14px 55px #12201944;
}
.st-dialog::backdrop {
  background: #101812aa;
}
.st-dialoghead {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.5rem;
}
.st-dialog .st-emphasis {
  font-weight: 700;
  margin: 0.45rem 0 0.7rem;
}
.st-dialog form > label,
.st-formgrid {
  margin: 0.7rem 0;
}
.st-quotecols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
}
.st-quotecols section,
.st-quotecols form,
.st-review {
  min-width: 0;
}
.st-quotecols form > label {
  margin-bottom: 0.7rem;
}
.st-line {
  border-top: 1px solid var(--st-line);
  padding: 0.6rem 0;
}
.st-line p {
  margin: 0.3rem 0 0.45rem;
}
.st-line .st-btn {
  min-height: 40px;
}
.st-quotecols #st-colors {
  margin-top: 1.25rem;
}
.st-review {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border: 1px solid var(--st-line);
  background: #f5f6f0;
  border-radius: 8px;
  scroll-margin-top: 60px;
}
.st-review p {
  margin: 0.65rem 0;
}
.st-review textarea {
  min-height: 160px;
}
.st-notice {
  position: fixed;
  z-index: 999;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(88px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100% - 30px);
  padding: 0.7rem 1rem;
  background: #20392d;
  color: white;
  border-radius: 7px;
  box-shadow: 0 3px 18px #0003;
  font-size: 0.95rem;
  line-height: 1.45;
  pointer-events: none;
}
@media (max-width: 720px) {
  .st-quotecols {
    grid-template-columns: 1fr;
  }
  .st-dialog {
    padding: 1rem;
  }
  .st-formgrid,
  .st-filtergrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .st-toolbar {
    gap: 0.5rem;
  }
  .st-toolbar span {
    flex-basis: 100%;
  }
}
@media (max-width: 400px) {
  .st-filtergrid,
  .st-formgrid {
    gap: 0.55rem;
  }
  .st-results {
    gap: 0.7rem;
  }
  .st-dialog .st-formgrid {
    grid-template-columns: 1fr;
  }
  .st-tablewrap table {
    min-width: 460px;
  }
}
