
:root{
  --bg:#f5f1eb;
  --panel:#ffffff;
  --ink:#211d1a;
  --muted:#726861;
  --line:#e7ddd4;
  --brand:#8b2d1f;
  --brand-dark:#692117;
  --soft:#f8e8e2;
  --success:#1e7a4d;
  --warning:#b56a00;
  --shadow:0 14px 36px rgba(49,34,25,.10);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;
  background:linear-gradient(180deg,#efe8df 0,#f7f4f0 45%,#f5f1eb 100%);
  color:var(--ink);
}
button,input,select{font:inherit}
button{cursor:pointer}
a{color:inherit}
.shell{min-height:100vh}
.topbar{
  position:sticky; top:0; z-index:20;
  background:rgba(31,27,24,.94);
  color:white;
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar-inner{
  max-width:1180px; margin:auto; padding:14px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{font-size:22px;font-weight:900;letter-spacing:-.5px}
.brand small{display:block;font-size:11px;font-weight:500;color:#d7c8bc;margin-top:2px}
.top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.user-chip{
  padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.09);
  font-size:13px;color:#f4ece6
}
.container{max-width:1180px;margin:0 auto;padding:28px 20px 56px}
.login-wrap{
  min-height:100vh;display:grid;place-items:center;padding:24px;
}
.login-card{
  width:min(460px,100%);
  background:rgba(255,255,255,.96);
  border:1px solid var(--line);
  border-radius:28px;
  padding:34px;
  box-shadow:var(--shadow);
}
.logo-mark{
  width:58px;height:58px;border-radius:18px;background:var(--brand);
  display:grid;place-items:center;color:white;font-size:28px;font-weight:900;
  margin-bottom:18px;
}
h1,h2,h3,p{margin-top:0}
h1{font-size:30px;letter-spacing:-1px;margin-bottom:8px}
h2{font-size:24px;letter-spacing:-.7px}
.sub{color:var(--muted);line-height:1.65}
.field{margin:18px 0}
.field label{display:block;font-size:13px;font-weight:800;margin-bottom:8px}
.input{
  width:100%;padding:14px 15px;border-radius:14px;border:1px solid var(--line);
  background:white;outline:none;transition:.2s;
}
.input:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(139,45,31,.10)}
.btn{
  border:0;border-radius:14px;padding:12px 16px;font-weight:800;
  transition:.18s;display:inline-flex;align-items:center;justify-content:center;gap:8px;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--brand);color:white}
.btn-primary:hover{background:var(--brand-dark)}
.btn-dark{background:#211d1a;color:white}
.btn-light{background:#f1ebe6;color:#3f342e}
.btn-success{background:var(--success);color:white}
.btn-warning{background:#fff1d8;color:#925500}
.btn-danger{background:#fee9e6;color:#a72b1a}
.btn-block{width:100%}
.demo-box{
  margin-top:18px;padding:14px;border-radius:16px;background:#f8f4f0;
  border:1px dashed #d8c9bd;font-size:13px;line-height:1.75;color:#594c44;
}
.hero{
  display:flex;justify-content:space-between;align-items:end;gap:18px;
  margin-bottom:24px;
}
.hero h1{font-size:34px;margin-bottom:6px}
.hero .date{color:var(--muted);font-size:14px}
.grid{display:grid;gap:18px}
.products{grid-template-columns:repeat(3,minmax(0,1fr))}
.product-card,.panel,.order-card,.stat{
  background:var(--panel);border:1px solid var(--line);border-radius:22px;
  box-shadow:0 7px 22px rgba(66,46,35,.06);
}
.product-card{padding:20px;position:relative;overflow:hidden}
.product-card:before{
  content:"";position:absolute;right:-30px;top:-30px;width:100px;height:100px;border-radius:50%;
  background:var(--soft)
}
.product-icon{font-size:34px;position:relative}
.product-name{font-size:20px;font-weight:900;margin:10px 0 6px}
.price{font-size:18px;font-weight:900;color:var(--brand)}
.unit{font-size:12px;color:var(--muted);margin-left:4px}
.qty-row{display:flex;align-items:center;gap:9px;margin-top:18px}
.qty-row button{
  width:38px;height:38px;border-radius:12px;border:1px solid var(--line);
  background:#faf7f4;font-size:20px;font-weight:900
}
.qty-input{width:76px;text-align:center}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;align-items:start}
.sticky{position:sticky;top:92px}
.panel{padding:22px}
.summary-line{
  display:flex;justify-content:space-between;gap:14px;padding:10px 0;
  border-bottom:1px solid #f0e9e3;font-size:14px
}
.summary-line:last-child{border-bottom:0}
.total{
  display:flex;justify-content:space-between;align-items:end;margin-top:16px;
  padding-top:16px;border-top:2px solid var(--ink);font-weight:900
}
.total strong{font-size:25px;color:var(--brand)}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.tab{
  border:1px solid var(--line);background:white;border-radius:999px;padding:10px 14px;font-weight:800
}
.tab.active{background:var(--ink);color:white;border-color:var(--ink)}
.notice{
  background:#fff7e8;border:1px solid #f1d8ad;color:#754800;
  padding:14px 16px;border-radius:16px;line-height:1.55;font-size:14px
}
.bank-box{
  background:#251f1b;color:white;border-radius:18px;padding:18px;margin:16px 0
}
.bank-box .account{font-size:21px;font-weight:900;letter-spacing:.4px;margin:8px 0}
.order-list{display:grid;gap:14px}
.order-card{padding:18px}
.order-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.order-id{font-size:13px;color:var(--muted)}
.order-title{font-size:18px;font-weight:900;margin:4px 0}
.order-items{margin-top:12px;color:#4e443e;font-size:14px;line-height:1.65}
.badge{
  display:inline-flex;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap
}
.badge-wait{background:#fff3dc;color:#9b5900}
.badge-check{background:#eaf6ef;color:#1d7048}
.badge-ready{background:#eaf0fb;color:#365f9f}
.badge-done{background:#eee9ff;color:#6945a5}
.badge-unpaid{background:#f2eee9;color:#70655d}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}
.stat{padding:18px}
.stat .label{font-size:13px;color:var(--muted)}
.stat .value{font-size:27px;font-weight:900;margin-top:4px}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;min-width:620px}
th,td{text-align:left;padding:13px 10px;border-bottom:1px solid var(--line);font-size:14px}
th{color:var(--muted);font-size:12px}
.price-input{width:120px}
.empty{
  text-align:center;padding:42px 18px;color:var(--muted);
  background:white;border:1px dashed #d6c8bd;border-radius:20px
}
.toast{
  position:fixed;right:22px;bottom:22px;z-index:50;
  background:#211d1a;color:white;padding:14px 16px;border-radius:14px;
  box-shadow:var(--shadow);max-width:340px
}
.footer-note{margin-top:26px;color:var(--muted);font-size:12px;line-height:1.6}
.modal-backdrop{
  position:fixed;inset:0;background:rgba(17,13,11,.55);display:grid;place-items:center;
  padding:20px;z-index:40
}
.modal{
  width:min(520px,100%);background:white;border-radius:24px;padding:24px;box-shadow:var(--shadow)
}
.kicker{font-size:12px;color:var(--brand);font-weight:900;letter-spacing:.4px;text-transform:uppercase}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:28px 0 14px}
.section-title h2{margin-bottom:0}
.small{font-size:12px;color:var(--muted)}
.inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:900px){
  .layout{grid-template-columns:1fr}
  .sticky{position:static}
  .products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-grid{grid-template-columns:1fr}
}
@media(max-width:580px){
  .container{padding:20px 14px 40px}
  .topbar-inner{padding:12px 14px}
  .products{grid-template-columns:1fr}
  .hero{align-items:flex-start;flex-direction:column}
  .hero h1{font-size:28px}
  .login-card{padding:24px;border-radius:22px}
  .stats{grid-template-columns:1fr 1fr;gap:10px}
  .stat .value{font-size:22px}
}
