:root { font-family: system-ui, -apple-system, Segoe UI, sans-serif; color: #222; background: #f5f2ec; }
body { margin: 0; }
header { background: #9f4d23; color: white; padding: 18px 24px; display:flex; justify-content:space-between; align-items:center; }
header h1 { margin:0; font-size: 28px; }
header p { margin:4px 0 0; opacity:.9; }
header a { color:#fff; font-weight:700; }
main.grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; padding:18px; }
.card { background:white; border-radius:18px; padding:18px; box-shadow:0 6px 20px rgba(0,0,0,.08); }
.wide { grid-column: 1 / -1; }
h2 { margin-top:0; color:#9f4d23; }
.formrow { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
label { flex:1; font-weight:700; font-size:14px; }
input, select, textarea { box-sizing:border-box; width:100%; padding:12px; border:1px solid #d7cfc5; border-radius:12px; font-size:16px; margin-top:4px; }
.lookup { display:flex; gap:10px; }
.lookup input { font-size:30px; font-weight:800; letter-spacing:1px; }
button { border:0; border-radius:12px; padding:12px 16px; font-weight:800; cursor:pointer; background:#eee2d5; color:#222; }
button.primary { background:#9f4d23; color:white; }
button.danger { background:#9b2424; color:white; }
.productbox { margin-top:16px; border:1px dashed #d7cfc5; border-radius:14px; padding:14px; }
.productbox.empty { color:#777; }
.options { display:grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap:10px; margin:12px 0; }
.optiongroup { background:#faf7f2; padding:12px; border-radius:12px; }
.optiongroup h3 { margin:0 0 8px; font-size:16px; }
.choice { display:block; font-weight:500; margin:6px 0; }
.cartitem { border-bottom:1px solid #eee; padding:12px 0; display:flex; justify-content:space-between; gap:12px; }
.cartitem strong { color:#9f4d23; }
.summary { margin-top:16px; padding:14px; background:#faf7f2; border-radius:14px; display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:8px; font-size:18px; }
.actions { margin-top:16px; display:flex; gap:10px; }
.ordercard { border:1px solid #eee; border-radius:14px; padding:14px; margin:12px 0; }
.badge { display:inline-block; padding:4px 8px; border-radius:999px; background:#eee2d5; font-weight:800; }
@media (max-width: 800px) { main.grid { grid-template-columns:1fr; } header { align-items:flex-start; gap:10px; flex-direction:column; } }

textarea { box-sizing:border-box; width:100%; padding:12px; border:1px solid #d7cfc5; border-radius:12px; font-size:16px; margin-top:4px; font-family: inherit; }
.admin-list { max-height: 72vh; overflow:auto; margin-top:12px; border:1px solid #eee2d5; border-radius:14px; }
.admin-row { width:100%; display:flex; justify-content:space-between; align-items:center; text-align:left; background:#fff; border-radius:0; border-bottom:1px solid #eee2d5; padding:12px; }
.admin-row:hover, .admin-row.selected { background:#faf0e7; }
.admin-row small { color:#666; }
.ok { color:#1e7b38; font-weight:800; }
.off { color:#9b2424; font-weight:800; }
.save-msg { font-weight:800; }
.save-msg.success { color:#1e7b38; }
.save-msg.error { color:#9b2424; white-space:pre-wrap; }
.helpgrid { display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.helpgrid > div { background:#faf7f2; border-radius:12px; padding:12px; }


.hint { color:#666; font-size:14px; }

.calc-detail {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #fff8ef;
  border: 1px solid #ead8c6;
  line-height: 1.45;
}


.public-note { font-size: 14px; color:#666; }
