:root{
  --bg:#0b0d12;
  --card:#0f1424;
  --border:#232a40;
  --text:#e9eefc;
  --muted:#b7c0db;
  --brand:#3b66ff;
  --danger:#6a1f3a;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{ box-sizing:border-box; }
body{ margin:0; background:var(--bg); color:var(--text); }

.top{
  position:sticky; top:0; z-index:10;
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  padding:14px 14px env(safe-area-inset-top);
  background:#101525; border-bottom:1px solid var(--border);
}

.title{ font-weight:800; font-size:16px; letter-spacing:.2px; }

select,input,textarea,button{ font:inherit; }
select,input,textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid #2a3350;
  background:#0f1424;
  color:var(--text);
}

textarea{ resize:vertical; }

button{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid #2a3350;
  background:#111a33;
  color:var(--text);
  min-height:44px;
}

button.primary{ background:var(--brand); border-color:var(--brand); }
button.danger{ background:#3a1320; border-color:var(--danger); }
button.ghost{ background:transparent; }

.wrap{ padding:12px 14px 110px; }

.controls{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

.controls button{ grid-column: 1 / -1; }

.label{
  font-size:12px;
  color:var(--muted);
  margin:0 0 6px 4px;
}

.hint{
  margin:10px 0;
  padding:12px 12px;
  background:var(--card);
  border:1px dashed #2a3350;
  border-radius:14px;
  font-size:13px;
  color:#b9c6ff;
}

.list{ display:flex; flex-direction:column; gap:10px; }

.day{
  font-size:13px;
  color:#b9c6ff;
  margin:8px 2px 0;
}

.card{
  padding:12px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  cursor:pointer;
}

.row{ display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.badge{
  font-size:12px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid #2a3350;
  color:#b9c6ff;
  white-space:nowrap;
}

.meta{
  margin-top:8px;
  font-size:13px;
  color:var(--muted);
  line-height:1.35;
}

.fab{
  position:fixed;
  right:16px;
  bottom:18px;
  width:60px;
  height:60px;
  border-radius:999px;
  font-size:28px;
  border:none;
  background:var(--brand);
  color:white;
  box-shadow:0 14px 34px rgba(0,0,0,.45);
}

.modal{
  position:fixed; inset:0;
  background:rgba(0,0,0,.62);
  display:none;
  padding:16px 16px calc(16px + env(safe-area-inset-bottom));
}

.modal.show{ display:block; }

.modalCard{
  max-width:620px;
  margin:50px auto;
  background:#0b0f1d;
  border:1px solid var(--border);
  border-radius:18px;
  padding:12px;
}

.modalHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

.grid{ display:grid; gap:10px; }

.qtyRow{
  display:grid;
  grid-template-columns: 48px 1fr 48px;
  gap:8px;
  align-items:center;
}

.modalHint{
  margin-top:8px;
  font-size:13px;
  color:#b9c6ff;
}

.modalActions{
  display:flex;
  gap:10px;
  margin-top:10px;
}

.modalActions button{ flex:1; }
