:root { color-scheme: light; font-family: system-ui, "Microsoft YaHei", sans-serif; color: #17231d; background: #f4f7f5; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; min-height: 44px; border-radius: 10px; }
button { border: 0; padding: .65rem 1rem; color: white; background: #176b45; cursor: pointer; font-weight: 650; }
button:hover { background: #0f5435; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
button.quiet { color: #174f39; background: #e2f0e8; }
button.danger { background: #a52b2b; }
input, select { width: 100%; border: 1px solid #aebdb5; padding: .65rem .75rem; background: white; }
label { display: grid; gap: .4rem; font-weight: 620; }
fieldset { border: 1px solid #cad5cf; border-radius: 10px; display: flex; flex-wrap: wrap; gap: .75rem; }
.check { display: flex; align-items: center; font-weight: 500; }
.check input { width: 22px; min-height: 22px; }
.topbar { min-height: 64px; padding: .75rem clamp(1rem, 4vw, 3rem); background: #123d2c; color: white; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar strong { font-size: 1.2rem; }
.subtitle { margin-left: .75rem; font-size: .85rem; opacity: .75; }
.shell { width: min(1120px, calc(100% - 2rem)); margin: 1.5rem auto 4rem; }
.card { background: white; border: 1px solid #dbe3de; border-radius: 16px; padding: clamp(1rem, 3vw, 1.5rem); box-shadow: 0 8px 24px rgba(18, 61, 44, .06); }
.narrow { width: min(440px, 100%); margin: 8vh auto; }
.stack { display: grid; gap: 1rem; }
.welcome, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.45rem, 4vw, 2rem); }
h2 { font-size: 1.3rem; }
.muted { color: #5d6e65; }
.status { min-height: 1.5rem; color: #9b2020; margin: .75rem 0; }
.hidden { display: none !important; }
nav { display: flex; gap: .5rem; flex-wrap: wrap; }
.nav-button { color: #174f39; background: #e6efe9; }
.nav-button.active { color: white; background: #176b45; }
.panel { margin-top: 1.25rem; }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.item-card { display: grid; gap: .75rem; }
.badge { display: inline-block; width: fit-content; padding: .2rem .55rem; border-radius: 99px; font-size: .8rem; color: #174f39; background: #e4f2e9; }
.badge.disabled { color: #7c2020; background: #f7dddd; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.permission-form { display: grid; gap: .75rem; padding-top: .75rem; border-top: 1px solid #dbe3de; }
.customer-checks { display: grid; gap: .35rem; max-height: 220px; overflow: auto; padding: .5rem; border: 1px solid #dbe3de; border-radius: 10px; }
.price-evidence, .history-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .75rem 0; border-bottom: 1px solid #e2e8e4; }
.price-evidence:last-child, .history-row:last-child { border-bottom: 0; }
.quote-line { background: white; border: 1px solid #d3ddd7; border-radius: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; padding: 1rem; }
.quote-line legend { font-weight: 750; color: #174f39; padding: 0 .4rem; }
.quote-options { margin: 1rem 0; }
.quote-total { margin: 1rem 0 0; font-size: 1.35rem; font-weight: 800; text-align: right; }
.compact-grid { margin: 0; }
.export-user-list { width: 100%; max-height: 300px; }
button:disabled { cursor: wait; opacity: .65; }
@media (max-width: 720px) {
  .shell { width: min(100% - 1rem, 1120px); margin-top: .5rem; }
  .topbar { padding-inline: .75rem; }
  .grid-form { grid-template-columns: 1fr; }
  .quote-line { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .section-heading > button { width: 100%; }
}
