:root{
  --bg1:#f6f0f3;
  --bg2:#efe8ef;
  --card:#ffffff;
  --text:#2b2a2a;
  --muted:#6a6670;
  --accent:#f2c94c;
  --accent2:#f7d97b;
  --border:rgba(0,0,0,.08);
  --shadow:0 18px 50px rgba(28, 16, 36, .10);
  --radius:22px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 50% 0%, rgba(242,201,76,.28), transparent 60%),
    radial-gradient(900px 600px at 20% 20%, rgba(160, 130, 210, .10), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  padding:14px 18px;
  background:rgba(246,240,243,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(242,201,76,.35);
}

.brand{display:flex;align-items:center;gap:12px}
.brand-badge{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.85);
  border:1px solid var(--border);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  font-weight:800;
}
.brand-text{line-height:1.05}
.brand-name{font-weight:800;letter-spacing:.2px}
.brand-sub{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.12em}

.worktime{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:8px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.65);
  border:1px solid var(--border);
  box-shadow:0 8px 22px rgba(0,0,0,.06);
  font-size:12px;
  line-height:1.2;
}
.worktime-line{white-space:nowrap}
@media (max-width: 720px){
  .worktime{width:100%}
  .worktime-line{white-space:normal}
}

.topbar-actions{display:flex;gap:10px}

.page{
  max-width:1080px;
  margin:0 auto;
  padding:22px 16px 60px;
}

.hero{
  display:flex;
  justify-content:center;
  padding:24px 0 10px;
}
.hero-logo{
  text-align:center;
  opacity:.95;
  user-select:none;
}
.hero-logo-mark{
  font-size:54px;
  font-weight:900;
  letter-spacing:-.02em;
}
.hero-logo-sub{
  margin-top:2px;
  font-size:14px;
  color:rgba(80,70,88,.75);
  text-transform:uppercase;
  letter-spacing:.18em;
}

.card{
  max-width:900px;
  margin:18px auto 0;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(0,0,0,.06);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px 28px 26px;
}

.card h1{margin:0 0 8px;font-size:28px;letter-spacing:.02em}
.card h2{margin:0 0 10px;font-size:22px}
.muted{color:var(--muted)}
.small{font-size:13px}
.hidden{display:none !important}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px 18px;
  margin-top:18px;
}
.field{display:flex;flex-direction:column;gap:8px}
.field > span{font-weight:700}
.req{color:#b24b4b}
.field input, .field select{
  height:42px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.16);
  outline:none;
  background:#fff;
  font-size:15px;
}
.field input:focus, .field select:focus{
  border-color: rgba(242,201,76,.9);
  box-shadow:0 0 0 4px rgba(242,201,76,.20);
}
.field.checkbox{
  grid-column:1 / -1;
  flex-direction:row;
  align-items:center;
  gap:10px;
  margin-top:2px;
}
.field.checkbox input{width:18px;height:18px}

.hint{color:var(--muted);font-size:12px}

.actions{
  display:flex;
  justify-content:flex-end;
  margin-top:20px;
}
.actions.space-between{justify-content:space-between; align-items:center}
.actions-left, .actions-right{display:flex;gap:10px;align-items:center}

.btn{
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  color:var(--text);
  border-radius:999px;
  padding:11px 16px;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  transition:transform .06s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn-primary{
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  border-color: rgba(0,0,0,.10);
  box-shadow: 0 10px 24px rgba(242,201,76,.25);
}
.btn-outline{
  background: transparent;
  border-color: rgba(0,0,0,.18);
}
.btn-ghost{
  background: rgba(255,255,255,.75);
}

.scan-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  margin-top:16px;
}
.scan-preview{
  border-radius:18px;
  border:1px solid rgba(0,0,0,.10);
  overflow:hidden;
  background:linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.01));
  min-height:320px;
  position:relative;
}
video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:#111;
  min-height:320px;
}
.scan-status{
  position:absolute;
  left:14px;
  bottom:14px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(0,0,0,.08);
  font-weight:700;
  font-size:13px;
}

.scan-side{display:flex;flex-direction:column;gap:12px}
.qr-sample{
  background:rgba(255,255,255,.75);
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:14px;
  text-align:center;
}
.qr-title{font-weight:900;margin-bottom:10px}
.qr-sample img{max-width:100%;border-radius:14px;border:1px solid rgba(0,0,0,.08)}
.qr-code{margin-top:8px;color:var(--muted);font-size:12px}
.manual{
  background:rgba(255,255,255,.75);
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:14px;
}

.checklist-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:10px;
}
.total-pill{
  padding:10px 14px;
  border-radius:999px;
  background:rgba(242,201,76,.22);
  border:1px solid rgba(242,201,76,.55);
  font-weight:900;
  white-space:nowrap;
}
.checklist{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.category{
  margin-top:4px;
  padding-top:12px;
  border-top:1px dashed rgba(0,0,0,.12);
}
.category:first-child{border-top:none;padding-top:0}
.category-title{
  font-weight:900;
  margin:0 0 10px;
  color:#3a2c42;
}

.item{
  display:grid;
  grid-template-columns: 26px 1fr auto;
  gap:12px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.85);
}
.item.selected{
  border-color: rgba(242,201,76,.55);
  background:rgba(242,201,76,.12);
}
.item.locked.selected{
  background: rgba(66, 180, 120, .14);
  border-color: rgba(66, 180, 120, .45);
}
.item.locked:not(.selected){
  opacity:.65;
}
.item input[type="checkbox"]{width:18px;height:18px;margin-top:2px}

.item-main{display:flex;flex-direction:column;gap:6px}
.item-name{font-weight:900}
.item-sub{font-size:12px;color:var(--muted)}
.item-controls{
  display:flex;
  align-items:center;
  gap:10px;
}
.qty{
  width:88px;
  height:38px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.16);
  outline:none;
}

.qty-label{
  min-width:88px;
  height:38px;
  padding:0 10px;
  border-radius:12px;
  border:1px dashed rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:var(--muted);
  background:rgba(255,255,255,.75);
}
.price{
  font-weight:900;
  min-width:120px;
  text-align:right;
}
.inline-input{
  height:38px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.16);
  outline:none;
  width:220px;
}
.inline-input.small{width:140px}

.modal{
  border:none;
  padding:0;
  background:transparent;
}
.modal::backdrop{background:rgba(18,10,24,.35)}
.modal-inner{
  width:min(720px, calc(100vw - 26px));
  margin: 10vh auto 0;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(0,0,0,.10);
  border-radius:22px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 16px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.modal-title{font-weight:900}
.modal-body{padding:16px}
.help-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:8px}

@media (max-width: 820px){
  .form-grid{grid-template-columns:1fr}
  .scan-grid{grid-template-columns:1fr}
  .card{padding:22px 18px}
  .hero-logo-mark{font-size:42px}
  .price{min-width:100px}
}
