:root {
  --green: #1f7a4d;
  --deep: #103d2a;
  --line: #dfe8dd;
  --paper: #f7faf4;
  --muted: #647067;
  --lime: #c7df4a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans KR", system-ui, sans-serif;
  background: var(--paper);
  color: #17221c;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; font-weight: 800; }
button, input, select, textarea { font: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(25, 73, 46, .06);
}
.utility {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  border-bottom: 1px solid var(--line);
  color: #5d6d62;
  font-size: .78rem;
  font-weight: 700;
}
.utility a { white-space: nowrap; padding: 0 10px; border-right: 1px solid var(--line); }
.utility a:first-child { padding-left: 0; }
.utility a:last-child { padding-right: 0; border-right: 0; }
.utility a:hover { color: var(--green); }
.cart-count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
}
.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 310px; }
.brand img { width: 154px; height: auto; }
.brand-name { display: inline-flex; align-items: center; color: #111; font-size: 1.55rem; line-height: 1; font-weight: 900; white-space: nowrap; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 16px; color: #35453b; font-size: .88rem; }
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--deep); border-color: var(--deep); }
.btn.line { background: #fff; color: var(--green); border-color: #c9dac4; }
.btn.line:hover { background: #f4faef; color: var(--deep); border-color: var(--green); }
.btn.subtle { border-color: var(--line); background: #fff; color: #26372d; }
.btn.subtle:hover { background: #fff0ed; color: #b23524; border-color: #f0c9bf; }
main { padding: 48px 0 76px; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { margin: 0 0 14px; font-size: 1.35rem; }
p { color: var(--muted); }
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(25,73,46,.06);
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-weight: 800; color: #34443a; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d6e2d4;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fcfefb;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(31,122,77,.18);
  border-color: var(--green);
}
textarea { min-height: 92px; resize: vertical; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { border-top: 1px solid #e8eee4; padding: 12px 8px; text-align: left; vertical-align: middle; }
th { color: #516056; font-size: .84rem; }
.muted { color: var(--muted); font-size: .9rem; }
.empty {
  border: 1px dashed #cddac9;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: #fbfdf8;
}
.item-list { display: grid; gap: 10px; }
.cart-item, .wish-item, .summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 88px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.summary-row {
  background: linear-gradient(135deg, rgba(232,243,221,.7), #fff 55%);
}
.cart-item:hover, .wish-item:hover { border-color: rgba(31,122,77,.28); }
.cart-item strong, .wish-item strong { display: block; }
.cart-item span, .wish-item span { display: block; margin-top: 3px; color: var(--muted); font-size: .86rem; }
.cart-item input { text-align: right; font-weight: 900; }
.cart-quote-form {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.form-status {
  display: none;
  border-radius: 8px;
  padding: 12px 14px;
  background: #eef6ee;
  color: var(--green);
  font-weight: 900;
}
.form-status.show { display: block; }
.form-status.error {
  background: #fff0ed;
  color: #b23524;
}
.status-card {
  display: grid;
  gap: 8px;
  border-left: 4px solid var(--green);
  background: #f4faef;
  padding: 16px;
}
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.kpi div { border: 1px solid var(--line); border-radius: 8px; padding: 15px; background: #fff; }
.kpi strong { display: block; color: var(--green); font-size: 1.5rem; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 10px; background: #eef6ee; color: var(--green); font-weight: 900; font-size: .78rem; }
.badge.quote-received { background: #e7f6ee; color: var(--green); }
.badge.quote-review { background: #fff7dc; color: #806000; }
.badge.quote-done { background: #e9f2ff; color: #1f5f9f; }
.badge.quote-cancel { background: #fff0ed; color: #b23524; }
.notice { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.quote-board-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.quote-board { min-width: 920px; }
.quote-board th {
  background: #f4faef;
  color: var(--deep);
  font-weight: 900;
  border-top: 0;
}
.quote-board td { vertical-align: middle; }
.quote-board-row:hover { background: #fbfdf8; }
.quote-detail-toggle {
  min-height: 34px;
  padding: 0 12px;
  font-size: .86rem;
  white-space: nowrap;
}
.quote-board-detail td {
  padding: 0;
  background: #fbfdf8;
}
.quote-board-detail[hidden] { display: none; }
.quote-card-body { padding: 16px; }
.quote-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.quote-meta span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #dfe8dd;
  border-radius: 999px;
  background: #fff;
  padding: 6px 10px;
  color: #34443a;
  font-size: .86rem;
  font-weight: 800;
}
.quote-meta b { color: var(--green); }
.quote-table-wrap { overflow-x: auto; margin-top: 10px; }
.quote-detail-table {
  min-width: 720px;
  overflow: hidden;
  border: 1px solid #dfe8dd;
  border-radius: 8px;
  background: #fff;
}
.quote-detail-table th {
  background: #f4faef;
  color: var(--deep);
  font-weight: 900;
}
.quote-detail-table th,
.quote-detail-table td {
  border-top: 0;
  border-bottom: 1px solid #e8eee4;
  padding: 10px 11px;
  vertical-align: top;
}
.quote-detail-table tbody tr:last-child td { border-bottom: 0; }
.quote-detail-table.compact { min-width: 420px; }
.quote-message {
  margin-top: 12px;
  border: 1px solid #e8eee4;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.quote-message b { display: block; margin-bottom: 5px; color: var(--deep); }
.quote-message p { margin: 0; color: #34443a; }
@media (max-width: 820px) {
  .topbar { position: relative; }
  .utility { justify-content: flex-start; gap: 10px; overflow-x: auto; padding: 0 12px; scroll-snap-type: x proximity; }
  .utility a { scroll-snap-align: start; }
  .nav-links { display: none; }
  .nav { min-height: 62px; gap: 8px; }
  .brand img { width: 126px; }
  .brand { min-width: 0; gap: 6px; }
  .brand-name { font-size: .98rem; }
  .grid, .field-grid, .kpi { grid-template-columns: 1fr; }
  .page-head { display: block; }
  .card { padding: 18px; }
  .cart-item, .wish-item, .summary-row { grid-template-columns: 1fr; }
  .quote-board { min-width: 820px; }
  .quote-detail-table { min-width: 640px; }
  input, select, textarea, .btn { min-height: 44px; }
}
@media (max-width: 380px) {
  .brand img { width: 112px; }
  .brand-name { font-size: .88rem; }
  .card { padding: 14px; }
}
